float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
[gnulib.git] / ChangeLog
1 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
2
3         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
4         * tests/test-float.c (test_long_double): Correct and re-enable the
5         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
6
7 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
8
9         Avoid subtracting two pointers that don't point into the same block.
10         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
11         only pointers into the same memory block are subtracted. We cannot
12         assume that sizeof (ptrdiff_t) == sizeof (void *).
13
14 2011-11-29  Eric Blake  <eblake@redhat.com>
15
16         maint.mk: add syntax check for use of compare from init.sh
17         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
18         moved here from coreutils.
19
20         manywarnings: drop -Wunsuffixed-float-constants
21         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
22         '1.0D', which is the only way to silence this warning for 'double'.
23
24 2011-11-29  Jim Meyering  <meyering@redhat.com>
25
26         hash: mark compute_bucket_size with the pure attribute
27         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
28
29         quotearg, propername: correct pragma guard expression
30         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
31         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
32
33 2011-11-28  Jim Meyering  <meyering@redhat.com>
34
35         propername: do not mark proper_name with the const attribute
36         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
37         since it examines data pointed to by its parameter.
38         * lib/propername.c (proper_name): Instead, add a pragma to suppress
39         the suggestion from -Wsuggest-attribute=const.
40
41         propername: mark one more function as const
42         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
43
44 2011-11-27  Jim Meyering  <meyering@redhat.com>
45
46         mark functions with const and pure attributes
47
48         Mark functions per suggestions from gcc-4.6 when using these options:
49         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
50         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
51         Follow these guidelines: when possible, apply the attribute to
52         an extern declaration, not to its definition.  Apply it to the
53         definition only when the definition is static.
54         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
55         * lib/argv-iter.h (argv_iter_n_args): Likewise.
56         * lib/base64.h (isbase64): Likewise.
57         * lib/basename-lgpl.c (last_component, base_len): Likewise.
58         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
59         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
60         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
61         (c_tolower, c_toupper): Likewise.
62         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
63         * lib/chdir-long.c (find_non_slash): Likewise.
64         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
65         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
66         * lib/file-type.h (file_type): Likewise.
67         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
68         * lib/filevercmp.c (verrevcmp): Likewise.
69         * lib/freadahead.h (freadahead): Likewise.
70         * lib/fts.c (fts_maxarglen): Likewise.
71         * lib/hash-pjw.h (hash_pjw): Likewise.
72         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
73         * lib/hash.c (is_prime, next_prime): Likewise.
74         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
75         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
76         (hash_table_ok, hash_get_first, hash_string): Likewise.
77         (compute_bucket_size): Likewise.
78         * lib/i-ring.h (i_ring_empty): Likewise.
79         * lib/isnan.c (isnanl): Likewise.
80         * lib/math.h (isnanl, rpl_isnanl): Likewise.
81         * lib/memcasecmp.h (memcasecmp): Likewise.
82         * lib/memchr2.h (memchr2): Likewise.
83         * lib/memcmp2.h (memcmp2): Likewise.
84         * lib/parse-datetime.y (lookup_zone): Likewise.
85         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
86         [!WINDOWS_SOCKETS]: Likewise.
87         * lib/strnlen1.h (strnlen1): Likewise.
88         * lib/uniwidth.in.h (uc_width): Likewise.
89         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
90         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
91         (quoting_options_from_style): Add a comment.
92         * lib/propername.h (proper_name): Add a comment.
93
94 2011-11-27  Bruno Haible  <bruno@clisp.org>
95
96         Remove unused macros from !_LIBC code in glibc-borrowed files.
97         * lib/fnmatch.c (STRCOLL): Remove macro.
98         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
99         * lib/glob.c (__stat, __readdir64): Remove macros.
100         * lib/tempname.c (__open64, __xstat64): Remove macros.
101         Suggested by Paul Eggert.
102
103 2011-11-27  Bruno Haible  <bruno@clisp.org>
104
105         getcwd: Fix link error on MSVC 9.
106         * modules/getcwd (Depends-on): Add readdir, rewinddir.
107
108 2011-11-27  Bruno Haible  <bruno@clisp.org>
109
110         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
111         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
112         HAVE_OPENDIR is 0.
113         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
114         HAVE_CLOSEDIR is 0.
115         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
116         is 0.
117         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
118
119 2011-11-27  Bruno Haible  <bruno@clisp.org>
120
121         getcwd: Fix bug from 2011-08-17.
122         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
123         platforms that need it.
124         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
125         code of 4 to be a failure, not a success. This ensures that
126         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
127
128 2011-11-27  Bruno Haible  <bruno@clisp.org>
129
130         binary-io tests: Avoid test failure on mingw when libtool is used.
131         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
132         Don't verify the size of t-bin-out1.tmp here.
133         * tests/test-binary-io.sh: Verify it here.
134         Reported by Simon Josefsson.
135
136 2011-11-26  Bruno Haible  <bruno@clisp.org>
137
138         Fix conflict between two instantiations of module 'unistd'.
139         * gnulib-tool (func_emit_autoconf_snippet): Substitute
140         ${include_guard_prefix} also in the autoconf snippet.
141         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
143         GNULIB_UNISTD_H_GETOPT.
144         * modules/getopt-posix (configure.ac): Set the
145         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
146         * modules/getopt-gnu (configure.ac): Likewise.
147         * modules/unistd (Makefile.am): Change the substitution value of
148         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
149         Reported by Simon Josefsson.
150
151 2011-11-25  Bruno Haible  <bruno@clisp.org>
152
153         pagealign_alloc: Doc and comments.
154         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
155         module.
156         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
157
158 2011-11-25  Jim Meyering  <meyering@redhat.com>
159
160         test-update-copyright.sh: avoid false-positive failure
161         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
162         around false positive failure on Cygwin/Windows.  The latter was
163         matching erroneously-created files with names like
164         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
165
166 2011-11-25  Simon Josefsson  <simon@josefsson.org>
167
168         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
169         * m4/valgrind-tests.m4: Check that the parameters that will be
170         used works, not just a subset of them.  Reported by Bruno Haible
171         <bruno@clisp.org>.
172
173 2011-11-24  Jim Meyering  <meyering@redhat.com>
174
175         test-stdalign.c: comment out long double tests
176         * tests/test-stdalign.c: Don't try to reduce alignment of long double
177         variables.  That provokes errors like this from gcc-4.7.0 20111124:
178         error: '_Alignas' specifiers cannot reduce alignment of \
179         'static_longdouble_alignas'.
180
181 2011-11-22  Jim Meyering  <meyering@redhat.com>
182
183         init.sh: make "compare /dev/null FILE" output more readable
184         * tests/init.sh (compare_): Document the preferred order of arguments.
185         (emit_diff_u_header_): New function.
186         (compare_dev_null_): Emit a simulated diff, rather than just the
187         contents of the unexpected file.  Suggestion from Bruno Haible.
188
189 2011-11-21  Jim Meyering  <meyering@redhat.com>
190             Eric Blake  <eblake@redhat.com>
191
192         init.sh: work around OSF/1 5.1's mishandling of /dev/null
193         * tests/init.sh: Make our compare function slightly more portable.
194         Reported by Bruno Haible in
195         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
196
197 2011-11-21  Simon Josefsson  <simon@josefsson.org>
198
199         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
200         before using it, in code that ends up in config.h.
201
202 2011-11-20  Bruno Haible  <bruno@clisp.org>
203
204         getcwd: Work around getcwd bug on AIX 5..7.
205         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
206         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
207         Use a different value for gl_cv_func_getcwd_path_max. Move the
208         definition of HAVE_PARTLY_WORKING_GETCWD from here...
209         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
210         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
211         Define HAVE_MINIMALLY_WORKING_GETCWD.
212         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
213         where it is not even minimally working, that is, on AIX.
214         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
215         m4/getcwd-path-max.m4.
216         (main): Update exit code computation.
217         * doc/posix-functions/getcwd.texi: Mention list of platforms where
218         getcwd does not handle long file names.
219
220 2011-11-20  Bruno Haible  <bruno@clisp.org>
221
222         getcwd: Fix bug from 2009-09-10.
223         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
224         like "no".
225
226 2011-11-20  Simon Josefsson  <simon@josefsson.org>
227
228         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
229
230 2011-11-20  Bruno Haible  <bruno@clisp.org>
231
232         fma tests: Avoid shadowing local variables.
233         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
234         expected.
235
236 2011-11-20  Bruno Haible  <bruno@clisp.org>
237
238         copysignf tests: Fix.
239         * tests/test-copysignf.c: Fix signature check.
240
241 2011-11-20  Bruno Haible  <bruno@clisp.org>
242
243         fma: Remove unused code.
244         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
245         unused macros.
246
247 2011-11-20  Bruno Haible  <bruno@clisp.org>
248
249         sethostname: Fix doc about AIX.
250         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
251         sethostname; it has it.
252
253         sethostname: Mention more portability problems.
254         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
255         problem.
256         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
257
258 2011-11-19  Bruno Haible  <bruno@clisp.org>
259
260         Depend on module fcntl-h when AT_FDCWD is used.
261         * modules/utimens (Depends-on): Add fcntl-h.
262         * modules/areadlinkat (Depends-on): Likewise.
263         * modules/areadlinkat-with-size (Depends-on): Likewise.
264         * modules/faccessat (Depends-on): Likewise.
265         * modules/fchmodat (Depends-on): Likewise.
266         * modules/fchownat (Depends-on): Likewise.
267         * modules/getcwd (Depends-on): Likewise.
268         * modules/mkdirat (Depends-on): Likewise.
269         * modules/mkfifoat (Depends-on): Likewise.
270         * modules/readlinkat (Depends-on): Likewise.
271         * modules/symlinkat (Depends-on): Likewise.
272         * modules/dup2-tests (Depends-on): Likewise.
273         * modules/fdutimensat-tests (Depends-on): Likewise.
274         * modules/futimens-tests (Depends-on): Likewise.
275
276 2011-11-19  Bruno Haible  <bruno@clisp.org>
277
278         euidaccess: Update a comment.
279         * lib/euidaccess.c: Update comment about platforms with faccessat.
280
281 2011-11-19  Bruno Haible  <bruno@clisp.org>
282
283         openat: Fix file list.
284         * modules/openat (Files): Remove lib/at-func.c.
285
286 2011-11-19  Bruno Haible  <bruno@clisp.org>
287
288         fstatat: Simplify.
289         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
290         gnulib should define rpl_fstatat, there is a
291         "#define fstatat rpl_fstatat" in <sys/stat.h>.
292
293 2011-11-19  Bruno Haible  <bruno@clisp.org>
294
295         Ensure 'inline' can be used in tests/test-utimens-common.h.
296         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
297         * modules/futimens-tests (configure.ac): Likewise.
298         * modules/utimens-tests (configure.ac): Likewise.
299         * modules/utimensat-tests (configure.ac): Likewise.
300
301 2011-11-19  Simon Josefsson  <simon@josefsson.org>
302
303         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
304         not hash_insert0.
305         (hash_insert_if_absent): Doc fix.
306
307 2011-11-19  Simon Josefsson  <simon@josefsson.org>
308
309         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
310
311 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
312
313         test-getcwd: disambiguate exit status
314         * tests/test-getcwd.c (test_long_name): Return 0..7.
315         (main): Exit with an unambiguous exit status.  The old
316         code yielded a mysterious mixture of two failure codes.
317
318         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
319         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
320         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
321         rpl_fstatat or fstatat.  This should fix the other problem
322         reported by Kai Habel in
323         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
324         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
325         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
326         and I reproduced it on a Solaris 8 host we still have in production.
327
328 2011-11-18  Jim Meyering  <meyering@redhat.com>
329
330         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
331         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
332         Add a sentence to the comment.
333         (hash_insert0): New function that simply calls hash_insert_if_absent.
334         * lib/hash.h (hash_insert_if_absent): Declare it.
335         (hash_insert0): Add deprecation attribute.
336         (_GL_ATTRIBUTE_DEPRECATED): Define.
337         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
338         not hash_insert0.
339         * NEWS: Mention it, even though it's not really an incompatible change.
340
341 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
342
343         openat: avoid compilation failure due to lack of <errno.h> inclusion
344         * lib/openat.c: Include <errno.h>.
345
346 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
347
348         * modules/getcwd (Depends-on): Add fdopendir.
349         This fixes one of the two problems reported by Kai Habel in
350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
351
352         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
353         stdalign problem reported by Ian Beckwith in
354         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
355         * modules/crypto/gc-arcfour (Depends-on):
356         Depend conditionally on crypto/arcfour.
357         * modules/crypto/gc-arctwo (Depends-on):
358         Depend conditionally on crypto/arctwo.
359         * modules/crypto/gc-des (Depends-on):
360         Depend conditionally on crypto/des.
361         * modules/crypto/gc-hmac-md5 (Depends-on):
362         Depend conditionally on crypto/hmac-md5.
363         * modules/crypto/gc-hmac-sha1 (Depends-on):
364         Depend conditionally on crypto/hmac-sha1.
365         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
366         * modules/crypto/gc-md4 (Depends-on):
367         Depend conditionally on crypto/md4.
368         * modules/crypto/gc-md5 (Depends-on):
369         Depend conditionally on crypto/md5.
370         * modules/crypto/gc-rijndael (Depends-on):
371         Depend conditionally on crypto/rijndael.
372         * modules/crypto/gc-sha1 (Depends-on):
373         Depend conditionally on crypto/sha1.
374         * modules/crypto/gc-arcfour:
375         * modules/crypto/gc-arctwo:
376         * modules/crypto/gc-des:
377         * modules/crypto/gc-hmac-md5:
378         * modules/crypto/gc-hmac-sha1:
379         * modules/crypto/gc-md2:
380         * modules/crypto/gc-md4:
381         * modules/crypto/gc-md5:
382         * modules/crypto/gc-rijndael:
383         * modules/crypto/gc-sha1:
384         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
385         now that the conditional dependencies do the work for us.
386
387 2011-11-17  Jim Meyering  <meyering@redhat.com>
388
389         tests: factor st_ctime-comparison out of two headers
390         * tests/test-utimens-common.h (ctime_compare): Define.
391         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
392         * tests/test-lutimens.h (test_lutimens): Likewise.
393         * tests/test-utimens.h (test_utimens): Likewise.
394
395         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
396         Invoke the test program via an init.sh-using wrapper.
397         * tests/test-getcwd.sh: New file.
398         * modules/getcwd-tests (Files): Add it.
399         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
400
401 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
402
403         gitlog-to-changelog: support multi-author commits.
404         The FSF cares about keeping track of all authors of patches to its
405         projects, but Git doesn't provide obvious support for multi-author
406         changesets. Consensus seems to be forming around the use of extra
407         Signed-off-by inspired lines in the log message formatted as
408         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
409         multi-author commits between version control systems.
410         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
411         log message and output in standard ChangeLog multi-author format.
412         Reported by Peter Rosin <peda@lysator.liu.se>
413
414 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
415             Bruno Haible  <bruno@clisp.org>
416
417         Fix some modules' file list.
418         * modules/fstatat (Files): Add m4/lstat.m4.
419         * modules/openat (Files): Likewise.
420         * modules/unlinkat (Files): Likewise.
421
422 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
423
424         maint.mk: fix tight-scope.mk generation in VPATH builds.
425         * top/maint.mk (tight-scope.mk): Make sure to prefix file
426         reference with $(srcdir) so that the file is found correctly even
427         when running `make syntax-check' in a VPATH build.
428
429 2011-11-13  Bruno Haible  <bruno@clisp.org>
430             Jim Meyering  <meyering@redhat.com>
431
432         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
433         * tests/init.sh (compare): Remove "No differences encountered" or
434         synonymous output from the 'diff' program.
435
436 2011-11-13  Bruno Haible  <bruno@clisp.org>
437
438         Makefile: Tweak indentation.
439         * Makefile: Use tab as first character in every line that contains rule
440         commands.
441
442 2011-11-13  Bruno Haible  <bruno@clisp.org>
443
444         Syntax check for copyright statements.
445         * check-copyright: New file.
446         * Makefile (sc_check_copyright): New rule.
447
448 2011-11-13  Simon Josefsson  <simon@josefsson.org>
449
450         * build-aux/git-version-gen: Add --prefix to configure the tag
451         match string.
452
453 2011-11-13  Simon Josefsson  <simon@josefsson.org>
454
455         * build-aux/git-version-gen: Add --help and --version.
456
457 2011-11-12  Jim Meyering  <meyering@redhat.com>
458
459         revamp the other test-exclude?.sh scripts to use init.sh, too
460         * tests/test-exclude1.sh: Use init.sh.
461         * tests/test-exclude2.sh: Likewise.
462         * tests/test-exclude3.sh: Likewise.
463         * tests/test-exclude4.sh: Likewise.
464         * tests/test-exclude5.sh: Likewise.
465         * tests/test-exclude6.sh: Likewise.
466         * tests/test-exclude7.sh: Likewise.
467         * tests/test-exclude8.sh: Likewise.
468         * modules/exclude-tests (Files): List init.sh.
469
470         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
471         These shell scripts ignored failure of the binary test-exclude,
472         so making the latter return 77 didn't cause them to be skipped.
473         * tests/test-exclude5.sh: Exit with test-exclude's error status
474         when that program fails.  Revamp to use init.sh.
475         * tests/test-exclude2.sh: Likewise.
476
477         test-exclude: fix a typo
478         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
479
480 2011-11-11  Bruno Haible  <bruno@clisp.org>
481
482         obstack: Fix compilation error on MSVC 9.
483         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
484
485 2011-11-11  Jim Meyering  <meyering@redhat.com>
486
487         test-exclude: skip tests rather than failing on deficient systems
488         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
489         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
490         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
491         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
492
493 2011-11-10  Bruno Haible  <bruno@clisp.org>
494
495         ptsname_r test: Avoid gcc warning on glibc systems.
496         * tests/test-ptsname_r.c (null_ptr): New function.
497         (test_errors): Use it.
498
499 2011-11-10  Bruno Haible  <bruno@clisp.org>
500
501         ptsname_r: Avoid compilation error on OSF/1 5.1.
502         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
503         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
504         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
505         function is not declared or incompatibly declared.
506         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
507         * modules/ptsname_r (Depends-on, configure.ac): Update.
508         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
509
510 2011-11-10  Bruno Haible  <bruno@clisp.org>
511
512         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
513         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
514         When cross-compiling, guess yes on all platforms except AIX.
515         Reported by Ludovic Courtès <ludo@gnu.org>.
516
517 2011-11-09  Bruno Haible  <bruno@clisp.org>
518
519         ptsname_r tests: Fix bugs.
520         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
521         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
522
523 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
524
525         fstatat: work with cross-compilation
526         Problem reported by Ludovic Courtès in
527         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
528         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
529         "cross-compiling" and assume the bug is present.  Replace
530         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
531         an inverted sense, to be more conservative about our assumptions.
532         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
533
534 2011-11-09  Bruno Haible  <bruno@clisp.org>
535
536         Improve MODULES.html output.
537         * modules/mkfifoat (Description): Use the word "function".
538         * modules/readlinkat (Description): Likewise.
539         * modules/symlinkat (Description): Likewise.
540
541 2011-11-09  Eric Blake  <eblake@redhat.com>
542
543         ptsname_r-tests: new test module
544         * modules/ptsname_r-tests: New module.
545         * tests/test-ptsname_r.c: New file.
546
547         ptsname_r: new module
548         * modules/ptsname_r: New module.
549         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
550         * lib/ptsname.c (__ptsname_r): Split...
551         * lib/ptsname_r.c: ...into new file.
552         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
553         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
554         * modules/stdlib (Makefile.am): Substitute witnesses.
555         * lib/stdlib.in.h (ptsname_r): Declare it.
556         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
557         * MODULES.html.sh (Misc): Likewise.
558         * modules/ptsname (Depends-on): Alter dependency.
559         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
560
561 2011-11-09  Jim Meyering  <meyering@redhat.com>
562
563         announce-gen: be more concise when there's only one URL+tarball
564         * build-aux/announce-gen (get_tool_versions): When you distribute
565         only one type of tarball, combine the first two "Here are..."
566         sections and make the key-checking grammar independent of
567         how many tarballs there are.
568
569 2011-11-09  Eric Blake  <eblake@redhat.com>
570
571         openpty: provide a stub on mingw
572         * lib/pty.in.h (includes): Provide forward declarations.
573         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
574
575         raise: fix mingw handling of SIGPIPE
576         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
577
578 2011-11-08  Bruno Haible  <bruno@clisp.org>
579
580         More conditional dependencies.
581         * modules/faccessat (Depends-on): Add conditions.
582         * modules/fchmodat (Depends-on): Likewise.
583         * modules/fchownat (Depends-on): Likewise.
584         * modules/fstatat (Depends-on): Likewise.
585         * modules/mkfifoat (Depends-on): Likewise.
586         * modules/readlinkat (Depends-on): Likewise.
587         * modules/symlinkat (Depends-on): Likewise.
588         * modules/unlinkat (Depends-on): Likewise.
589         * modules/utimensat (Depends-on): Likewise.
590         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
591         * modules/linkat (Depends-on): Refine the conditions.
592         * modules/renameat (Depends-on): Likewise.
593
594 2011-11-08  Bruno Haible  <bruno@clisp.org>
595
596         faccessat: Move AC_LIBOBJ invocation to module description.
597         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
598         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
599         invocation from here...
600         * modules/faccessat (configure.ac): ... to here. Invoke
601         gl_PREREQ_FACCESSAT.
602
603 2011-11-08  Bruno Haible  <bruno@clisp.org>
604
605         faccessat: Simplify autoconf macro.
606         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
607         gl_FUNC_EUIDACCESS.
608
609 2011-11-08  Bruno Haible  <bruno@clisp.org>
610
611         renameat: Fix dependencies.
612         * modules/renameat (Depends-on): Add stdbool.
613
614 2011-11-08  Bruno Haible  <bruno@clisp.org>
615
616         mkfifoat: Fix module description.
617         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
618         not gl_UNISTD_MODULE_INDICATOR.
619
620 2011-11-08  Bruno Haible  <bruno@clisp.org>
621
622         fstatat: Remove unused dependency.
623         * modules/fstatat (Depends-on): Remove fstat.
624
625 2011-11-08  Simon Josefsson  <simon@josefsson.org>
626
627         GNUmakefile: behave when Makefile is missing.
628         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
629
630 2011-11-08  Bruno Haible  <bruno@clisp.org>
631
632         openat: Conditionalize dependencies.
633         * lib/openat.c: Reduce the scope of some #includes.
634         * modules/openat (Depends-on): Add conditions.
635
636 2011-11-07  Jim Meyering  <meyering@redhat.com>
637
638         maint.mk: extract GPG key ID without using a temporary file
639         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
640         without using a temporary file.  Based on a suggestion from Werner Koch
641         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
642
643 2011-11-07  Eric Blake  <eblake@redhat.com>
644
645         grantpt: fix typo
646         * lib/stdlib.in.h (grantpt): Check correct function.
647
648         maint.mk: silence new syntax check
649         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
650
651 2011-11-06  Bruno Haible  <bruno@clisp.org>
652
653         Doc about floating-point and math API.
654         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
655         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
656
657 2011-11-06  Bruno Haible  <bruno@clisp.org>
658
659         stdalign tests: Skip the test when compiled by Sun C.
660         * tests/test-stdalign.c (main): Skip the test on Sun C.
661
662 2011-11-06  Bruno Haible  <bruno@clisp.org>
663
664         ansi-c++-opt: Complete the 2011-06-05 change.
665         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
666         does not support namespaces, set the variable to "no", not to ":".
667
668 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
669
670         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
671
672 2011-11-06  Bruno Haible  <bruno@clisp.org>
673
674         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
675         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
676         (minus_zerol) [HP-UX]: New macro.
677         (unary_minus) [HP-UX]: New function.
678         (copysignl) [HP-UX]: Use unary_minus function.
679
680 2011-11-06  Bruno Haible  <bruno@clisp.org>
681
682         ldexp, ldexpf, ldexpl: Enhance tests.
683         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
684         and tests/test-ldexpl.c.
685         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
686         LDEXP, MIN_EXP, MAX_EXP): New macros.
687         Include test-ldexp.h.
688         (main): Just call test_function.
689         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
690         infinity.h, nan.h.
691         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
692         MAX_EXP): New macros.
693         Include test-ldexp.h.
694         (x, y): Remove variables.
695         (main): Just call test_function.
696         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
697         infinity.h, nan.h.
698         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
699         MAX_EXP): New macros.
700         Include test-ldexp.h.
701         (x, y): Remove variables.
702         (main): Just call test_function.
703         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
704         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
705         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
706         (Depends-on): Add isnand-nolibm, signbit, float.
707         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
708         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
709         (Depends-on): Add isnanf-nolibm, signbit, float.
710
711 2011-11-06  Bruno Haible  <bruno@clisp.org>
712
713         math tests: Cosmetics.
714         * tests/test-math-c++.cc: Reorder declarations.
715
716 2011-11-05  Bruno Haible  <bruno@clisp.org>
717
718         fma*: Simplify test.
719         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
720         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
721
722         Tests for module 'fmal'.
723         * modules/fmal-tests: New file.
724         * tests/test-fmal1.c: New file.
725         * tests/test-fmal2.c: New file.
726
727         New module 'fmal'.
728         * lib/math.in.h (fmal): New declaration.
729         * lib/fmal.c: New file.
730         * m4/fmal.m4: New file.
731         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
732         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
733         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
734         REPLACE_FMAL.
735         * modules/fmal: New file.
736         * doc/posix-functions/fmal.texi: Mention the new module and the various
737         bugs.
738
739         Tests for module 'fmaf'.
740         * modules/fmaf-tests: New file.
741         * tests/test-fmaf1.c: New file.
742         * tests/test-fmaf2.c: New file.
743
744         New module 'fmaf'.
745         * lib/math.in.h (fmaf): New declaration.
746         * lib/fmaf.c: New file.
747         * m4/fmaf.m4: New file.
748         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
749         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
750         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
751         REPLACE_FMAF.
752         * modules/fmaf: New file.
753         * doc/posix-functions/fmaf.texi: Mention the new module and the various
754         bugs.
755
756         Tests for module 'fma'.
757         * modules/fma-tests: New file.
758         * tests/test-fma1.c: New file.
759         * tests/test-fma1.h: New file.
760         * tests/test-fma2.c: New file.
761         * tests/test-fma2.h: New file.
762
763         New module 'fma'.
764         * lib/math.in.h (fma): New declaration.
765         * lib/fma.c: New file.
766         * m4/fma.m4: New file.
767         * m4/fegetround.m4: New file.
768         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
769         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
770         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
771         REPLACE_FMA.
772         * modules/fma: New file.
773         * doc/posix-functions/fma.texi: Mention the new module and the various
774         bugs.
775
776         Extend gl_MATHFUNC.
777         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
778         Support 'void' as argument type.
779         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
780
781 2011-11-05  Jim Meyering  <meyering@redhat.com>
782
783         maint.mk: also prohibit inclusion of dirent.h without use
784         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
785
786 2011-11-05  Bruno Haible  <bruno@clisp.org>
787
788         ldexpl tests: Avoid test failure on MSVC 9.
789         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
790         value. Needed in order to enforce the conversion from a value greater
791         than LDBL_MAX to Infinity.
792
793 2011-11-05  Bruno Haible  <bruno@clisp.org>
794
795         New modules 'at-internal', 'openat-h', split off from module 'openat'.
796         * modules/at-internal: New file, extracted from modules/openat.
797         * modules/openat-h: New file.
798         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
799         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
800         * modules/openat (Description): Add reference to POSIX function.
801         (Files): Remove lib/openat.h, lib/openat-proc.c.
802         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
803         intprops, unistd.
804         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
805         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
806         gl_FCNTL_MODULE_INDICATOR.
807         (Include): Remove unistd.h, openat.h.
808         * modules/areadlinkat (Files): Add lib/at-func.c.
809         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
810         openat-die, openat-h, save-cwd.
811         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
812         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
813         openat-die, openat-h, save-cwd, unistd.
814         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
815         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
816         openat-h, save-cwd. Remove fcntl-h, openat.
817         * modules/fchmodat (Files): Remove lib/openat.h.
818         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
819         openat, stdbool, unistd.
820         * modules/fchownat (Files): Remove lib/openat.h.
821         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
822         openat, stdbool, sys_stat.
823         * modules/fdopendir (Files): Remove lib/openat-priv.h,
824         lib/openat-proc.c.
825         (Depends-on): Add at-internal.
826         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
827         * modules/fstatat (Files): Remove lib/openat.h.
828         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
829         stdbool, unistd.
830         * modules/fts (Depends-on): Add openat-h.
831         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
832         openat.
833         * modules/mkdirat (Files): Remove lib/openat.h.
834         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
835         openat, stdbool, sys_stat.
836         * modules/mkfifoat (Files): Add lib/at-func.c.
837         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
838         openat-h, save-cwd. Remove fcntl-h, openat.
839         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
840         * modules/readlinkat (Files): Add lib/at-func.c.
841         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
842         openat-h, save-cwd. Remove fcntl-h, openat.
843         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
844         openat.
845         * modules/selinux-at (Files): Add lib/at-func.c.
846         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
847         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
848         * modules/symlinkat (Files): Add lib/at-func.c.
849         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
850         openat-h, save-cwd. Remove fcntl-h, openat.
851         * modules/unlinkat (Files): Remove lib/openat.h.
852         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
853         stdbool.
854         * modules/utimensat (Files): Add lib/at-func.c.
855         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
856         openat-die, openat-h, save-cwd.
857         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
858         * modules/fdutimensat-tests (Depends-on): Add openat.
859         * modules/fstatat-tests (Depends-on): Add openat-h.
860         * modules/readlinkat-tests (Depends-on): Add openat.
861         * modules/symlinkat-tests (Depends-on): Add openat.
862
863 2011-11-05  Bruno Haible  <bruno@clisp.org>
864
865         openat: Include <stdbool.h>.
866         * lib/openat.c: Include <stdbool.h>.
867
868 2011-11-04  Bruno Haible  <bruno@clisp.org>
869
870         fchownat, renameat, unlinkat: Fix dependencies.
871         * modules/fchownat (Depends-on): Add fstatat.
872         * modules/renameat (Depends-on): Likewise.
873         * modules/unlinkat (Depends-on): Likewise.
874
875 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
876
877         openat: remove direct dependency on dirent
878         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
879         and hasn't been needed ever since fdopendir was split into its own
880         module on 2009-08-31.
881         * modules/openat (Depends-on): Remove dirent.
882
883 2011-11-04  Bruno Haible  <bruno@clisp.org>
884
885         renameat: Optimize code size.
886         * modules/renameat (configure.ac): Don't compile at-func2.c if
887         REPLACE_RENAMEAT is 1.
888
889 2011-11-04  Bruno Haible  <bruno@clisp.org>
890
891         openat tests: Fix file list.
892         * modules/openat-tests (Files): Add tests/test-open.h.
893
894 2011-11-04  Bruno Haible  <bruno@clisp.org>
895
896         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
897         * modules/fchmodat (Depends-on): Add openat-die.
898         * modules/fchownat (Depends-on): Likewise.
899         * modules/linkat (Depends-on): Likewise.
900         * modules/renameat (Depends-on): Likewise.
901         * modules/openat (Depends-on): Add dirent.
902
903 2011-11-04  Jim Meyering  <meyering@redhat.com>
904
905         at-func*.c: fix comments
906         * lib/at-func2.c: Correct/improve first-line comment.
907         * lib/at-func.c: Correct grammar in first-line comment.
908
909 2011-11-04  Bruno Haible  <bruno@clisp.org>
910
911         New module 'mkdirat', split off from module 'openat'.
912         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
913         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
914         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
915         * modules/mkdirat: New file, extracted from modules/openat.
916         * modules/openat (Files): Remove lib/mkdirat.c.
917         (Depends-on): Remove mkdir.
918         (configure.ac): Remove AC_LIBOBJ of mkdirat.
919         (Include): Remove <sys/stat.h>.
920         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
921         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
922         tests/test-mkdir.h.
923         (Depends-on): Remove ignore-value.
924         (Makefile.am): Remove rules for test-mkdirat.
925         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
926         of module 'openat'.
927         * NEWS: Mention the change.
928
929 2011-11-04  Bruno Haible  <bruno@clisp.org>
930
931         closedir: Avoid warning on mingw.
932         * lib/closedir.c: Include <unistd.h>.
933
934 2011-11-04  Bruno Haible  <bruno@clisp.org>
935
936         New module 'fstatat', split off from module 'openat'.
937         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
938         defined.
939         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
940         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
941         gl_FUNC_FSTATAT.
942         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
943         * modules/fstatat: New file, extracted from modules/openat.
944         * modules/openat (Files): Remove lib/fstatat.c.
945         (Depends-on): Remove lstat.
946         (configure.ac): Remove AC_LIBOBJ of fstatat.
947         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
948         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
949         tests/test-lstat.h, tests/test-stat.h.
950         (Depends-on): Remove getcwd-lgpl.
951         (Makefile.am): Remove rules for test-fstatat.
952         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
953         of module 'openat'.
954         * NEWS: Mention the change.
955         * modules/getcwd (Depends-on): Add fstatat.
956         * modules/linkat (Depends-on): Likewise.
957         * modules/mkfifoat-tests (Depends-on): Likewise.
958         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
959
960 2011-11-03  Bruno Haible  <bruno@clisp.org>
961
962         New module 'unlinkat', split off from module 'openat'.
963         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
964         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
965         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
966         * modules/unlinkat: New file, extracted from modules/openat. Correct
967         the dependency conditions.
968         * modules/openat (Files): Remove lib/unlinkat.c.
969         (Depends-on): Remove rmdir, unlink.
970         (configure.ac): Remove AC_LIBOBJ of unlinkat.
971         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
972         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
973         tests/test-rmdir.h, tests/test-unlink.h.
974         (Depends-on): Remove unlinkdir.
975         (Makefile.am): Remove rules for test-unlinkat.
976         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
977         of module 'openat'.
978         * NEWS: Mention the change.
979         * modules/linkat-tests (Depends-on): Add unlinkat.
980         * modules/mkfifoat-tests (Depends-on): Likewise.
981         * modules/readlinkat-tests (Depends-on): Likewise.
982
983 2011-11-02  Bruno Haible  <bruno@clisp.org>
984
985         New module 'fchmodat', split off from module 'openat'.
986         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
987         defined.
988         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
989         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
990         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
991         * modules/fchmodat: New file, extracted from modules/openat.
992         * modules/openat (Files): Remove lib/fchmodat.c.
993         (configure.ac): Remove AC_LIBOBJ of fchmodat.
994         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
995         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
996         (Makefile.am): Remove rules for test-fchmodat.
997         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
998         of module 'openat'.
999         * NEWS: Mention the change.
1000
1001 2011-11-02  Jim Meyering  <meyering@redhat.com>
1002
1003         putenv: indent #definition of "environ" to placate cppi
1004         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1005
1006         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1007         Git logs are often treated as immutable, because editing them
1008         changes the SHA1 checksums of all descendants.  Thus, errors in
1009         git logs tend to stay there forever.  However, when we generate
1010         a ChangeLog file -- typically for distribution -- from that git log,
1011         we can actually make corrections in the generated file.  The key
1012         lies in recording in machine-readable/applicable form the desired
1013         corrections.  See --help for description and an example.
1014         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1015         (usage): Describe it; alphabetize option descriptions.
1016         (main): Honor the new option, carefully.
1017
1018 2011-11-01  Jim Meyering  <meyering@redhat.com>
1019
1020         gitlog-to-changelog: avoid an infloop
1021         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1022         that ends up being empty.
1023
1024 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1025
1026         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1027         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1028         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1029         contains (possibly-quoted) backslashes.  This should avoid
1030         all-too-common shell bugs if COMPLICATED contains backslashes in
1031         the "wrong" places.  Reported by David Evans in
1032         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1033         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1034         because we want ASCII ranges.  Is there some reason we don't use
1035         the C locale everywhere in this script?
1036         (func_module, top level): Avoid unwanted pathname expansion when
1037         $repo_url_prefix or $repo_url_suffix_repl contain shell
1038         metacharacters like '?' and '*'.
1039
1040 2011-11-01  Bruno Haible  <bruno@clisp.org>
1041
1042         fchownat: Improve description.
1043         * modules/fchownat (Description): Add link to function.
1044
1045 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1046
1047         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1048         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1050         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1051
1052 2011-11-01  Bruno Haible  <bruno@clisp.org>
1053
1054         alignof: Avoid collision with stdalign module.
1055         * lib/alignof.h (alignof): Remove macro.
1056         * NEWS: Mention the change.
1057         Reported by Paul Eggert.
1058
1059 2011-11-01  Bruno Haible  <bruno@clisp.org>
1060
1061         New module 'fchownat', split off from module 'openat'.
1062         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1063         defined.
1064         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1065         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1066         invoke gl_FUNC_FCHOWNAT.
1067         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1068         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1069         * modules/fchownat: New file, extracted from modules/openat.
1070         * modules/openat (Files): Remove lib/fchownat.c.
1071         (Depends-on): Remove lchown.
1072         (configure.ac): Remove AC_LIBOBJ of fchownat.
1073         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1074         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1075         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1076         (Depends-on): Remove mgetgroups, usleep, stat-time.
1077         (configure.ac): Remove test for getegid.
1078         (Makefile.am): Remove rules for test-fchownat.
1079         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1080         of module 'openat'.
1081         * NEWS: Mention the change.
1082
1083 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1084
1085         stdalign: port better to MSVC and to Sun C 5.11
1086         This fixes some of the problems reported by Bruno Haible in
1087         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1088         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1089         shortcomings of MSVC and of Sun C 5.11.
1090         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1091         around __declspec arg.
1092         * modules/stdalign-tests (Files): Add tests/macros.h.
1093         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1094         Include macros.h, for ASSERT.
1095         (DECLARE_ALIGNED): Remove.
1096         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1097         to catch bug), and to 1 if not (simplifies the rest of the code).
1098         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1099         (CHECK_AUTO): Remove.
1100         (CHECK_ALIGNED): Check only the alignment of the static vars,
1101         since auto var alignment isn't supported by Sun C 5.11.
1102         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1103         ASSERT failures are easier to diagnose.
1104
1105 2011-10-31  Bruno Haible  <bruno@clisp.org>
1106
1107         doc about some IRIX 5.3 problems.
1108         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1109         on IRIX 5.3.
1110         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1111         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1112         5.3.
1113         * doc/posix-functions/grantpt.texi: Likewise.
1114         * doc/posix-functions/unlockpt.texi: Likewise.
1115         * doc/posix-functions/lgamma.texi: Likewise.
1116         * doc/posix-functions/nextafter.texi: Likewise.
1117         * doc/posix-functions/remainder.texi: Likewise.
1118         * doc/posix-functions/select.texi: Mention misplaced declaration on
1119         IRIX 5.3.
1120         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1121
1122 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1123
1124         gitlog-to-changelog: fix git-log invocation.
1125         git-log mishandles date strings before 1970-01-01 UTC, and there is
1126         no use to specify --since=1970-01-01 by default anyway.
1127         * build-aux/gitlog-to-changelog: By default, when no --since option
1128         was given, do not specify explicit --since option to git-log.
1129
1130 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1131
1132         gitlog-to-changelog: new option --append-dot.
1133         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1134         first non-blank line of each commit message terminated with a dot.
1135
1136 2011-10-30  Bruno Haible  <bruno@clisp.org>
1137
1138         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1139         * lib/ffsl.h: Include <config.h>.
1140         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1141
1142 2011-10-30  Jim Meyering  <meyering@redhat.com>
1143
1144         GNUmakefile: reenable "make syntax-check" for most projects
1145         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1146         build-aux variable", "syntax-check" would do nothing but succeed with
1147         the "No version control files detected..." diagnostic (unless you
1148         happened to override _build-aux via cfg.mk).
1149         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1150         to precede inclusion of maint.mk.  Otherwise, these variables would
1151         be used undefined in any project that does not override the default.
1152
1153 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1154
1155         gitlog-to-changelog: treat a message with only blank lines as empty.
1156         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1157         trailing blank lines before the code that issues a warning about an
1158         empty commit message.
1159
1160 2011-10-30  Jim Meyering  <meyering@redhat.com>
1161
1162         test-parse-datetime.c: avoid new DST-related false positive test failure
1163         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1164         based on the time/date we'll convert, not the current time.
1165         Otherwise, the moment we cross a DST boundary like today's in
1166         Europe, (CEST to CET), that offset ends up being one hour off.
1167
1168 2011-10-27  Bruno Haible  <bruno@clisp.org>
1169
1170         fstat: Tweak documentation.
1171         * modules/fstat (Description): More precise description.
1172
1173 2011-10-27  Bruno Haible  <bruno@clisp.org>
1174
1175         Update documentation regarding 'largefile' module.
1176         * doc/posix-functions/fstat.texi: Tweak wording.
1177         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1178         problems with huge directories and/or small ino_t types.
1179         * doc/posix-functions/readdir.texi: Likewise.
1180         * doc/posix-functions/rewinddir.texi: Likewise.
1181
1182 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1183
1184         maint.mk: don't maintain a second build-aux variable.
1185         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1186         depends on GNUmakefile, which already maintains a cfg.mk
1187         overridable $(_build-aux) for projects with a non-standard
1188         build-aux directory location, although without the $(srcdir)
1189         prefix.  Use that variable consistently instead of introducing a
1190         second one.  Adjust all call sites.
1191
1192 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1193
1194         Add stdalign module and use it in other modules.
1195         This is based on a previous proposal by Bruno Haible
1196         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1197
1198         stdalign: new module
1199         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1200         * modules/stdalign: New files.
1201         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1202         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1203
1204         stdalign-tests: new module
1205         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1206
1207         argp: use stdalign
1208         * lib/argp-parse.c: Include <stdalign.h>.
1209         (alignof): Remove.
1210         * modules/argp (Depends-on): Add stdalign.
1211
1212         crypto libraries: use stdalign
1213         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1214         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1215         Do not include <stdlib.h> twice, in md4.c.
1216         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1217         because we are accessing a pointer's bit-pattern, not a size.
1218         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1219         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1220         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1221         * modules/crypto/sha512: Likewise.
1222
1223         sys_socket: use stdalign, not alignof
1224         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1225         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1226
1227 2011-10-27  Bruno Haible  <bruno@clisp.org>
1228
1229         raise test: Avoid a test failure on Linux/MIPS.
1230         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1231         because 99 is a valid signal on Linux/MIPS.
1232
1233 2011-10-27  Bruno Haible  <bruno@clisp.org>
1234
1235         nonblocking tests: Fix test failure on Linux/MIPS.
1236         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1237         Set to 270000.
1238
1239 2011-10-27  Bruno Haible  <bruno@clisp.org>
1240
1241         utimensat: Work around problem on Linux/hppa.
1242         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1243         values.
1244         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1245
1246 2011-10-25  Jim Meyering  <meyering@redhat.com>
1247
1248         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1249         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1250         after symbols like NULL, size_t, etc.
1251         Reported by Alfred M. Szmidt.
1252
1253         maint.mk: exempt ENODATA from a syntax-check rule
1254         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1255         from the sc_prohibit_always-defined_macros syntax-check rule.
1256         Add a comment.  See this for more details:
1257         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1258
1259 2011-10-23  Jim Meyering  <meyering@redhat.com>
1260
1261         fts: close parent dir FD before returning from post-traversal fts_read
1262         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1263         unlink A, even though an FD open on A remained.  This is suboptimal
1264         (holding a file descriptor open longer than needed), but otherwise not
1265         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1266         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1267         that represents a real problem: it causes the removal of A to fail
1268         with e.g., "rm: cannot remove `A': Device or resource busy"
1269
1270         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1271         directory file descriptors.  After completing the final, FTS_DP,
1272         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1273         cache, but then proceeded to add a new FD to it via the subsequent
1274         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1275         final file descriptor would be closed only via fts_close's call to
1276         fd_ring_clear.  Now, it is usually closed earlier, via the final
1277         FTS_DP-returning fts_read call.
1278         * lib/fts.c (restore_initial_cwd): New function, converted from
1279         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1280         Update callers.
1281         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1282         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1283
1284 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1285             Bruno Haible  <bruno@clisp.org>
1286             Jim Meyering  <jim@meyering.net>
1287
1288         readme-release: improve safety of release prep instructions.
1289         * README-release: Don't git pull all branches when only master
1290         is needed for the release process.
1291         Run make maintainer-clean before changing trees and merging.
1292         Don't try to run ./configure right after git pull in case files
1293         that influence the bootstrap process have changed, move the
1294         ./configure step to after running ./bootstrap.
1295         Don't bootstrap "one last time"... it's the first time!
1296
1297 2011-10-22  Bruno Haible  <bruno@clisp.org>
1298
1299         errno, strerror-override: Support for MSVC 10.
1300         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1301         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1302         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1303         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1304         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1305         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1306         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1307         Assign values compatible with MSVC 10.
1308         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1309         New macros.
1310         (GNULIB_defined_EWINSOCK): New macro.
1311         * lib/strerror-override.c (strerror_override): Update accordingly.
1312         * lib/strerror-override.h: Likewise.
1313         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1314         longer equal to the corresponding errno value.
1315         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1316
1317 2011-10-22  Bruno Haible  <bruno@clisp.org>
1318
1319         perror: Recognize when test program crashes.
1320         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1321         strerror, set gl_cv_func_perror_works to no.
1322         Reported by Daniel Richard G. <skunk@iskunk.org>.
1323
1324         perror: Fix indentation.
1325         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1326
1327 2011-10-22  Bruno Haible  <bruno@clisp.org>
1328
1329         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1330         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1331         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1332         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1333         functions, not as a macro.
1334         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1335         macros.
1336         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1337         absence of macro.
1338         Suggested by Eric Blake.
1339         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1340
1341 2011-10-21  Bruno Haible  <bruno@clisp.org>
1342
1343         relocatable-prog-wrapper: Don't leave object files behind.
1344         * build-aux/install-reloc: Re-synchronize list of .o files to be
1345         removed with list of compilation units.
1346
1347 2011-10-20  Bruno Haible  <bruno@clisp.org>
1348
1349         openpty, posix_openpt: Remove code duplication.
1350         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1351         * lib/openpty.c: Include <stdlib.h>.
1352         (openpty): Use posix_openpt on all platforms except IRIX.
1353         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1354
1355 2011-10-20  Bruno Haible  <bruno@clisp.org>
1356
1357         unlockpt: Detect invalid argument.
1358         * lib/unlockpt.c: Include <fcntl.h>.
1359         (unlockpt): Check whether fd is valid, using fcntl().
1360         * modules/unlockpt (Depends-on): Add fcntl-h.
1361
1362 2011-10-20  Bruno Haible  <bruno@clisp.org>
1363
1364         openpty: Avoid compilation error on AIX 6.1.
1365         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1366
1367 2011-10-20  Bruno Haible  <bruno@clisp.org>
1368
1369         posix_openpt: Support for OpenBSD.
1370         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1371         (posix_openpt) [OpenBSD]: New code.
1372         * lib/grantpt.c: Include <fcntl.h>.
1373         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1374         * modules/grantpt (Depends-on): Add fcntl-h.
1375
1376 2011-10-20  Bruno Haible  <bruno@clisp.org>
1377
1378         posix_openpt test: Coding style.
1379         * tests/test-posix_openpt.c: Use GNU coding style.
1380
1381 2011-10-20  Bruno Haible  <bruno@clisp.org>
1382
1383         grantpt: Support --avoid=pt_chown.
1384         * modules/grantpt (Files): Add lib/pty-private.h.
1385
1386 2011-10-20  Bruno Haible  <bruno@clisp.org>
1387
1388         posix_openpt: Fix autoconf macro.
1389         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1390         unneeded check for _getpty.
1391
1392 2011-10-20  Bruno Haible  <bruno@clisp.org>
1393
1394         openpty: Update comments.
1395         * lib/openpty.c: Add comments about Minix.
1396
1397 2011-10-19  Eric Blake  <eblake@redhat.com>
1398
1399         openpty: relax license
1400         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1401
1402         pt_chown: use configmake to simplify build
1403         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1404
1405         ptsname and others: relax license
1406         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1407         * modules/unlockpt (License): Likewise.
1408         * modules/pt_chown (License): Likewise.
1409         * modules/ptsname (License): Likewise.
1410         * modules/ttyname_r (License): Likewise.
1411
1412 2011-10-19  Jim Meyering  <meyering@redhat.com>
1413
1414         posix_openpt: remove spurious #endif
1415         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1416
1417 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1418
1419         maint.mk: Respect $(build_aux) in web-manual rule.
1420         * top/maint.mk (web-manual): Find gen-announce script in user's
1421         $(build_aux) directory instead of hard-coding 'build-aux'.
1422
1423 2011-10-19  Bruno Haible  <bruno@clisp.org>
1424
1425         posix_openpt: Fix compilation error.
1426         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1427         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1428         Mention the openpty module as an alternative.
1429
1430 2011-10-19  Bruno Haible  <bruno@clisp.org>
1431
1432         Support for old NeXTstep 3.3 frexp().
1433         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1434         execution time of the test to 5 seconds.
1435         Reported by Daniel Richard G. <skunk@iskunk.org>.
1436
1437 2011-10-19  Bruno Haible  <bruno@clisp.org>
1438
1439         Support for old NeXTstep 3.3 sed.
1440         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1441         part, use /.../, not \|...|. Escape periods in the header file name.
1442         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1443         Reported by Daniel Richard G. <skunk@iskunk.org>.
1444
1445 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1446
1447         Support for old NeXTstep 3.3 gcc.
1448         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1449         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1450         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1451         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1452         * lib/regex.h (_Restrict_arr_): Likewise.
1453         * lib/regex_internal.h (re_token_t): Likewise.
1454         * lib/regexec.c (check_node_accept_bytes): Likewise.
1455         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1456
1457 2011-10-18  Eric Blake  <eblake@redhat.com>
1458
1459         posix_openpt: new module
1460         * modules/posix_openpt: New module.
1461         * m4/posix_openpt.m4: New file.
1462         * lib/posix_openpt.c: Likewise.
1463         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1464         (gl_STDLIB_H_DEFAULTS): Set defaults.
1465         * modules/stdlib (Makefile.am): Substitute macros.
1466         * lib/stdlib.in.h (posix_openpt): Declare.
1467         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1468         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1469         * modules/posix_openpt-tests: New test module.
1470         * tests/test-posix_openpt.c: New test.
1471
1472 2011-10-15  Bruno Haible  <bruno@clisp.org>
1473
1474         xstrtoll: Fix compilation failure.
1475         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1476         from lib/strtol.c.
1477         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1478         some platforms.
1479         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1480
1481 2011-10-15  Bruno Haible  <bruno@clisp.org>
1482
1483         vasnprintf: Optimize bit search operation.
1484         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1485         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1486         gl_DOUBLE_EXPONENT_LOCATION.
1487         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1488         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1489         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1490         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1491         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1492         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1493         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1494         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1495         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1496
1497 2011-10-15  Bruno Haible  <bruno@clisp.org>
1498
1499         vasnprintf: Fix comments.
1500         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1501
1502 2011-10-14  Bruno Haible  <bruno@clisp.org>
1503
1504         Tests for module 'integer_length_ll'.
1505         * modules/integer_length_ll-tests: New file.
1506         * tests/test-integer_length_ll.c: New file.
1507
1508         New module 'integer_length_ll'.
1509         * lib/integer_length_ll.c: New file.
1510         * modules/integer_length_ll: New file.
1511
1512 2011-10-14  Bruno Haible  <bruno@clisp.org>
1513
1514         Tests for module 'integer_length_l'.
1515         * modules/integer_length_l-tests: New file.
1516         * tests/test-integer_length_l.c: New file.
1517
1518         New module 'integer_length_l'.
1519         * lib/integer_length_l.c: New file.
1520         * modules/integer_length_l: New file.
1521
1522 2011-10-14  Bruno Haible  <bruno@clisp.org>
1523
1524         Tests for module 'integer_length'.
1525         * modules/integer_length-tests: New file.
1526         * tests/test-integer_length.c: New file.
1527
1528         New module 'integer_length'.
1529         * lib/integer_length.h: New file.
1530         * lib/integer_length.c: New file.
1531         * modules/integer_length: New file.
1532
1533 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1534
1535         popen: Fix dependency conditions.
1536         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1537
1538 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1539
1540         perror: Fix autoconf test.
1541         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1542         <stdlib.h> and <string.h>.
1543
1544 2011-10-14  Bruno Haible  <bruno@clisp.org>
1545
1546         ffsl: Optimize on 64-bit platforms.
1547         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1548         unrolling.
1549
1550 2011-10-13  Bruno Haible  <bruno@clisp.org>
1551
1552         ffsl: Optimize on 32-bit platforms.
1553         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1554         use ffs() without a loop.
1555
1556         ffsl, ffsll: Optimize for GCC.
1557         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1558         * lib/ffsl.c (GCC_BUILTIN): New macro.
1559         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1560
1561 2011-10-13  Bruno Haible  <bruno@clisp.org>
1562
1563         ffs, bcopy, memset: Support symbol renaming via config.h.
1564         * lib/ffs.c: Include <config.h>.
1565         * lib/bcopy.c: Likewise.
1566         * lib/memset.c: Likewise.
1567
1568 2011-10-10  Bruno Haible  <bruno@clisp.org>
1569
1570         atanl: Simplify for platforms where 'long double' == 'double'.
1571         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1572         alternative implementation.
1573         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1574         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1575         * modules/atanl (Depends-on): Add atan. Update conditions.
1576
1577 2011-10-10  Bruno Haible  <bruno@clisp.org>
1578
1579         acosl: Simplify for platforms where 'long double' == 'double'.
1580         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1581         alternative implementation.
1582         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1583         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1584         * modules/acosl (Depends-on): Add acos. Update conditions.
1585
1586 2011-10-10  Bruno Haible  <bruno@clisp.org>
1587
1588         asinl: Simplify for platforms where 'long double' == 'double'.
1589         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1590         alternative implementation.
1591         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1592         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1593         * modules/asinl (Depends-on): Add asin. Update conditions.
1594
1595 2011-10-10  Bruno Haible  <bruno@clisp.org>
1596
1597         tanl: Simplify for platforms where 'long double' == 'double'.
1598         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1599         implementation.
1600         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1601         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1602         * modules/tanl (Depends-on): Add tan. Update conditions.
1603         (configure.ac): Don't compile trigl.c if
1604         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1605
1606 2011-10-10  Bruno Haible  <bruno@clisp.org>
1607
1608         cosl: Simplify for platforms where 'long double' == 'double'.
1609         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1610         implementation.
1611         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1612         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1613         * modules/cosl (Depends-on): Add cos. Update conditions.
1614         (configure.ac): Don't compile sincosl.c and trigl.c if
1615         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1616
1617 2011-10-10  Bruno Haible  <bruno@clisp.org>
1618
1619         sinl: Simplify for platforms where 'long double' == 'double'.
1620         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1621         implementation.
1622         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1623         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1624         * modules/sinl (Depends-on): Add sin. Update conditions.
1625         (configure.ac): Don't compile sincosl.c and trigl.c if
1626         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1627
1628 2011-10-10  Bruno Haible  <bruno@clisp.org>
1629
1630         logl: Simplify for platforms where 'long double' == 'double'.
1631         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1632         implementation.
1633         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1634         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1635         * modules/logl (Depends-on): Add log. Update conditions.
1636
1637 2011-10-10  Bruno Haible  <bruno@clisp.org>
1638
1639         expl: Simplify for platforms where 'long double' == 'double'.
1640         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1641         implementation.
1642         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1643         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1644         * modules/expl (Depends-on): Add exp. Update conditions.
1645
1646 2011-10-10  Bruno Haible  <bruno@clisp.org>
1647
1648         sqrtl: Simplify for platforms where 'long double' == 'double'.
1649         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1650         alternative implementation.
1651         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1652         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1653         * modules/sqrtl (Depends-on): Update conditions.
1654
1655 2011-10-10  Bruno Haible  <bruno@clisp.org>
1656
1657         ldexpl: Simplify for platforms where 'long double' == 'double'.
1658         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1659         alternative implementation.
1660         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1661         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1662         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1663
1664 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1665
1666         ffsll: set correct witness
1667         * modules/ffsll (configure.ac): Fix typo.
1668
1669 2011-10-10  Bruno Haible  <bruno@clisp.org>
1670
1671         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1672         * lib/printf-frexpl.c: Include <config.h>.
1673         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1674         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1675         second time.
1676         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1677         gl_LONG_DOUBLE_VS_DOUBLE.
1678         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1679         conditions.
1680
1681 2011-10-10  Bruno Haible  <bruno@clisp.org>
1682
1683         frexpl: Simplify for platforms where 'long double' == 'double'.
1684         * lib/frexpl.c: Include <config.h>.
1685         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1686         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1687         time.
1688         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1689         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1690         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1691         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1692         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1693         conditions.
1694
1695 2011-10-10  Jim Meyering  <meyering@redhat.com>
1696
1697         test-renameat: don't leave behind a temporary file
1698         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1699           ERROR: files left in build directory after distclean:
1700           ./gltests/test-renameat.too
1701           make[1]: *** [distcleancheck] Error 1
1702         Reported by Tom G. Christensen.
1703
1704 2011-10-09  Bruno Haible  <bruno@clisp.org>
1705
1706         rint: Determine RINT_LIBM correctly on AIX 7.
1707         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1708         directly, not only through a function pointer. Also accept an optional
1709         4th argument with extra code.
1710         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1711         rintf() call by gcc when optimizing.
1712
1713         mathfunc.m4: Refactor.
1714         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1715         m4 variable.
1716
1717 2011-10-09  Bruno Haible  <bruno@clisp.org>
1718
1719         rintl: Simplify for platforms where 'long double' == 'double'.
1720         * lib/rintl.c: Include <config.h>.
1721         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1722         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1723         time.
1724         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1725         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1726         * modules/rintl (Depends-on): Add rint. Update conditions.
1727
1728 2011-10-09  Bruno Haible  <bruno@clisp.org>
1729
1730         roundl: Simplify for platforms where 'long double' == 'double'.
1731         * lib/roundl.c: Include <config.h>.
1732         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1733         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1734         time.
1735         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1736         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1737         * modules/roundl (Depends-on): Add round. Update conditions.
1738
1739 2011-10-09  Bruno Haible  <bruno@clisp.org>
1740
1741         truncl: Simplify for platforms where 'long double' == 'double'.
1742         * lib/truncl.c: Include <config.h>.
1743         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1744         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1745         time.
1746         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1747         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1748         * modules/truncl (Depends-on): Add trunc. Update conditions.
1749
1750 2011-10-09  Bruno Haible  <bruno@clisp.org>
1751
1752         ceill: Simplify for platforms where 'long double' == 'double'.
1753         * lib/ceill.c: Include <config.h>.
1754         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1755         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1756         time.
1757         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1758         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1759         * modules/ceill (Depends-on): Add ceil. Update conditions.
1760
1761 2011-10-09  Bruno Haible  <bruno@clisp.org>
1762
1763         floorl: Simplify for platforms where 'long double' == 'double'.
1764         * lib/floorl.c: Include <config.h>.
1765         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1766         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1767         time.
1768         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1769         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1770         * modules/floorl (Depends-on): Add floor. Update conditions.
1771
1772 2011-10-09  Bruno Haible  <bruno@clisp.org>
1773
1774         rint: Fix ordering constraints.
1775         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1776         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1777         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1778
1779 2011-10-09  Bruno Haible  <bruno@clisp.org>
1780
1781         copysignl: Simplify for platforms where 'long double' == 'double'.
1782         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1783         alternative.
1784         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1785         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1786         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1787
1788 2011-10-09  Bruno Haible  <bruno@clisp.org>
1789
1790         Tests for module 'rintl'.
1791         * modules/rintl-tests: New file.
1792         * tests/test-rintl.c: New file.
1793
1794         New module 'rintl'.
1795         * lib/math.in.h (rintl): New declaration.
1796         * lib/rintl.c: New file.
1797         * m4/rintl.m4: New file.
1798         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1799         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1800         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1801         * modules/rintl: New file.
1802         * tests/test-math-c++.cc: Check the declaration of rintl.
1803         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1804         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1805         * doc/posix-functions/rintl.texi: Mention the new module.
1806
1807 2011-10-09  Bruno Haible  <bruno@clisp.org>
1808
1809         Tests for module 'rintf'.
1810         * modules/rintf-tests: New file.
1811         * tests/test-rintf.c: New file.
1812
1813         New module 'rintf'.
1814         * lib/math.in.h (rintf): New declaration.
1815         * lib/rintf.c: New file.
1816         * m4/rintf.m4: New file.
1817         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1818         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1819         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1820         * modules/rintf: New file.
1821         * tests/test-math-c++.cc: Check the declaration of rintf.
1822         * doc/posix-functions/rintf.texi: Mention the new module.
1823
1824 2011-10-09  Bruno Haible  <bruno@clisp.org>
1825
1826         rint: Support for MSVC.
1827         * lib/math.in.h (rint): New declaration.
1828         * lib/rint.c: New file.
1829         * m4/rint.m4: New file.
1830         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1831         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1832         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1833         * modules/rint (Description): Fix.
1834         (Files): Add lib/rint.c, m4/rint.m4.
1835         (Depends-on): Add math.
1836         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1837         gl_MATH_MODULE_INDICATOR.
1838         * tests/test-math-c++.cc: Check the declaration of rint.
1839         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1840         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1841         * doc/posix-functions/rint.texi: Mention the replacement provided by
1842         the module.
1843
1844         rint tests: More tests.
1845         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1846         minus-zero.h, infinity.h, nan.h.
1847         (main): Skip the test if the current rounding mode is not standard. Add
1848         tests for negative numbers, minus zero, infinity, NaN.
1849         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1850         tests/nan.h.
1851         (Depends-on): Add isnand-nolibm.
1852
1853 2011-10-09  Bruno Haible  <bruno@clisp.org>
1854
1855         Tests for module 'copysignl'.
1856         * modules/copysignl-tests: New file.
1857         * tests/test-copysignl.c: New file.
1858
1859         New module 'copysignl'.
1860         * lib/math.in.h (copysignl): New declaration.
1861         * lib/copysignl.c: New file.
1862         * m4/copysignl.m4: New file.
1863         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1864         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1865         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1866         HAVE_COPYSIGNL.
1867         * modules/copysignl: New file.
1868         * tests/test-math-c++.cc: Check the declaration of copysignl.
1869         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1870         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1871         * doc/posix-functions/copysignl.texi: Mention the new module.
1872
1873 2011-10-09  Bruno Haible  <bruno@clisp.org>
1874
1875         Tests for module 'copysignf'.
1876         * modules/copysignf-tests: New file.
1877         * tests/test-copysignf.c: New file.
1878
1879         New module 'copysignf'.
1880         * lib/math.in.h (copysignf): New declaration.
1881         * lib/copysignf.c: New file.
1882         * m4/copysignf.m4: New file.
1883         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1884         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1885         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1886         HAVE_COPYSIGNF.
1887         * modules/copysignf: New file.
1888         * tests/test-math-c++.cc: Check the declaration of copysignf.
1889         * doc/posix-functions/copysignf.texi: Mention the new module.
1890
1891 2011-10-09  Bruno Haible  <bruno@clisp.org>
1892
1893         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1894         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1895         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1896         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1897         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1898         gl_SIGNAL_H_DEFAULTS.
1899
1900 2011-10-09  Bruno Haible  <bruno@clisp.org>
1901
1902         poll: Make macro safer.
1903         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1904         ac_cv_header_poll_h is not set.
1905
1906 2011-10-09  Bruno Haible  <bruno@clisp.org>
1907
1908         copysign: Provide replacement.
1909         * lib/math.in.h (copysign): New declaration.
1910         * lib/copysign.c: New file.
1911         * m4/copysign.m4: New file.
1912         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1914         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1915         HAVE_COPYSIGN.
1916         * modules/copysign (Description): Clarify.
1917         (Files): Add lib/copysign.c, m4/copysign.m4.
1918         (Depends-on): Add math, signbit.
1919         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1920         gl_MATH_MODULE_INDICATOR.
1921         * tests/test-math-c++.cc: Check the declaration of copysign.
1922         * doc/posix-functions/copysign.texi: Mention the effects of the module
1923         on Minix and MSVC.
1924
1925 2011-10-09  Bruno Haible  <bruno@clisp.org>
1926
1927         isinf: Ensure macro on AIX 5.1.
1928         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1929         macro.
1930         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1931
1932 2011-10-09  Bruno Haible  <bruno@clisp.org>
1933
1934         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1935         * modules/snprintf-posix-tests (configure.ac): Require
1936         gl_LONG_DOUBLE_VS_DOUBLE.
1937         * modules/sprintf-posix-tests (configure.ac): Likewise.
1938         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1939         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1940         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1941         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1942         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1943         tests on platforms where 'long double' is the same as 'double'.
1944         * tests/test-sprintf-posix.h (test_function): Likewise.
1945         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1946         * tests/test-vasprintf-posix.c (test_function): Likewise.
1947
1948         *printf: Fix for platforms where 'long double' == 'double'.
1949         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1950         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1951         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1952         * modules/fprintf-posix (Files): Likewise.
1953         * modules/obstack-printf-posix (Files): Likewise.
1954         * modules/snprintf-posix (Files): Likewise.
1955         * modules/sprintf-posix (Files): Likewise.
1956         * modules/vasnprintf (Files): Likewise.
1957         * modules/vasnprintf-posix (Files): Likewise.
1958         * modules/vasprintf-posix (Files): Likewise.
1959         * modules/vdprintf-posix (Files): Likewise.
1960         * modules/vfprintf-posix (Files): Likewise.
1961         * modules/vsnprintf-posix (Files): Likewise.
1962         * modules/vsprintf-posix (Files): Likewise.
1963         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1964         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1965         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1966         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1967         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1968         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1969         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1970
1971         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1972         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1973         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1974         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1975         'long double'.
1976         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1977
1978         isinf: Fix for platforms where 'long double' == 'double'.
1979         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1980         Don't blindly assume 80-bit 'long double'.
1981
1982         isfinite: Fix for platforms where 'long double' == 'double'.
1983         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1984         Don't blindly assume 80-bit 'long double'.
1985
1986         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1987         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1988         * modules/isfinite-tests (configure.ac): Require
1989         gl_LONG_DOUBLE_VS_DOUBLE.
1990         * modules/isinf-tests (configure.ac): Likewise.
1991         * modules/isnan-tests (configure.ac): Likewise.
1992         * modules/isnanl-tests (configure.ac): Likewise.
1993         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1994         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1995         tests on platforms where 'long double' is the same as 'double'.
1996         * tests/test-isinf.c (test_isinfl): Likewise.
1997         * tests/test-isnan.c (test_long_double): Likewise.
1998         * tests/test-isnanl.h (main): Likewise.
1999
2000 2011-10-08  Bruno Haible  <bruno@clisp.org>
2001
2002         Tests for module 'tanhf'.
2003         * modules/tanhf-tests: New file.
2004         * tests/test-tanhf.c: New file.
2005
2006         New module 'tanhf'.
2007         * lib/math.in.h (tanhf): New declaration.
2008         * lib/tanhf.c: New file.
2009         * m4/tanhf.m4: New file.
2010         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2011         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2012         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2013         * modules/tanhf: New file.
2014         * tests/test-math-c++.cc: Check the declaration of tanhf.
2015         * doc/posix-functions/tanhf.texi: Mention the new module.
2016
2017         tanh: Use a .m4 file.
2018         * m4/tanh.m4: New file.
2019         * modules/tanh (Files): Add it.
2020         (configure.ac): Just invoke gl_FUNC_TANH.
2021
2022 2011-10-08  Bruno Haible  <bruno@clisp.org>
2023
2024         Tests for module 'coshf'.
2025         * modules/coshf-tests: New file.
2026         * tests/test-coshf.c: New file.
2027
2028         New module 'coshf'.
2029         * lib/math.in.h (coshf): New declaration.
2030         * lib/coshf.c: New file.
2031         * m4/coshf.m4: New file.
2032         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2034         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2035         * modules/coshf: New file.
2036         * tests/test-math-c++.cc: Check the declaration of coshf.
2037         * doc/posix-functions/coshf.texi: Mention the new module.
2038
2039         cosh: Use a .m4 file.
2040         * m4/cosh.m4: New file.
2041         * modules/cosh (Files): Add it.
2042         (configure.ac): Just invoke gl_FUNC_COSH.
2043
2044 2011-10-08  Bruno Haible  <bruno@clisp.org>
2045
2046         Tests for module 'sinhf'.
2047         * modules/sinhf-tests: New file.
2048         * tests/test-sinhf.c: New file.
2049
2050         New module 'sinhf'.
2051         * lib/math.in.h (sinhf): New declaration.
2052         * lib/sinhf.c: New file.
2053         * m4/sinhf.m4: New file.
2054         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2055         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2056         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2057         * modules/sinhf: New file.
2058         * tests/test-math-c++.cc: Check the declaration of sinhf.
2059         * doc/posix-functions/sinhf.texi: Mention the new module.
2060
2061         sinh: Use a .m4 file.
2062         * m4/sinh.m4: New file.
2063         * modules/sinh (Files): Add it.
2064         (configure.ac): Just invoke gl_FUNC_SINH.
2065
2066 2011-10-08  Bruno Haible  <bruno@clisp.org>
2067
2068         Tests for module 'atan2f'.
2069         * modules/atan2f-tests: New file.
2070         * tests/test-atan2f.c: New file.
2071
2072         New module 'atan2f'.
2073         * lib/math.in.h (atan2f): New declaration.
2074         * lib/atan2f.c: New file.
2075         * m4/atan2f.m4: New file.
2076         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2077         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2078         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2079         * modules/atan2f: New file.
2080         * tests/test-math-c++.cc: Check the declaration of atan2f.
2081         * doc/posix-functions/atan2f.texi: Mention the new module.
2082
2083         atan2: Use a .m4 file.
2084         * m4/atan2.m4: New file.
2085         * modules/atan2 (Files): Add it.
2086         (configure.ac): Just invoke gl_FUNC_ATAN2.
2087
2088 2011-10-08  Bruno Haible  <bruno@clisp.org>
2089
2090         Tests for module 'atanf'.
2091         * modules/atanf-tests: New file.
2092         * tests/test-atanf.c: New file.
2093
2094         New module 'atanf'.
2095         * lib/math.in.h (atanf): New declaration.
2096         * lib/atanf.c: New file.
2097         * m4/atanf.m4: New file.
2098         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2099         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2100         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2101         * modules/atanf: New file.
2102         * tests/test-math-c++.cc: Check the declaration of atanf.
2103         * doc/posix-functions/atanf.texi: Mention the new module.
2104
2105         atan: Use a .m4 file.
2106         * m4/atan.m4: New file.
2107         * modules/atan (Files): Add it.
2108         (configure.ac): Just invoke gl_FUNC_ATAN.
2109
2110 2011-10-08  Bruno Haible  <bruno@clisp.org>
2111
2112         Tests for module 'acosf'.
2113         * modules/acosf-tests: New file.
2114         * tests/test-acosf.c: New file.
2115
2116         New module 'acosf'.
2117         * lib/math.in.h (acosf): New declaration.
2118         * lib/acosf.c: New file.
2119         * m4/acosf.m4: New file.
2120         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2121         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2122         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2123         * modules/acosf: New file.
2124         * tests/test-math-c++.cc: Check the declaration of acosf.
2125         * doc/posix-functions/acosf.texi: Mention the new module.
2126
2127         acos: Use a .m4 file.
2128         * m4/acos.m4: New file.
2129         * modules/acos (Files): Add it.
2130         (configure.ac): Just invoke gl_FUNC_ACOS.
2131
2132 2011-10-08  Bruno Haible  <bruno@clisp.org>
2133
2134         Tests for module 'asinf'.
2135         * modules/asinf-tests: New file.
2136         * tests/test-asinf.c: New file.
2137
2138         New module 'asinf'.
2139         * lib/math.in.h (asinf): New declaration.
2140         * lib/asinf.c: New file.
2141         * m4/asinf.m4: New file.
2142         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2144         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2145         * modules/asinf: New file.
2146         * tests/test-math-c++.cc: Check the declaration of asinf.
2147         * doc/posix-functions/asinf.texi: Mention the new module.
2148
2149         asin: Use a .m4 file.
2150         * m4/asin.m4: New file.
2151         * modules/asin (Files): Add it.
2152         (configure.ac): Just invoke gl_FUNC_ASIN.
2153
2154 2011-10-08  Bruno Haible  <bruno@clisp.org>
2155
2156         Tests for module 'tanf'.
2157         * modules/tanf-tests: New file.
2158         * tests/test-tanf.c: New file.
2159
2160         New module 'tanf'.
2161         * lib/math.in.h (tanf): New declaration.
2162         * lib/tanf.c: New file.
2163         * m4/tanf.m4: New file.
2164         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2165         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2166         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2167         * modules/tanf: New file.
2168         * tests/test-math-c++.cc: Check the declaration of tanf.
2169         * doc/posix-functions/tanf.texi: Mention the new module.
2170
2171         tan: Use a .m4 file.
2172         * m4/tan.m4: New file.
2173         * modules/tan (Files): Add it.
2174         (configure.ac): Just invoke gl_FUNC_TAN.
2175
2176 2011-10-08  Bruno Haible  <bruno@clisp.org>
2177
2178         Tests for module 'cosf'.
2179         * modules/cosf-tests: New file.
2180         * tests/test-cosf.c: New file.
2181
2182         New module 'cosf'.
2183         * lib/math.in.h (cosf): New declaration.
2184         * lib/cosf.c: New file.
2185         * m4/cosf.m4: New file.
2186         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2187         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2188         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2189         * modules/cosf: New file.
2190         * tests/test-math-c++.cc: Check the declaration of cosf.
2191         * doc/posix-functions/cosf.texi: Mention the new module.
2192
2193         cos: Use a .m4 file.
2194         * m4/cos.m4: New file.
2195         * modules/cos (Files): Add it.
2196         (configure.ac): Just invoke gl_FUNC_COS.
2197
2198 2011-10-08  Bruno Haible  <bruno@clisp.org>
2199
2200         Tests for module 'sinf'.
2201         * modules/sinf-tests: New file.
2202         * tests/test-sinf.c: New file.
2203
2204         New module 'sinf'.
2205         * lib/math.in.h (sinf): New declaration.
2206         * lib/sinf.c: New file.
2207         * m4/sinf.m4: New file.
2208         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2210         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2211         * modules/sinf: New file.
2212         * tests/test-math-c++.cc: Check the declaration of sinf.
2213         * doc/posix-functions/sinf.texi: Mention the new module.
2214
2215         sin: Use a .m4 file.
2216         * m4/sin.m4: New file.
2217         * modules/sin (Files): Add it.
2218         (configure.ac): Just invoke gl_FUNC_SIN.
2219
2220 2011-10-08  Bruno Haible  <bruno@clisp.org>
2221
2222         Tests for module 'powf'.
2223         * modules/powf-tests: New file.
2224         * tests/test-powf.c: New file.
2225
2226         New module 'powf'.
2227         * lib/math.in.h (powf): New declaration.
2228         * lib/powf.c: New file.
2229         * m4/powf.m4: New file.
2230         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2232         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2233         * modules/powf: New file.
2234         * tests/test-math-c++.cc: Check the declaration of powf.
2235         * doc/posix-functions/powf.texi: Mention the new module.
2236
2237         pow: Use a .m4 file.
2238         * m4/pow.m4: New file.
2239         * modules/pow (Files): Add it.
2240         (configure.ac): Just invoke gl_FUNC_POW.
2241
2242 2011-10-08  Bruno Haible  <bruno@clisp.org>
2243
2244         Tests for module 'log10f'.
2245         * modules/log10f-tests: New file.
2246         * tests/test-log10f.c: New file.
2247
2248         New module 'log10f'.
2249         * lib/math.in.h (log10f): New declaration.
2250         * lib/log10f.c: New file.
2251         * m4/log10f.m4: New file.
2252         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2253         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2254         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2255         * modules/log10f: New file.
2256         * tests/test-math-c++.cc: Check the declaration of log10f.
2257         * doc/posix-functions/log10f.texi: Mention the new module.
2258
2259         log10: Use a .m4 file.
2260         * m4/log10.m4: New file.
2261         * modules/log10 (Files): Add it.
2262         (configure.ac): Just invoke gl_FUNC_LOG10.
2263
2264 2011-10-08  Bruno Haible  <bruno@clisp.org>
2265
2266         Tests for module 'logf'.
2267         * modules/logf-tests: New file.
2268         * tests/test-logf.c: New file.
2269
2270         New module 'logf'.
2271         * lib/math.in.h (logf): New declaration.
2272         * lib/logf.c: New file.
2273         * m4/logf.m4: New file.
2274         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2275         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2276         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2277         * modules/logf: New file.
2278         * tests/test-math-c++.cc: Check the declaration of logf.
2279         * doc/posix-functions/logf.texi: Mention the new module.
2280
2281         log: Use a .m4 file.
2282         * m4/log.m4: New file.
2283         * modules/log (Files): Add it.
2284         (configure.ac): Just invoke gl_FUNC_LOG.
2285
2286 2011-10-08  Bruno Haible  <bruno@clisp.org>
2287
2288         Tests for module 'expf'.
2289         * modules/expf-tests: New file.
2290         * tests/test-expf.c: New file.
2291
2292         New module 'expf'.
2293         * lib/math.in.h (expf): New declaration.
2294         * lib/expf.c: New file.
2295         * m4/expf.m4: New file.
2296         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2297         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2298         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2299         * modules/expf: New file.
2300         * tests/test-math-c++.cc: Check the declaration of expf.
2301         * doc/posix-functions/expf.texi: Mention the new module.
2302
2303         exp: Use a .m4 file.
2304         * m4/exp.m4: New file.
2305         * modules/exp (Files): Add it.
2306         (configure.ac): Just invoke gl_FUNC_EXP.
2307
2308 2011-10-08  Bruno Haible  <bruno@clisp.org>
2309
2310         Tests for module 'sqrtf'.
2311         * modules/sqrtf-tests: New file.
2312         * tests/test-sqrtf.c: New file.
2313
2314         New module 'sqrtf'.
2315         * lib/math.in.h (sqrtf): New declaration.
2316         * lib/sqrtf.c: New file.
2317         * m4/sqrtf.m4: New file.
2318         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2319         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2320         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2321         * modules/sqrtf: New file.
2322         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2323         * doc/posix-functions/sqrtf.texi: Mention the new module.
2324
2325 2011-10-08  Bruno Haible  <bruno@clisp.org>
2326
2327         Tests: Avoid link failures w.r.t. libintl.
2328         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2329         $(LIBINTL).
2330         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2331         $(LIBINTL).
2332         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2333         against $(LIBINTL).
2334         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2335         $(LIBINTL).
2336         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2337         $(LIBINTL).
2338         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2339
2340 2011-10-08  Bruno Haible  <bruno@clisp.org>
2341
2342         pow tests: Defeat compiler optimizations.
2343         * tests/test-pow.c (main): Assign arguments to x and y before use.
2344
2345 2011-10-08  Bruno Haible  <bruno@clisp.org>
2346
2347         gnulib-tool: Improve last commit.
2348         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2349         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2350         ignore dependencies that are not among the modules list.
2351
2352 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2353
2354         gnulib-tool: don't follow dependencies to avoided modules
2355         This fixes a bug that is related to the previous one.
2356         * gnulib-tool (func_modules_transitive_closure)
2357         (func_emit_autoconf_snippets):
2358         Check whether a dependency is acceptable before using it.
2359         (--extract-dependencies): Report an error if --avoid is also used,
2360         since this combination of options is not yet supported.
2361
2362         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2363         Problem reported by Peter Dyballa in
2364         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2365         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2366         when echoing "$condition".
2367
2368 2011-10-07  Bruno Haible  <bruno@clisp.org>
2369
2370         Fix documentation about math functions on MacOS X.
2371         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2372         MacOS X 10.5.
2373         * doc/posix-functions/fdim.texi: Likewise.
2374         * doc/posix-functions/feclearexcept.texi: Likewise.
2375         * doc/posix-functions/fegetenv.texi: Likewise.
2376         * doc/posix-functions/fegetround.texi: Likewise.
2377         * doc/posix-functions/feholdexcept.texi: Likewise.
2378         * doc/posix-functions/feraiseexcept.texi: Likewise.
2379         * doc/posix-functions/fesetenv.texi: Likewise.
2380         * doc/posix-functions/fesetround.texi: Likewise.
2381         * doc/posix-functions/fetestexcept.texi: Likewise.
2382         * doc/posix-functions/feupdateenv.texi: Likewise.
2383         * doc/posix-functions/fmax.texi: Likewise.
2384         * doc/posix-functions/fmin.texi: Likewise.
2385         * doc/posix-functions/log2.texi: Likewise.
2386         * doc/posix-functions/modff.texi: Likewise.
2387         * doc/posix-functions/nan.texi: Likewise.
2388         * doc/posix-functions/nanf.texi: Likewise.
2389         * doc/posix-functions/nextafterf.texi: Likewise.
2390         * doc/posix-functions/remquo.texi: Likewise.
2391
2392 2011-10-07  Bruno Haible  <bruno@clisp.org>
2393
2394         modff: Drop assumption about library that defines modff.
2395         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2396         AC_CHECK_FUNCS.
2397         * modules/modff (Files): Add m4/mathfunc.m4.
2398
2399 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2400
2401         raise tests: Avoid a GCC warning.
2402         * tests/test-raise.c (handler): Use _Noreturn.
2403
2404 2011-10-07  Bruno Haible  <bruno@clisp.org>
2405
2406         Tests for module 'ldexpf'.
2407         * modules/ldexpf-tests: New file.
2408         * tests/test-ldexpf.c: New file.
2409
2410         New module 'ldexpf'.
2411         * lib/math.in.h (ldexpf): New declaration.
2412         * lib/ldexpf.c: New file.
2413         * m4/ldexpf.m4: New file.
2414         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2415         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2416         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2417         * modules/ldexpf: New file.
2418         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2419         * doc/posix-functions/ldexpf.texi: Mention the new module.
2420
2421 2011-10-06  Bruno Haible  <bruno@clisp.org>
2422
2423         frexpf: Work around problems on IRIX and mingw.
2424         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2425         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2426         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2427         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2428         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2429         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2430         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2431
2432 2011-10-06  Bruno Haible  <bruno@clisp.org>
2433
2434         fabsf: Drop assumption about library that defines fabsf.
2435         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2436         AC_CHECK_FUNCS.
2437         * modules/fabsf (Files): Add m4/mathfunc.m4.
2438
2439 2011-10-06  Bruno Haible  <bruno@clisp.org>
2440
2441         frexpf: Drop assumption about library that defines frexpf.
2442         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2443         'int *', 'float *', 'long double *', 'float', 'long double'.
2444         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2445         AC_CHECK_FUNCS.
2446         * modules/frexpf (Files): Add m4/mathfunc.m4.
2447
2448         Tests for module 'frexpf'.
2449         * modules/frexpf-tests: New file.
2450         * tests/test-frexpf.c: New file.
2451
2452         New module 'frexpf'.
2453         * lib/math.in.h (frexpf): New declaration.
2454         * lib/frexpf.c: New file.
2455         * m4/frexpf.m4: New file.
2456         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2457         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2458         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2459         * modules/frexpf: New file.
2460         * tests/test-math-c++.cc: Check the declaration of frexpf.
2461         * doc/posix-functions/frexpf.texi: Mention the new module.
2462
2463 2011-10-06  Bruno Haible  <bruno@clisp.org>
2464
2465         math: Sort function declarations of math.in.h.
2466         * lib/math.in.h (frexp, logb): Move declarations.
2467
2468 2011-10-05  Bruno Haible  <bruno@clisp.org>
2469
2470         Tests for module 'modff'.
2471         * modules/modff-tests: New file.
2472         * tests/test-modff.c: New file.
2473
2474         New module 'modff'.
2475         * lib/math.in.h (modff): New declaration.
2476         * lib/modff.c: New file.
2477         * m4/modff.m4: New file.
2478         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2479         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2480         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2481         * modules/modff: New file.
2482         * tests/test-math-c++.cc: Check the declaration of modff.
2483         * doc/posix-functions/modff.texi: Mention the new module.
2484
2485         modf tests: Make test sharper.
2486         * tests/test-modf.c (main): Strengthen upper bound.
2487
2488         modf: Use a .m4 file.
2489         * m4/modf.m4: New file.
2490         * modules/modf (Files): Add it.
2491         (configure.ac): Just invoke gl_FUNC_MODF.
2492
2493 2011-10-05  Bruno Haible  <bruno@clisp.org>
2494
2495         Tests for module 'fmodf'.
2496         * modules/fmodf-tests: New file.
2497         * tests/test-fmodf.c: New file.
2498
2499         New module 'fmodf'.
2500         * lib/math.in.h (fmodf): New declaration.
2501         * lib/fmodf.c: New file.
2502         * m4/fmodf.m4: New file.
2503         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2504         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2505         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2506         * modules/fmodf: New file.
2507         * tests/test-math-c++.cc: Check the declaration of fmodf.
2508         * doc/posix-functions/fmodf.texi: Mention the new module.
2509
2510         fmod: Use a .m4 file.
2511         * m4/fmod.m4: New file.
2512         * modules/fmod (Files): Add it.
2513         (configure.ac): Just invoke gl_FUNC_FMOD.
2514
2515 2011-10-05  Bruno Haible  <bruno@clisp.org>
2516
2517         Tests for module 'fabsf'.
2518         * modules/fabsf-tests: New file.
2519         * tests/test-fabsf.c: New file.
2520
2521         New module 'fabsf'.
2522         * lib/math.in.h (fabsf): New declaration.
2523         * lib/fabsf.c: New file.
2524         * m4/fabsf.m4: New file.
2525         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2526         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2527         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2528         * modules/fabsf: New file.
2529         * tests/test-math-c++.cc: Check the declaration of fabsf.
2530         * doc/posix-functions/fabsf.texi: Mention the new module.
2531
2532         fabs: Use a .m4 file.
2533         * m4/fabs.m4: New file.
2534         * modules/fabs (Files): Add it.
2535         (configure.ac): Just invoke gl_FUNC_FABS.
2536
2537 2011-10-05  Jim Meyering  <meyering@redhat.com>
2538
2539         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2540         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2541         ls -lL regression introduced in coreutils-8.12, it does so at the
2542         cost of an additional stat call in the common case.  Besides, now
2543         that the kernel change that prompted commit 95f7c57f has been reverted
2544         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2545         we have no use for commit 95f7c57f, "file-has-acl: use
2546         acl_extended_file_nofollow if available".
2547
2548 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2549
2550         file-has-acl: revert unintended change in behavior of ls -L
2551         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2552         derived from...
2553         (file_has_acl): ...code here.  Call it.
2554         This problem was introduced with 2011-07-22 commit 95f7c57f,
2555         "file-has-acl: use acl_extended_file_nofollow if available".
2556         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2557
2558 2011-10-03  Bruno Haible  <bruno@clisp.org>
2559
2560         poll: Avoid link errors on MSVC.
2561         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2562         * modules/poll (Depends-on): Add sockets.
2563         (Link): New section.
2564         * NEWS: Mention the change.
2565         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2566         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2567         $(LIB_POLL) instead of $(LIBSOCKET).
2568
2569 2011-10-03  Bruno Haible  <bruno@clisp.org>
2570
2571         sys_select tests: Fix link error on MSVC 9.
2572         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2573         with $(LIB_SELECT) instead of $(LIBSOCKET).
2574
2575 2011-10-03  Bruno Haible  <bruno@clisp.org>
2576
2577         sys_select: Fix compilation error on mingw.
2578         * lib/sys_select.in.h: On native Windows, include <io.h>.
2579
2580 2011-10-03  Bruno Haible  <bruno@clisp.org>
2581
2582         wmemset: Support for MSVC.
2583         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2584         whether wmemset() exists.
2585
2586 2011-10-03  Bruno Haible  <bruno@clisp.org>
2587
2588         wmemmove: Support for MSVC.
2589         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2590         whether wmemmove() exists.
2591
2592 2011-10-03  Bruno Haible  <bruno@clisp.org>
2593
2594         wmemcpy: Support for MSVC.
2595         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2596         whether wmemcpy() exists.
2597
2598 2011-10-03  Bruno Haible  <bruno@clisp.org>
2599
2600         wmemcmp: Support for MSVC.
2601         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2602         whether wmemcmp() exists.
2603
2604 2011-10-03  Bruno Haible  <bruno@clisp.org>
2605
2606         wmemchr: Support for MSVC.
2607         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2608         whether wmemchr() exists.
2609
2610 2011-10-03  Bruno Haible  <bruno@clisp.org>
2611
2612         glthread/*, strsignal: Support for MSVC.
2613         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2614         including <winsock.h> on MSVC 9.
2615         * lib/glthread/lock.h: Likewise.
2616         * lib/glthread/thread.h: Likewise.
2617         * lib/glthread/tls.h: Likewise.
2618         * lib/glthread/yield.h: Likewise.
2619         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2620         if HAVE_UNISTD_H is false.
2621         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2622
2623 2011-10-03  Bruno Haible  <bruno@clisp.org>
2624
2625         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2626         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2627         Set to 100000.
2628
2629 2011-10-03  Bruno Haible  <bruno@clisp.org>
2630
2631         acl: Fix specification.
2632         * lib/file-has-acl.c (file_has_acl): Fix specification.
2633
2634 2011-10-03  Bruno Haible  <bruno@clisp.org>
2635
2636         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2637         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2638         (compute_curr_prefix, shared_library_fullname,
2639         find_shared_library_fullname, get_shared_library_fullname, relocate):
2640         Use it together with PIC && INSTALLDIR.
2641         Reported by <jojelino@gmail.com>
2642         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2643
2644 2011-10-01  Jim Meyering  <meyering@redhat.com>
2645
2646         maint.mk: adjust a release-related rule not to require use of gzip
2647         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2648         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2649         projects that build only .tar.xz files.  Also fix an erroneous test.
2650
2651         test-linkat: don't leave behind a temporary file
2652         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2653         Otherwise, coreutils' "make distcheck" would fail with this:
2654           Only in /c/cu/tests/torture/coreutils/test/\
2655             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2656           make[2]: *** [my-distcheck] Error 1
2657
2658         float, math: add omitted file
2659         * lib/itold.c: Add file, required for yesterday's float change.
2660
2661 2011-10-01  Bruno Haible  <bruno@clisp.org>
2662
2663         isinf: Fix for OpenBSD/x86.
2664         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2665         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2666         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2667
2668 2011-10-01  Bruno Haible  <bruno@clisp.org>
2669
2670         isfinite: Fix syntax error in configure test.
2671         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2672
2673         isfinite: Fix typo.
2674         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2675         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2676
2677 2011-10-01  Bruno Haible  <bruno@clisp.org>
2678
2679         nonblocking tests: Fix test failure on Linux/IA-64.
2680         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2681         Set to 270000.
2682
2683 2011-10-01  Bruno Haible  <bruno@clisp.org>
2684
2685         mkfifoat tests: Fix a test failure on mingw.
2686         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2687         with error ENOSYS.
2688
2689 2011-09-30  Bruno Haible  <bruno@clisp.org>
2690
2691         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2692         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2693         'long double'. Set REPLACE_ITOLD.
2694         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2695         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2696         * lib/itold.c: New file.
2697         * modules/float (Files): Add lib/itold.c.
2698         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2699         (Makefile.am): Substitute REPLACE_ITOLD.
2700         * modules/math (Depends-on): Add float.
2701         (Makefile.am): Substitute REPLACE_ITOLD.
2702         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2703         * doc/posix-headers/math.texi: Likewise.
2704         * doc/posix-functions/logl.texi: Likewise.
2705
2706 2011-09-30  Bruno Haible  <bruno@clisp.org>
2707
2708         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2709         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2710         Set to 140000.
2711
2712 2011-09-30  Bruno Haible  <bruno@clisp.org>
2713
2714         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2715         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2716         invocation, say "right after AC_PROG_CC_STDC", not "right after
2717         AC_PROG_CC".
2718         Reported by Gary V. Vaughan <gary@gnu.org>.
2719
2720 2011-09-30  Bruno Haible  <bruno@clisp.org>
2721
2722         Centralize C99 requirement.
2723         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2724         * modules/stdarg (configure.ac-early): Invoke it instead of
2725         AC_PROG_CC_STDC.
2726         Reported by Gary V. Vaughan and Paul Eggert.
2727
2728 2011-09-29  Bruno Haible  <bruno@clisp.org>
2729
2730         float: Fix LDBL_MAX value on Linux/PowerPC.
2731         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2732         on Linux/PowerPC.
2733         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2734         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2735         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2736         platform.
2737         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2738
2739 2011-09-29  Bruno Haible  <bruno@clisp.org>
2740
2741         doc: Improve doc about gl_EARLY.
2742         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2743         AC_PROG_CC_STDC invocation.
2744         Reported by Gary V. Vaughan <gary@gnu.org>.
2745
2746 2011-09-28  Bruno Haible  <bruno@clisp.org>
2747
2748         fgetc, fputc, fread, fwrite tests: Fix link error.
2749         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2750         on non-MSVC platforms.
2751         * tests/test-fputc.c (main): Likewise.
2752         * tests/test-fread.c (main): Likewise.
2753         * tests/test-fwrite.c (main): Likewise.
2754         Reported by Jim Meyering.
2755
2756 2011-09-27  Bruno Haible  <bruno@clisp.org>
2757
2758         fputc, fwrite tests: Avoid test failure on MSVC.
2759         * tests/test-fgetc.c: Include msvc-inval.h.
2760         (main): Invoke gl_msvc_inval_ensure_handler.
2761         * tests/test-fputc.c: Include msvc-inval.h.
2762         (main): Invoke gl_msvc_inval_ensure_handler.
2763         * tests/test-fread.c: Include msvc-inval.h.
2764         (main): Invoke gl_msvc_inval_ensure_handler.
2765         * tests/test-fwrite.c: Include msvc-inval.h.
2766         (main): Invoke gl_msvc_inval_ensure_handler.
2767         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2768         * modules/fputc-tests (Depends-on): Likewise.
2769         * modules/fread-tests (Depends-on): Likewise.
2770         * modules/fwrite-tests (Depends-on): Likewise.
2771
2772 2011-09-27  Bruno Haible  <bruno@clisp.org>
2773
2774         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2775         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2776         (raise): Remove older, duplicated declaration.
2777         (_gl_raise_SIGPIPE): New declaration.
2778         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2779         (rpl_raise): Remove function.
2780         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2781         a gnulib-defined SIGPIPE here.
2782         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2783         'sigprocmask' has detected missing signal-blocking and the module
2784         'sigpipe' is enabled.
2785         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2786
2787 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2788
2789         base64-tests: avoid memory leak
2790         * tests/test-base64.c (main): Plug memory leak.
2791
2792         base32: new module
2793         * modules/base32: New module.
2794         * lib/base32.c: New file.
2795         * lib/base32.h: Likewise.
2796         * m4/base32.m4: Likewise.
2797         * modules/base32-tests: New test.
2798         * tests/test-base32.c: Likewise.
2799         * MODULES.html.sh (Misc): Mention it.
2800
2801 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2802
2803         gnulib: use more-standard license notice wording
2804         * gnulib-tool (func_emit_copyright_notice): When emitting a
2805         license notice into a file, use the standard wording as suggested
2806         by the current information for GNU maintainers, except say "file"
2807         rather than "program".  The new wording gives a license version
2808         number, which addresses an issue raised by Glenn Morris in
2809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2810         * m4/onceonly.m4: Use that same wording here, too.
2811
2812         dup2: minor simplification
2813         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2814         as lib/dup2.c no longer uses 'inline'.
2815
2816 2011-09-25  Bruno Haible  <bruno@clisp.org>
2817
2818         strings: Fix compilation error on MSVC.
2819         * lib/strings.in.h: Include <stddef.h> for size_t.
2820
2821 2011-09-25  Bruno Haible  <bruno@clisp.org>
2822
2823         fflush et al.: Document limitation on MSVC.
2824         * doc/posix-functions/fflush.texi: Document possible crash in handling
2825         mode other than DEFAULT_HANDLING.
2826         * doc/posix-functions/fgetc.texi: Likewise.
2827         * doc/posix-functions/fputc.texi: Likewise.
2828         * doc/posix-functions/fread.texi: Likewise.
2829         * doc/posix-functions/fwrite.texi: Likewise.
2830
2831 2011-09-25  Bruno Haible  <bruno@clisp.org>
2832
2833         msvc-inval: Allow three invalid parameter handling modes.
2834         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2835         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2836         macros.
2837         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2838         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2839         SANE_LIBRARY_HANDLING as a no-op.
2840         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2841         <stdlib.h>.
2842         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2843
2844 2011-09-25  Bruno Haible  <bruno@clisp.org>
2845
2846         msvc-inval: Make handler multithread-safe.
2847         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2848         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2849         declarations.
2850         (gl_msvc_inval_current): New declaration.
2851         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2852         Operate on the structure returned by gl_msvc_inval_current().
2853         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2854         Remove varaiables.
2855         (tls_index, tls_initialized): New variables.
2856         (not_per_thread): New variable.
2857         (gl_msvc_inval_current): New function.
2858         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2859         returned by gl_msvc_inval_current().
2860
2861 2011-09-25  Bruno Haible  <bruno@clisp.org>
2862
2863         msvc-inval: Install handler globally.
2864         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2865         !_MSC_VER.
2866         (gl_msvc_invalid_parameter_handler): Remove declaration.
2867         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2868         declarations.
2869         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2870         Install the handler globally, don't uninstall it.
2871         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2872         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2873         currently valid, call RaiseException instead.
2874         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2875         for !_MSC_VER.
2876
2877 2011-09-25  Bruno Haible  <bruno@clisp.org>
2878
2879         strerror_r-posix: Fix for MSVC 9.
2880         * lib/strerror_r.c (local_snprintf): New function.
2881         (snprintf): Define to local_snprintf, not to _snprintf.
2882
2883 2011-09-25  Bruno Haible  <bruno@clisp.org>
2884
2885         ftruncate: Support for MSVC 9.
2886         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2887         (chsize_nothrow): New function.
2888         (chsize): Redefine as a macro.
2889         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2890         * modules/ftruncate (Depends-on): Add msvc-inval.
2891
2892 2011-09-25  Bruno Haible  <bruno@clisp.org>
2893
2894         New module 'fstat'.
2895         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2896         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2897         * lib/fchdir.c (rpl_fstat): Remove function.
2898         * m4/fstat.m4: New file.
2899         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2900         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2901         declared.
2902         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2903         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2904         * modules/fstat: New file.
2905         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2906         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2907         is set.
2908         * doc/posix-functions/fstat.texi: Mention the new module and the
2909         problem on MSVC.
2910         * NEWS: Mention the change.
2911         * modules/acl (Depends-on): Add fstat.
2912         * modules/chdir-safer (Depends-on): Likewise.
2913         * modules/chown (Depends-on): Likewise.
2914         * modules/copy-file (Depends-on): Likewise.
2915         * modules/fchdir (Depends-on): Likewise.
2916         * modules/fdopendir (Depends-on): Likewise.
2917         * modules/fopen (Depends-on): Likewise.
2918         * modules/fts (Depends-on): Likewise.
2919         * modules/getcwd (Depends-on): Likewise.
2920         * modules/isapipe (Depends-on): Likewise.
2921         * modules/linkat (Depends-on): Likewise.
2922         * modules/lseek (Depends-on): Likewise.
2923         * modules/mkdir-p (Depends-on): Likewise.
2924         * modules/open (Depends-on): Likewise.
2925         * modules/openat (Depends-on): Likewise.
2926         * modules/read-file (Depends-on): Likewise.
2927         * modules/renameat (Depends-on): Likewise.
2928         * modules/utimens (Depends-on): Likewise.
2929
2930 2011-09-25  Bruno Haible  <bruno@clisp.org>
2931
2932         linkat: Fix compilation on MSVC 9.
2933         * lib/linkat.c: Don't include <stdint.h>.
2934
2935 2011-09-25  Bruno Haible  <bruno@clisp.org>
2936
2937         fclose: Support for MSVC 9.
2938         * lib/fclose.c: Include msvc-inval.h.
2939         (fclose_nothrow): New function.
2940         (rpl_fclose): Use it.
2941         * modules/fclose (Depends-on): Add msvc-inval.
2942         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2943
2944 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2945
2946         dup2: minor simplifications
2947         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2948         that it's a performance win.
2949         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2950         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2951
2952 2011-09-24  Jim Meyering  <meyering@redhat.com>
2953
2954         test-futimens: avoid a warning from gcc -Wshadow
2955         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2956         to avoid a shadowing warning.
2957
2958 2011-09-24  Bruno Haible  <bruno@clisp.org>
2959
2960         fdopen: Support for MSVC 9.
2961         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2962         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2963         * lib/fdopen.c: Include msvc-inval.h.
2964         (fdopen_nothrow): New function.
2965         (rpl_fdopen): Use it.
2966         * modules/fdopen (Depends-on): Add msvc-inval.
2967         * modules/fclose-tests (Depends-on): Add fdopen.
2968         * modules/fflush-tests (Depends-on): Likewise.
2969         * modules/fgetc-tests (Depends-on): Likewise.
2970         * modules/fputc-tests (Depends-on): Likewise.
2971         * modules/fread-tests (Depends-on): Likewise.
2972         * modules/freopen-tests (Depends-on): Likewise.
2973         * modules/fseeko-tests (Depends-on): Likewise.
2974         * modules/ftello-tests (Depends-on): Likewise.
2975         * modules/fwrite-tests  (Depends-on): Likewise.
2976         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2977
2978 2011-09-24  Bruno Haible  <bruno@clisp.org>
2979
2980         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2981         * modules/fgetc-tests (Depends-on): Add unistd.
2982         * modules/fputc-tests (Depends-on): Likewise.
2983         * modules/fread-tests (Depends-on): Likewise.
2984         * modules/fwrite-tests (Depends-on): Likewise.
2985
2986 2011-09-24  Bruno Haible  <bruno@clisp.org>
2987
2988         dup: Simplify autoconf test.
2989         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2990         on gl_MSVC_INVAL's result.
2991
2992 2011-09-24  Bruno Haible  <bruno@clisp.org>
2993
2994         Tests for function fwrite().
2995         * modules/fwrite-tests: New file.
2996         * tests/test-fwrite.c: New file.
2997         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2998
2999         Tests for function fread().
3000         * modules/fread-tests: New file.
3001         * tests/test-fread.c: New file.
3002         * modules/stdio-tests (Depends-on): Add fread-tests.
3003
3004         Activate fputc tests.
3005         * modules/stdio-tests (Depends-on): Add fputc-tests.
3006
3007         Enhance fgetc, fputc tests.
3008         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3009         * tests/test-fputc.c (main): Likewise.
3010
3011 2011-09-24  Bruno Haible  <bruno@clisp.org>
3012
3013         write: Support for MSVC 9.
3014         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3015         is not 1.
3016         * lib/write.c (write_nothrow): New function.
3017         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3018         not 1. Use write_nothrow.
3019         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3020         invalid parameter handler.
3021         (gl_PREREQ_WRITE): New macro.
3022         * modules/write (Depends-on): Add msvc-inval.
3023         (configure.ac): Invoke gl_PREREQ_WRITE.
3024         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3025
3026 2011-09-24  Bruno Haible  <bruno@clisp.org>
3027
3028         read: Fix last commit.
3029         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3030
3031 2011-09-24  Bruno Haible  <bruno@clisp.org>
3032
3033         dup2: Fix last commit.
3034         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3035         (rpl_dup2): Disable fcntl workaround on native Windows.
3036
3037         sigprocmask: Make code safer.
3038         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3039         section that changes macro definitions for this compilation unit.
3040
3041 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3042
3043         dup2: clarify by coalescing Windows-specific material
3044         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3045         "msvc-nothrow.h"' to the Windows-specific section, so that the
3046         Emacs source need not contain these include files.
3047         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3048         Windows-specific fixes into this function rather than just the
3049         nothrow fix, as this shortens and clarifies the code.  Always
3050         define as a function, as that's a bit cleaner than having it be
3051         sometimes a function and sometimes a macro.
3052         (rpl_dup2): Move the Windows-specific stuff out of here and into
3053         ms_windows_dup2.  Don't protect the Haiku-related fix with
3054         "#if !defined __linux__", as the same code also works around
3055         a Linux kernel bug, and it doesn't add any system calls on any
3056         platform.  Add comment about FreeBSD 6.1.
3057
3058         sigprocmask: move #include directive
3059         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3060         Windows-specific section, so that the Emacs source need not
3061         contain msvc-inval.h.
3062
3063 2011-09-23  Bruno Haible  <bruno@clisp.org>
3064
3065         read: Support for MSVC 9.
3066         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3067         is not 1.
3068         * lib/read.c (read_nothrow): New function.
3069         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3070         read_nothrow.
3071         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3072         invalid parameter handler.
3073         (gl_PREREQ_READ): New macro.
3074         * modules/read (Depends-on): Add msvc-inval.
3075         (configure.ac): Invoke gl_PREREQ_READ.
3076         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3077
3078 2011-09-23  Bruno Haible  <bruno@clisp.org>
3079
3080         close: Support for MSVC 9.
3081         * lib/close.c: Include <errno.h>, msvc-inval.h.
3082         (close_nothrow): New function.
3083         (rpl_close): Use it.
3084         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3085         invalid parameter handler.
3086         * modules/close (Depends-on): Add msvc-inval.
3087         * modules/dup2-tests (Depends-on): Add close.
3088         * modules/dup3-tests (Depends-on): Likewise.
3089         * modules/fcntl-tests (Depends-on): Likewise.
3090         * modules/spawn-pipe-tests (Depends-on): Likewise.
3091         * modules/unistd-safer-tests (Depends-on): Likewise.
3092         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3093
3094 2011-09-23  Bruno Haible  <bruno@clisp.org>
3095
3096         New module 'dup'.
3097         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3098         Allow replacement.
3099         * lib/dup.c: New file.
3100         * lib/fchdir.c (rpl_dup): Remove function.
3101         * m4/dup.m4: New file.
3102         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3103         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3104         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3105         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3106         * modules/dup: New file.
3107         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3108         'dup' module is in use.
3109         * modules/fdopendir (Depends-on): Add dup.
3110         * modules/fdutimensat-tests (Depends-on): Likewise.
3111         * modules/fts (Depends-on): Likewise.
3112         * modules/futimens-tests (Depends-on): Likewise.
3113         * modules/posix_spawnp-tests (Depends-on): Likewise.
3114         * modules/unistd-safer-tests (Depends-on): Likewise.
3115         * modules/utimens-tests (Depends-on): Likewise.
3116         * doc/posix-functions/dup.texi: Mention the new module and the problem
3117         on MSVC.
3118
3119 2011-09-23  Bruno Haible  <bruno@clisp.org>
3120
3121         getdtablesize: Support for MSVC 9.
3122         * lib/getdtablesize.c: Include msvc-inval.h.
3123         (_setmaxstdio_nothrow): New function.
3124         (_setmaxstdio): Redefine it.
3125         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3126         * modules/getdtablesize (Depends-on): Add msvc-inval.
3127         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3128
3129 2011-09-23  Bruno Haible  <bruno@clisp.org>
3130
3131         signal-h: Rename from signal.
3132         * modules/signal-h: Renamed from modules/signal.
3133         * modules/pthread_sigmask (Depends-on): Update.
3134         * modules/raise (Depends-on): Likewise.
3135         * modules/sigaction (Depends-on): Likewise.
3136         * modules/sigpipe (Depends-on): Likewise.
3137         * modules/sigprocmask (Depends-on): Likewise.
3138         * modules/sys_select (Depends-on): Likewise.
3139         * modules/signal-h-tests: Renamed from modules/signal-tests.
3140         (Files, Depends-on, Makefile.am): Update.
3141         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3142         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3143         (Files, Makefile.am): Update.
3144         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3145         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3146         * modules/signal: New placeholder file.
3147         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3148         * doc/posix-headers/signal.texi: Update.
3149         * NEWS: Mention the change.
3150
3151 2011-09-23  Bruno Haible  <bruno@clisp.org>
3152
3153         sigprocmask: Avoid crashes through signal() on MSVC 9.
3154         * lib/sigprocmask.c: Include msvc-inval.h.
3155         (signal_nothrow): New function.
3156         (signal): Redefine it.
3157         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3158         * modules/sigprocmask (Depends-on): Add msvc-inval.
3159         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3160
3161 2011-09-23  Bruno Haible  <bruno@clisp.org>
3162
3163         Tests for module 'raise'.
3164         * modules/raise-tests: New file.
3165         * tests/test-raise.c: New file.
3166
3167         raise: Support for MSVC.
3168         * lib/signal.in.h (raise): New declaration.
3169         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3170         for native Windows platforms.
3171         * m4/raise.m4: New file.
3172         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3173         HAVE_RAISE, REPLACE_RAISE.
3174         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3175         REPLACE_RAISE.
3176         * modules/raise (Status, Notice): Remove fields.
3177         (Files): Add m4/raise.m4.
3178         (Depends-on): Add signal, msvc-inval.
3179         (configure.ac): Use the common idioms.
3180         (Maintainer): Add me.
3181         * tests/test-signal-c++.cc: Check the signature of raise.
3182         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3183
3184 2011-09-23  Bruno Haible  <bruno@clisp.org>
3185
3186         pipe2: Fix compilation on pre-C99 compilers.
3187         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3188
3189 2011-09-23  Bruno Haible  <bruno@clisp.org>
3190
3191         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3192         * lib/msvc-nothrow.h: New file.
3193         * lib/msvc-nothrow.c: New file.
3194         * m4/msvc-nothrow.m4: New file.
3195         * modules/msvc-nothrow: New file.
3196         * lib/dup2.c: Include msvc-nothrow.h.
3197         (rpl_dup2): No need to protect _get_osfhandle call here.
3198         * lib/accept4.c: Include msvc-nothrow.h.
3199         * lib/error.c: Likewise.
3200         * lib/fcntl.c: Likewise.
3201         * lib/lseek.c: Likewise.
3202         * lib/nonblocking.c: Likewise.
3203         * lib/poll.c: Likewise.
3204         * lib/read.c: Likewise.
3205         * lib/select.c: Likewise.
3206         * lib/sockets.h: Likewise.
3207         * lib/sockets.c: Likewise.
3208         * lib/stdio-read.c: Likewise.
3209         * lib/stdio-write.c: Likewise.
3210         * lib/write.c: Likewise.
3211         * lib/w32sock.h: Likewise.
3212         * lib/w32spawn.h: Likewise.
3213         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3214         * lib/fsync.c: Likewise.
3215         * lib/isapipe.c: Likewise.
3216         * modules/dup2 (Depends-on): Add msvc-nothrow.
3217         * modules/accept4 (Depends-on): Likewise.
3218         * modules/error (Depends-on): Likewise.
3219         * modules/fcntl (Depends-on): Likewise.
3220         * modules/lseek (Depends-on): Likewise.
3221         * modules/nonblocking (Depends-on): Likewise.
3222         * modules/poll (Depends-on): Likewise.
3223         * modules/read (Depends-on): Likewise.
3224         * modules/select (Depends-on): Likewise.
3225         * modules/sockets (Depends-on): Likewise.
3226         * modules/sigpipe (Depends-on): Likewise.
3227         * modules/write (Depends-on): Likewise.
3228         * modules/accept (Depends-on): Likewise.
3229         * modules/bind (Depends-on): Likewise.
3230         * modules/connect (Depends-on): Likewise.
3231         * modules/gethostname (Depends-on): Likewise.
3232         * modules/getpeername (Depends-on): Likewise.
3233         * modules/getsockname (Depends-on): Likewise.
3234         * modules/getsockopt (Depends-on): Likewise.
3235         * modules/ioctl (Depends-on): Likewise.
3236         * modules/listen (Depends-on): Likewise.
3237         * modules/recv (Depends-on): Likewise.
3238         * modules/recvfrom (Depends-on): Likewise.
3239         * modules/send (Depends-on): Likewise.
3240         * modules/sendto (Depends-on): Likewise.
3241         * modules/setsockopt (Depends-on): Likewise.
3242         * modules/shutdown (Depends-on): Likewise.
3243         * modules/socket (Depends-on): Likewise.
3244         * modules/execute (Depends-on): Likewise.
3245         * modules/spawn-pipe (Depends-on): Likewise.
3246         * modules/flock (Depends-on): Likewise.
3247         * modules/fsync (Depends-on): Likewise.
3248         * modules/isapipe (Depends-on): Likewise.
3249         * tests/test-cloexec.c: Include msvc-nothrow.h.
3250         * tests/test-dup-safer.c: Likewise.
3251         * tests/test-dup2.c: Likewise.
3252         * tests/test-dup3.c: Likewise.
3253         * tests/test-fcntl.c: Likewise.
3254         * tests/test-pipe.c: Likewise.
3255         * tests/test-pipe2.c: Likewise.
3256         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3257         * modules/unistd-safer-tests (Depends-on): Likewise.
3258         * modules/dup2-tests (Depends-on): Likewise.
3259         * modules/dup3-tests (Depends-on): Likewise.
3260         * modules/fcntl-tests (Depends-on): Likewise.
3261         * modules/pipe-posix-tests (Depends-on): Likewise.
3262         * modules/pipe2-tests (Depends-on): Likewise.
3263
3264 2011-09-23  Bruno Haible  <bruno@clisp.org>
3265
3266         dup2: Make code more maintainable.
3267         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3268         (rpl_dup2): Use it.
3269         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3270         * modules/dup2 (configure.ac): Invoke it.
3271         Reported by Paul Eggert.
3272
3273 2011-09-23  Bruno Haible  <bruno@clisp.org>
3274
3275         msvc-inval: Fix compilation error.
3276         * lib/msvc-inval.h: Include <excpt.h>.
3277
3278 2011-09-23  Bruno Haible  <bruno@clisp.org>
3279
3280         mkdir: Tweak for MSVC 9.
3281         * lib/sys_stat.in.h: Update comments.
3282         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3283
3284         Tests for module 'chdir'.
3285         * modules/chdir-tests: New file.
3286         * tests/test-chdir.c: New file.
3287
3288         New module 'chdir'.
3289         * modules/chdir: New file.
3290         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3291         (chdir): New declaration.
3292         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3293         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3294         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3295         * tests/test-unistd-c++.cc: Check signature of chdir.
3296         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3297         * modules/chdir-long (Depends-on): Add chdir.
3298         * modules/fchdir (Depends-on): Likewise.
3299         * modules/rename (Depends-on): Likewise.
3300         * modules/savewd (Depends-on): Likewise.
3301
3302         rmdir: Support for mingw, MSVC 9.
3303         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3304         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3305
3306         getcwd: Tweak for MSVC 9.
3307         * lib/unistd.in.h: Update comments.
3308         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3309
3310 2011-09-22  Bruno Haible  <bruno@clisp.org>
3311
3312         strerror_r-posix: Avoid a link error on MSVC.
3313         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3314         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3315
3316 2011-09-22  Bruno Haible  <bruno@clisp.org>
3317
3318         select: Avoid link errors on MSVC.
3319         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3320         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3321         * modules/pselect (Link): Likewise.
3322         * NEWS: Mention the change.
3323         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3324         test-select-stdin against $(LIB_SELECT).
3325         * modules/pselect-tests (Makefile.am): Link test-pselect against
3326         $(LIB_SELECT).
3327
3328 2011-09-22  Bruno Haible  <bruno@clisp.org>
3329
3330         select: Avoid compilation error on MSVC.
3331         * lib/select.c: Don't include <stdbool.h>.
3332
3333 2011-09-21  Bruno Haible  <bruno@clisp.org>
3334
3335         Consolidate all uses of PATH_MAX in *.m4 files.
3336         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3337         macros.
3338         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3339         and gl_PATHMAX_SNIPPET.
3340         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3341         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3342         * modules/chdir-long (Files): Add m4/pathmax.m4.
3343         * modules/getcwd (Files): Likewise.
3344
3345 2011-09-21  Bruno Haible  <bruno@clisp.org>
3346
3347         ftruncate: Un-deprecate, concentrate on Win32 support.
3348         * modules/ftruncate (Status, Notice): Remove sections.
3349         (Depends-on): Add largefile.
3350         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3351         non-mingw platforms.
3352         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3353         include <io.h>.
3354         * modules/perror-tests (Depends-on): Add ftruncate.
3355         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3356         'ftruncate' module.
3357
3358 2011-09-21  Bruno Haible  <bruno@clisp.org>
3359
3360         Add dependencies to new dirent related modules.
3361         * modules/opendir (Depends-on): Add closedir.
3362         * modules/getcwd (Depends-on): Add opendir, closedir.
3363         * modules/dirent-safer-tests (Depends-on): Likewise.
3364         * modules/fdopendir-tests (Depends-on): Likewise.
3365         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3366         * modules/renameat-tests (Depends-on): Likewise.
3367
3368 2011-09-21  Bruno Haible  <bruno@clisp.org>
3369
3370         opendir: Avoid compilation error on mingw.
3371         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3372         * modules/opendir (Depends-on): Add unistd.
3373
3374 2011-09-21  Bruno Haible  <bruno@clisp.org>
3375
3376         ftruncate tests: Avoid a test failure on mingw.
3377         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3378
3379 2011-09-21  Bruno Haible  <bruno@clisp.org>
3380
3381         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3382         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3383         native Windows.
3384
3385 2011-09-21  Bruno Haible  <bruno@clisp.org>
3386
3387         New module 'fdopen'.
3388         * lib/stdio.in.h (fdopen): New declaration.
3389         * lib/fdopen.c: New file.
3390         * m4/fdopen.m4: New file.
3391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3392         REPLACE_FDOPEN.
3393         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3394         REPLACE_FDOPEN.
3395         * modules/fdopen: New file.
3396         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3397         * tests/test-stdio-c++.cc: Check signature of fdopen.
3398         * doc/posix-functions/fdopen.texi: Mention the new module.
3399
3400 2011-09-21  Bruno Haible  <bruno@clisp.org>
3401
3402         unlockpt tests: Avoid test failure on NetBSD 5.1.
3403         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3404         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3405
3406 2011-09-21  Bruno Haible  <bruno@clisp.org>
3407
3408         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3409         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3410         * tests/test-getlogin_r.c (main): Likewise.
3411
3412 2011-09-20  Bruno Haible  <bruno@clisp.org>
3413
3414         time tests: Don't require pid_t.
3415         * doc/posix-headers/time.texi: Revert last change.
3416         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3417         * tests/test-time.c: Comment out the check for pid_t.
3418
3419 2011-09-20  Bruno Haible  <bruno@clisp.org>
3420
3421         fsync tests: Avoid a test failure on mingw.
3422         * tests/test-fsync.c (main): Allow a failure with EIO.
3423
3424 2011-09-20  Bruno Haible  <bruno@clisp.org>
3425
3426         euidaccess: Update comments.
3427         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3428
3429 2011-09-20  Bruno Haible  <bruno@clisp.org>
3430
3431         Ensure EBADF returns for socket functions on mingw.
3432         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3433         descriptor is invalid.
3434         * lib/bind.c (rpl_bind): Likewise.
3435         * lib/connect.c (rpl_connect): Likewise.
3436         * lib/getpeername.c (rpl_getpeername): Likewise.
3437         * lib/getsockname.c (rpl_getsockname): Likewise.
3438         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3439         * lib/listen.c (rpl_listen): Likewise.
3440         * lib/recv.c (rpl_recv): Likewise.
3441         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3442         * lib/send.c (rpl_send): Likewise.
3443         * lib/sendto.c (rpl_sendto): Likewise.
3444         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3445         * lib/shutdown.c (rpl_shutdown): Likewise.
3446
3447 2011-09-20  Bruno Haible  <bruno@clisp.org>
3448
3449         select tests: EBADF tests.
3450         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3451         test_bad_fd): New functions.
3452         (test_function): Invoke also test_bad_fd.
3453
3454 2011-09-20  Bruno Haible  <bruno@clisp.org>
3455
3456         Tests for module 'posix_spawn_file_actions_addopen.
3457         * modules/posix_spawn_file_actions_addopen-tests: New file.
3458         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3459
3460         Tests for module 'posix_spawn_file_actions_adddup2'.
3461         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3462         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3463
3464         Tests for module 'posix_spawn_file_actions_addclose'.
3465         * modules/posix_spawn_file_actions_addclose-tests: New file.
3466         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3467
3468 2011-09-20  Bruno Haible  <bruno@clisp.org>
3469
3470         Tests for module 'unlockpt'.
3471         * modules/unlockpt-tests: New file.
3472         * tests/test-unlockpt.c: New file.
3473         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3474
3475         Tests for module 'grantpt'.
3476         * modules/grantpt-tests: New file.
3477         * tests/test-grantpt.c: New file.
3478         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3479
3480 2011-09-20  Bruno Haible  <bruno@clisp.org>
3481
3482         freopen tests: EBADF tests.
3483         * tests/test-freopen.c: Include errno.h, unistd.h.
3484         (main): Add tests for EBADF, commented out for the moment.
3485
3486         fclose tests: EBADF tests.
3487         * tests/test-fclose.c (main): Add tests for EBADF.
3488
3489         fflush tests: EBADF tests.
3490         * tests/test-fflush.c: Include errno.h, macros.h.
3491         (main): Add tests for EBADF.
3492
3493         ftello tests: EBADF tests.
3494         * tests/test-ftello4.sh: New file.
3495         * tests/test-ftello4.c: New file.
3496         * modules/ftello-tests (Files): Add them.
3497         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3498
3499         fseeko tests: EBADF tests.
3500         * tests/test-fseeko4.sh: New file.
3501         * tests/test-fseeko4.c: New file.
3502         * modules/fseeko-tests (Files): Add them.
3503         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3504
3505         Tests for function fputc().
3506         * modules/fputc-tests: New file.
3507         * tests/test-fputc.c: New file.
3508         * modules/stdio-tests (Depends-on): Add fputc-tests.
3509
3510         Tests for function fgetc().
3511         * modules/fgetc-tests: New file.
3512         * tests/test-fgetc.c: New file.
3513         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3514
3515         Tests for function fdopen().
3516         * modules/fdopen-tests: New file.
3517         * tests/test-fdopen.c: New file.
3518         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3519
3520         Tests for module 'vdprintf'.
3521         * modules/vdprintf-tests: New file.
3522         * tests/test-vdprintf.c: New file.
3523
3524         Tests for module 'dprintf'.
3525         * modules/dprintf-tests: New file.
3526         * tests/test-dprintf.c: New file.
3527
3528 2011-09-20  Bruno Haible  <bruno@clisp.org>
3529
3530         Tests for module 'ioctl'.
3531         * modules/ioctl-tests: New file.
3532         * tests/test-ioctl.c: New file.
3533
3534 2011-09-20  Bruno Haible  <bruno@clisp.org>
3535
3536         fcntl tests: EBADF tests.
3537         * tests/test-fcntl.c (main): Add more tests for EBADF.
3538
3539 2011-09-20  Bruno Haible  <bruno@clisp.org>
3540
3541         utimensat tests: EBADF tests.
3542         * tests/test-utimensat.c (main): Add tests for EBADF.
3543
3544         renameat tests: EBADF tests.
3545         * tests/test-renameat.c (main): Add tests for EBADF.
3546
3547         mkfifoat tests: EBADF tests.
3548         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3549
3550         readlinkat tests: EBADF tests.
3551         * tests/test-readlinkat.c (main): Add tests for EBADF.
3552
3553         symlinkat tests: EBADF tests.
3554         * tests/test-symlinkat.c (main): Add tests for EBADF.
3555
3556         linkat tests: EBADF tests.
3557         * tests/test-linkat.c (main): Add tests for EBADF.
3558
3559         Tests for module 'faccessat'.
3560         * modules/faccessat-tests: New file.
3561         * tests/test-faccessat.c: New file.
3562
3563         fdopendir tests: EBADF tests.
3564         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3565
3566         openat tests: EBADF tests.
3567         * tests/test-fchownat.c (main): Add tests for EBADF.
3568         * tests/test-fstatat.c (main): Likewise.
3569         * tests/test-mkdirat.c (main): Likewise.
3570         * tests/test-openat.c (main): Likewise.
3571         * tests/test-unlinkat.c (main): Likewise.
3572         * tests/test-fchmodat.c: New file.
3573         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3574         (Makefile.am): Also run 'test-fchmodat'.
3575
3576 2011-09-20  Bruno Haible  <bruno@clisp.org>
3577
3578         utimens, futimens, fdutimensat tests: EBADF tests.
3579         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3580
3581         Tests for function fstat().
3582         * modules/fstat-tests: New file.
3583         * tests/test-fstat.c: New file.
3584         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3585
3586 2011-09-20  Bruno Haible  <bruno@clisp.org>
3587
3588         test-ttyname_r tests: EBADF tests.
3589         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3590
3591         Tests for module 'isatty'.
3592         * modules/isatty-tests: New file.
3593         * tests/test-isatty.c: New file.
3594
3595         Tests for module 'write'.
3596         * modules/write-tests: New file.
3597         * tests/test-write.c: New file.
3598
3599         Tests for module 'read'.
3600         * modules/read-tests: New file.
3601         * tests/test-read.c: New file.
3602
3603         pwrite tests: EBADF tests.
3604         * tests/test-pwrite.c (main): Add tests for EBADF.
3605
3606         pread tests: EBADF tests.
3607         * tests/test-pread.c (main): Add tests for EBADF.
3608
3609         lseek tests: EBADF tests.
3610         * tests/test-lseek.c (main): Add more tests for EBADF.
3611
3612         Tests for module 'ftruncate'.
3613         * modules/ftruncate-tests: New file.
3614         * tests/test-ftruncate.sh: New file.
3615         * tests/test-ftruncate.c: New file.
3616
3617         fsync tests: EBADF tests.
3618         * tests/test-fsync.c (main): Add more tests for EBADF.
3619
3620         fdatasync tests: EBADF tests.
3621         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3622
3623         Tests for module 'fchown'.
3624         * modules/fchown-tests: New file.
3625         * tests/test-fchown.c: New file.
3626
3627         Tests for module 'fchmod'.
3628         * modules/fchmod-tests: New file.
3629         * tests/test-fchmod.c: New file.
3630
3631         fchdir tests: EBADF tests.
3632         * tests/test-fchdir.c (main): Add more tests for EBADF.
3633
3634         dup2 tests: EBADF tests.
3635         * tests/test-dup2.c (main): Add more tests for EBADF.
3636
3637         Tests for module 'dup'.
3638         * modules/dup-tests: New file.
3639         * tests/test-dup.c: New file.
3640
3641         Tests for module 'close'.
3642         * modules/close-tests: New file.
3643         * tests/test-close.c: New file.
3644
3645 2011-09-20  Bruno Haible  <bruno@clisp.org>
3646
3647         Tests for module 'shutdown'.
3648         * modules/shutdown-tests: New file.
3649         * tests/test-shutdown.c: New file.
3650
3651         Tests for module 'setsockopt'.
3652         * modules/setsockopt-tests: New file.
3653         * tests/test-setsockopt.c: New file.
3654
3655         Tests for module 'sendto'.
3656         * modules/sendto-tests: New file.
3657         * tests/test-sendto.c: New file.
3658
3659         Tests for module 'send'.
3660         * modules/send-tests: New file.
3661         * tests/test-send.c: New file.
3662
3663         Tests for module 'recvfrom'.
3664         * modules/recvfrom-tests: New file.
3665         * tests/test-recvfrom.c: New file.
3666
3667         Tests for module 'recv'.
3668         * modules/recv-tests: New file.
3669         * tests/test-recv.c: New file.
3670
3671         Tests for module 'listen'.
3672         * modules/listen-tests: New file.
3673         * tests/test-listen.c: New file.
3674
3675         Tests for module 'getsockopt'.
3676         * modules/getsockopt-tests: New file.
3677         * tests/test-getsockopt.c: New file.
3678
3679         Tests for module 'getsockname'.
3680         * modules/getsockname-tests: New file.
3681         * tests/test-getsockname.c: New file.
3682
3683         Tests for module 'getpeername'.
3684         * modules/getpeername-tests: New file.
3685         * tests/test-getpeername.c: New file.
3686
3687         Tests for module 'connect'.
3688         * modules/connect-tests: New file.
3689         * tests/test-connect.c: New file.
3690
3691         Tests for module 'bind'.
3692         * modules/bind-tests: New file.
3693         * tests/test-bind.c: New file.
3694
3695         accept4 tests: Fix for native Windows.
3696         * tests/test-accept4.c: Include sockets.h.
3697         (main): Invoke gl_sockets_startup.
3698         * modules/accept4-tests (Depends-on): Add sockets.
3699
3700         accept tests: Fix for native Windows.
3701         * tests/test-accept.c: Include sockets.h.
3702         (main): Invoke gl_sockets_startup.
3703         * modules/accept-tests (Depends-on): Add sockets.
3704
3705 2011-09-19  Bruno Haible  <bruno@clisp.org>
3706
3707         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3708         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3709         do...while(0).
3710         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3711         Suggested by Paul Eggert.
3712
3713 2011-09-19  Bruno Haible  <bruno@clisp.org>
3714
3715         sched: Ensure pid_t is defined.
3716         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3717         not define pid_t.
3718         * lib/sched.in.h: Include <sys/types.h>.
3719         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3720         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3721
3722 2011-09-19  Bruno Haible  <bruno@clisp.org>
3723
3724         msvc-inval: Ensure the entire expansion is a single statement.
3725         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3726         of braces.
3727
3728 2011-09-19  Jim Meyering  <meyering@redhat.com>
3729
3730         tests: use printf, not echo in init.sh's warn_ function
3731         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3732         misbehave when given strings containing a backslash or starting
3733         with e.g., -n.  James Youngman suggested setting IFS.
3734
3735 2011-09-19  Eric Blake  <eblake@redhat.com>
3736
3737         futimens: enhance test
3738         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3739         closed non-negative fd.
3740
3741         date: accept 'hence' as opposite of 'ago'
3742         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3743         * tests/test-parse-datetime.c (main): Enhance test.
3744         Suggested by Jesse Wilson.
3745
3746 2011-09-19  Jim Meyering  <meyering@redhat.com>
3747
3748         getcwd: don't fail in a deep directory on a system without openat
3749         Before this change, getcwd would fail when called from a directory
3750         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3751         the non-openat implementation used "..", "../..", "../../..", etc.
3752         to access ancestor directories.  With too many, that string would
3753         be longer than PATH_MAX.
3754         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3755         using gnulib's openat replacement.
3756         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3757         we're using the replacement function.
3758
3759 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3760
3761         maint.mk: avoid warnings from perl about missing files
3762         * top/maint.mk (def_sym_regex): Ignore files listed in
3763         $(gl_other_headers_) that do not exist, say because a project
3764         does not use a corresponding module.
3765
3766 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3767
3768         stat: use pathmax.h only if needed
3769         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3770         This is better for Emacs, which does not have a mingw port and
3771         therefore can avoid the pathmax module.
3772
3773         utimens: remove dependency on dup2
3774         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3775         to work around the Linux kernel bug.
3776         * modules/utimens (Depends-on): Remove dup2.
3777
3778 2011-09-18  Bruno Haible  <bruno@clisp.org>
3779
3780         inet_ntop, inet_pton: Look for it also in libresolv.
3781         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3782         libnsl, search for it in libresolv.
3783         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3784         Needed on Solaris 7.
3785
3786 2011-09-18  Bruno Haible  <bruno@clisp.org>
3787
3788         accept, accept4 tests: Avoid link error on Solaris.
3789         * modules/accept-tests (Makefile.am): Link test-accept against
3790         $(LIBSOCKET).
3791         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3792         $(LIBSOCKET).
3793
3794         accept4: Avoid link error on Solaris.
3795         * modules/accept4 (Link): New section.
3796
3797         socket functions: Avoid link errors on Solaris.
3798         * modules/accept (Depends-on): Add socketlib.
3799         (Link): New section.
3800         * modules/bind (Depends-on): Add socketlib.
3801         (Link): New section.
3802         * modules/connect (Depends-on): Add socketlib.
3803         (Link): New section.
3804         * modules/getpeername (Depends-on): Add socketlib.
3805         (Link): New section.
3806         * modules/getsockname (Depends-on): Add socketlib.
3807         (Link): New section.
3808         * modules/getsockopt (Depends-on): Add socketlib.
3809         (Link): New section.
3810         * modules/listen (Depends-on): Add socketlib.
3811         (Link): New section.
3812         * modules/recv (Depends-on): Add socketlib.
3813         (Link): New section.
3814         * modules/recvfrom (Depends-on): Add socketlib.
3815         (Link): New section.
3816         * modules/send (Depends-on): Add socketlib.
3817         (Link): New section.
3818         * modules/sendto (Depends-on): Add socketlib.
3819         (Link): New section.
3820         * modules/setsockopt (Depends-on): Add socketlib.
3821         (Link): New section.
3822         * modules/shutdown (Depends-on): Add socketlib.
3823         (Link): New section.
3824         * modules/socket (Depends-on): Add socketlib.
3825         (Link): New section.
3826
3827 2011-09-18  Bruno Haible  <bruno@clisp.org>
3828
3829         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3830         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3831         than 5 seconds.
3832         * modules/ptsname-tests (configure.ac): Test for alarm.
3833
3834 2011-09-18  Bruno Haible  <bruno@clisp.org>
3835
3836         posix_spawn_file_actions_add*: Fix module dependencies.
3837         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3838         posix_spawn_file_actions_init.
3839         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3840         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3841
3842 2011-09-18  Bruno Haible  <bruno@clisp.org>
3843
3844         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3845         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3846         * tests/test-renameat.c (main): Likewise.
3847
3848 2011-09-18  Bruno Haible  <bruno@clisp.org>
3849
3850         Tests for module 'accept4'.
3851         * modules/accept4-tests: New file.
3852         * tests/test-accept4.c: New file.
3853
3854 2011-09-18  Bruno Haible  <bruno@clisp.org>
3855
3856         Tests for module 'accept'.
3857         * modules/accept-tests: New file.
3858         * tests/test-accept.c: New file.
3859
3860 2011-09-18  Bruno Haible  <bruno@clisp.org>
3861
3862         dup2: Support for MSVC.
3863         * lib/dup2.c: Include msvc-inval.h.
3864         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3865         _get_osfhandle calls.
3866         * modules/dup2 (Depends-on): Add msvc-inval.
3867         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3868
3869         New module 'msvc-inval'.
3870         * lib/msvc-inval.h: New file.
3871         * lib/msvc-inval.c: New file.
3872         * m4/msvc-inval.m4: New file.
3873         * modules/msvc-inval: New file.
3874
3875 2011-09-17  Bruno Haible  <bruno@clisp.org>
3876
3877         Tests for module 'pclose'.
3878         * modules/pclose-tests: New file.
3879
3880         New module 'pclose'.
3881         * lib/stdio.in.h (pclose): New declaration.
3882         * lib/pclose.c: New file.
3883         * m4/pclose.m4: New file.
3884         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3885         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3886         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3887         * modules/pclose: New file.
3888         * modules/popen-tests (Depends-on): Add pclose.
3889         * modules/popen-safer-tests (Depends-on): Likewise.
3890         * doc/posix-functions/pclose.texi: Mention the new module.
3891
3892 2011-09-17  Bruno Haible  <bruno@clisp.org>
3893
3894         popen: Support for MSVC.
3895         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3896         * lib/popen.c (popen): Provide alternate definition for native Windows.
3897         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3898         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3899         * modules/popen (Depends-on, configure.ac): Update condition.
3900         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3901         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3902         fixed.
3903
3904 2011-09-17  Bruno Haible  <bruno@clisp.org>
3905
3906         isnanl, isnand, isnanf: Work around MSVC bug.
3907         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3908
3909 2011-09-17  Bruno Haible  <bruno@clisp.org>
3910
3911         sys_socket tests: Fix recent mistake.
3912         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3913
3914 2011-09-17  Bruno Haible  <bruno@clisp.org>
3915
3916         putenv: Support for MSVC.
3917         * modules/putenv (Depends-on): Add environ.
3918         * lib/putenv.c (environ): Disable declaration.
3919         * lib/unistd.in.h: Update comment.
3920
3921 2011-09-17  Bruno Haible  <bruno@clisp.org>
3922
3923         math: Avoid macro redefinition warnings on MSVC.
3924         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3925         Undefine before redefining.
3926
3927 2011-09-17  Bruno Haible  <bruno@clisp.org>
3928
3929         doc: Mention functions which are declared as macros.
3930         * doc/posix-functions/*[fl].texi: Mention that some functions are
3931         defined as macros with arguments only.
3932
3933 2011-09-17  Bruno Haible  <bruno@clisp.org>
3934
3935         Add dependencies to new dirent related modules.
3936         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3937         * modules/fts (Depends-on): Likewise.
3938         * modules/glob (Depends-on): Likewise.
3939         * modules/savedir (Depends-on): Likewise.
3940         * modules/scandir (Depends-on): Likewise.
3941         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3942         * modules/fdopendir (Depends-on): Add opendir.
3943
3944 2011-09-17  Bruno Haible  <bruno@clisp.org>
3945
3946         inet_pton: Support for MSVC on Windows Vista or newer.
3947         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3948         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3949         HAVE_DECL_INET_PTON is defined.
3950         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3951         On platforms with <winsock2.h>, test whether inet_pton is declared in
3952         <ws2tcpip.h>. If so, arrange to replace it.
3953         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3954         REPLACE_INET_PTON.
3955         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3956         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3957         (Depends-on, configure.ac): Update condition.
3958         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3959
3960 2011-09-17  Bruno Haible  <bruno@clisp.org>
3961
3962         inet_ntop: Support for MSVC on Windows Vista or newer.
3963         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3964         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3965         HAVE_DECL_INET_NTOP is defined.
3966         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3967         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3968         <ws2tcpip.h>. If so, arrange to replace it.
3969         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3970         REPLACE_INET_NTOP.
3971         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3972         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3973         (Depends-on, configure.ac): Update condition.
3974         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3975
3976 2011-09-16  Eric Blake  <eblake@redhat.com>
3977
3978         test-fsync: yet another enhancement
3979         * tests/test-fsync.c (main): Also test behavior on read-only text
3980         file.
3981
3982 2011-09-16  Bruno Haible  <bruno@clisp.org>
3983
3984         Enhance fsync, fdatasync tests.
3985         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3986         * tests/test-fdatasync.c (main): Likewise.
3987
3988 2011-09-16  Bruno Haible  <bruno@clisp.org>
3989
3990         Support for MSVC compiler: Ensure mode_t gets defined.
3991         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3992         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3993         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3994         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3995         * tests/test-fcntl-h.c: Check that mode_t is defined.
3996         * tests/test-sys_stat.c: Likewise.
3997         * tests/test-sys_types.c: Likewise.
3998         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3999         * doc/posix-headers/sys_stat.texi: Likewise.
4000         * doc/posix-headers/sys_types.texi: Likewise.
4001
4002 2011-09-16  Bruno Haible  <bruno@clisp.org>
4003
4004         sys_stat: Support for MSVC.
4005         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4006         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4007         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4008         MSVC.
4009
4010 2011-09-16  Bruno Haible  <bruno@clisp.org>
4011
4012         Support for MSVC compiler: Ensure off_t gets defined.
4013         * lib/unistd.in.h: Include <sys/types.h>.
4014         * tests/test-fcntl-h.c: Check that off_t is defined.
4015         * tests/test-sys_stat.c: Likewise.
4016         * tests/test-sys_types.c: Likewise.
4017
4018 2011-09-16  Eric Blake  <eblake@redhat.com>
4019
4020         fdatasync: port to Solaris
4021         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4022         * modules/fdatasync (Link): Document it.
4023         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4024
4025         fdatasync: port to MacOS X 10.7
4026         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4027         declared.
4028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4029         * modules/unistd (Makefile.am): Substitute it.
4030         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4031         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4032
4033         fdatasync: minor improvements
4034         * modules/fdatasync (Depends-on): Add condition for fsync.
4035         * lib/fdatasync.c (fdatasync): Add comment.
4036         * tests/test-unistd-c++.cc: Test fdatasync.
4037
4038         unistd: update refs to newer POSIX
4039         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4040         Suggested by Bruno Haible.
4041
4042         fdatasync: new module
4043         * modules/fsync (Description): Document difference to fdatasync.
4044         * modules/fdatasync: New module.
4045         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4046         * lib/fdatasync.c (fdatasync): Likewise.
4047         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4048         defaults.
4049         * modules/unistd (Makefile.am): Set witnesses.
4050         * lib/unistd.in.h (fdatasync): Declare.
4051         * MODULES.html.sh: Document it.
4052         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4053         * modules/fdatasync-tests: New test.
4054         * tests/test-fdatasync.c: Likewise.
4055
4056 2011-09-16  Eric Blake  <eblake@redhat.com>
4057
4058         test-fsync: enhance tests
4059         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4060         * tests/test-fsync.c (main): Enhance test.
4061
4062 2011-09-15  Bruno Haible  <bruno@clisp.org>
4063
4064         Support for MSVC compiler: Ensure ssize_t gets defined.
4065         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4066         * doc/posix-headers/stdio.texi: Likewise.
4067         * modules/stdio (Depends-on): Add ssize_t.
4068         * modules/sys_socket (Depends-on): Likewise.
4069         * modules/sys_types (Depends-on): Likewise.
4070         * modules/sys_uio (Depends-on): Likewise.
4071         * modules/unistd (Depends-on): Likewise.
4072         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4073         * tests/test-sys_types.c: Check that ssize_t is defined.
4074
4075 2011-09-14  Bruno Haible  <bruno@clisp.org>
4076
4077         Avoid using #, the m4 comment starter character, near brackets.
4078         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4079         delimiter character in sed expressions.
4080         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4081         Suggested by Eric Blake.
4082
4083         Properly quote AC_CHECK_DECLS' 4th argument.
4084         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4085         argument.
4086         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4087         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4088         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4089         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4090         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4091         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4092         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4093         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4094         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4095         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4096         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4097         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4098         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4099         * m4/isinf.m4 (gl_ISINF): Likewise.
4100         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4101         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4102         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4103         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4104         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4105         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4106         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4107         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4108         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4109         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4110         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4111         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4112         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4113         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4114         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4115         Reported by Eric Blake.
4116
4117         Properly quote AC_CHECK_DECL's 4th argument.
4118         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4119         argument.
4120         * m4/argp.m4 (gl_ARGP): Likewise.
4121         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4122         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4123         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4124         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4125         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4126         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4127         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4128         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4129         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4130         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4131         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4132         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4133         Reported by Eric Blake.
4134
4135 2011-09-14  Eric Blake  <eblake@redhat.com>
4136
4137         opendir: avoid compile warning
4138         * lib/opendir.c (includes): Always include errno.h.
4139         Reported by Tatsuro MATSUOKA.
4140
4141 2011-09-14  Jim Meyering  <meyering@redhat.com>
4142
4143         maint.mk: sc_tight_scope: propagate failure from sub-make
4144         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4145         Reported by Martin von Gagern.
4146
4147 2011-09-13  Bruno Haible  <bruno@clisp.org>
4148
4149         tempname: Support for MSVC.
4150         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4151         MSVC.
4152         * modules/tempname (Depends-on): Add fcntl-h.
4153
4154 2011-09-13  Bruno Haible  <bruno@clisp.org>
4155
4156         sys_time: Support for MSVC.
4157         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4158         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4159         include <winsock2.h>.
4160         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4161         function declarations that collide with POSIX.
4162         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4163         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4164
4165 2011-09-13  Bruno Haible  <bruno@clisp.org>
4166
4167         stat: Support for MSVC.
4168         * lib/stat.c: Include pathmax.h.
4169         * modules/stat (Depends-on): Add pathmax.
4170
4171         pathmax: Support for native Windows.
4172         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4173
4174 2011-09-12  Bruno Haible  <bruno@clisp.org>
4175
4176         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4177         * lib/dirent.in.h (struct dirent): New type.
4178         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4179         DT_WHT): New macros.
4180         (DIR): New type.
4181         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4182         (readdir, rewinddir): New declarations.
4183         * lib/dirent-private.h: New file.
4184         * lib/opendir.c: New file.
4185         * lib/readdir.c: New file.
4186         * lib/rewinddir.c: New file.
4187         * lib/closedir.c: New file.
4188         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4189         * m4/opendir.m4: New file.
4190         * m4/readdir.m4: New file.
4191         * m4/rewinddir.m4: New file.
4192         * m4/closedir.m4: New file.
4193         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4194         REPLACE_CLOSEDIR here.
4195         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4196         readdir, rewinddir are declared.
4197         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4198         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4199         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4200         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4201         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4202         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4203         * modules/opendir: New file.
4204         * modules/readdir: New file.
4205         * modules/rewinddir: New file.
4206         * modules/closedir: New file.
4207         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4208         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4209         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4210         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4211         * NEWS: Mention the 'fchdir' change.
4212
4213 2011-09-11  Bruno Haible  <bruno@clisp.org>
4214
4215         asm-underscore.m4: Support for MSVC.
4216         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4217         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4218
4219 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4220
4221         Doc about crypt functions.
4222         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4223         needing for _GNU_SOURCE to get crypt.
4224         * doc/posix-functions/encrypt.texi: Likewise.
4225         * doc/posix-functions/setkey.texi: Likewise.
4226
4227 2011-09-11  Bruno Haible  <bruno@clisp.org>
4228
4229         doc: Update regarding MSVC 9.
4230         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4231         tested".
4232         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4233         * doc/posix-headers/*.texi: Likewise.
4234         * doc/pastposix-functions/*.texi: Likewise.
4235         * doc/glibc-functions/*.texi: Likewise.
4236         * doc/glibc-headers/*.texi: Likewise.
4237
4238 2011-09-11  Bruno Haible  <bruno@clisp.org>
4239
4240         unistd et al.: Don't assume <unistd.h> exists.
4241         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4242         does not exist.
4243         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4244         exist. But include <stdlib.h>.
4245         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4246         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4247         symlink() does not exist.
4248         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4249         include <io.h> instead.
4250         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4251         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4252         include <direct.h> instead.
4253         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4254         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4255         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4256         <io.h> instead.
4257         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4258         correctly if the system does not have hard links.
4259         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4260         <direct.h> instead.
4261         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4262         it when looking for function declarations.
4263         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4264         <direct.h> and <io.h> instead.
4265         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4266
4267 2011-09-11  Bruno Haible  <bruno@clisp.org>
4268
4269         strcase: Support for MSVC.
4270         * modules/strcase (Status, Notice): Remove obsoletion mark.
4271         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4272         * doc/posix-functions/strncasecmp.texi: Likewise.
4273
4274         strings: Don't assume <strings.h> exists.
4275         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4276         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4277         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4278         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4279
4280 2011-09-11  Bruno Haible  <bruno@clisp.org>
4281
4282         dirent: Don't assume <dirent.h> exists.
4283         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4284         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4285         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4286         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4287
4288 2011-09-11  Bruno Haible  <bruno@clisp.org>
4289
4290         Fix wint_t on MSVC.
4291         * lib/wchar.in.h (wint_t): On MSVC, override it.
4292         * lib/wctype.in.h (wint_t): Likewise.
4293         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4294         MSVC.
4295         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4296         * doc/posix-headers/wctype.texi: Likewise.
4297
4298 2011-09-11  Bruno Haible  <bruno@clisp.org>
4299
4300         sys_types: Fix typo.
4301         * lib/sys_types.in.h: Fix typo in comment.
4302         Reported by Paul Eggert.
4303
4304         Support for MSVC compiler: Ensure size_t gets defined.
4305         * modules/strings (Depends-on): Add 'sys_types'.
4306         * modules/sys_uio (Depends-on): Likewise.
4307         * lib/sys_uio.in.h: Update comment.
4308
4309         C++ tests for module 'sys_types'.
4310         * modules/sys_types-c++-tests: New file.
4311         * tests/test-sys_types-c++.cc: New file.
4312
4313         Tests for module 'sys_types'.
4314         * modules/sys_types-tests: New file.
4315         * tests/test-sys_types.c: New file.
4316
4317         New module 'sys_types'.
4318         * lib/sys_types.in.h: New file.
4319         * m4/sys_types_h.m4: New file.
4320         * modules/sys_types: New file.
4321         * doc/posix-headers/sys_types.texi: Mention the new module and the
4322         size_t problem on MSVC 9.
4323
4324 2011-09-11  Bruno Haible  <bruno@clisp.org>
4325
4326         Support for MSVC compiler: Avoid division by a literal 0.
4327         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4328         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4329         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4330         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4331         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4332         * tests/infinity.h: New file.
4333         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4334         on MSVC.
4335         * tests/test-ceilf1.c: Include infinity.h.
4336         (main): Use Infinityf.
4337         * tests/test-ceil1.c: Include infinity.h.
4338         (main): Use Infinityd.
4339         * tests/test-ceill.c: Include infinity.h.
4340         (main): Use Infinityl.
4341         * tests/test-dprintf-posix.c: Include infinity.h.
4342         (test_function): Use Infinityd.
4343         * tests/test-floorf1.c: Include infinity.h.
4344         (main): Use Infinityf.
4345         * tests/test-floor1.c: Include infinity.h.
4346         (main): Use Infinityd.
4347         * tests/test-floorl.c: Include infinity.h.
4348         (main): Use Infinityl.
4349         * tests/test-fprintf-posix.c: Include infinity.h.
4350         (test_function): Use Infinityd.
4351         * tests/test-frexp.c: Include infinity.h.
4352         (main): Use Infinityd.
4353         * tests/test-frexpl.c: Include infinity.h.
4354         (main): Use Infinityl.
4355         * tests/test-isfinite.c: Include infinity.h.
4356         (test_isfinitef): Use Infinityf.
4357         (test_isfinited): Use Infinityd.
4358         (test_isfinitel): Use Infinityl.
4359         * tests/test-isinf.c: Include infinity.h.
4360         (test_isinff): Use Infinityf.
4361         (test_isinfd): Use Infinityd.
4362         (test_isinfl): Use Infinityl.
4363         * tests/test-isnan.c: Include infinity.h.
4364         (test_float): Use Infinityf.
4365         (test_double): Use Infinityd.
4366         (test_long_double): Use Infinityl.
4367         * tests/test-isnanf.h: Include infinity.h.
4368         (main): Use Infinityf.
4369         * tests/test-isnand.h: Include infinity.h.
4370         (main): Use Infinityd.
4371         * tests/test-isnanl.h: Include infinity.h.
4372         (main): Use Infinityl.
4373         * tests/test-ldexpl.c: Include infinity.h.
4374         (main): Use Infinityl.
4375         * tests/test-printf-posix.h: Include infinity.h.
4376         (test_function): Use Infinityd.
4377         * tests/test-roundf1.c: Include infinity.h.
4378         (main): Use Infinityf.
4379         * tests/test-round1.c: Include infinity.h.
4380         (main): Use Infinityd.
4381         * tests/test-roundl.c: Include infinity.h.
4382         (main): Use Infinityl.
4383         * tests/test-signbit.c: Include infinity.h.
4384         (test_signbitf): Use Infinityf.
4385         (test_signbitd): Use Infinityd.
4386         (test_signbitl): Use Infinityl.
4387         * tests/test-snprintf-posix.h: Include infinity.h.
4388         (test_function): Use Infinityd, Infinityl.
4389         * tests/test-sprintf-posix.h: Include infinity.h.
4390         (test_function): Use Infinityd, Infinityl.
4391         * tests/test-truncf1.c: Include infinity.h.
4392         (main): Use Infinityf.
4393         * tests/test-trunc1.c: Include infinity.h.
4394         (main): Use Infinityd.
4395         * tests/test-truncl.c: Include infinity.h.
4396         (main): Use Infinityl.
4397         * tests/test-vasnprintf-posix.c: Include infinity.h.
4398         (test_function): Use Infinityd, Infinityl.
4399         * tests/test-vasprintf-posix.c: Include infinity.h.
4400         (test_function): Use Infinityd, Infinityl.
4401         * modules/ceilf-tests (Files): Add tests/infinity.h.
4402         * modules/ceil-tests (Files): Likewise.
4403         * modules/ceill-tests (Files): Likewise.
4404         * modules/dprintf-posix-tests (Files): Likewise.
4405         * modules/floorf-tests (Files): Likewise.
4406         * modules/floor-tests (Files): Likewise.
4407         * modules/floorl-tests (Files): Likewise.
4408         * modules/fprintf-posix-tests (Files): Likewise.
4409         * modules/frexp-tests (Files): Likewise.
4410         * modules/frexp-nolibm-tests (Files): Likewise.
4411         * modules/frexpl-tests (Files): Likewise.
4412         * modules/frexpl-nolibm-tests (Files): Likewise.
4413         * modules/isfinite-tests (Files): Likewise.
4414         * modules/isinf-tests (Files): Likewise.
4415         * modules/isnan-tests (Files): Likewise.
4416         * modules/isnanf-tests (Files): Likewise.
4417         * modules/isnanf-nolibm-tests (Files): Likewise.
4418         * modules/isnand-tests (Files): Likewise.
4419         * modules/isnand-nolibm-tests (Files): Likewise.
4420         * modules/isnanl-tests (Files): Likewise.
4421         * modules/isnanl-nolibm-tests (Files): Likewise.
4422         * modules/ldexpl-tests (Files): Likewise.
4423         * modules/printf-posix-tests (Files): Likewise.
4424         * modules/roundf-tests (Files): Likewise.
4425         * modules/round-tests (Files): Likewise.
4426         * modules/roundl-tests (Files): Likewise.
4427         * modules/signbit-tests (Files): Likewise.
4428         * modules/snprintf-posix-tests (Files): Likewise.
4429         * modules/sprintf-posix-tests (Files): Likewise.
4430         * modules/truncf-tests (Files): Likewise.
4431         * modules/trunc-tests (Files): Likewise.
4432         * modules/truncl-tests (Files): Likewise.
4433         * modules/vasnprintf-posix-tests (Files): Likewise.
4434         * modules/vasprintf-posix-tests (Files): Likewise.
4435         * modules/vdprintf-posix-tests (Files): Likewise.
4436         * modules/vfprintf-posix-tests (Files): Likewise.
4437         * modules/vprintf-posix-tests (Files): Likewise.
4438         * modules/vsnprintf-posix-tests (Files): Likewise.
4439         * modules/vsprintf-posix-tests (Files): Likewise.
4440         * modules/xprintf-posix-tests (Files): Likewise.
4441
4442 2011-09-11  Bruno Haible  <bruno@clisp.org>
4443
4444         Ensure pid_t gets defined.
4445         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4446         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4447         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4448         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4449         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4450         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4451         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4452         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4453         * tests/test-fcntl-h.c: Check that pid_t is defined.
4454         * tests/test-sched.c: Likewise.
4455         * tests/test-termios.c: Likewise.
4456         * tests/test-time.c: Likewise.
4457         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4458         * doc/posix-headers/signal.texi: Likewise.
4459         * doc/posix-headers/sys_types.texi: Likewise.
4460         * doc/posix-headers/time.texi: Likewise.
4461
4462 2011-09-11  Bruno Haible  <bruno@clisp.org>
4463
4464         acl: Fix compilation on Solaris 10 (older version).
4465         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4466         of ACE_EVERYONE.
4467         * lib/set-mode-acl.c (qset_acl): Likewise.
4468         Reported by Christian Jullien <eligis@orange.fr>.
4469
4470 2011-09-10  Bruno Haible  <bruno@clisp.org>
4471
4472         iconv, unsetenv: Add support for MSVC compiler.
4473         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4474         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4475
4476 2011-09-10  Bruno Haible  <bruno@clisp.org>
4477
4478         *printf: Add support for MSVC compiler.
4479         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4480         handles the exception caused by the %n directive. When cross-compiling,
4481         guess no on native Windows.
4482         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4483         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4484         emulate it through vsnprintf.
4485         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4486         * doc/posix-functions/dprintf.texi: Update documentation regarding
4487         MSVC 9.
4488         * doc/posix-functions/fprintf.texi: Likewise.
4489         * doc/posix-functions/printf.texi: Likewise.
4490         * doc/posix-functions/snprintf.texi: Likewise.
4491         * doc/posix-functions/sprintf.texi: Likewise.
4492         * doc/posix-functions/swprintf.texi: Likewise.
4493         * doc/posix-functions/vdprintf.texi: Likewise.
4494         * doc/posix-functions/vfprintf.texi: Likewise.
4495         * doc/posix-functions/vprintf.texi: Likewise.
4496         * doc/posix-functions/vsnprintf.texi: Likewise.
4497         * doc/posix-functions/vsprintf.texi: Likewise.
4498         * doc/glibc-functions/asprintf.texi: Likewise.
4499         * doc/glibc-functions/obstack_printf.texi: Likewise.
4500         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4501         * doc/glibc-functions/vasprintf.texi: Likewise.
4502
4503 2011-09-10  Bruno Haible  <bruno@clisp.org>
4504
4505         nocrash: Add support for native Windows.
4506         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4507
4508 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4509             Bruno Haible  <bruno@clisp.org>
4510
4511         absolute-header, include-next: Add support for MSVC compiler.
4512         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4513         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4514         directory separator in #line directives.
4515         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4516         recognize also backslash as directory separator in #line directives.
4517
4518 2011-09-08  Jim Meyering  <meyering@redhat.com>
4519
4520         maint.mk: mark the post-release commit log with "maint: " prefix
4521         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4522         one-line commit-log summary.
4523
4524 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4525             Bruno Haible  <bruno@clisp.org>
4526
4527         Doc about crypt functions.
4528         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4529         systems.
4530         * doc/posix-functions/encrypt.texi: Likewise.
4531         * doc/posix-functions/setkey.texi: Likewise.
4532
4533 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4534
4535         * lib/gc.h: Fix copyright header.
4536
4537 2011-09-07  Bruno Haible  <bruno@clisp.org>
4538
4539         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4540         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4541         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4542
4543 2011-09-07  Bruno Haible  <bruno@clisp.org>
4544
4545         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4546         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4547         * lib/freopen.c: Likewise.
4548         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4549         * lib/lstat.c: Likewise.
4550         * lib/stat.c: Likewise.
4551         * lib/open.c: Use different syntax for include of <fcntl.h>.
4552         * lib/openat.c: Include fcntl.h again, explicitly.
4553
4554 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4555
4556         parse-datetime: document the newly accepted format
4557         * doc/parse-datetime.texi (Combined date and time of day items):
4558         New section.
4559
4560 2011-09-06  Bruno Haible  <bruno@clisp.org>
4561
4562         acl: Fix a test failure on newer Solaris 10 with ZFS.
4563         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4564         ENOSYS as no ACL.
4565         Reported by Jim Meyering.
4566
4567 2011-09-06  Bruno Haible  <bruno@clisp.org>
4568
4569         acl: Update for AIX >= 5.3 with NFS.
4570         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4571         ENOSYS as no ACL.
4572
4573         acl: Fix a test failure on AIX >= 5.3 with NFS.
4574         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4575         as no ACL.
4576
4577 2011-09-06  Bruno Haible  <bruno@clisp.org>
4578
4579         acl: Fix a test failure on IRIX 6.5 with NFS.
4580         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4581         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4582         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4583         * lib/copy-acl.c (qcopy_acl): Likewise.
4584
4585 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4586
4587         openat: port to AIX 7.1 with large files
4588         AIX 7.1 does a "#define openat open64at" if large files are in use,
4589         so we can't simply #undef openat.  Use the orig_openat trick (similar
4590         to orig_open in lib/open.c) to work around the problem.  Problem
4591         reported by Kevin Brott for GNU tar, in the thread containing
4592         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4593         * lib/openat.c (__need_system_fcntl_h): Define first.
4594         Include <fcntl.h> and <sys/types.h> before undefining.
4595         (orig_openat) [HAVE_OPENAT]: New inline function.
4596         (openat) [HAVE_OPENAT]: Do not undef.
4597         (rpl_openat): Use orig_openat, not openat.
4598
4599 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4600             Bruno Haible  <bruno@clisp.org>
4601
4602         acl: Avoid errors on NonStop Kernel.
4603         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4604         ENOTSUP errors.
4605
4606 2011-09-05  Bruno Haible  <bruno@clisp.org>
4607
4608         acl: Clean up Solaris code.
4609         * lib/acl-internal.h: Remove no-op #if.
4610         * lib/file-has-acl.c: Likewise.
4611         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4612         * lib/copy-acl.c (qcopy_acl): Likewise.
4613
4614 2011-09-05  Bruno Haible  <bruno@clisp.org>
4615
4616         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4617         binaries built on the original Solaris 10.
4618         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4619         trivial.
4620
4621 2011-09-05  Bruno Haible  <bruno@clisp.org>
4622
4623         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4624         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4625         10.
4626         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4627         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4628         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4629         instead of acl_get, facl_get, acl_set, facl_set.
4630
4631 2011-09-05  Bruno Haible  <bruno@clisp.org>
4632
4633         copy-file: Try unit tests on more file systems.
4634         * tests/test-copy-file-1.sh: New file.
4635         * tests/test-copy-file-2.sh: New file.
4636         * modules/copy-file-tests (Files): Add them.
4637         (Makefile.am): Add them to TESTS.
4638
4639         acl: Try unit tests on more file systems.
4640         * tests/test-file-has-acl-1.sh: New file.
4641         * tests/test-file-has-acl-2.sh: New file.
4642         * tests/test-set-mode-acl-1.sh: New file.
4643         * tests/test-set-mode-acl-2.sh: New file.
4644         * tests/test-copy-acl-1.sh: New file.
4645         * tests/test-copy-acl-2.sh: New file.
4646         * modules/acl-tests (Files): Add them.
4647         (Makefile.am): Add them to TESTS.
4648
4649 2011-09-04  Bruno Haible  <bruno@clisp.org>
4650
4651         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4652         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4653         10.
4654         (OLD_ALLOW, OLD_DENY): New macros.
4655         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4656         ACE_ACCESS_ALLOWED_ACE_TYPE.
4657         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4658         ACE_ACCESS_DENIED_ACE_TYPE.
4659         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4660         (NEW_ACE_EXECUTE): Fix value.
4661         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4662         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4663         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4664         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4665         NEW_ACE_SYNCHRONIZE): New macros.
4666         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4667         instead of acl_fromtext, acl_set, facl_set.
4668         Fixes a coreutils/tests/cp/perm failure.
4669
4670 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4671
4672         openat: test for fstatat (..., 0) bug
4673         Further testing with tar suggests that fstatat (..., 0)
4674         does not work in general, on AIX 7.1; see
4675         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4676         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4677         replacement fstatat (which is what older AIX releases were using
4678         anyway).
4679         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4680         use is now changed to orig_fstatat.  This was probably the right
4681         thing to do anyway.
4682         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4683         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4684         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4685         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4686         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4687         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4688         if the bug is found.
4689
4690         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4691         This tests for another fstatat bug on AIX 7.1:
4692         fstatat (AT_FDCWD, ..., 0) does not work.  See
4693         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4694         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4695         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4696         (rpl_fstatat): Adjust so that it works around either (or both)
4697         bugs if present.
4698         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4699
4700 2011-09-03  Karl Berry  <karl@gnu.org>
4701
4702         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4703         in index entries.
4704
4705 2011-09-02  Bruno Haible  <bruno@clisp.org>
4706
4707         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4708         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4709         values of AR, ARFLAGS, RANLIB.
4710         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4711
4712 2011-09-02  Bruno Haible  <bruno@clisp.org>
4713
4714         Find 'ar' program that fits with --host argument.
4715         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4716
4717 2011-09-02  Bruno Haible  <bruno@clisp.org>
4718
4719         tests: init.sh: Support any non-GNU diff.
4720         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4721         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4722         Solaris 8.
4723
4724 2011-09-02  Bruno Haible  <bruno@clisp.org>
4725
4726         tests: init.sh: work also with any non-GNU diff that supports -u
4727         * tests/init.sh: Relax check for diff -u support.
4728         Rather than checking for GNU diff via --version, simply check
4729         for support for -u itself.  Useful at least on OpenBSD 4.9,
4730         AIX 7.1, IRIX 6.5, and Solaris 10.
4731
4732 2011-09-01  Bruno Haible  <bruno@clisp.org>
4733
4734         strtoimax, strtoumax: Document problem on HP-UX 11.
4735         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4736         * doc/posix-functions/strtoumax.texi: Likewise.
4737
4738 2011-09-01  Bruno Haible  <bruno@clisp.org>
4739
4740         strtoumax: Avoid link error on OSF/1 with DTK cc.
4741         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4742         defined as a function.
4743         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4744         strtoumax is defined, not whether it is declared.
4745
4746 2011-09-01  Bruno Haible  <bruno@clisp.org>
4747
4748         strtoimax: Avoid link error on OSF/1 with DTK cc.
4749         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4750         defined as a function.
4751         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4752         strtoimax is defined, not whether it is declared.
4753
4754 2011-09-01  Bruno Haible  <bruno@clisp.org>
4755
4756         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4757         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4758         as a function.
4759         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4760         whether it is declared.
4761
4762 2011-09-01  Bruno Haible  <bruno@clisp.org>
4763
4764         imaxabs: Avoid link error on OSF/1 with DTK cc.
4765         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4766         as a function.
4767         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4768         whether it is declared.
4769
4770 2011-09-01  Bruno Haible  <bruno@clisp.org>
4771
4772         Tests for module 'strtoumax'.
4773         * modules/strtoumax-tests: New file.
4774         * tests/test-strtoumax.c: New file.
4775
4776         Tests for module 'strtoimax'.
4777         * modules/strtoimax-tests: New file.
4778         * tests/test-strtoimax.c: New file.
4779
4780         Tests for module 'imaxdiv'.
4781         * modules/imaxdiv-tests: New file.
4782         * tests/test-imaxdiv.c: New file.
4783
4784         Tests for module 'imaxabs'.
4785         * modules/imaxabs-tests: New file.
4786         * tests/test-imaxabs.c: New file.
4787
4788 2011-09-01  Bruno Haible  <bruno@clisp.org>
4789
4790         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4791         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4792         pthread_create.
4793
4794 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4795
4796         openat: work around AIX 7.1 fstatat issue
4797         This should fix the problem that was not properly fixed
4798         in the previous change, dated 2011-08-30.
4799         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4800         __need_system_stat_h defined.
4801         (orig_fstatat) [HAVE_FSTATAT]: New function.
4802         (rpl_fstatat): Go back to the old way of doing things,
4803         except call orig_fstatat instead of fstatat.
4804         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4805         Remove unnecessary check whether fstatat fills in st_size etc.
4806
4807 2011-09-01  Bruno Haible  <bruno@clisp.org>
4808
4809         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4810         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4811         just include the system's header.
4812
4813 2011-08-31  Jim Meyering  <meyering@redhat.com>
4814
4815         tests: avoid spurious assertion failure in test-float.c on ppc64
4816         * tests/test-float.c (test_long_double): Comment out an assertion,
4817         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4818         with gcc-4.4.4.
4819
4820         maint: indent with spaces, not TABs
4821         I need to get in the habit of running gnulib's "make check".
4822         Both of these would have been caught.
4823         * m4/largefile.m4: Indent with spaces, not TABs.
4824         * lib/parse-datetime.y (iso_8601_time): Likewise.
4825         Spotted by Pádraig Brady.
4826
4827         test-parse-datetime.c: accommodate a relatively strict gcc warning
4828         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4829         to avoid a warning from gcc's -Werror=missing-declarations.
4830         Insert a few spaces-before-funcall-parenthesis.
4831
4832 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4833
4834         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4835         The parser now accepts ISO 8601 date-time strings with "T" as the
4836         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4837         with a space between the date and time strings.  Now it also parses
4838         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4839         variants like "2004-02-29T16:21:42.333-07:00"
4840         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4841         of day representation using the 'T' separator character.
4842         * doc/parse-datetime.texi (General date syntax): replace use of
4843         deprecated --iso-8601 option with --rfc-3339 in example of date
4844         command output formats that can be parsed.
4845         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4846         lib/parse-datetime.y.
4847         (gmt_offset): New function.
4848         (main): Add additional test cases to validate ISO8601 extended
4849         date and time of day parsing.
4850
4851 2011-08-31  Bruno Haible  <bruno@clisp.org>
4852
4853         freopen: Documentation.
4854         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4855         name.
4856         Reported by Claudio Bley <claudio.bley@gmail.com>.
4857
4858 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4859
4860         freopen: Don't crash if the filename argument is NULL.
4861         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4862         NULL.
4863
4864 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4865
4866         openat: work around AIX 7.1 fstatat bug
4867         Problem reported by Kevin Brott for GNU tar, in the thread containing
4868         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4869         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4870         FSTATAT_ST_SIZE_ETC_BROKEN.
4871         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4872         rpl_fstatat.
4873         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4874         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4875         AC_CHECK_FUNCS_ONCE for fstatat.
4876         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4877         fchmodat, mkdirat, openat and unlinkat.
4878
4879 2011-08-30  Bruno Haible  <bruno@clisp.org>
4880
4881         Avoid endless recursions if config.h includes some header files.
4882         * lib/fopen.c (__need_FILE): Define already before including config.h.
4883         * lib/freopen.c (__need_FILE): Likewise.
4884         * lib/open.c (__need_system_fcntl_h): Likewise.
4885         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4886         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4887         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4888
4889 2011-08-25  Karl Berry  <karl@gnu.org>
4890
4891         * config/srclist.txt (ylwrap): new try.
4892         * build-aux/ylwrap: new file.
4893
4894 2011-08-23  Bruno Haible  <bruno@clisp.org>
4895
4896         tmpdir: Use a good default directory on native Windows.
4897         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4898         (P_tmpdir): Default to _P_tmpdir on native Windows.
4899         (path_search): On native Windows, try the value returned by GetTempPath
4900         before trying P_tmpdir.
4901         * modules/tmpdir (Depends-on): Add pathmax.
4902         Suggested by John Darrington <john@darrington.wattle.id.au>.
4903
4904 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4905
4906         doc: fix typo in README-release
4907         * top/README-release: Capitalize first word of a sentence.
4908
4909 2011-08-19  Jim Meyering  <meyering@redhat.com>
4910
4911         fts: do not exhaust memory when processing million-entry directories
4912         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4913         directory would require about 256*N bytes of memory.  Thus, it was
4914         easy to construct a directory too large to be processed by any of
4915         those tools.  With this change, fts' maximum memory utilization is
4916         now limited to around 30MB.
4917         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4918         (fts_read): When we've processed the final entry (i.e., when
4919         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4920         using the parent entry to read any remaining entries.  Dispatch
4921         depending on what fts_build returns:
4922         - NULL+stop, aka failure: stop
4923         - NULL otherwise: move up in the dir hierarchy
4924         - non-NULL: handle this new entry
4925         (fts_build): Declare and use new local, continue_readdir.
4926         Prepare to be called from fts_read, when the entries
4927         from a partially-read directory have just been exhausted.
4928         In that case, we'll skip the opendir and instead use the parent's
4929         fts_dirp and derive dir_fd from that.
4930         Finally, in the readdir loop, if we read max_entries entries,
4931         exit the loop ensuring *not* to call closedir.  This is required
4932         so that fts_dirp can be reused on a subsequent call.
4933         Prompted by Ben England's report of memory exhaustion in find
4934         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4935
4936         maint: fts: move decl of `dp' down into while loop; split a long line
4937         * lib/fts.c (fts_build): No semantic change.
4938
4939         fts: add/use new struct member, fts_dirp
4940         We are about to use this to manage any directory with
4941         too many entries to read all of them into memory at once.
4942         To do that, we'll need to save the DIR* pointer in each
4943         affected FTSENT struct.
4944         * lib/fts_.h: Include <dirent.h>.
4945         (struct FTSENT) [fts_dirp]: New member.
4946         * lib/fts.c (closedir_and_clear): Define.
4947         Use it in place of closedir so that we are sure to
4948         clear the new fts_dirp member when done with it.
4949         (fts_alloc): Initialize the new member.
4950         (fts_lfree): Free, if needed.
4951
4952         maint: fts: give __opendir2 a new parameter and rename
4953         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4954         than surreptitiously using sole caller's "dir_fd".
4955         (fts_opendir): Rename from __opendir2.
4956
4957         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4958         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4959
4960         maint: fts.c: correct off-by-one indentation
4961         * lib/fts.c (fts_build): Correct indentation, change style
4962         of a couple of block comments, and bracing style.
4963
4964         maint: fts.c: move __opendir2 #define "up" out of function body
4965         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4966
4967         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4968         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4969         out for a long time and besides was useful only on BSD systems.
4970
4971 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4972
4973         regex: port to Stratus OpenVOS
4974         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4975         define to empty, rather than attempting nonportable optimizations.
4976         Problem reported by Paul Green in:
4977         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4978         and fix suggested by Eric Blake in:
4979         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4980
4981 2011-08-17  Eric Blake  <eblake@redhat.com>
4982
4983         getcwd: fix test failures on mingw
4984         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4985         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4986         test if long directory cannot be created, and allow mingw errno.
4987
4988         getcwd-lgpl: fix m4 to match relaxed test for BSD
4989         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4990         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4991         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4992         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4993         signature problem.
4994
4995         getcwd: fix compilation on mingw64
4996         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4997         getcwd.
4998         Reported by Marc-André Lureau.
4999
5000         pipe2: silence compiler warning
5001         * lib/pipe2.c (pipe2): Hide label if it is not used.
5002
5003 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5004
5005         relocatable-prog: fix link error
5006         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5007         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5008         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5009         into modules/relocatable-lib without noticing that
5010         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5011         also needs to build relocatable.c.
5012
5013 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5014
5015         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5016         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5017         shell code: it contained a 'break' that was not in a loop.
5018         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5019         via a shell-language loop; this may have been true in old Autoconf
5020         versions, but it's not true in Autoconf 2.68.  I found this bug
5021         when testing coreutils git on Solaris 8, whose shell complains
5022         about the syntax error.
5023
5024 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5025
5026         * lib/base64.c: Fix comment to reference RFC 4648.
5027         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5028         <gvtulder@gmail.com>.
5029
5030 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5031
5032         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5033
5034         po/Makefile.in.in: fix make -q problem
5035         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5036         rule, since there's no file named 'check-macro-version' and its
5037         use as a file breaks make -q.
5038         (all): Don't depend on check-macro-version.
5039         (CHECK_MACRO_VERSION): New macro.
5040         (stamp-po): Use it.
5041
5042         configmake: fix make -q problem
5043         * modules/configmake (configmake.h): Update configmake.h's time stamp
5044         even if the file does not change.  Otherwise, 'make -q' fails.
5045         Problem reported by Simon Josefsson in
5046         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5047
5048 2011-08-11  Jim Meyering  <meyering@redhat.com>
5049
5050         git-version-gen: correct the advice in a comment
5051         * build-aux/git-version-gen: Correct comment.
5052         Don't recommend to list .tarball-version in .gitignore.
5053
5054 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5055
5056         base64: fix off-by-one buffer size bug
5057         Problem and (trivial) fix reported by Gijs van Tulder in
5058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5059         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5060         * tests/test-base64.c (main): Catch the bug.
5061
5062 2011-08-10  Eric Blake  <eblake@redhat.com>
5063
5064         closein: correct comments
5065         * lib/closein.c (close_stdin): Improve comments.
5066
5067 2011-08-09  Bruno Haible  <bruno@clisp.org>
5068
5069         More tests for 'fseeko'.
5070         * tests/test-fseeko3.c: New file, from Eric Blake.
5071         * tests/test-fseeko3.sh: New file.
5072         * modules/fseeko-tests (Files): Add them.
5073         (TESTS): Add test-fseeko3.sh.
5074         (check_PROGRAMS): Add test-fseeko3.
5075
5076 2011-08-09  Eric Blake  <eblake@redhat.com>
5077
5078         fseeko: remove unneeded hack
5079         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5080
5081         fseeko: fix bug on glibc
5082         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5083         Reported by John W. Eaton.
5084
5085 2011-08-08  Bruno Haible  <bruno@clisp.org>
5086
5087         unictype/base: Fix interoperability with preinstalled libunistring.
5088         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5089         Reported by Simon Josefsson.
5090
5091 2011-08-08  Bruno Haible  <bruno@clisp.org>
5092
5093         iswblank: Detect declaration correctly.
5094         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5095         AC_CHECK_DECLS invocation.
5096
5097 2011-08-08  Bruno Haible  <bruno@clisp.org>
5098
5099         tcgetsid: Detect declaration correctly.
5100         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5101         AC_CHECK_DECLS invocation.
5102         Reported by Simon Josefsson.
5103
5104 2011-08-08  Eric Blake  <eblake@redhat.com>
5105
5106         largefile: fix typo that regressed large file support
5107         * modules/largefile (configure.ac-early): Fix section name.
5108
5109 2011-08-06  Karl Berry  <karl@gnu.org>
5110
5111         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5112         a separate module.
5113
5114 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5115
5116         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5117         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5118         get prototype for free.
5119
5120 2011-08-04  Bruno Haible  <bruno@clisp.org>
5121
5122         Tests for module 'pathmax'.
5123         * modules/pathmax-tests: New file.
5124         * tests/test-pathmax.c: New file.
5125
5126         canonicalize-lgpl: Support larger filenames on the Hurd.
5127         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5128         Reported by Paul Eggert.
5129
5130         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5131         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5132         * lib/chdir-long.h: Include pathmax.h.
5133         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5134         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5135         (PATH_MAX): Remove code that is done by pathmax.h.
5136         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5137         * lib/tmpfile.c: Add a comment.
5138         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5139         * modules/chdir-long (Depends-on): Add pathmax.
5140         * modules/getcwd (Depends-on): Add pathmax.
5141         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5142         is not defined.
5143         * doc/posix-headers/limits.texi: Mention the pathmax module.
5144         * NEWS: Mention the change.
5145
5146 2011-08-02  Bruno Haible  <bruno@clisp.org>
5147
5148         pthread_sigmask: Actually use results of gl_THREADLIB.
5149         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5150         gl_THREADLIB, not gl_[]THREADLIB.
5151         Reported by Eric Blake.
5152
5153 2011-08-02  Jim Meyering  <meyering@redhat.com>
5154
5155         maint.mk: relax the default _gl_TS_function_match regexp
5156         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5157         space between function name and "(" in an "extern" declaration.
5158         That would fail to match a decl with no space there: extern void foo();
5159
5160 2011-07-31  Iain Nicol  <iain@thenicols.net>
5161
5162         git-version-gen: document that EXTRA_DIST must include .version
5163         * build-aux/git-version-gen: In the how-to-use comment, document
5164         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5165         will fail when run from an unpacked distribution tarball.
5166
5167 2011-08-01  Bruno Haible  <bruno@clisp.org>
5168
5169         wctype-h: Fix last change.
5170         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5171         REPLACE_TOWLOWER to 0.
5172         Reported by Sam Steingold <sds@gnu.org>.
5173
5174 2011-07-31  Bruno Haible  <bruno@clisp.org>
5175
5176         frexpl: Update autoconf test.
5177         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5178         according to changes of 2011-06-20.
5179
5180 2011-07-31  Bruno Haible  <bruno@clisp.org>
5181
5182         sys_utsname: Add support for Minix.
5183         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5184         <sys/utsname.h>.
5185         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5186         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5187
5188 2011-07-31  Bruno Haible  <bruno@clisp.org>
5189
5190         strings: Add support for Minix.
5191         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5192         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5193         * doc/posix-headers/strings.texi: Document the Minix problem.
5194
5195 2011-07-31  Bruno Haible  <bruno@clisp.org>
5196
5197         wctype-h: Add support for Minix.
5198         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5199         REPLACE_TOWLOWER.
5200         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5201         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5202         REPLACE_ISWCNTRL.
5203
5204 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5205
5206         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5207         This is a performance improvement for 64-bit hosts: it causes the
5208         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5209
5210 2011-07-31  Bruno Haible  <bruno@clisp.org>
5211
5212         stdioext: Add support for Minix.
5213         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5214         * lib/fpurge.c (fpurge): Likewise.
5215         * lib/freadahead.c (freadahead): Likewise.
5216         * lib/freadable.c (freadable): Likewise.
5217         * lib/freading.c (freading): Likewise.
5218         * lib/freadptr.c (freadptr): Likewise.
5219         * lib/freadseek.c (freadptrinc): Likewise.
5220         * lib/fseeko.c (rpl_fseeko): Likewise.
5221         * lib/fseterr.c (fseterr): Likewise.
5222         * lib/fwritable.c (fwritable): Likewise.
5223         * lib/fwriting.c (fwriting): Likewise.
5224         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5225         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5226
5227 2011-07-31  Bruno Haible  <bruno@clisp.org>
5228
5229         errno: Port to Minix.
5230         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5231         ECONNABORTED are defined.
5232         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5233         GNULIB_defined_ECONNABORTED): New macros.
5234         * lib/strerror-override.h (strerror_override): Test also
5235         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5236         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5237         ECONNABORTED.
5238         * doc/posix-headers/errno.texi: Mention the Minix problem.
5239
5240 2011-07-31  Bruno Haible  <bruno@clisp.org>
5241
5242         Work around declaration collisions on Minix.
5243         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5244         defined, set REPLACE_MBSINIT.
5245         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5246         defined, set REPLACE_MBRTOWC.
5247         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5248         set REPLACE_MBRLEN.
5249         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5250         defined, set REPLACE_MBSRTOWCS.
5251         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5252         defined, set REPLACE_WCRTOMB.
5253         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5254         defined, set REPLACE_WCSRTOMBS.
5255
5256 2011-07-31  Bruno Haible  <bruno@clisp.org>
5257
5258         Add support for Minix with ACK compiler.
5259         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5260         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5261         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5262
5263 2011-07-31  Bruno Haible  <bruno@clisp.org>
5264
5265         Documentation about Minix.
5266         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5267         * doc/glibc-headers/*.texi: Likewise.
5268         * doc/posix-functions/*.texi: Likewise.
5269         * doc/glibc-functions/*.texi: Likewise.
5270
5271 2011-07-31  Bruno Haible  <bruno@clisp.org>
5272
5273         snippet/warn-on-use: Fix indentation.
5274         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5275
5276 2011-07-25  Jim Meyering  <meyering@redhat.com>
5277
5278         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5279         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5280         commands.
5281
5282 2011-07-27  Jim Meyering  <meyering@redhat.com>
5283
5284         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5285         * top/maint.mk (gl_extract_significant_defines_): Now that
5286         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5287         gnulib/lib/signal.in.h, and now that we recommend to
5288         define-if-undefined those two symbols in application code,
5289         we must filter them out of the "significant" list.
5290         This avoids a "make syntax-check" failure in coreutils.
5291
5292 2011-07-26  Eric Blake  <eblake@redhat.com>
5293
5294         warnings: add comments about previous patch
5295         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5296         * m4/include_next.m4: Likewise.
5297         * m4/warn-on-use.m4: Likewise.
5298         * m4/warnings.m4: Likewise, and simplify use.
5299         Suggested by Stefano Lattarini.
5300
5301         include-next, warnings: support older autoconf
5302         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5303         AS_VAR_PUSHDEF in a way that works with older autoconf.
5304         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5305         Reported by Daniel P. Berrange.
5306
5307 2011-07-25  Bruno Haible  <bruno@clisp.org>
5308
5309         fseek, ftell: Fix doc.
5310         * doc/posix-functions/fseek.texi: Reword statement about
5311         AC_SYS_LARGEFILE.
5312         * doc/posix-functions/ftell.texi: Likewise.
5313
5314 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5315             Bruno Haible  <bruno@clisp.org>
5316
5317         Add dependencies to the 'largefile' module.
5318         * modules/fopen (Depends-on): Add 'largefile'.
5319         * modules/freopen (Depends-on): Likewise.
5320         * modules/fseeko (Depends-on): Likewise.
5321         * modules/ftello (Depends-on): Likewise.
5322         * modules/glob (Depends-on): Likewise.
5323         * modules/lseek (Depends-on): Likewise.
5324         * modules/lstat (Depends-on): Likewise.
5325         * modules/mkostemp (Depends-on): Likewise.
5326         * modules/mkostemps (Depends-on): Likewise.
5327         * modules/mkstemp (Depends-on): Likewise.
5328         * modules/mkstemps (Depends-on): Likewise.
5329         * modules/open (Depends-on): Likewise.
5330         * modules/openat (Depends-on): Likewise.
5331         * modules/pread (Depends-on): Likewise.
5332         * modules/pwrite (Depends-on): Likewise.
5333         * modules/scandir (Depends-on): Likewise.
5334         * modules/stat (Depends-on): Likewise.
5335         * modules/tmpfile (Depends-on): Likewise.
5336         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5337         since the containing module now depends on the largefile module.
5338         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5339         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5340         off_t is fixed by gnulib.
5341         * doc/posix-functions/freopen.texi: Likewise.
5342         * doc/posix-functions/fseeko.texi: Likewise.
5343         * doc/posix-functions/fstatat.texi: Likewise.
5344         * doc/posix-functions/ftello.texi: Likewise.
5345         * doc/posix-functions/glob.texi: Likewise.
5346         * doc/posix-functions/lseek.texi: Likewise.
5347         * doc/posix-functions/lstat.texi: Likewise.
5348         * doc/posix-functions/mkstemp.texi: Likewise.
5349         * doc/posix-functions/open.texi: Likewise.
5350         * doc/posix-functions/openat.texi: Likewise.
5351         * doc/posix-functions/pread.texi: Likewise.
5352         * doc/posix-functions/pwrite.texi: Likewise.
5353         * doc/posix-functions/scandir.texi: Likewise.
5354         * doc/posix-functions/stat.texi: Likewise.
5355         * doc/posix-functions/tmpfile.texi: Likewise.
5356         * doc/glibc-functions/mkostemp.texi: Likewise.
5357         * doc/glibc-functions/mkostemps.texi: Likewise.
5358         * doc/glibc-functions/mkstemps.texi: Likewise.
5359
5360 2011-07-25  Bruno Haible  <bruno@clisp.org>
5361
5362         fcntl: Move AC_LIBOBJ invocation to module description.
5363         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5364         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5365
5366         fcntl: Remove call-in from fchdir.m4.
5367         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5368         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5369
5370         dup3: Remove potential call-in from fchdir.m4.
5371         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5372         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5373
5374         dup2: Move AC_LIBOBJ invocation to module description.
5375         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5376         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5377         Don't invoke AC_LIBOBJ.
5378         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5379
5380         dup2: Remove call-in from fchdir.m4.
5381         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5383
5384         fclose: Move AC_LIBOBJ invocation to module description.
5385         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5386         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5387         to 1.
5388         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5389
5390         fclose: Remove call-in from close.m4.
5391         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5392         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5393
5394         close: Move AC_LIBOBJ invocation to module description.
5395         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5396         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5397         1.
5398         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5399
5400         close: Remove call-in from fchdir.m4.
5401         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5402         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5403
5404         open: Move AC_LIBOBJ invocation to module description.
5405         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5406         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5407         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5408
5409         open: Remove call-in from fchdir.m4.
5410         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5411         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5412
5413         fchdir: Start to remove gl_REPLACE_* idiom.
5414         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5415         (gl_FUNC_FCHDIR): Invoke it.
5416
5417 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5418
5419         * lib/ftell.c (ftell): Comment out cast.
5420
5421         close: use gl_REPLACE_FCLOSE only if defined
5422         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5423         is defined.  The close module doesn't depend on the fclose module
5424         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5426         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5427
5428 2011-07-24  Jim Meyering  <meyering@redhat.com>
5429
5430         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5431         * tests/test-select.h (test_function): Declare as "static".
5432
5433 2011-07-24  Bruno Haible  <bruno@clisp.org>
5434
5435         doc: Mention the effects of AC_SYS_LARGEFILE.
5436         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5437         on this function.
5438         * doc/posix-functions/aio_error.texi: Likewise.
5439         * doc/posix-functions/aio_fsync.texi: Likewise.
5440         * doc/posix-functions/aio_read.texi: Likewise.
5441         * doc/posix-functions/aio_return.texi: Likewise.
5442         * doc/posix-functions/aio_suspend.texi: Likewise.
5443         * doc/posix-functions/aio_write.texi: Likewise.
5444         * doc/posix-functions/fgetpos.texi: Likewise.
5445         * doc/posix-functions/fopen.texi: Likewise.
5446         * doc/posix-functions/freopen.texi: Likewise.
5447         * doc/posix-functions/fsetpos.texi: Likewise.
5448         * doc/posix-functions/fstatvfs.texi: Likewise.
5449         * doc/posix-functions/ftruncate.texi: Likewise.
5450         * doc/posix-functions/ftw.texi: Likewise.
5451         * doc/posix-functions/getrlimit.texi: Likewise.
5452         * doc/posix-functions/glob.texi: Likewise.
5453         * doc/posix-functions/lio_listio.texi: Likewise.
5454         * doc/posix-functions/lockf.texi: Likewise.
5455         * doc/posix-functions/mkstemp.texi: Likewise.
5456         * doc/posix-functions/mmap.texi: Likewise.
5457         * doc/posix-functions/nftw.texi: Likewise.
5458         * doc/posix-functions/openat.texi: Likewise.
5459         * doc/posix-functions/opendir.texi: Likewise.
5460         * doc/posix-functions/posix_fadvise.texi: Likewise.
5461         * doc/posix-functions/posix_fallocate.texi: Likewise.
5462         * doc/posix-functions/pread.texi: Likewise.
5463         * doc/posix-functions/pwrite.texi: Likewise.
5464         * doc/posix-functions/readdir.texi: Likewise.
5465         * doc/posix-functions/readdir_r.texi: Likewise.
5466         * doc/posix-functions/rewinddir.texi: Likewise.
5467         * doc/posix-functions/scandir.texi: Likewise.
5468         * doc/posix-functions/seekdir.texi: Likewise.
5469         * doc/posix-functions/setrlimit.texi: Likewise.
5470         * doc/posix-functions/statvfs.texi: Likewise.
5471         * doc/posix-functions/telldir.texi: Likewise.
5472         * doc/posix-functions/tmpfile.texi: Likewise.
5473         * doc/posix-functions/truncate.texi: Likewise.
5474         * doc/glibc-functions/fallocate.texi: Likewise.
5475         * doc/glibc-functions/fstatfs.texi: Likewise.
5476         * doc/glibc-functions/fts_children.texi: Likewise.
5477         * doc/glibc-functions/fts_read.texi: Likewise.
5478         * doc/glibc-functions/getdirentries.texi: Likewise.
5479         * doc/glibc-functions/mkostemp.texi: Likewise.
5480         * doc/glibc-functions/mkostemps.texi: Likewise.
5481         * doc/glibc-functions/mkstemps.texi: Likewise.
5482         * doc/glibc-functions/preadv.texi: Likewise.
5483         * doc/glibc-functions/pwritev.texi: Likewise.
5484         * doc/glibc-functions/sendfile.texi: Likewise.
5485         * doc/glibc-functions/statfs.texi: Likewise.
5486
5487 2011-07-24  Bruno Haible  <bruno@clisp.org>
5488
5489         doc: Fix typo.
5490         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5491
5492 2011-07-24  Bruno Haible  <bruno@clisp.org>
5493
5494         doc: Mention fsusage.
5495         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5496
5497 2011-07-24  Bruno Haible  <bruno@clisp.org>
5498
5499         doc: Mention new glibc headers and functions.
5500         * doc/glibc-headers/gshadow.texi: New file.
5501         * doc/glibc-functions/endsgent.texi: New file.
5502         * doc/glibc-functions/fgetsgent.texi: New file.
5503         * doc/glibc-functions/fgetsgent_r.texi: New file.
5504         * doc/glibc-functions/getsgent.texi: New file.
5505         * doc/glibc-functions/getsgent_r.texi: New file.
5506         * doc/glibc-functions/getsgnam.texi: New file.
5507         * doc/glibc-functions/getsgnam_r.texi: New file.
5508         * doc/glibc-functions/putsgent.texi: New file.
5509         * doc/glibc-functions/setsgent.texi: New file.
5510         * doc/glibc-functions/sgetsgent.texi: New file.
5511         * doc/glibc-functions/sgetsgent_r.texi: New file.
5512         * doc/glibc-functions/malloc_info.texi: New file.
5513         * doc/glibc-functions/preadv.texi: New file.
5514         * doc/glibc-functions/pwritev.texi: New file.
5515         * doc/glibc-functions/register_printf_modifier.texi: New file.
5516         * doc/glibc-functions/register_printf_specifier.texi: New file.
5517         * doc/glibc-functions/register_printf_type.texi: New file.
5518         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5519         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5520         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5521         * doc/glibc-functions/pthread_getname_np.texi: New file.
5522         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5523         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5524         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5525         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5526         * doc/glibc-functions/pthread_setname_np.texi: New file.
5527         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5528         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5529         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5530         * doc/glibc-functions/qsort_r.texi: New file.
5531         * doc/glibc-functions/quick_exit.texi: New file.
5532         * doc/glibc-functions/syncfs.texi: New file.
5533         * doc/gnulib.texi: Include them.
5534         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5535         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5536         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5537         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5538         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5539         * doc/glibc-functions/execvpe.texi: Likewise.
5540
5541 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5542
5543         ftell: don't include <unistd.h>
5544         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5545         guaranteed to define off_t, and the ftell module depends on the
5546         stdio module.
5547
5548         ftell: do not assume wraparound signed arithmetic
5549         * lib/ftell.c: Include <limits.h>.
5550         (ftell): Don't assume wraparound signed arithmetic.
5551
5552 2011-07-24  Bruno Haible  <bruno@clisp.org>
5553
5554         close: No longer depend on module 'fclose'.
5555         * modules/close (Depends-on): Remove fclose.
5556         * NEWS: Mention the change.
5557         Suggested by Sam Steingold <sds@gnu.org>.
5558
5559 2011-07-24  Bruno Haible  <bruno@clisp.org>
5560
5561         fsusage: Enable large volume support on AIX >= 5.2.
5562         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5563         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5564         instead of STAT_STATVFS.
5565         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5566
5567         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5568         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5569         f_blocks field only on MacOS X.
5570
5571         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5572         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5573         * modules/fsusage (Depends-on): Add largefile.
5574
5575 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5576
5577         * README: Modernize discussion of signed integers.
5578         Assuming overflow wraparound is no longer safe.
5579         Mention ones' complement and signed magnitude.
5580
5581 2011-07-22  Bruno Haible  <bruno@clisp.org>
5582
5583         select tests, pselect tests: Refactor.
5584         * tests/test-select.h: New file, extracted from tests/test-select.c.
5585         (select_fn): New type.
5586         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5587         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5588         test_pipe): Add my_select argument.
5589         (test_function): Renamed from main. Add my_select argument.
5590         * tests/test-select.c: Move most code to tests/test-select.h. Include
5591         test-select.h.
5592         * modules/select-tests (Files): Add tests/test-select.h.
5593         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5594         (my_select, main): New functions.
5595         * modules/pselect-tests (Files): Add tests/test-select.h,
5596         tests/macros.h, tests/signature.h.
5597         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5598         (configure.ac): Check for <sys/wait.h>.
5599
5600 2011-07-22  Bruno Haible  <bruno@clisp.org>
5601
5602         sys_select tests: Check the signature of FD_*.
5603         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5604         signature tests from here...
5605         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5606         here.
5607         * modules/sys_select-tests (Files): Add tests/signature.h.
5608
5609 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5610
5611         largefile: new module, replacing large-inode
5612         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5613         * MODULES.html.sh: Add largefile, remove large-inode.
5614         * modules/largefile, m4/largefile.m4: New files.
5615         * modules/large-inode, m4/large-inode.m4: Remove.
5616
5617         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5618         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5619         implementations that use only 32 bits to count blocks.
5620         On typical hosts with 1024-byte blocks, this fails with file
5621         systems as small as 4 TiB.  Problem reported by Herb Wartens
5622         <http://debbugs.gnu.org/9140> and this should also fix a similar
5623         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5624
5625         large-inode: New module
5626         * MODULES.html.sh: Add it.
5627         * modules/large-inode, m4/large-inode.m4: New files.
5628
5629         extensions: Enable extensions on MacOS X 10.5 and later.
5630         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5631
5632 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5633
5634         file-has-acl: use acl_extended_file_nofollow if available
5635         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5636         (acl_extended_file): New macro.
5637         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5638         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5639
5640 2011-07-21  Bruno Haible  <bruno@clisp.org>
5641
5642         Declare system functions in a way that works with C++.
5643         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5644         declare fdopendir as extern "C".
5645         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5646         declare frexpl as extern "C".
5647         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5648         declare gai_strerror as extern "C".
5649         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5650         programs, declare gai_strerror as extern "C".
5651         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5652         declare getlogin_r as extern "C".
5653         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5654         as extern "C".
5655         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5656         declare ldexpl as extern "C".
5657         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5658         as extern "C".
5659         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5660         program, declare getmntinfo as extern "C".
5661         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5662         stpncpy as extern "C".
5663         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5664         program, declare __xpg_strerror_r as extern "C".
5665         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5666         strndup as extern "C".
5667         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5668         declare memset and bzero as extern "C".
5669         Reported by Sam Steingold <sds@gnu.org>.
5670
5671 2011-07-12  Jim Meyering  <meyering@redhat.com>
5672
5673         maint.mk: prohibit inclusion of "verify.h" without use
5674         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5675
5676 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5677
5678         timer-time: A new module to check for timer_settime()
5679         * m4/timer_time.m4: Check for the posix function.
5680         * modules/timer-time: Add the new module.
5681         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5682         Mention it.
5683
5684 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5685             Bruno Haible  <bruno@clisp.org>
5686
5687         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5688         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5689         not defined, assume POSIX threads and look for pthread_sigmask in
5690         $LIBS, without changing $CPPFLAGS.
5691
5692 2011-07-19  Bruno Haible  <bruno@clisp.org>
5693
5694         strstr: Update cross-compilation guess.
5695         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5696         CPUs, guess no, in view of glibc
5697         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5698         Suggested by Eric Blake. Reported by Reuben Thomas.
5699
5700 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5701
5702         getopt-gnu: suppress core dumps from detection code
5703         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5704         to suppress core dumps that may well occur on glibc systems.
5705         * modules/getopt-gnu: Depend on nocrash.
5706
5707 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5708
5709         pthread_sigmask: ensure usleep is declared
5710         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5711         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5712
5713 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5714
5715         doc: Document NonStop portability issues.
5716         * doc/posix-functions/sigaction.texi (sigaction):
5717         * doc/posix-headers/signal.texi (signal.h):
5718         Document NonStop.  See Joachim Schmitz in
5719         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5720
5721 2011-07-15  Bruno Haible  <bruno@clisp.org>
5722
5723         ffsl, ffsll: Avoid unportable behaviour.
5724         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5725
5726 2011-07-15  Bruno Haible  <bruno@clisp.org>
5727
5728         ffs: More tests.
5729         * tests/test-ffs.c (NBITS): New macro.
5730         (main): Add more tests.
5731         * tests/test-ffsl.c (NBITS): New macro.
5732         (main): Add more tests.
5733         * tests/test-ffsll.c (NBITS): New macro.
5734         (main): Add more tests.
5735
5736 2011-07-15  Eric Blake  <eblake@redhat.com>
5737
5738         ffsl, ffsll: new modules
5739         * modules/ffsl: New file.
5740         * modules/ffsll: Likewise.
5741         * m4/ffsl.m4: Likewise.
5742         * m4/ffsll.m4: Likewise.
5743         * lib/ffsl.c: Likewise.
5744         * lib/ffsl.h: Likewise.
5745         * lib/ffsll.c: Likewise.
5746         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5747         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5748         * modules/string (Makefile.am): Substitute witnesses.
5749         * lib/strings.in.h (ffsl, ffsll): Declare.
5750         * modules/ffsl-tests: New test file.
5751         * modules/ffsll-tests: Likewise.
5752         * tests/test-ffsl.c: Likewise.
5753         * tests/test-ffsll.c: Likewise.
5754         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5755         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5756         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5757
5758         ffs: fix m4 prerequisite
5759         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5760
5761         ffs: avoid undefined behavior
5762         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5763         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5764         Reported by Bruno Haible.
5765
5766 2011-07-12  Bruno Haible  <bruno@clisp.org>
5767
5768         pthread_sigmask: Rely on module 'threadlib'.
5769         * modules/pthread_sigmask (Depends-on): Add threadlib.
5770         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5771         is defined.
5772
5773 2011-07-12  Bruno Haible  <bruno@clisp.org>
5774
5775         regex: Depend on module 'strcase'.
5776         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5777
5778 2011-07-12  Jim Meyering  <meyering@redhat.com>
5779
5780         warn-on-use: fix typo in file name
5781         * modules/snippet/warn-on-use (Files): Correct file name:
5782         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5783
5784 2011-07-12  Bruno Haible  <bruno@clisp.org>
5785
5786         strings: Document module.
5787         * doc/posix-headers/strings.texi: Mention module 'strings'.
5788
5789 2011-07-12  Bruno Haible  <bruno@clisp.org>
5790
5791         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5792         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5793         (Files, Makefile.am): Update.
5794         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5795         * modules/stdlib (Depends-on): Update.
5796
5797 2011-07-12  Bruno Haible  <bruno@clisp.org>
5798
5799         * NEWS: Mention the changes.
5800
5801         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5802         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5803         (Files, Makefile.am): Update.
5804         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5805         * modules/arpa_inet (Depends-on): Update.
5806         * modules/ctype (Depends-on): Update.
5807         * modules/dirent (Depends-on): Update.
5808         * modules/fcntl-h (Depends-on): Update.
5809         * modules/glob (Depends-on): Update.
5810         * modules/iconv-h (Depends-on): Update.
5811         * modules/inttypes-incomplete (Depends-on): Update.
5812         * modules/langinfo (Depends-on): Update.
5813         * modules/locale (Depends-on): Update.
5814         * modules/math (Depends-on): Update.
5815         * modules/netdb (Depends-on): Update.
5816         * modules/poll-h (Depends-on): Update.
5817         * modules/pty (Depends-on): Update.
5818         * modules/search (Depends-on): Update.
5819         * modules/signal (Depends-on): Update.
5820         * modules/spawn (Depends-on): Update.
5821         * modules/stdio (Depends-on): Update.
5822         * modules/stdlib (Depends-on): Update.
5823         * modules/string (Depends-on): Update.
5824         * modules/strings (Depends-on): Update.
5825         * modules/sys_file (Depends-on): Update.
5826         * modules/sys_ioctl (Depends-on): Update.
5827         * modules/sys_select (Depends-on): Update.
5828         * modules/sys_socket (Depends-on): Update.
5829         * modules/sys_stat (Depends-on): Update.
5830         * modules/sys_time (Depends-on): Update.
5831         * modules/sys_times (Depends-on): Update.
5832         * modules/sys_utsname (Depends-on): Update.
5833         * modules/sys_wait (Depends-on): Update.
5834         * modules/termios (Depends-on): Update.
5835         * modules/time (Depends-on): Update.
5836         * modules/unistd (Depends-on): Update.
5837         * modules/wchar (Depends-on): Update.
5838         * modules/wctype-h (Depends-on): Update.
5839         * MODULES.html.sh (Support for building libraries and executables):
5840         Update.
5841
5842         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5843         * modules/snippet/unused-parameter: Renamed from
5844         modules/unused-parameter.
5845         (Files, Makefile.am): Update.
5846         * build-aux/snippet/unused-parameter.h: Renamed from
5847         build-aux/unused-parameter.h.
5848         * modules/selinux-h (Depends-on): Update.
5849         * modules/unistr/base (Depends-on): Update.
5850         * MODULES.html.sh (Core language properties): Update.
5851
5852         Rename module 'link-warning' to 'snippet/link-warning'.
5853         * modules/snippet/link-warning: Renamed from modules/link-warning.
5854         (Files, Makefile.am): Update.
5855         * build-aux/snippet/link-warning.h: Renamed from
5856         build-aux/link-warning.h.
5857         * MODULES.html.sh (Support for building libraries and executables):
5858         Update.
5859
5860         Rename module 'c++defs' to 'snippet/c++defs'.
5861         * modules/snippet/c++defs: Renamed from modules/c++defs.
5862         (Files, Makefile.am): Update.
5863         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5864         * modules/arpa_inet (Depends-on): Update.
5865         * modules/ctype (Depends-on): Update.
5866         * modules/dirent (Depends-on): Update.
5867         * modules/fcntl-h (Depends-on): Update.
5868         * modules/glob (Depends-on): Update.
5869         * modules/iconv-h (Depends-on): Update.
5870         * modules/langinfo (Depends-on): Update.
5871         * modules/locale (Depends-on): Update.
5872         * modules/math (Depends-on): Update.
5873         * modules/netdb (Depends-on): Update.
5874         * modules/poll-h (Depends-on): Update.
5875         * modules/pty (Depends-on): Update.
5876         * modules/search (Depends-on): Update.
5877         * modules/signal (Depends-on): Update.
5878         * modules/spawn (Depends-on): Update.
5879         * modules/stdio (Depends-on): Update.
5880         * modules/stdlib (Depends-on): Update.
5881         * modules/string (Depends-on): Update.
5882         * modules/strings (Depends-on): Update.
5883         * modules/sys_ioctl (Depends-on): Update.
5884         * modules/sys_select (Depends-on): Update.
5885         * modules/sys_socket (Depends-on): Update.
5886         * modules/sys_stat (Depends-on): Update.
5887         * modules/sys_time (Depends-on): Update.
5888         * modules/sys_wait (Depends-on): Update.
5889         * modules/termios (Depends-on): Update.
5890         * modules/time (Depends-on): Update.
5891         * modules/unistd (Depends-on): Update.
5892         * modules/wchar (Depends-on): Update.
5893         * modules/wctype-h (Depends-on): Update.
5894
5895         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5896         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5897         (Files, Makefile.am): Update.
5898         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5899         * modules/argv-iter (Depends-on): Update.
5900         * modules/arpa_inet (Depends-on): Update.
5901         * modules/dirent (Depends-on): Update.
5902         * modules/fcntl-h (Depends-on): Update.
5903         * modules/fnmatch (Depends-on): Update.
5904         * modules/getopt-posix (Depends-on): Update.
5905         * modules/glob (Depends-on): Update.
5906         * modules/iconv-h (Depends-on): Update.
5907         * modules/inttypes-incomplete (Depends-on): Update.
5908         * modules/locale (Depends-on): Update.
5909         * modules/math (Depends-on): Update.
5910         * modules/netdb (Depends-on): Update.
5911         * modules/search (Depends-on): Update.
5912         * modules/signal (Depends-on): Update.
5913         * modules/spawn (Depends-on): Update.
5914         * modules/stdio (Depends-on): Update.
5915         * modules/stdlib (Depends-on): Update.
5916         * modules/string (Depends-on): Update.
5917         * modules/strings (Depends-on): Update.
5918         * modules/sys_socket (Depends-on): Update.
5919         * modules/sys_stat (Depends-on): Update.
5920         * modules/sys_time (Depends-on): Update.
5921         * modules/sys_times (Depends-on): Update.
5922         * modules/sys_utsname (Depends-on): Update.
5923         * modules/time (Depends-on): Update.
5924         * modules/unistd (Depends-on): Update.
5925         * modules/wchar (Depends-on): Update.
5926         * MODULES.html.sh (Support for building libraries and executables):
5927         Update.
5928
5929 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5930
5931         Improvements on _Noreturn and related modules.
5932
5933         modules/_Exit-tests: test _Noreturn too
5934         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5935         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5936         (main): Use them.
5937
5938         stdnoreturn, stdnoreturn-tests: remove modules
5939         They're not needed here and a bit premature for use elsewhere.  See
5940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5941         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5942         * tests/test-stdnoreturn.c: Remove files.
5943         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5944         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5945         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5946         and using noreturn.
5947         * modules/openat, modules/sigpipe-die, modules/xalloc:
5948         * modules/xmemdup0, modules/xstrtol:
5949         Remove dependency on stdnoreturn.
5950
5951         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5952         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5953         Reparenthesize to avoid GCC warning.
5954         Support Microsoft's syntax.
5955         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5956
5957         _Noreturn-tests: remove module
5958         * modules/_Noreturn-tests: Remove.
5959         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5960         * tests/test-_Noreturn.c: Remove.
5961         * tests/test-stdnoreturn.c: Merge from the old
5962         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5963
5964 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5965
5966         _Noreturn, stdnoreturn, and related modules.
5967
5968         * top/maint.mk: Adjust to new noreturn support.
5969         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5970         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5971
5972         xalloc: use stdnoreturn.h
5973         * lib/xalloc.h: Include <stdnoreturn.h>.
5974         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5975         * modules/xalloc (Depends-on): Add stdnoreturn.
5976
5977         xstrtol: use stdnoreturn.h
5978         * lib/xstrtol.h: Include <stdnoreturn.h>.
5979         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5980         * modules/xstrtol (Depends-on): Add stdnoreturn.
5981
5982         xmemdup0: use stdnoreturn.h
5983         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5984         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5985         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5986
5987         sigpipe-die: use stdnoreturn.h
5988         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5989         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5990         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5991
5992         openat: use stdnoreturn.h
5993         * lib/openat.h: Include <stdnoreturn.h>.
5994         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5995         * modules/openat (Depends-on): Add stdnoreturn.
5996
5997         * lib/openat-die.c (openat_save_fail): Modernize comment.
5998
5999         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6000
6001         * lib/glthread/thread.h: Modernize comment.
6002
6003         obstack: use _Noreturn
6004         * lib/obstack.c (__attribute__): Remove macro.
6005         (print_and_abort): Use _Noreturn.
6006
6007         c-stack: use _Noreturn
6008         * lib/c-stack.c (die, overflow_handler, segv_handler):
6009         Use _Noreturn rather than __attribute__((noreturn)).
6010
6011         argmatch-tests, exclude_tests: use _Noreturn
6012         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6013         Remove.
6014         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6015
6016         stdlib: use _Noreturn
6017         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6018         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6019         * modules/stdlib (Depends-on): Add _Noreturn.
6020         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6021
6022         stdnoreturn-tests: new module
6023         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6024
6025         stdnoreturn: new module
6026         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6027         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6028
6029         _Noreturn-tests: new module
6030         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6031
6032         _Noreturn: new module
6033         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6034         New section, mentioning it.
6035         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6036
6037         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6038
6039 2011-07-11  Eric Blake  <eblake@redhat.com>
6040
6041         ffs: new module
6042         * modules/ffs: New file.
6043         * m4/ffs.m4: Likewise.
6044         * lib/ffs.c: Likewise.
6045         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6046         * modules/strings (Makefile.am): Substitute witness.
6047         (Depends-on): Add c++defs.
6048         * lib/strings.in.h (ffs): Declare.
6049         * modules/ffs-tests: New test file.
6050         * tests/test-ffs.c: Test new module.
6051         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6052         * doc/posix-functions/ffs.texi (ffs): Likewise.
6053
6054         regex: avoid compiler warning
6055         * lib/regex.c (includes): Include <strings.h>, for use of
6056         strcasecmp in regcomp.c.
6057         Reported by Joachim Schmitz.
6058
6059 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6060
6061         stdint: respect system's intmax_t if INTMAX_MAX
6062         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6063         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6064         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6065         long but int64_t is long long, and where we will clash with the
6066         system intmax_t if we override it.  See
6067         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6068         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6069         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6070         similarly for UINTMAX_C.
6071
6072 2011-07-08  Bruno Haible  <bruno@clisp.org>
6073
6074         pthread_sigmask tests: Avoid a compiler warning.
6075         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6076         non-zero.
6077
6078         sigprocmask tests: A better way to avoid a compiler warning.
6079         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6080         (main): Complain if system() returns non-zero.
6081         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6082
6083 2011-07-08  Bruno Haible  <bruno@clisp.org>
6084
6085         pthread_sigmask: Work around IRIX bug.
6086         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6087         bug.
6088         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6089         there may be unblocked pending signals.
6090         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6091
6092 2011-07-08  Bruno Haible  <bruno@clisp.org>
6093
6094         pthread_sigmask: Work around Cygwin bug.
6095         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6096         bug.
6097         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6098         the system's pthread_sigmask function.
6099         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6100
6101 2011-07-08  Bruno Haible  <bruno@clisp.org>
6102
6103         pthread_sigmask: Work around bug in single-threaded implementation.
6104         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6105         FreeBSD, HP-UX, Solaris bug.
6106         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6107         * lib/pthread_sigmask.c: Include <stddef.h>.
6108         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6109         the system's pthread_sigmask function.
6110         * modules/pthread_sigmask (configure.ac): Invoke
6111         gl_PREREQ_PTHREAD_SIGMASK.
6112         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6113         HP-UX, Solaris.
6114
6115 2011-07-08  Eric Blake  <eblake@redhat.com>
6116
6117         test-sigprocmask: avoid compiler warning
6118         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6119         * tests/test-sigprocmask.c (main): Use it to silence warning.
6120         Reported by Jim Meyering.
6121
6122         test-snprintf: avoid compiler warning
6123         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6124         * tests/test-vsnprintf.c (main): Likewise.
6125         Reported by Jim Meyering.
6126
6127 2011-07-08  Bruno Haible  <bruno@clisp.org>
6128
6129         Tests for module 'pthread_sigmask'.
6130         * modules/pthread_sigmask-tests: New file.
6131         * tests/test-pthread_sigmask1.c: New file, based on
6132         tests/test-sigprocmask.c.
6133         * tests/test-pthread_sigmask2.c: New file.
6134
6135 2011-07-08  Jim Meyering  <meyering@redhat.com>
6136
6137         test-getopt.h: avoid warning about an unused variable
6138         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6139
6140 2011-07-07  Jim Meyering  <meyering@redhat.com>
6141
6142         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6143         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6144         now that it no longer contains leading TABs.
6145         Remove unused "url=FIXME" statement.
6146
6147 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6148
6149         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6150         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6151         When gl_THREADLIB is not in use, assume that the POSIX sematics
6152         are desired.  This is better for Emacs, which uses POSIX semantics
6153         on GNUish and/or POSIXish platforms, and does not use threads at
6154         all otherwise.
6155
6156         pthread_sigmask: fix typo when testing for libraries
6157         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6158         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6159
6160 2011-07-08  Eric Blake  <eblake@redhat.com>
6161
6162         fts: introduce FTS_NOATIME
6163         * lib/fts_.h (FTS_NOATIME): New bit flag.
6164         (FTS_OPTIONMASK): Adjust.
6165         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6166         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6167
6168 2011-07-08  Bruno Haible  <bruno@clisp.org>
6169
6170         Tests for module 'thread'.
6171         * modules/thread-tests: New file.
6172         * tests/test-thread_self.c: New file.
6173         * tests/test-thread_create.cc: New file.
6174
6175 2011-07-08  Bruno Haible  <bruno@clisp.org>
6176
6177         thread: Avoid gcc warnings when using gl_thread_self().
6178         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6179         'void *'.
6180         (gl_thread_self_pointer): Update.
6181
6182 2011-07-07  Bruno Haible  <bruno@clisp.org>
6183
6184         signal-c++-tests: Check declaration of pthread_sigmask.
6185         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6186         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6187         $(LIB_PTHREAD_SIGMASK).
6188
6189 2011-07-07  Bruno Haible  <bruno@clisp.org>
6190
6191         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6192         * lib/signal.in.h (pthread_sigmask): Override if
6193         REPLACE_PTHREAD_SIGMASK is 1.
6194         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6195         REPLACE_PTHREAD_SIGMASK.
6196         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6197         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6198         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6199         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6200         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6201
6202 2011-07-07  Bruno Haible  <bruno@clisp.org>
6203
6204         pthread_sigmask: Ensure declaration in <signal.h>.
6205         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6206         include <pthread.h>.
6207         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6208         problem.
6209
6210 2011-07-07  Bruno Haible  <bruno@clisp.org>
6211
6212         pthread_sigmask: Document the module.
6213         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6214
6215 2011-07-07  Bruno Haible  <bruno@clisp.org>
6216
6217         pthread_sigmask: Follow gnulib conventions.
6218         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6219         gl_PTHREAD_SIGMASK.
6220         * modules/pthread_sigmask (configure.ac): Update.
6221
6222 2011-07-07  Bruno Haible  <bruno@clisp.org>
6223
6224         pthread_sigmask: Make declaration C++ safe.
6225         * lib/signal.in.h: In two special conditions, just do an #include_next.
6226         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6227         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6228         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6229         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6230         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6231         not REPLACE_PTHREAD_MASK.
6232         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6233         not REPLACE_PTHREAD_MASK.
6234         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6235
6236 2011-07-07  Bruno Haible  <bruno@clisp.org>
6237
6238         pthread_sigmask: Fix return value.
6239         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6240         * lib/pthread_sigmask.c: New file.
6241         * modules/pthread_sigmask (Files): Add it.
6242         (configure.ac): Invoke AC_LIBOBJ.
6243
6244 2011-07-07  Eric Blake  <eblake@redhat.com>
6245
6246         getopt: more portable argv creation
6247         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6248         const, use char arrays rather than strings.
6249         Suggested by Paul Eggert.
6250
6251 2011-07-07  Bruno Haible  <bruno@clisp.org>
6252
6253         Tests for module 'sigprocmask'.
6254         * modules/sigprocmask-tests: New file.
6255         * tests/test-sigprocmask.c: New file.
6256
6257 2011-07-07  Bruno Haible  <bruno@clisp.org>
6258
6259         float tests: Tweak.
6260         * tests/test-float.c (main): Tweak skip message.
6261
6262 2011-07-07  Eric Blake  <eblake@redhat.com>
6263
6264         getopt: avoid compiler warning during configure
6265         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6266         assigning string literals to non-const pointer.
6267
6268         getopt-gnu: avoid crash in glibc getopt
6269         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6270         * tests/test-getopt.h (test_getopt): Enhance test.
6271         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6272         * doc/posix-functions/getopt.texi (getopt): Document it.
6273         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6274         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6275         Likewise.
6276
6277 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6278
6279         getopt: handle W; without long options in getopt [BZ #12922]
6280         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6281         but no long options are defined, just return 'W'.
6282
6283 2011-07-07  Bruno Haible  <bruno@clisp.org>
6284
6285         Avoid literal tabs.
6286         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6287         variable containing a tab instead of a literal tab.
6288         Reported by Jim Meyering.
6289
6290 2011-07-07  Bruno Haible  <bruno@clisp.org>
6291
6292         Comments.
6293         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6294
6295 2011-07-06  Bruno Haible  <bruno@clisp.org>
6296
6297         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6298         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6299         <winsock2.h>.
6300         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6301         lib/sys_socket.in.h.
6302         (close, gethostname): Hide declarations from <winsock2.h>.
6303         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6304         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6305         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6306         (select): Don't override if gnulib's <sys/select.h> was already
6307         included.
6308         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6309         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6310         setsockopt, shutdown, select): Tweak indentation.
6311
6312 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6313
6314         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6315         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6316         in an application that does not use the sys_select module.
6317
6318 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6319
6320         poll: do not return 0 on timeout=-1
6321         * lib/poll.c: Loop with yield if no events occured
6322
6323 2011-07-06  Eric Blake  <eblake@redhat.com>
6324
6325         pthread_sigmask: always replace when not using pthread
6326         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6327         replacement when using some threading other than pthread.  Fix
6328         logic bug.
6329
6330 2011-07-06  Bruno Haible  <bruno@clisp.org>
6331
6332         Comments.
6333         * m4/printf.m4: Update comments about mingw.
6334
6335 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6336
6337         sys_select: define sigset_t more portably
6338         * lib/sys_select.in.h: Always include <sys/types.h>, since
6339         we now need sigset_t and mingw defines it there.
6340         Include <signal.h> before split inclusion guard, to avoid
6341         mishaps on Solaris, whose <signal.h> eventually includes us.
6342         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6343         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6344         which come from ...
6345         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6346         gl_CHECK_TYPE_SIGSET_T.
6347         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6348         does the real work.
6349         * modules/sys_select (Depends-on): Add 'signal'.
6350
6351         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6352         Suggested by Bruno Haible.
6353
6354         pselect: Use pthread_sigmask, not sigprocmask.
6355         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6356         multithreaded apps better than sigprocmask does.
6357         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6358         sigprocmask directly.
6359
6360 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6361
6362         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6363         Don't #undef,  since we don't need any underlying pselect.
6364         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6365         (Depends-on): Add select.
6366         (Link): Add $(LIBSOCKET).
6367         These changes suggested by Bruno Haible.
6368
6369         pselect: document better
6370         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6371         * doc/posix-functions/pselect.texi (pselect): Document new module.
6372
6373         pthread_sigmask: new module
6374         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6375         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6376         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6377         This is done only as a macro; I don't know how well that'll
6378         work for C++.  Move <sys/types.h> include before the include_next,
6379         to avoid mishap on Solaris.
6380         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6381         * modules/signal (Makefile.am): Substitute the check's results.
6382         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6383
6384         test-pselect: new module
6385         * modules/pselect-tests, tests/test-pselect.c: New files.
6386         * tests/test-select.c, tests/test-sys_select-c++.cc:
6387         If TEST_PSELECT is defined, test pselect instead of testing select.
6388
6389         * tests/test-sys_select.c (sigset_t): Test for it, too.
6390         Suggested by Bruno Haible.
6391
6392 2011-07-05  Eric Blake  <eblake@redhat.com>
6393
6394         snprintf: guarantee %1$d, for libintl
6395         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6396         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6397         * doc/posix-functions/snprintf.texi (snprintf): Update.
6398         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6399         * tests/test-snprintf.c (main): Enhance test.
6400         * tests/test-vsnprintf.c (main): Likewise.
6401
6402 2011-07-05  Jim Meyering  <meyering@redhat.com>
6403
6404         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6405         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6406         per Bruno's request, to accommodate this idiom (no space after "#")
6407         even when the function is inside an #if block:
6408         char *
6409         gets (char *s)
6410         #undef gets
6411         {
6412           ...
6413         }
6414
6415 2011-07-04  Jim Meyering  <meyering@redhat.com>
6416
6417         maint: indent with spaces, not TABs, and add a rule to check this
6418         * tests/test-userspec.c: Indent with spaces, not TABs.
6419         * tests/test-argp.c: Likewise.
6420         * tests/test-c-stack2.sh: Likewise.
6421         * tests/test-parse-duration.sh: Likewise
6422         * m4/strtod.m4: Likewise.
6423         * m4/alloca.m4: Likewise.
6424         * m4/pselect.m4: Likewise.
6425         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6426
6427 2011-07-03  Jim Meyering  <meyering@redhat.com>
6428
6429         maint.mk: correct omissions in prohibit_argmatch_without_use check
6430         This rule would mistakenly report that argmatch.h is included without
6431         use even when both the argmatch and invalid_arg macro were used.
6432         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6433         of argmatch and invalid_arg.
6434
6435 2011-07-03  Bruno Haible  <bruno@clisp.org>
6436
6437         Comments about EINTR.
6438         * lib/safe-read.h: Explain the purpose of this module.
6439         * lib/safe-write.h: Likewise.
6440         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6441         module.
6442         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6443         module.
6444         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6445
6446 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6447
6448         xnanosleep: Rewrite to use new dtotimespec module.
6449         It has the conversion code that used to be in xnanosleep.
6450         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6451         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6452         (TIME_T_MAX): Remove.
6453         (xnanosleep): Rewrite in terms of dtotimespec.
6454         * modules/xnanosleep (Depends-on): Add dtotimespec.
6455         Remove intprops, stdbool.
6456
6457         timespec-add, timespec-sub: new modules
6458         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6459         * lib/timespec-add.c, lib/timespec-sub.c:
6460         * modules/timespec-add, modules/timespec-sub: New files.
6461
6462         dtotimespec: new module
6463         * lib/timespec.h (dtotimespec): New decl.
6464         * lib/dtotimespec.c, modules/dtotimespec: New files.
6465
6466         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6467
6468         pselect: new module
6469         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6470         (pselect): New decls.
6471         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6472         since the standard pselect decl uses 'restrict'.
6473         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6474         HAVE_PSELECT, REPLACE_PSELECT.
6475         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6476         HAVE_PSELECT, REPLACE_PSELECT.
6477         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6478
6479         sys_select: don't depend on sys_socket
6480         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6481         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6482         This fix works on GNU and GNU-like platforms, but has not been tested
6483         on native Windows.
6484         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6485         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6486         gl_HEADER_SYS_SOCKET.
6487         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6488         gl_PREREQ_SYS_H_WINSOCK2.
6489
6490 2011-06-29  Eric Blake  <eblake@redhat.com>
6491
6492         pipe2: fix C89 compile problem
6493         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6494         Reported by Bruno Haible.
6495
6496         pipe, pipe2: don't corrupt fd on error
6497         * lib/pipe.c (pipe): Leave fd unchanged on error.
6498         * lib/pipe2.c (pipe2): Likewise.
6499         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6500         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6501
6502 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6503
6504         mmap-anon: do not use regular expressions inadvertently
6505         * m4/mmap-anon.m4: Remove trailing period from strings sought
6506         in the output.
6507
6508 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6509
6510         nanosleep: fix integer overflow problem
6511         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6512         arithmetic wraps around on overflow.
6513
6514         nanosleep: simplify carrying
6515         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6516         first call to the underyling nanosleep, not for the last one.
6517         This doesn't fix any bugs, but it simplifies the computation of
6518         the remaining delay.  Found while auditing integer overflow issues.
6519
6520         dup2: remove test for existence of fcntl
6521         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6522         "#if HAVE_FCNTL", in the configure-time test program.
6523         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6524         and therefore speeds up "configure" a bit.  Found while
6525         adding the dup2 module to Emacs.
6526
6527 2011-06-24  Eric Blake  <eblake@redhat.com>
6528
6529         maint.mk: enhance useless header checks
6530         * top/maint.mk (_sc_header_without_use): Check both include
6531         styles.
6532         (sc_prohibit_assert_without_use)
6533         (sc_prohibit_close_stream_without_use)
6534         (sc_prohibit_getopt_without_use)
6535         (sc_prohibit_quotearg_without_use)
6536         (sc_prohibit_quote_without_use)
6537         (sc_prohibit_long_options_without_use)
6538         (sc_prohibit_inttostr_without_use)
6539         (sc_prohibit_ignore_value_without_use)
6540         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6541         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6542         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6543         (sc_prohibit_hash_pjw_without_use)
6544         (sc_prohibit_safe_read_without_use)
6545         (sc_prohibit_argmatch_without_use)
6546         (sc_prohibit_canonicalize_without_use)
6547         (sc_prohibit_root_dev_ino_without_use)
6548         (sc_prohibit_openat_without_use)
6549         (sc_prohibit_c_ctype_without_use)
6550         (sc_prohibit_signal_without_use)
6551         (sc_prohibit_stdio--_without_use)
6552         (sc_prohibit_stdio-safer_without_use)
6553         (sc_prohibit_strings_without_use)
6554         (sc_prohibit_intprops_without_use)
6555         (sc_prohibit_stddef_without_use)
6556         (sc_prohibit_xfreopen_without_use): Update clients.
6557
6558 2011-06-24  Jim Meyering  <meyering@redhat.com>
6559
6560         syntax-check: keep one maint.mk rule in sync with its header
6561         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6562         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6563         I prefer to avoid temporary files here, so use <(...), but that
6564         is not supported by /bin/sh, so...
6565         (SHELL): Define to /bin/bash.
6566
6567 2011-06-24  Eric Blake  <eblake@redhat.com>
6568
6569         maint.mk: update sc_prohibit_intprops_without_use
6570         * top/maint.mk (_intprops_names): Match recent changes.
6571
6572 2011-06-24  Bruno Haible  <bruno@clisp.org>
6573
6574         strerror-override: No-op tweak.
6575         * lib/strerror-override.h (strerror_override): Reorder conditions,
6576         for consistency with lib/strerror-override.c.
6577
6578 2011-06-23  Eric Blake  <eblake@redhat.com>
6579
6580         maint.mk: test further PATH_MAX issues
6581         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6582         (sc_prohibit_path_max_allocation): ...and also test alloca.
6583         Suggested by Jim Meyering.
6584
6585 2011-06-22  Eric Blake  <eblake@redhat.com>
6586
6587         maint.mk: add syntax-check to avoid char[PATH_MAX]
6588         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6589
6590         stat: be robust to PATH_MAX definition
6591         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6592         * modules/stat (Depends-on): Add verify.
6593
6594         link: work around IRIX bug
6595         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6596         * lib/link.c (rpl_link): Work around it.
6597         * tests/test-link.h (test_link): Enhance test.
6598         * doc/posix-functions/link.texi (link): Document the bug.
6599
6600         getopt: silence clang warning
6601         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6602         dereference.
6603         Reported by Gustavo Martin Domato.
6604
6605 2011-06-22  Jim Meyering  <meyering@redhat.com>
6606
6607         bootstrap: do not insert a blank line into each .gitignore file
6608         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6609
6610 2011-06-21  Eric Blake  <eblake@redhat.com>
6611
6612         perror: test for output mismatch
6613         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6614         perror on IRIX.
6615
6616         strerror_r: fix OpenBSD behavior on out-of-range
6617         * lib/strerror_r.c (strerror_r): Always use maximal string.
6618         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6619
6620         strerror_r: fix OpenBSD behavior on 0
6621         * lib/strerror-override.c (strerror_override): Also override 0
6622         when needed.
6623         * lib/strerror-override.h (strerror_override): Likewise.
6624         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6625         earlier.
6626         * lib/strerror_r.c (strerror_r): Likewise.
6627         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6628         behavior...
6629         (gl_FUNC_STRERROR_0): ...into new macro.
6630         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6631         is overridden.
6632         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6633         * modules/strerror-override (Files): Add strerror.m4.
6634         (configure.ac): Also provide override for 0 when needed.
6635         * doc/posix-functions/strerror.texi (strerror): Document this.
6636         * doc/posix-functions/perror.texi (perror): Likewise.
6637
6638         perror: adjust array size
6639         * modules/perror (Depends-on): Add strerror-override.
6640         * lib/perror.c (perror): Use it to avoid magic number.
6641
6642         strerror-override: reduce size
6643         * lib/strerror-override.c (strerror_override): Use fewer lines.
6644
6645 2011-06-20  Bruno Haible  <bruno@clisp.org>
6646
6647         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6648         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6649
6650 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6651
6652         alloca: port to compilers that can optimize like GCC 4.6.0
6653         * lib/alloca.c (find_stack_direction): New signature, taken from
6654         Autoconf git.  This works with GCC 4.6.0.  This code should never
6655         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6656         be used with other compilers that optimize as well as GCC 4.6.0 does.
6657         (alloca): Adjust to new signature.
6658         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6659         New macro, which patches Autoconf in a similar way.
6660
6661         c-stack: stop worrying about stack direction
6662         * lib/c-stack.c (find_stack_direction): Remove.
6663         (segv_handler): Don't worry about stack direction growth, as it's
6664         too much of a pain to configure this correctly, given how compilers
6665         are optimizing-away our stack-growth detection code.  Instead, assume
6666         that any access to just before or just after the stack is OK.
6667         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6668         Don't require AC_FUNC_ALLOCA; no longer needed.
6669
6670 2011-06-20  Eric Blake  <eblake@redhat.com>
6671
6672         test-stat: don't allocate PATH_MAX bytes
6673         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6674         PATH_MAX-sized buffer.
6675         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6676         * modules/stat-tests (Depends-on): Likewise.
6677         * tests/test-fstatat.c (includes): Drop pathmax.h.
6678         * tests/test-stat.c (includes): Likewise.
6679         Reported by Bruno Haible.
6680
6681 2011-06-20  Bruno Haible  <bruno@clisp.org>
6682
6683         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6684         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6685         * lib/float.c: New file.
6686         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6687         REPLACE_FLOAT_LDBL.
6688         * modules/float (Files): Add lib/float.c.
6689         (configure.ac): Invoke AC_LIBOBJ.
6690         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6691
6692 2011-06-20  Bruno Haible  <bruno@clisp.org>
6693
6694         Tests for module 'float'.
6695         * modules/float-tests: New file.
6696         * tests/test-float.c: New file.
6697
6698 2011-06-19  Bruno Haible  <bruno@clisp.org>
6699
6700         isinf: Coding style.
6701         * lib/isinf.c: Use GNU coding style.
6702
6703 2011-06-19  Bruno Haible  <bruno@clisp.org>
6704
6705         linkat test: Avoid test failure on AIX 7.1.
6706         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6707         * tests/test-link.h (test_link): Likewise.
6708
6709 2011-06-19  Bruno Haible  <bruno@clisp.org>
6710
6711         pread test: Avoid test failure on OpenBSD 4.9.
6712         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6713
6714 2011-06-19  Bruno Haible  <bruno@clisp.org>
6715
6716         sprintf-posix: Fix test failure on AIX 7.1.
6717         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6718         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6719         on AIX.
6720         * doc/posix-functions/fprintf.texi: Likewise.
6721         * doc/posix-functions/printf.texi: Likewise.
6722         * doc/posix-functions/snprintf.texi: Likewise.
6723         * doc/posix-functions/sprintf.texi: Likewise.
6724         * doc/posix-functions/vdprintf.texi: Likewise.
6725         * doc/posix-functions/vfprintf.texi: Likewise.
6726         * doc/posix-functions/vprintf.texi: Likewise.
6727         * doc/posix-functions/vsnprintf.texi: Likewise.
6728         * doc/posix-functions/vsprintf.texi: Likewise.
6729
6730 2011-06-19  Bruno Haible  <bruno@clisp.org>
6731
6732         roundl-ieee: Fix test failure on AIX 7.1.
6733         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6734         * doc/posix-functions/roundl.texi: Mention problem with negative
6735         arguments.
6736
6737 2011-06-19  Bruno Haible  <bruno@clisp.org>
6738
6739         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6740         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6741         * doc/posix-functions/round.texi: Mention problem with negative
6742         arguments.
6743         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6744
6745 2011-06-19  Bruno Haible  <bruno@clisp.org>
6746
6747         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6748         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6749         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6750         * doc/posix-functions/roundf.texi: Mention problem with negative
6751         arguments.
6752         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6753
6754 2011-06-19  Bruno Haible  <bruno@clisp.org>
6755
6756         ceilf-ieee: Work around bug on MacOS X 10.5.
6757         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6758
6759         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6760         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6761         IEEE compliant, avoid compiler optimizations.
6762         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6763         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6764         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6765         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6766         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6767         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6768         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6769         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6770         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6771         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6772
6773 2011-06-19  Bruno Haible  <bruno@clisp.org>
6774
6775         ceilf-ieee: Work around bug on AIX 7.1.
6776         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6777         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6778
6779 2011-06-19  Bruno Haible  <bruno@clisp.org>
6780
6781         ceil-ieee: Work around bug on AIX 7.1.
6782         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6783         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6784
6785 2011-06-18  Bruno Haible  <bruno@clisp.org>
6786
6787         fsync test: Avoid test failure on MacOS X and AIX.
6788         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6789         EINVAL.
6790
6791 2011-06-18  Bruno Haible  <bruno@clisp.org>
6792
6793         openat, fdopendir tests: Fix link errors.
6794         * modules/openat-tests (Depends-on): Add progname.
6795         * modules/fdopendir-tests (Depends-on): Likewise.
6796         * tests/test-fchownat.c: Include progname.h.
6797         (main): Call set_program_name.
6798         * tests/test-fstatat.c: Include progname.h.
6799         (main): Call set_program_name.
6800         * tests/test-mkdirat.c: Include progname.h.
6801         (main): Call set_program_name.
6802         * tests/test-openat.c: Include progname.h.
6803         (main): Call set_program_name.
6804         * tests/test-unlinkat.c: Include progname.h.
6805         (main): Call set_program_name.
6806         * tests/test-fdopendir.c: Include progname.h.
6807         (main): Call set_program_name.
6808
6809 2011-06-18  Bruno Haible  <bruno@clisp.org>
6810
6811         Doc update.
6812         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6813         HP-UX.
6814         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6815
6816 2011-06-18  Bruno Haible  <bruno@clisp.org>
6817
6818         getcwd tests: Avoid compilation error on HP-UX 11.31.
6819         * modules/getcwd-tests (Depends-on): Add pathmax.
6820         * tests/test-getcwd.c: Include pathmax.h.
6821
6822 2011-06-18  Bruno Haible  <bruno@clisp.org>
6823
6824         isfinite, isinf: Fix link error on AIX 6 and 7.
6825         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6826         needed, also test the macro with a 'float' argument.
6827         * m4/isinf.m4 (gl_ISINF): Likewise.
6828
6829 2011-06-18  Bruno Haible  <bruno@clisp.org>
6830
6831         getloadavg: Don't clobber LIBS. Regression from previous commit.
6832         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6833         AC_CHECK_LIB from here...
6834         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6835         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6836         gl_func_getloadavg_done.
6837         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6838
6839 2011-06-18  Bruno Haible  <bruno@clisp.org>
6840
6841         clean-temp: Improve documentation.
6842         * lib/clean-temp.h: Explain better how to use this module.
6843         Reported by John Darrington <john@darrington.wattle.id.au>.
6844
6845 2011-06-17  Bruno Haible  <bruno@clisp.org>
6846
6847         pread, pwrite: Avoid cc warning on AIX.
6848         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6849         (pwrite): Likewise.
6850
6851 2011-06-17  Bruno Haible  <bruno@clisp.org>
6852
6853         spawn-pipe tests: Fix link error.
6854         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6855         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6856
6857 2011-06-17  Bruno Haible  <bruno@clisp.org>
6858
6859         Tests: Remove unnecessary dependency.
6860         * modules/canonicalize-tests (Depends-on): Remove progname.
6861         * modules/chown-tests (Depends-on): Likewise.
6862         * modules/dirname-tests (Depends-on): Likewise.
6863         * modules/fdopendir-tests (Depends-on): Likewise.
6864         * modules/fdutimensat-tests (Depends-on): Likewise.
6865         * modules/hash-tests (Depends-on): Likewise.
6866         * modules/lchown-tests (Depends-on): Likewise.
6867         * modules/linkat-tests (Depends-on): Likewise.
6868         * modules/renameat-tests (Depends-on): Likewise.
6869         * modules/spawn-pipe-tests (Depends-on): Likewise.
6870         * modules/utimensat-tests (Depends-on): Likewise.
6871
6872 2011-06-17  Bruno Haible  <bruno@clisp.org>
6873
6874         spawn-pipe tests: Fix link error.
6875         * tests/test-spawn-pipe-child.c: Undefine fflush.
6876
6877 2011-06-17  Bruno Haible  <bruno@clisp.org>
6878
6879         Fix tests link errors.
6880         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6881         * modules/chown-tests (Makefile.am): Don't link test-chown with
6882         LIBINTL.
6883         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6884         LIBINTL.
6885         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6886         LIBINTL.
6887         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6888         LIBINTL.
6889
6890 2011-06-16  Bruno Haible  <bruno@clisp.org>
6891
6892         crypto/gc-sha1: Fix recent regression.
6893         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6894         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6895
6896         crypto/gc-md5: Fix recent regression.
6897         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6898
6899         crypto/gc-md4: Fix recent regression.
6900         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6901         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6902
6903         crypto/gc-arctwo: Fix recent regression.
6904         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6905         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6906
6907         crypto/gc-rijndael: Fix recent regression.
6908         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6909         (configure.ac): Invoke AC_LIBOBJ here.
6910         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6911         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6912
6913         crypto/gc-hmac-sha1: Fix recent regression.
6914         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6915         (configure.ac): Invoke AC_LIBOBJ here.
6916         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6917         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6918
6919         crypto/gc-hmac-md5: Fix recent regression.
6920         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6921         (configure.ac): Invoke AC_LIBOBJ here.
6922         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6923         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6924
6925         crypto/gc-des: Fix recent regression.
6926         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6927         (configure.ac): Invoke AC_LIBOBJ here.
6928         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6929         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6930
6931         crypto/gc-arcfour: Fix recent regression.
6932         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6933         (configure.ac): Invoke AC_LIBOBJ here.
6934         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6935         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6936
6937 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6938
6939         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6940         After the 2011-05-21 change, this macro requires
6941         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6942         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6943
6944 2011-06-16  Bruno Haible  <bruno@clisp.org>
6945
6946         fprintftime: Move AC_LIBOBJ invocations to module description.
6947         * m4/fprintftime.m4: Remove file.
6948         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6949         (configure.ac): Remove gl_FPRINTFTIME call.
6950         (Makefile.am): Augment lib_SOURCES.
6951         Reported by Jim Meyering.
6952
6953 2011-06-16  Bruno Haible  <bruno@clisp.org>
6954
6955         tmpfile-safer: Finish 2011-05-23 commit.
6956         * m4/stdio-safer.m4: Really remove file.
6957         Reported by Jim Meyering.
6958
6959 2011-06-16  Bruno Haible  <bruno@clisp.org>
6960
6961         syntax-check: Fix typo.
6962         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6963         printf-posix.m4.
6964         Reported by Jim Meyering.
6965
6966 2011-06-13  Jim Meyering  <meyering@redhat.com>
6967
6968         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6969         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6970
6971 2011-05-23  Bruno Haible  <bruno@clisp.org>
6972
6973         yesno: Move AC_LIBOBJ invocations to module description.
6974         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6975         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6976
6977 2011-05-23  Bruno Haible  <bruno@clisp.org>
6978
6979         xstrtol: Move AC_LIBOBJ invocations to module description.
6980         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6981         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6982
6983 2011-05-23  Bruno Haible  <bruno@clisp.org>
6984
6985         xstrtold: Move AC_LIBOBJ invocations to module description.
6986         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6987         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6988
6989 2011-05-23  Bruno Haible  <bruno@clisp.org>
6990
6991         xstrtod: Move AC_LIBOBJ invocations to module description.
6992         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6993         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6994
6995 2011-05-23  Bruno Haible  <bruno@clisp.org>
6996
6997         xnanosleep: Move AC_LIBOBJ invocations to module description.
6998         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6999         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7000
7001 2011-05-23  Bruno Haible  <bruno@clisp.org>
7002
7003         xgetcwd: Move AC_LIBOBJ invocations to module description.
7004         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7005         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7006
7007 2011-05-23  Bruno Haible  <bruno@clisp.org>
7008
7009         xalloc: Move AC_LIBOBJ invocations to module description.
7010         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7011         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7012
7013 2011-05-23  Bruno Haible  <bruno@clisp.org>
7014
7015         write-any-file: Move AC_LIBOBJ invocations to module description.
7016         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7017         invocation.
7018         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7019
7020 2011-05-23  Bruno Haible  <bruno@clisp.org>
7021
7022         utimens: Move AC_LIBOBJ invocations to module description.
7023         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7024         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7025
7026 2011-05-23  Bruno Haible  <bruno@clisp.org>
7027
7028         utimecmp: Move AC_LIBOBJ invocations to module description.
7029         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7030         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7031
7032 2011-05-23  Bruno Haible  <bruno@clisp.org>
7033
7034         userspec: Move AC_LIBOBJ invocations to module description.
7035         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7036         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7037
7038 2011-05-23  Bruno Haible  <bruno@clisp.org>
7039
7040         unlinkdir: Move AC_LIBOBJ invocations to module description.
7041         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7042         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7043
7044 2011-05-23  Bruno Haible  <bruno@clisp.org>
7045
7046         unistd-safer: Move AC_LIBOBJ invocations to module description.
7047         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7048         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7049
7050 2011-05-23  Bruno Haible  <bruno@clisp.org>
7051
7052         tempname: Move AC_LIBOBJ invocations to module description.
7053         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7054         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7055
7056 2011-05-23  Bruno Haible  <bruno@clisp.org>
7057
7058         strftime: Move AC_LIBOBJ invocations to module description.
7059         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7060         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7061
7062 2011-05-23  Bruno Haible  <bruno@clisp.org>
7063
7064         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7065         * m4/stdlib-safer.m4: Remove file.
7066         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7067         (configure.ac): Remove gl_STDLIB_SAFER call.
7068         (Makefile.am): Augment lib_SOURCES.
7069
7070 2011-05-23  Bruno Haible  <bruno@clisp.org>
7071
7072         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7073         * m4/stdio-safer.m4: Remove file.
7074         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7075         (configure.ac): Remove gl_TMPFILE_SAFER call.
7076         (Makefile.am): Augment lib_SOURCES.
7077
7078 2011-05-23  Bruno Haible  <bruno@clisp.org>
7079
7080         popen-safer: Move AC_LIBOBJ invocations to module description.
7081         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7082         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7083         (configure.ac): Remove gl_POPEN_SAFER call.
7084         (Makefile.am): Augment lib_SOURCES.
7085
7086 2011-05-23  Bruno Haible  <bruno@clisp.org>
7087
7088         freopen-safer: Move AC_LIBOBJ invocations to module description.
7089         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7090         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7091         (configure.ac): Remove gl_FREOPEN_SAFER call.
7092         (Makefile.am): Augment lib_SOURCES.
7093
7094 2011-05-23  Bruno Haible  <bruno@clisp.org>
7095
7096         fopen-safer: Move AC_LIBOBJ invocations to module description.
7097         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7098         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7099         (configure.ac): Remove gl_FOPEN_SAFER call.
7100         (Makefile.am): Augment lib_SOURCES.
7101
7102 2011-05-23  Bruno Haible  <bruno@clisp.org>
7103
7104         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7105         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7106         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7107
7108 2011-05-23  Bruno Haible  <bruno@clisp.org>
7109
7110         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7111         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7112         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7113
7114 2011-05-23  Bruno Haible  <bruno@clisp.org>
7115
7116         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7117         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7118         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7119
7120 2011-05-23  Bruno Haible  <bruno@clisp.org>
7121
7122         settime: Move AC_LIBOBJ invocations to module description.
7123         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7124         * modules/settime (Makefile.am): Augment lib_SOURCES.
7125
7126 2011-05-23  Bruno Haible  <bruno@clisp.org>
7127
7128         savedir: Move AC_LIBOBJ invocations to module description.
7129         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7130         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7131
7132 2011-05-23  Bruno Haible  <bruno@clisp.org>
7133
7134         save-cwd: Move AC_LIBOBJ invocations to module description.
7135         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7136         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7137
7138 2011-05-23  Bruno Haible  <bruno@clisp.org>
7139
7140         same: Move AC_LIBOBJ invocations to module description.
7141         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7142         * modules/same (Makefile.am): Augment lib_SOURCES.
7143
7144 2011-05-23  Bruno Haible  <bruno@clisp.org>
7145
7146         safe-write: Move AC_LIBOBJ invocations to module description.
7147         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7148         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7149         instead of gl_SAFE_WRITE.
7150         (Makefile.am): Augment lib_SOURCES.
7151
7152 2011-05-23  Bruno Haible  <bruno@clisp.org>
7153
7154         safe-read: Move AC_LIBOBJ invocations to module description.
7155         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7156         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7157         of gl_SAFE_READ.
7158         (Makefile.am): Augment lib_SOURCES.
7159
7160 2011-05-23  Bruno Haible  <bruno@clisp.org>
7161
7162         safe-alloc: Move AC_LIBOBJ invocations to module description.
7163         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7164         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7165
7166 2011-05-23  Bruno Haible  <bruno@clisp.org>
7167
7168         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7169         * m4/rijndael.m4: Remove file.
7170         * modules/crypto/rijndael (Files): Remove it.
7171         (configure.ac): Remove gl_RIJNDAEL call.
7172         (Makefile.am): Augment lib_SOURCES.
7173
7174 2011-05-23  Bruno Haible  <bruno@clisp.org>
7175
7176         readtokens: Move AC_LIBOBJ invocations to module description.
7177         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7178         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7179
7180 2011-05-23  Bruno Haible  <bruno@clisp.org>
7181
7182         read-file: Move AC_LIBOBJ invocations to module description.
7183         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7184         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7185         of gl_FUNC_READ_FILE.
7186         (Makefile.am): Augment lib_SOURCES.
7187
7188 2011-05-23  Bruno Haible  <bruno@clisp.org>
7189
7190         quotearg: Move AC_LIBOBJ invocations to module description.
7191         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7192         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7193
7194 2011-05-23  Bruno Haible  <bruno@clisp.org>
7195
7196         quote: Move AC_LIBOBJ invocations to module description.
7197         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7198         * modules/quote (Makefile.am): Augment lib_SOURCES.
7199
7200 2011-05-23  Bruno Haible  <bruno@clisp.org>
7201
7202         posixver: Move AC_LIBOBJ invocations to module description.
7203         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7204         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7205
7206 2011-05-23  Bruno Haible  <bruno@clisp.org>
7207
7208         posixtm: Move AC_LIBOBJ invocations to module description.
7209         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7210         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7211
7212 2011-05-23  Bruno Haible  <bruno@clisp.org>
7213
7214         physmem: Move AC_LIBOBJ invocations to module description.
7215         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7216         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7217
7218 2011-05-23  Bruno Haible  <bruno@clisp.org>
7219
7220         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7221         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7222         invocation.
7223         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7224
7225 2011-05-23  Bruno Haible  <bruno@clisp.org>
7226
7227         mpsort: Move AC_LIBOBJ invocations to module description.
7228         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7229         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7230
7231 2011-05-23  Bruno Haible  <bruno@clisp.org>
7232
7233         modechange: Move AC_LIBOBJ invocations to module description.
7234         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7235         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7236
7237 2011-05-23  Bruno Haible  <bruno@clisp.org>
7238
7239         mkdir-p: Move AC_LIBOBJ invocations to module description.
7240         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7241         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7242
7243 2011-05-23  Bruno Haible  <bruno@clisp.org>
7244
7245         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7246         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7247         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7248
7249 2011-05-23  Bruno Haible  <bruno@clisp.org>
7250
7251         mgetgroups: Move AC_LIBOBJ invocations to module description.
7252         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7253         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7254
7255 2011-05-23  Bruno Haible  <bruno@clisp.org>
7256
7257         memxor: Move AC_LIBOBJ invocations to module description.
7258         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7259         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7260
7261 2011-05-23  Bruno Haible  <bruno@clisp.org>
7262
7263         memcoll: Move AC_LIBOBJ invocations to module description.
7264         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7265         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7266
7267 2011-05-23  Bruno Haible  <bruno@clisp.org>
7268
7269         memcasecmp: Move AC_LIBOBJ invocations to module description.
7270         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7271         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7272
7273 2011-05-23  Bruno Haible  <bruno@clisp.org>
7274
7275         crypto/md5: Move AC_LIBOBJ invocations to module description.
7276         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7277         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7278
7279 2011-05-23  Bruno Haible  <bruno@clisp.org>
7280
7281         crypto/md4: Move AC_LIBOBJ invocations to module description.
7282         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7283         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7284
7285 2011-05-23  Bruno Haible  <bruno@clisp.org>
7286
7287         crypto/md2: Move AC_LIBOBJ invocations to module description.
7288         * m4/md2.m4: Remove file.
7289         * modules/crypto/md2 (Files): Remove it.
7290         (configure.ac): Remove gl_MD2 call.
7291         (Makefile.am): Augment lib_SOURCES.
7292
7293 2011-05-23  Bruno Haible  <bruno@clisp.org>
7294
7295         long-options: Move AC_LIBOBJ invocations to module description.
7296         * m4/long-options.m4: Remove file.
7297         * modules/long-options (Files): Remove it.
7298         (configure.ac): Remove gl_LONG_OPTIONS call.
7299         (Makefile.am): Augment lib_SOURCES.
7300
7301 2011-05-23  Bruno Haible  <bruno@clisp.org>
7302
7303         i-ring: Move AC_LIBOBJ invocations to module description.
7304         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7305         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7306
7307 2011-05-23  Bruno Haible  <bruno@clisp.org>
7308
7309         idcache: Move AC_LIBOBJ invocations to module description.
7310         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7311         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7312
7313 2011-05-23  Bruno Haible  <bruno@clisp.org>
7314
7315         human: Move AC_LIBOBJ invocations to module description.
7316         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7317         * modules/human (Makefile.am): Augment lib_SOURCES.
7318
7319 2011-05-23  Bruno Haible  <bruno@clisp.org>
7320
7321         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7322         * m4/hmac-sha1.m4: Remove file.
7323         * modules/crypto/hmac-sha1 (Files): Remove it.
7324         (configure.ac): Remove gl_HMAC_SHA1 call.
7325         (Makefile.am): Augment lib_SOURCES.
7326
7327 2011-05-23  Bruno Haible  <bruno@clisp.org>
7328
7329         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7330         * m4/hmac-md5.m4: Remove file.
7331         * modules/crypto/hmac-md5 (Files): Remove it.
7332         (configure.ac): Remove gl_HMAC_MD5 call.
7333         (Makefile.am): Augment lib_SOURCES.
7334
7335 2011-05-23  Bruno Haible  <bruno@clisp.org>
7336
7337         hash: Move AC_LIBOBJ invocations to module description.
7338         * m4/hash.m4: Remove file.
7339         * modules/hash (Files): Remove it.
7340         (configure.ac): Remove gl_HASH call.
7341         (Makefile.am): Augment lib_SOURCES.
7342
7343 2011-05-23  Bruno Haible  <bruno@clisp.org>
7344
7345         hard-locale: Move AC_LIBOBJ invocations to module description.
7346         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7347         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7348
7349 2011-05-23  Bruno Haible  <bruno@clisp.org>
7350
7351         getugroups: Move AC_LIBOBJ invocations to module description.
7352         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7353         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7354
7355 2011-05-23  Bruno Haible  <bruno@clisp.org>
7356
7357         gettime: Move AC_LIBOBJ invocations to module description.
7358         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7359         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7360
7361 2011-05-23  Bruno Haible  <bruno@clisp.org>
7362
7363         getndelim2: Move AC_LIBOBJ invocations to module description.
7364         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7365         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7366
7367 2011-05-23  Bruno Haible  <bruno@clisp.org>
7368
7369         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7370         * m4/gc-pbkdf2-sha1.m4: Remove file.
7371         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7372         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7373         (Makefile.am): Augment lib_SOURCES.
7374
7375 2011-05-23  Bruno Haible  <bruno@clisp.org>
7376
7377         fts: Move AC_LIBOBJ invocations to module description.
7378         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7379         * modules/fts (configure.ac): ... to here.
7380
7381 2011-05-23  Bruno Haible  <bruno@clisp.org>
7382
7383         file-type: Move AC_LIBOBJ invocations to module description.
7384         * m4/file-type.m4: Remove file.
7385         * modules/file-type (Files): Remove it.
7386         (configure.ac): Remove gl_FILE_TYPE call.
7387         (Makefile.am): Augment lib_SOURCES.
7388
7389 2011-05-23  Bruno Haible  <bruno@clisp.org>
7390
7391         filenamecat*: Respect rules for use of AC_LIBOBJ.
7392         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7393         Remove AC_LIBOBJ invocation.
7394         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7395         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7396
7397 2011-05-23  Bruno Haible  <bruno@clisp.org>
7398
7399         filemode: Move AC_LIBOBJ invocations to module description.
7400         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7401         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7402
7403 2011-05-23  Bruno Haible  <bruno@clisp.org>
7404
7405         openat-safer: Move AC_LIBOBJ invocations to module description.
7406         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7407         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7408
7409 2011-05-23  Bruno Haible  <bruno@clisp.org>
7410
7411         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7412         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7413         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7414
7415 2011-05-23  Bruno Haible  <bruno@clisp.org>
7416
7417         exclude: Move AC_LIBOBJ invocations to module description.
7418         * m4/exclude.m4: Remove file.
7419         * modules/exclude (Files): Remove it.
7420         (configure.ac): Remove gl_EXCLUDE call.
7421         (Makefile.am): Augment lib_SOURCES.
7422
7423 2011-05-23  Bruno Haible  <bruno@clisp.org>
7424
7425         dirname*: Respect rules for use of AC_LIBOBJ.
7426         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7427         invocations.
7428         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7429         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7430
7431 2011-05-23  Bruno Haible  <bruno@clisp.org>
7432
7433         dirent-safer: Move AC_LIBOBJ invocations to module description.
7434         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7435         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7436
7437 2011-05-23  Bruno Haible  <bruno@clisp.org>
7438
7439         crypto/des: Move AC_LIBOBJ invocations to module description.
7440         * m4/des.m4: Remove file.
7441         * modules/crypto/des (Files): Remove it.
7442         (configure.ac): Remove gl_DES call.
7443         (Makefile.am): Augment lib_SOURCES.
7444
7445 2011-05-23  Bruno Haible  <bruno@clisp.org>
7446
7447         cycle-check: Move AC_LIBOBJ invocations to module description.
7448         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7449         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7450
7451 2011-05-23  Bruno Haible  <bruno@clisp.org>
7452
7453         c-strtold: Move AC_LIBOBJ invocations to module description.
7454         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7455         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7456
7457 2011-05-23  Bruno Haible  <bruno@clisp.org>
7458
7459         c-strtod: Move AC_LIBOBJ invocations to module description.
7460         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7461         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7462
7463 2011-05-23  Bruno Haible  <bruno@clisp.org>
7464
7465         crc: Move AC_LIBOBJ invocations to module description.
7466         * m4/crc.m4: Remove file.
7467         * modules/crc (Files): Remove it.
7468         (configure.ac): Remove gl_CRC call.
7469         (Makefile.am): Augment lib_SOURCES.
7470
7471 2011-05-23  Bruno Haible  <bruno@clisp.org>
7472
7473         close-stream: Move AC_LIBOBJ invocations to module description.
7474         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7475         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7476
7477 2011-05-23  Bruno Haible  <bruno@clisp.org>
7478
7479         closeout: Move AC_LIBOBJ invocations to module description.
7480         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7481         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7482
7483 2011-05-23  Bruno Haible  <bruno@clisp.org>
7484
7485         closein: Move AC_LIBOBJ invocations to module description.
7486         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7487         * modules/closein (Makefile.am): Augment lib_SOURCES.
7488
7489 2011-05-23  Bruno Haible  <bruno@clisp.org>
7490
7491         cloexec: Move AC_LIBOBJ invocations to module description.
7492         * m4/cloexec.m4: Remove file.
7493         * modules/cloexec (Files): Remove it.
7494         (configure.ac): Remove gl_CLOEXEC call.
7495         (Makefile.am): Augment lib_SOURCES.
7496
7497 2011-05-23  Bruno Haible  <bruno@clisp.org>
7498
7499         check-version: Move AC_LIBOBJ invocations to module description.
7500         * m4/check-version.m4: Remove file.
7501         * modules/check-version (Files): Remove it.
7502         (configure.ac): Remove gl_CHECK_VERSION call.
7503         (Makefile.am): Augment lib_SOURCES.
7504
7505 2011-05-23  Bruno Haible  <bruno@clisp.org>
7506
7507         chdir-safer: Move AC_LIBOBJ invocations to module description.
7508         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7509         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7510
7511 2011-05-23  Bruno Haible  <bruno@clisp.org>
7512
7513         canonicalize: Move AC_LIBOBJ invocations to module description.
7514         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7515         AC_LIBOBJ invocation.
7516         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7517
7518 2011-05-23  Bruno Haible  <bruno@clisp.org>
7519
7520         canon-host: Move AC_LIBOBJ invocations to module description.
7521         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7522         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7523         instead of gl_CANON_HOST.
7524         (Makefile.am): Augment lib_SOURCES.
7525
7526 2011-05-23  Bruno Haible  <bruno@clisp.org>
7527
7528         backupfile: Move AC_LIBOBJ invocations to module description.
7529         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7530         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7531
7532 2011-05-23  Bruno Haible  <bruno@clisp.org>
7533
7534         argmatch: Move AC_LIBOBJ invocations to module description.
7535         * m4/argmatch.m4: Remove file.
7536         * modules/argmatch (Files): Remove it.
7537         (configure.ac): Remove gl_ARGMATCH call.
7538         (Makefile.am): Augment lib_SOURCES.
7539
7540 2011-05-23  Bruno Haible  <bruno@clisp.org>
7541
7542         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7543         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7544         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7545
7546 2011-05-23  Bruno Haible  <bruno@clisp.org>
7547
7548         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7549         * m4/arcfour.m4: Remove file.
7550         * modules/crypto/arcfour (Files): Remove it.
7551         (configure.ac): Remove gl_ARCFOUR call.
7552         (Makefile.am): Augment lib_SOURCES.
7553
7554 2011-05-22  Bruno Haible  <bruno@clisp.org>
7555
7556         write: Move AC_LIBOBJ invocations to module description.
7557         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7558         * modules/write (configure.ac): ... to here.
7559
7560 2011-05-22  Bruno Haible  <bruno@clisp.org>
7561
7562         wmemset: Move AC_LIBOBJ invocations to module description.
7563         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7564         here...
7565         * modules/wmemset (configure.ac): ... to here.
7566
7567 2011-05-22  Bruno Haible  <bruno@clisp.org>
7568
7569         wmemmove: Move AC_LIBOBJ invocations to module description.
7570         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7571         here...
7572         * modules/wmemmove (configure.ac): ... to here.
7573
7574 2011-05-22  Bruno Haible  <bruno@clisp.org>
7575
7576         wmemcpy: Move AC_LIBOBJ invocations to module description.
7577         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7578         here...
7579         * modules/wmemcpy (configure.ac): ... to here.
7580
7581 2011-05-22  Bruno Haible  <bruno@clisp.org>
7582
7583         wmemcmp: Move AC_LIBOBJ invocations to module description.
7584         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7585         here...
7586         * modules/wmemcmp (configure.ac): ... to here.
7587
7588 2011-05-22  Bruno Haible  <bruno@clisp.org>
7589
7590         wmemchr: Move AC_LIBOBJ invocations to module description.
7591         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7592         here...
7593         * modules/wmemchr (configure.ac): ... to here.
7594
7595 2011-05-22  Bruno Haible  <bruno@clisp.org>
7596
7597         wcswidth: Move AC_LIBOBJ invocations to module description.
7598         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7599         here...
7600         * modules/wcswidth (configure.ac): ... to here.
7601
7602 2011-05-22  Bruno Haible  <bruno@clisp.org>
7603
7604         wcwidth: Respect rules for use of AC_LIBOBJ.
7605         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7606         invocation from here...
7607         * modules/wcwidth (configure.ac): ... to here.
7608         (Depends-on): Update conditions.
7609
7610 2011-05-22  Bruno Haible  <bruno@clisp.org>
7611
7612         wctype: Move AC_LIBOBJ invocations to module description.
7613         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7614         invocation from here...
7615         * modules/wctype (configure.ac): ... to here.
7616         (Depends-on): Update conditions.
7617
7618 2011-05-22  Bruno Haible  <bruno@clisp.org>
7619
7620         wctrans: Move AC_LIBOBJ invocations to module description.
7621         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7622         invocation from here...
7623         * modules/wctrans (configure.ac): ... to here.
7624
7625 2011-05-22  Bruno Haible  <bruno@clisp.org>
7626
7627         wctomb: Move AC_LIBOBJ invocations to module description.
7628         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7629         invocations from here...
7630         * modules/wctomb (configure.ac): ... to here.
7631
7632 2011-05-22  Bruno Haible  <bruno@clisp.org>
7633
7634         wctob: Move AC_LIBOBJ invocations to module description.
7635         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7636         gl_PREREQ_WCTOB invocations from here...
7637         * modules/wctob (configure.ac): ... to here.
7638         (Depends-on): Update conditions.
7639
7640 2011-05-22  Bruno Haible  <bruno@clisp.org>
7641
7642         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7643         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7644         here...
7645         * modules/wcsxfrm (configure.ac): ... to here.
7646
7647 2011-05-22  Bruno Haible  <bruno@clisp.org>
7648
7649         wcstok: Move AC_LIBOBJ invocations to module description.
7650         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7651         * modules/wcstok (configure.ac): ... to here.
7652
7653 2011-05-22  Bruno Haible  <bruno@clisp.org>
7654
7655         wcsstr: Move AC_LIBOBJ invocations to module description.
7656         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7657         * modules/wcsstr (configure.ac): ... to here.
7658
7659 2011-05-22  Bruno Haible  <bruno@clisp.org>
7660
7661         wcsspn: Move AC_LIBOBJ invocations to module description.
7662         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7663         * modules/wcsspn (configure.ac): ... to here.
7664
7665 2011-05-22  Bruno Haible  <bruno@clisp.org>
7666
7667         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7668         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7669         gl_PREREQ_WCSRTOMBS invocations from here...
7670         * modules/wcsrtombs (configure.ac): ... to here.
7671
7672 2011-05-22  Bruno Haible  <bruno@clisp.org>
7673
7674         wcsrchr: Move AC_LIBOBJ invocations to module description.
7675         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7676         here...
7677         * modules/wcsrchr (configure.ac): ... to here.
7678
7679 2011-05-22  Bruno Haible  <bruno@clisp.org>
7680
7681         wcspbrk: Move AC_LIBOBJ invocations to module description.
7682         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7683         here...
7684         * modules/wcspbrk (configure.ac): ... to here.
7685
7686 2011-05-22  Bruno Haible  <bruno@clisp.org>
7687
7688         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7689         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7690         gl_PREREQ_WCSNRTOMBS invocations from here...
7691         * modules/wcsnrtombs (configure.ac): ... to here.
7692
7693 2011-05-22  Bruno Haible  <bruno@clisp.org>
7694
7695         wcsnlen: Move AC_LIBOBJ invocations to module description.
7696         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7697         here...
7698         * modules/wcsnlen (configure.ac): ... to here.
7699
7700 2011-05-22  Bruno Haible  <bruno@clisp.org>
7701
7702         wcsncpy: Move AC_LIBOBJ invocations to module description.
7703         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7704         here...
7705         * modules/wcsncpy (configure.ac): ... to here.
7706
7707 2011-05-22  Bruno Haible  <bruno@clisp.org>
7708
7709         wcsncmp: Move AC_LIBOBJ invocations to module description.
7710         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7711         here...
7712         * modules/wcsncmp (configure.ac): ... to here.
7713
7714 2011-05-22  Bruno Haible  <bruno@clisp.org>
7715
7716         wcsncat: Move AC_LIBOBJ invocations to module description.
7717         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7718         here...
7719         * modules/wcsncat (configure.ac): ... to here.
7720
7721 2011-05-22  Bruno Haible  <bruno@clisp.org>
7722
7723         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7724         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7725         from here...
7726         * modules/wcsncasecmp (configure.ac): ... to here.
7727
7728 2011-05-22  Bruno Haible  <bruno@clisp.org>
7729
7730         wcslen: Move AC_LIBOBJ invocations to module description.
7731         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7732         * modules/wcslen (configure.ac): ... to here.
7733
7734 2011-05-22  Bruno Haible  <bruno@clisp.org>
7735
7736         wcsdup: Move AC_LIBOBJ invocations to module description.
7737         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7738         * modules/wcsdup (configure.ac): ... to here.
7739
7740 2011-05-22  Bruno Haible  <bruno@clisp.org>
7741
7742         wcscspn: Move AC_LIBOBJ invocations to module description.
7743         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7744         here...
7745         * modules/wcscspn (configure.ac): ... to here.
7746
7747 2011-05-22  Bruno Haible  <bruno@clisp.org>
7748
7749         wcscpy: Move AC_LIBOBJ invocations to module description.
7750         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7751         * modules/wcscpy (configure.ac): ... to here.
7752
7753 2011-05-22  Bruno Haible  <bruno@clisp.org>
7754
7755         wcscoll: Move AC_LIBOBJ invocations to module description.
7756         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7757         here...
7758         * modules/wcscoll (configure.ac): ... to here.
7759
7760 2011-05-22  Bruno Haible  <bruno@clisp.org>
7761
7762         wcscmp: Move AC_LIBOBJ invocations to module description.
7763         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7764         * modules/wcscmp (configure.ac): ... to here.
7765
7766 2011-05-22  Bruno Haible  <bruno@clisp.org>
7767
7768         wcschr: Move AC_LIBOBJ invocations to module description.
7769         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7770         * modules/wcschr (configure.ac): ... to here.
7771
7772 2011-05-22  Bruno Haible  <bruno@clisp.org>
7773
7774         wcscat: Move AC_LIBOBJ invocations to module description.
7775         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7776         * modules/wcscat (configure.ac): ... to here.
7777
7778 2011-05-22  Bruno Haible  <bruno@clisp.org>
7779
7780         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7781         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7782         here...
7783         * modules/wcscasecmp (configure.ac): ... to here.
7784
7785 2011-05-22  Bruno Haible  <bruno@clisp.org>
7786
7787         wcrtomb: Move AC_LIBOBJ invocations to module description.
7788         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7789         invocations from here...
7790         * modules/wcrtomb (configure.ac): ... to here.
7791
7792 2011-05-22  Bruno Haible  <bruno@clisp.org>
7793
7794         wcpncpy: Move AC_LIBOBJ invocations to module description.
7795         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7796         here...
7797         * modules/wcpncpy (configure.ac): ... to here.
7798
7799 2011-05-22  Bruno Haible  <bruno@clisp.org>
7800
7801         wcpcpy: Move AC_LIBOBJ invocations to module description.
7802         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7803         * modules/wcpcpy (configure.ac): ... to here.
7804
7805 2011-05-22  Bruno Haible  <bruno@clisp.org>
7806
7807         waitpid: Move AC_LIBOBJ invocations to module description.
7808         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7809         invocation from here...
7810         * modules/waitpid (configure.ac): ... to here.
7811
7812 2011-05-22  Bruno Haible  <bruno@clisp.org>
7813
7814         utimensat: Move AC_LIBOBJ invocations to module description.
7815         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7816         here...
7817         * modules/utimensat (configure.ac): ... to here.
7818
7819 2011-05-22  Bruno Haible  <bruno@clisp.org>
7820
7821         usleep: Move AC_LIBOBJ invocations to module description.
7822         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7823         here...
7824         * modules/usleep (configure.ac): ... to here.
7825
7826 2011-05-22  Bruno Haible  <bruno@clisp.org>
7827
7828         unlockpt: Move AC_LIBOBJ invocations to module description.
7829         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7830         gl_PREREQ_UNLOCKPT invocations from here...
7831         * modules/unlockpt (configure.ac): ... to here.
7832
7833 2011-05-22  Bruno Haible  <bruno@clisp.org>
7834
7835         unlink: Respect rules for use of AC_LIBOBJ.
7836         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7837         * modules/unlink (configure.ac): ... to here.
7838
7839 2011-05-22  Bruno Haible  <bruno@clisp.org>
7840
7841         uname: Move AC_LIBOBJ invocations to module description.
7842         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7843         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7844         here...
7845         * modules/uname (configure.ac): ... to here.
7846
7847 2011-05-22  Bruno Haible  <bruno@clisp.org>
7848
7849         ttyname_r: Move AC_LIBOBJ invocations to module description.
7850         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7851         gl_PREREQ_TTYNAME_R invocations from here...
7852         * modules/ttyname_r (configure.ac): ... to here.
7853
7854 2011-05-22  Bruno Haible  <bruno@clisp.org>
7855
7856         tsearch: Move AC_LIBOBJ invocations to module description.
7857         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7858         invocations from here...
7859         * modules/tsearch (configure.ac): ... to here.
7860
7861 2011-05-22  Bruno Haible  <bruno@clisp.org>
7862
7863         towctrans: Move AC_LIBOBJ invocations to module description.
7864         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7865         AC_LIBOBJ invocation from here...
7866         * modules/towctrans (configure.ac): ... to here.
7867
7868 2011-05-22  Bruno Haible  <bruno@clisp.org>
7869
7870         tmpfile: Move AC_LIBOBJ invocations to module description.
7871         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7872         invocations from here...
7873         * modules/tmpfile (configure.ac): ... to here.
7874
7875 2011-05-22  Bruno Haible  <bruno@clisp.org>
7876
7877         times: Move AC_LIBOBJ invocations to module description.
7878         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7879         * modules/times (configure.ac): ... to here.
7880
7881 2011-05-22  Bruno Haible  <bruno@clisp.org>
7882
7883         time_r: Move AC_LIBOBJ invocations to module description.
7884         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7885         invocations from here...
7886         * modules/time_r (configure.ac): ... to here.
7887
7888 2011-05-22  Bruno Haible  <bruno@clisp.org>
7889
7890         timegm: Move AC_LIBOBJ invocations to module description.
7891         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7892         invocations from here...
7893         * modules/timegm (configure.ac): ... to here.
7894
7895 2011-05-22  Bruno Haible  <bruno@clisp.org>
7896
7897         tcgetsid: Move AC_LIBOBJ invocations to module description.
7898         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7899         and gl_PREREQ_TCGETSID invocations from here...
7900         * modules/tcgetsid (configure.ac): ... to here.
7901         (Depends-on): Update conditions.
7902
7903 2011-05-22  Bruno Haible  <bruno@clisp.org>
7904
7905         symlinkat: Move AC_LIBOBJ invocations to module description.
7906         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7907         here...
7908         * modules/symlinkat (configure.ac): ... to here.
7909
7910 2011-05-22  Bruno Haible  <bruno@clisp.org>
7911
7912         symlink: Move AC_LIBOBJ invocations to module description.
7913         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7914         here...
7915         * modules/symlink (configure.ac): ... to here.
7916
7917 2011-05-22  Bruno Haible  <bruno@clisp.org>
7918
7919         strverscmp: Move AC_LIBOBJ invocations to module description.
7920         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7921         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7922         from here...
7923         * modules/strverscmp (configure.ac): ... to here.
7924
7925 2011-05-22  Bruno Haible  <bruno@clisp.org>
7926
7927         strtok_r: Move AC_LIBOBJ invocations to module description.
7928         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7929         and gl_PREREQ_STRTOK_R invocations from here...
7930         * modules/strtok_r (configure.ac): ... to here.
7931         (Depends-on): Update conditions.
7932
7933 2011-05-22  Bruno Haible  <bruno@clisp.org>
7934
7935         strtoumax: Move AC_LIBOBJ invocations to module description.
7936         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7937         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7938         from here...
7939         * modules/strtoumax (configure.ac): ... to here.
7940
7941 2011-05-22  Bruno Haible  <bruno@clisp.org>
7942
7943         strtoimax: Move AC_LIBOBJ invocations to module description.
7944         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7945         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7946         from here...
7947         * modules/strtoimax (configure.ac): ... to here.
7948
7949 2011-05-22  Bruno Haible  <bruno@clisp.org>
7950
7951         strtoull: Move AC_LIBOBJ invocations to module description.
7952         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7953         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7954         from here...
7955         * modules/strtoull (configure.ac): ... to here.
7956
7957 2011-05-22  Bruno Haible  <bruno@clisp.org>
7958
7959         strtoll: Move AC_LIBOBJ invocations to module description.
7960         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7961         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7962         here...
7963         * modules/strtoll (configure.ac): ... to here.
7964
7965 2011-05-22  Bruno Haible  <bruno@clisp.org>
7966
7967         strtoul: Move AC_LIBOBJ invocations to module description.
7968         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7969         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7970         * modules/strtoul (configure.ac): ... to here.
7971
7972 2011-05-22  Bruno Haible  <bruno@clisp.org>
7973
7974         strtol: Move AC_LIBOBJ invocations to module description.
7975         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7976         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7977         * modules/strtol (configure.ac): ... to here.
7978
7979 2011-05-22  Bruno Haible  <bruno@clisp.org>
7980
7981         strtod: Move AC_LIBOBJ invocations to module description.
7982         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7983         invocations from here...
7984         * modules/strtod (configure.ac): ... to here.
7985
7986 2011-05-22  Bruno Haible  <bruno@clisp.org>
7987
7988         strstr*: Move AC_LIBOBJ invocations to module description.
7989         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7990         invocations from here...
7991         * modules/strstr-simple (configure.ac): ... to here.
7992         * modules/strstr (configure.ac): ... and here.
7993
7994 2011-05-22  Bruno Haible  <bruno@clisp.org>
7995
7996         strsignal: Move AC_LIBOBJ invocations to module description.
7997         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7998         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7999         * modules/strsignal (configure.ac): ... to here.
8000         (Depends-on): Update conditions.
8001
8002 2011-05-22  Bruno Haible  <bruno@clisp.org>
8003
8004         strsep: Move AC_LIBOBJ invocations to module description.
8005         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8006         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8007         here...
8008         * modules/strsep (configure.ac): ... to here.
8009
8010 2011-05-22  Bruno Haible  <bruno@clisp.org>
8011
8012         strptime: Move AC_LIBOBJ invocations to module description.
8013         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8014         gl_PREREQ_STRPTIME invocations from here...
8015         * modules/strptime (configure.ac): ... to here.
8016
8017 2011-05-22  Bruno Haible  <bruno@clisp.org>
8018
8019         strpbrk: Move AC_LIBOBJ invocations to module description.
8020         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8021         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8022         here...
8023         * modules/strpbrk (configure.ac): ... to here.
8024
8025 2011-05-22  Bruno Haible  <bruno@clisp.org>
8026
8027         strnlen: Move AC_LIBOBJ invocations to module description.
8028         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8029         invocations from here...
8030         * modules/strnlen (configure.ac): ... to here.
8031
8032 2011-05-22  Bruno Haible  <bruno@clisp.org>
8033
8034         strndup: Move AC_LIBOBJ invocations to module description.
8035         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8036         invocations from here...
8037         * modules/strndup (configure.ac): ... to here.
8038         (Depends-on): Update conditions.
8039
8040 2011-05-22  Bruno Haible  <bruno@clisp.org>
8041
8042         strncat: Move AC_LIBOBJ invocations to module description.
8043         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8044         invocations from here...
8045         * modules/strncat (configure.ac): ... to here.
8046
8047 2011-05-22  Bruno Haible  <bruno@clisp.org>
8048
8049         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8050         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8051         invocations from here...
8052         * modules/strdup (configure.ac): ... to here.
8053         * modules/strdup-posix (configure.ac): ... and here.
8054
8055 2011-05-22  Bruno Haible  <bruno@clisp.org>
8056
8057         strcspn: Move AC_LIBOBJ invocations to module description.
8058         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8059         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8060         here...
8061         * modules/strcspn (configure.ac): ... to here.
8062
8063 2011-05-22  Bruno Haible  <bruno@clisp.org>
8064
8065         strchrnul: Move AC_LIBOBJ invocations to module description.
8066         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8067         gl_PREREQ_STRCHRNUL invocations from here...
8068         * modules/strchrnul (configure.ac): ... to here.
8069
8070 2011-05-22  Bruno Haible  <bruno@clisp.org>
8071
8072         strcasestr*: Move AC_LIBOBJ invocations to module description.
8073         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8074         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8075         * modules/strcasestr-simple (configure.ac): ... to here.
8076         * modules/strcasestr (configure.ac): ... and here.
8077
8078 2011-05-22  Bruno Haible  <bruno@clisp.org>
8079
8080         strcase: Move AC_LIBOBJ invocations to module description.
8081         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8082         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8083         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8084         gl_PREREQ_STRNCASECMP invocations from here...
8085         * modules/strcase (configure.ac): ... to here.
8086
8087 2011-05-22  Bruno Haible  <bruno@clisp.org>
8088
8089         stpncpy: Move AC_LIBOBJ invocations to module description.
8090         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8091         here...
8092         * modules/stpncpy (configure.ac): ... to here.
8093
8094 2011-05-22  Bruno Haible  <bruno@clisp.org>
8095
8096         stpcpy: Move AC_LIBOBJ invocations to module description.
8097         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8098         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8099         here...
8100         * modules/stpcpy (configure.ac): ... to here.
8101
8102 2011-05-21  Bruno Haible  <bruno@clisp.org>
8103
8104         stat: Move AC_LIBOBJ invocations to module description.
8105         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8106         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8107         here...
8108         * modules/stat (configure.ac): ... to here.
8109
8110 2011-05-21  Bruno Haible  <bruno@clisp.org>
8111
8112         sleep: Move AC_LIBOBJ invocations to module description.
8113         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8114         * modules/sleep (configure.ac): ... to here.
8115
8116 2011-05-21  Bruno Haible  <bruno@clisp.org>
8117
8118         signbit: Move AC_LIBOBJ invocations to module description.
8119         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8120         * modules/signbit (configure.ac): ... to here.
8121
8122 2011-05-21  Bruno Haible  <bruno@clisp.org>
8123
8124         sigprocmask: Move AC_LIBOBJ invocations to module description.
8125         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8126         gl_PREREQ_SIGPROMASK invocations from here...
8127         * modules/sigprocmask (configure.ac): ... to here.
8128
8129 2011-05-21  Bruno Haible  <bruno@clisp.org>
8130
8131         sigaction: Move AC_LIBOBJ invocations to module description.
8132         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8133         gl_PREREQ_SIGACTION invocations from here...
8134         * modules/sigaction (configure.ac): ... to here.
8135
8136 2011-05-21  Bruno Haible  <bruno@clisp.org>
8137
8138         sig2str: Move AC_LIBOBJ invocations to module description.
8139         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8140         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8141         here...
8142         * modules/sig2str (configure.ac): ... to here.
8143
8144 2011-05-21  Bruno Haible  <bruno@clisp.org>
8145
8146         setlocale: Move AC_LIBOBJ invocations to module description.
8147         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8148         gl_PREREQ_SETLOCALE invocations from here...
8149         * modules/setlocale (configure.ac): ... to here.
8150
8151 2011-05-21  Bruno Haible  <bruno@clisp.org>
8152
8153         unsetenv: Move AC_LIBOBJ invocations to module description.
8154         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8155         and gl_PREREQ_UNSETENV invocations from here...
8156         * modules/unsetenv (configure.ac): ... to here.
8157         (Depends-on): Update.
8158
8159 2011-05-21  Bruno Haible  <bruno@clisp.org>
8160
8161         setenv: Move AC_LIBOBJ invocations to module description.
8162         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8163         here...
8164         * modules/setenv (configure.ac): ... to here.
8165
8166 2011-05-21  Bruno Haible  <bruno@clisp.org>
8167
8168         selinux-h: Move AC_LIBOBJ invocations to module description.
8169         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8170         AC_LIBOBJ invocation from here...
8171         * modules/selinux-h (configure.ac): ... to here.
8172
8173 2011-05-21  Bruno Haible  <bruno@clisp.org>
8174
8175         select: Respect rules for use of AC_LIBOBJ.
8176         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8177         here...
8178         * modules/select (configure.ac): ... to here.
8179
8180 2011-05-21  Bruno Haible  <bruno@clisp.org>
8181
8182         scandir: Move AC_LIBOBJ invocations to module description.
8183         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8184         invocations from here...
8185         * modules/scandir (configure.ac): ... to here.
8186
8187 2011-05-21  Bruno Haible  <bruno@clisp.org>
8188
8189         rpmatch: Move AC_LIBOBJ invocations to module description.
8190         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8191         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8192         here...
8193         * modules/rpmatch (configure.ac): ... to here.
8194
8195 2011-05-21  Bruno Haible  <bruno@clisp.org>
8196
8197         rmdir: Respect rules for use of AC_LIBOBJ.
8198         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8199         * modules/rmdir (configure.ac): ... to here.
8200
8201 2011-05-21  Bruno Haible  <bruno@clisp.org>
8202
8203         renameat: Move AC_LIBOBJ invocations to module description.
8204         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8205         here...
8206         * modules/renameat (configure.ac): ... to here.
8207
8208 2011-05-21  Bruno Haible  <bruno@clisp.org>
8209
8210         rename: Respect rules for use of AC_LIBOBJ.
8211         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8212         here...
8213         * modules/rename (configure.ac): ... to here.
8214
8215 2011-05-21  Bruno Haible  <bruno@clisp.org>
8216
8217         remove: Move AC_LIBOBJ invocations to module description.
8218         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8219         here...
8220         * modules/remove (configure.ac): ... to here.
8221
8222 2011-05-21  Bruno Haible  <bruno@clisp.org>
8223
8224         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8225         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8226         macro.
8227         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8228         * modules/relocatable-lib (configure.ac): ... to here.
8229         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8230         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8231
8232 2011-05-21  Bruno Haible  <bruno@clisp.org>
8233
8234         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8235         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8236         here...
8237         * modules/relocatable-prog (configure.ac): ... to here.
8238
8239 2011-05-21  Bruno Haible  <bruno@clisp.org>
8240
8241         regex: Move AC_LIBOBJ invocations to module description.
8242         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8243         invocations from here...
8244         * modules/regex (configure.ac): ... to here.
8245
8246 2011-05-21  Bruno Haible  <bruno@clisp.org>
8247
8248         realloc-*: Move AC_LIBOBJ invocations to module description.
8249         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8250         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8251         AC_LIBOBJ invocations from here...
8252         * modules/realloc-gnu (configure.ac): ... to here.
8253         * modules/realloc-posix (configure.ac): ... and here.
8254
8255 2011-05-21  Bruno Haible  <bruno@clisp.org>
8256
8257         readutmp: Move AC_LIBOBJ invocations to module description.
8258         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8259         * modules/readutmp (configure.ac): ... to here.
8260
8261 2011-05-21  Bruno Haible  <bruno@clisp.org>
8262
8263         readlinkat: Move AC_LIBOBJ invocations to module description.
8264         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8265         here...
8266         * modules/readlinkat (configure.ac): ... to here.
8267
8268 2011-05-21  Bruno Haible  <bruno@clisp.org>
8269
8270         readlink: Move AC_LIBOBJ invocations to module description.
8271         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8272         gl_PREREQ_READLINK invocations from here...
8273         * modules/readlink (configure.ac): ... to here.
8274
8275 2011-05-21  Bruno Haible  <bruno@clisp.org>
8276
8277         readline: Move AC_LIBOBJ invocations to module description.
8278         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8279         gl_PREREQ_READLINE invocations from here...
8280         * modules/readline (configure.ac): ... to here.
8281
8282 2011-05-21  Bruno Haible  <bruno@clisp.org>
8283
8284         read: Move AC_LIBOBJ invocations to module description.
8285         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8286         * modules/read (configure.ac): ... to here.
8287
8288 2011-05-21  Bruno Haible  <bruno@clisp.org>
8289
8290         rawmemchr: Move AC_LIBOBJ invocations to module description.
8291         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8292         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8293         from here...
8294         * modules/rawmemchr (configure.ac): ... to here.
8295
8296 2011-05-21  Bruno Haible  <bruno@clisp.org>
8297
8298         random_r: Move AC_LIBOBJ invocations to module description.
8299         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8300         gl_PREREQ_RANDOM_R invocations from here...
8301         * modules/random_r (configure.ac): ... to here.
8302
8303 2011-05-21  Bruno Haible  <bruno@clisp.org>
8304
8305         pwrite: Move AC_LIBOBJ invocations to module description.
8306         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8307         * modules/pwrite (configure.ac): ... to here.
8308
8309 2011-05-21  Bruno Haible  <bruno@clisp.org>
8310
8311         putenv: Move AC_LIBOBJ invocations to module description.
8312         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8313         * modules/putenv (configure.ac): ... to here.
8314
8315 2011-05-21  Bruno Haible  <bruno@clisp.org>
8316
8317         login_tty: Move AC_LIBOBJ invocations to module description.
8318         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8319         * modules/login_tty (configure.ac): ... to here.
8320
8321 2011-05-21  Bruno Haible  <bruno@clisp.org>
8322
8323         openpty: Move AC_LIBOBJ invocations to module description.
8324         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8325         * modules/openpty (configure.ac): ... to here.
8326
8327 2011-05-21  Bruno Haible  <bruno@clisp.org>
8328
8329         forkpty: Move AC_LIBOBJ invocations to module description.
8330         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8331         * modules/forkpty (configure.ac): ... to here.
8332
8333 2011-05-21  Bruno Haible  <bruno@clisp.org>
8334
8335         ptsname: Move AC_LIBOBJ invocations to module description.
8336         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8337         invocations from here...
8338         * modules/ptsname (configure.ac): ... to here.
8339
8340 2011-05-21  Bruno Haible  <bruno@clisp.org>
8341
8342         pread: Move AC_LIBOBJ invocations to module description.
8343         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8344         * modules/pread (configure.ac): ... to here.
8345
8346 2011-05-21  Bruno Haible  <bruno@clisp.org>
8347
8348         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8349         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8350         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8351         * modules/posix_spawn (configure.ac): ... to here.
8352         * modules/posix_spawnp (configure.ac): ... and here.
8353
8354 2011-05-21  Bruno Haible  <bruno@clisp.org>
8355
8356         popen: Move AC_LIBOBJ invocations to module description.
8357         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8358         invocations from here...
8359         * modules/popen (configure.ac): ... to here.
8360
8361 2011-05-21  Bruno Haible  <bruno@clisp.org>
8362
8363         poll: Move AC_LIBOBJ invocations to module description.
8364         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8365         invocations from here...
8366         * modules/poll (configure.ac): ... to here.
8367
8368 2011-05-21  Bruno Haible  <bruno@clisp.org>
8369
8370         pipe-posix: Move AC_LIBOBJ invocations to module description.
8371         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8372         * modules/pipe-posix (configure.ac): ... to here.
8373
8374 2011-05-21  Bruno Haible  <bruno@clisp.org>
8375
8376         openat: Respect rules for use of AC_LIBOBJ.
8377         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8378         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8379         * modules/openat (configure.ac): ... to here.
8380
8381 2011-05-21  Bruno Haible  <bruno@clisp.org>
8382
8383         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8384         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8385         invocation from here...
8386         * modules/obstack-printf (configure.ac): ... to here.
8387         * modules/obstack-printf-posix (configure.ac): ... and here.
8388
8389 2011-05-21  Bruno Haible  <bruno@clisp.org>
8390
8391         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8392         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8393         from here...
8394         * modules/nl_langinfo (configure.ac): ... to here.
8395
8396 2011-05-21  Bruno Haible  <bruno@clisp.org>
8397
8398         nanosleep: Move AC_LIBOBJ invocations to module description.
8399         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8400         gl_PREREQ_NANOSLEEP invocations from here...
8401         * modules/nanosleep (configure.ac): ... to here.
8402
8403 2011-05-21  Bruno Haible  <bruno@clisp.org>
8404
8405         mountlist: Move AC_LIBOBJ invocations to module description.
8406         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8407         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8408         * modules/mountlist (configure.ac): ... to here.
8409
8410 2011-05-21  Bruno Haible  <bruno@clisp.org>
8411
8412         mktime: Respect rules for use of AC_LIBOBJ.
8413         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8414         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8415         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8416         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8417         * modules/mktime (configure.ac): ... to here.
8418         * modules/mktime-internal (configure.ac): ... and here.
8419         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8420
8421 2011-05-21  Bruno Haible  <bruno@clisp.org>
8422
8423         mkstemps: Move AC_LIBOBJ invocations to module description.
8424         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8425         here...
8426         * modules/mkstemps (configure.ac): ... to here.
8427
8428 2011-05-21  Bruno Haible  <bruno@clisp.org>
8429
8430         mkstemp: Move AC_LIBOBJ invocations to module description.
8431         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8432         gl_PREREQ_MKSTEMP invocations from here...
8433         * modules/mkstemp (configure.ac): ... to here.
8434
8435 2011-05-21  Bruno Haible  <bruno@clisp.org>
8436
8437         mkostemps: Move AC_LIBOBJ invocations to module description.
8438         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8439         here...
8440         * modules/mkostemps (configure.ac): ... to here.
8441
8442 2011-05-21  Bruno Haible  <bruno@clisp.org>
8443
8444         mkostemp: Move AC_LIBOBJ invocations to module description.
8445         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8446         gl_PREREQ_MKOSTEMP invocations from here...
8447         * modules/mkostemp (configure.ac): ... to here.
8448
8449 2011-05-21  Bruno Haible  <bruno@clisp.org>
8450
8451         mknod: Move AC_LIBOBJ invocations to module description.
8452         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8453         * modules/mknod (configure.ac): ... to here.
8454
8455 2011-05-21  Bruno Haible  <bruno@clisp.org>
8456
8457         mkfifoat: Move AC_LIBOBJ invocations to module description.
8458         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8459         here...
8460         * modules/mkfifoat (configure.ac): ... to here.
8461
8462 2011-05-21  Bruno Haible  <bruno@clisp.org>
8463
8464         mkfifo: Respect rules for use of AC_LIBOBJ.
8465         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8466         here...
8467         * modules/mkfifo (configure.ac): ... to here.
8468
8469 2011-05-21  Bruno Haible  <bruno@clisp.org>
8470
8471         mkdtemp: Move AC_LIBOBJ invocations to module description.
8472         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8473         invocations from here...
8474         * modules/mkdtemp (configure.ac): ... to here.
8475
8476 2011-05-21  Bruno Haible  <bruno@clisp.org>
8477
8478         mkdir: Move AC_LIBOBJ invocations to module description.
8479         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8480         * modules/mkdir (configure.ac): ... to here.
8481
8482 2011-05-21  Bruno Haible  <bruno@clisp.org>
8483
8484         memset: Move AC_LIBOBJ invocations to module description.
8485         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8486         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8487         here...
8488         * modules/memset (configure.ac): ... to here.
8489
8490 2011-05-21  Bruno Haible  <bruno@clisp.org>
8491
8492         memrchr: Move AC_LIBOBJ invocations to module description.
8493         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8494         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8495         here...
8496         * modules/memrchr (configure.ac): ... to here.
8497
8498 2011-05-21  Bruno Haible  <bruno@clisp.org>
8499
8500         mempcpy: Move AC_LIBOBJ invocations to module description.
8501         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8502         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8503         here...
8504         * modules/mempcpy (configure.ac): ... to here.
8505
8506 2011-05-21  Bruno Haible  <bruno@clisp.org>
8507
8508         memmove: Move AC_LIBOBJ invocations to module description.
8509         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8510         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8511         here...
8512         * modules/memmove (configure.ac): ... to here.
8513
8514 2011-05-21  Bruno Haible  <bruno@clisp.org>
8515
8516         memmem*: Move AC_LIBOBJ invocations to module description.
8517         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8518         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8519         here...
8520         (gl_FUNC_MEMMEM): ... and here...
8521         * modules/memmem-simple (configure.ac): ... to here.
8522         * modules/memmem (configure.ac): ... and here.
8523
8524 2011-05-21  Bruno Haible  <bruno@clisp.org>
8525
8526         memcpy: Move AC_LIBOBJ invocations to module description.
8527         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8528         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8529         here...
8530         * modules/memcpy (configure.ac): ... to here.
8531
8532 2011-05-21  Bruno Haible  <bruno@clisp.org>
8533
8534         memcmp: Simplify autoconf macro.
8535         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8536         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8537         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8538
8539 2011-05-21  Bruno Haible  <bruno@clisp.org>
8540
8541         memcmp: Move AC_LIBOBJ invocations to module description.
8542         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8543         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8544         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8545         * modules/memcmp (configure.ac): ... to here.
8546         (Depends-on): Update conditions.
8547
8548 2011-05-21  Bruno Haible  <bruno@clisp.org>
8549
8550         memchr: Respect rules for use of AC_LIBOBJ.
8551         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8552         invocations from here...
8553         * modules/memchr (configure.ac): ... to here.
8554
8555 2011-05-21  Bruno Haible  <bruno@clisp.org>
8556
8557         mbtowc: Move AC_LIBOBJ invocations to module description.
8558         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8559         invocations from here...
8560         * modules/mbtowc (configure.ac): ... to here.
8561
8562 2011-05-21  Bruno Haible  <bruno@clisp.org>
8563
8564         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8565         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8566         gl_PREREQ_MBSRTOWCS invocations from here...
8567         * modules/mbsrtowcs (configure.ac): ... to here.
8568
8569 2011-05-21  Bruno Haible  <bruno@clisp.org>
8570
8571         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8572         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8573         gl_PREREQ_MBSNRTOWCS invocations from here...
8574         * modules/mbsnrtowcs (configure.ac): ... to here.
8575
8576 2011-05-21  Bruno Haible  <bruno@clisp.org>
8577
8578         mbsinit: Move AC_LIBOBJ invocations to module description.
8579         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8580         invocations from here...
8581         * modules/mbsinit (configure.ac): ... to here.
8582
8583 2011-05-21  Bruno Haible  <bruno@clisp.org>
8584
8585         mbrlen: Move AC_LIBOBJ invocations to module description.
8586         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8587         invocations from here...
8588         * modules/mbrlen (configure.ac): ... to here.
8589
8590 2011-05-21  Bruno Haible  <bruno@clisp.org>
8591
8592         mbrtowc: Respect rules for use of AC_LIBOBJ.
8593         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8594         invocations from here...
8595         * modules/mbrtowc (configure.ac): ... to here.
8596
8597 2011-05-21  Bruno Haible  <bruno@clisp.org>
8598
8599         malloc-*: Move AC_LIBOBJ invocations to module description.
8600         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8601         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8602         AC_LIBOBJ invocations from here...
8603         * modules/malloc-gnu (configure.ac): ... to here.
8604         * modules/malloc-posix (configure.ac): ... and here.
8605
8606 2011-05-21  Bruno Haible  <bruno@clisp.org>
8607
8608         lstat, openat: Respect rules for use of AC_LIBOBJ.
8609         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8610         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8611         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8612         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8613         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8614         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8615         here.
8616         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8617
8618 2011-05-21  Bruno Haible  <bruno@clisp.org>
8619
8620         lseek: Move AC_LIBOBJ invocations to module description.
8621         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8622         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8623         * modules/lseek (configure.ac): ... to here.
8624
8625 2011-05-21  Bruno Haible  <bruno@clisp.org>
8626
8627         linkat: Move AC_LIBOBJ invocations to module description.
8628         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8629         here...
8630         * modules/linkat (configure.ac): ... to here.
8631
8632 2011-05-21  Bruno Haible  <bruno@clisp.org>
8633
8634         link: Respect rules for use of AC_LIBOBJ.
8635         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8636         * modules/link (configure.ac): ... to here.
8637
8638 2011-05-21  Bruno Haible  <bruno@clisp.org>
8639
8640         lchown: Move AC_LIBOBJ invocations to module description.
8641         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8642         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8643         * modules/lchown (configure.ac): ... to here.
8644
8645 2011-05-21  Bruno Haible  <bruno@clisp.org>
8646
8647         iswctype: Move AC_LIBOBJ invocations to module description.
8648         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8649         here...
8650         * modules/iswctype (configure.ac): ... to here.
8651
8652 2011-05-21  Bruno Haible  <bruno@clisp.org>
8653
8654         iswblank: Move AC_LIBOBJ invocations to module description.
8655         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8656         here...
8657         * modules/iswblank (configure.ac): ... to here.
8658
8659 2011-05-21  Bruno Haible  <bruno@clisp.org>
8660
8661         atanl: Move AC_LIBOBJ invocations to module description.
8662         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8663         * modules/atanl (configure.ac): ... to here.
8664
8665 2011-05-21  Bruno Haible  <bruno@clisp.org>
8666
8667         acosl: Move AC_LIBOBJ invocations to module description.
8668         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8669         * modules/acosl (configure.ac): ... to here.
8670
8671 2011-05-21  Bruno Haible  <bruno@clisp.org>
8672
8673         asinl: Respect rules for use of AC_LIBOBJ.
8674         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8675         * modules/asinl (configure.ac): ... to here.
8676
8677 2011-05-21  Bruno Haible  <bruno@clisp.org>
8678
8679         tanl: Move AC_LIBOBJ invocations to module description.
8680         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8681         * modules/tanl (configure.ac): ... to here.
8682
8683 2011-05-21  Bruno Haible  <bruno@clisp.org>
8684
8685         cosl: Move AC_LIBOBJ invocations to module description.
8686         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8687         * modules/cosl (configure.ac): ... to here.
8688
8689 2011-05-21  Bruno Haible  <bruno@clisp.org>
8690
8691         sinl: Move AC_LIBOBJ invocations to module description.
8692         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8693         * modules/sinl (configure.ac): ... to here.
8694
8695 2011-05-21  Bruno Haible  <bruno@clisp.org>
8696
8697         logl: Move AC_LIBOBJ invocations to module description.
8698         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8699         * modules/logl (configure.ac): ... to here.
8700
8701 2011-05-21  Bruno Haible  <bruno@clisp.org>
8702
8703         expl: Move AC_LIBOBJ invocations to module description.
8704         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8705         * modules/expl (configure.ac): ... to here.
8706
8707 2011-05-21  Bruno Haible  <bruno@clisp.org>
8708
8709         roundl: Move AC_LIBOBJ invocations to module description.
8710         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8711         * modules/roundl (configure.ac): ... to here.
8712
8713 2011-05-21  Bruno Haible  <bruno@clisp.org>
8714
8715         round: Move AC_LIBOBJ invocations to module description.
8716         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8717         * modules/round (configure.ac): ... to here.
8718
8719 2011-05-21  Bruno Haible  <bruno@clisp.org>
8720
8721         roundf: Move AC_LIBOBJ invocations to module description.
8722         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8723         * modules/roundf (configure.ac): ... to here.
8724
8725 2011-05-21  Bruno Haible  <bruno@clisp.org>
8726
8727         truncl: Move AC_LIBOBJ invocations to module description.
8728         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8729         * modules/truncl (configure.ac): ... to here.
8730
8731 2011-05-21  Bruno Haible  <bruno@clisp.org>
8732
8733         trunc: Move AC_LIBOBJ invocations to module description.
8734         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8735         * modules/trunc (configure.ac): ... to here.
8736
8737 2011-05-21  Bruno Haible  <bruno@clisp.org>
8738
8739         truncf: Move AC_LIBOBJ invocations to module description.
8740         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8741         * modules/truncf (configure.ac): ... to here.
8742
8743 2011-05-21  Bruno Haible  <bruno@clisp.org>
8744
8745         ceill: Move AC_LIBOBJ invocations to module description.
8746         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8747         * modules/ceill (configure.ac): ... to here.
8748
8749 2011-05-21  Bruno Haible  <bruno@clisp.org>
8750
8751         ceil: Move AC_LIBOBJ invocations to module description.
8752         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8753         * modules/ceil (configure.ac): ... to here.
8754
8755 2011-05-21  Bruno Haible  <bruno@clisp.org>
8756
8757         ceilf: Move AC_LIBOBJ invocations to module description.
8758         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8759         * modules/ceilf (configure.ac): ... to here.
8760
8761 2011-05-21  Bruno Haible  <bruno@clisp.org>
8762
8763         floorl: Respect rules for use of AC_LIBOBJ.
8764         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8765         * modules/floorl (configure.ac): ... to here.
8766
8767 2011-05-21  Bruno Haible  <bruno@clisp.org>
8768
8769         floor: Respect rules for use of AC_LIBOBJ.
8770         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8771         * modules/floor (configure.ac): ... to here.
8772
8773 2011-05-21  Bruno Haible  <bruno@clisp.org>
8774
8775         floorf: Move AC_LIBOBJ invocations to module description.
8776         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8777         * modules/floorf (configure.ac): ... to here.
8778
8779 2011-05-20  Bruno Haible  <bruno@clisp.org>
8780
8781         sqrtl: Respect rules for use of AC_LIBOBJ.
8782         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8783         * modules/sqrtl (configure.ac): ... to here.
8784
8785 2011-05-20  Bruno Haible  <bruno@clisp.org>
8786
8787         ldexpl: Respect rules for use of AC_LIBOBJ.
8788         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8789         * modules/ldexpl (configure.ac): ... to here.
8790
8791 2011-05-20  Bruno Haible  <bruno@clisp.org>
8792
8793         frexpl*: Respect rules for use of AC_LIBOBJ.
8794         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8795         invocation from here...
8796         * modules/frexpl (configure.ac): ... to here.
8797         * modules/frexpl-nolibm (configure.ac): ... and here.
8798
8799 2011-05-20  Bruno Haible  <bruno@clisp.org>
8800
8801         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8802         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8803         invocation from here...
8804         * modules/frexp (configure.ac): ... to here.
8805         * modules/frexp-nolibm (configure.ac): ... and here.
8806
8807 2011-05-20  Bruno Haible  <bruno@clisp.org>
8808
8809         isnan: Respect rules for use of AC_LIBOBJ.
8810         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8811         invocations here.
8812         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8813         REPLACE_ISNAN.
8814         * modules/isnand (configure.ac): Likewise.
8815         * modules/isnanl (configure.ac): Likewise.
8816
8817 2011-05-20  Bruno Haible  <bruno@clisp.org>
8818
8819         isnanl*: Respect rules for use of AC_LIBOBJ.
8820         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8821         invocation from here...
8822         * modules/isnanl (configure.ac): ... to here.
8823         * modules/isnanl-nolibm (configure.ac): ... and here.
8824
8825 2011-05-20  Bruno Haible  <bruno@clisp.org>
8826
8827         isnand*: Move AC_LIBOBJ invocations to module description.
8828         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8829         invocation from here...
8830         * modules/isnand (configure.ac): ... to here.
8831         * modules/isnand-nolibm (configure.ac): ... and here.
8832
8833 2011-05-20  Bruno Haible  <bruno@clisp.org>
8834
8835         isnanf*: Move AC_LIBOBJ invocations to module description.
8836         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8837         invocation from here...
8838         * modules/isnanf (configure.ac): ... to here.
8839         * modules/isnanf-nolibm (configure.ac): ... and here.
8840
8841 2011-05-20  Bruno Haible  <bruno@clisp.org>
8842
8843         isnan*: Separate the AC_LIBOBJ invocations.
8844         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8845         AC_LIBOBJ invocation.
8846         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8847         here.
8848         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8849         AC_LIBOBJ invocation.
8850         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8851         here.
8852         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8853         AC_LIBOBJ invocation.
8854         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8855         here.
8856         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8857
8858 2011-05-08  Bruno Haible  <bruno@clisp.org>
8859
8860         isinf: Move AC_LIBOBJ invocations to module description.
8861         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8862         * modules/isinf (configure.ac): ... to here.
8863
8864 2011-05-08  Bruno Haible  <bruno@clisp.org>
8865
8866         isfinite: Move AC_LIBOBJ invocations to module description.
8867         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8868         * modules/isfinite (configure.ac): ... to here.
8869
8870 2011-05-08  Bruno Haible  <bruno@clisp.org>
8871
8872         isblank: Move AC_LIBOBJ invocations to module description.
8873         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8874         here...
8875         * modules/isblank (configure.ac): ... to here.
8876
8877 2011-05-08  Bruno Haible  <bruno@clisp.org>
8878
8879         isapipe: Move AC_LIBOBJ invocations to module description.
8880         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8881         gl_PREREQ_ISAPIPE invocations from here...
8882         * modules/isapipe (configure.ac): ... to here.
8883         (Depends-on): Update condition.
8884
8885 2011-05-08  Bruno Haible  <bruno@clisp.org>
8886
8887         ioctl: Move AC_LIBOBJ invocations to module description.
8888         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8889         invocations from here...
8890         * modules/ioctl (configure.ac): ... to here.
8891         (Depends-on): Update condition.
8892
8893 2011-05-08  Bruno Haible  <bruno@clisp.org>
8894
8895         imaxdiv: Move AC_LIBOBJ invocations to module description.
8896         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8897         invocations from here...
8898         * modules/imaxdiv (configure.ac): ... to here.
8899
8900 2011-05-08  Bruno Haible  <bruno@clisp.org>
8901
8902         imaxabs: Move AC_LIBOBJ invocations to module description.
8903         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8904         invocations from here...
8905         * modules/imaxabs (configure.ac): ... to here.
8906
8907 2011-05-08  Bruno Haible  <bruno@clisp.org>
8908
8909         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8910         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8911         AC_LIBOBJ invocations from here...
8912         * modules/getaddrinfo (configure.ac): ... to here.
8913         (Depends-on): Add conditions.
8914
8915 2011-05-08  Bruno Haible  <bruno@clisp.org>
8916
8917         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8918         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8919         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8920         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8921         (gl_PREREQ_INET_PTON): ... from here.
8922         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8923         gl_PREREQ_INET_PTON here.
8924         (Depends-on): Update condition.
8925
8926 2011-05-08  Bruno Haible  <bruno@clisp.org>
8927
8928         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8929         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8930         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8931         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8932         (gl_PREREQ_INET_NTOP): ... from here.
8933         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8934         gl_PREREQ_INET_NTOP here.
8935         (Depends-on): Update condition.
8936
8937 2011-05-08  Bruno Haible  <bruno@clisp.org>
8938
8939         iconv_open: Move AC_LIBOBJ invocations to module description.
8940         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8941         AC_LIBOBJ invocations from here...
8942         * modules/iconv_open (configure.ac): ... to here.
8943
8944 2011-05-08  Bruno Haible  <bruno@clisp.org>
8945
8946         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8947         If module 'iconv_open' is among the main modules and module
8948         'iconv_open-utf' is among the tests dependencies, then
8949         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8950         return the special iconv_t values. Therefore iconv() and iconv_close()
8951         must support these special iconv_t values, already in lib, not only in
8952         tests.
8953         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8954         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8955         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8956         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8957         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8958         (Depends-on): Add the dependencies of iconv_open-utf.
8959         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8960         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8961         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8962
8963 2011-05-08  Bruno Haible  <bruno@clisp.org>
8964
8965         group-member: Move AC_LIBOBJ invocations to module description.
8966         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8967         gl_PREREQ_GROUP_MEMBER invocations from here...
8968         * modules/group-member (configure.ac): ... to here.
8969
8970 2011-05-08  Bruno Haible  <bruno@clisp.org>
8971
8972         grantpt: Move AC_LIBOBJ invocations to module description.
8973         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8974         invocations from here...
8975         * modules/grantpt (configure.ac): ... to here.
8976
8977 2011-05-08  Bruno Haible  <bruno@clisp.org>
8978
8979         glob: Move AC_LIBOBJ invocations to module description.
8980         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8981         from here...
8982         * modules/glob (configure.ac): ... to here.
8983
8984 2011-05-08  Bruno Haible  <bruno@clisp.org>
8985
8986         getusershell: Move AC_LIBOBJ invocations to module description.
8987         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8988         Move AC_LIBOBJ invocation from here...
8989         * modules/getusershell (configure.ac): ... to here.
8990         (Depends-on): Update condition.
8991
8992 2011-05-08  Bruno Haible  <bruno@clisp.org>
8993
8994         gettimeofday: Move AC_LIBOBJ invocations to module description.
8995         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8996         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8997         gl_PREREQ_GETTIMEOFDAY invocations from here...
8998         * modules/gettimeofday (configure.ac): ... to here.
8999
9000 2011-05-08  Bruno Haible  <bruno@clisp.org>
9001
9002         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9003         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9004         just gl_FUNC_TZSET.
9005         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9006         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9007         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9008         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9009
9010 2011-05-08  Bruno Haible  <bruno@clisp.org>
9011
9012         getsubopt: Move AC_LIBOBJ invocations to module description.
9013         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9014         gl_PREREQ_GETSUBOPT invocations from here...
9015         * modules/getsubopt (configure.ac): ... to here.
9016
9017 2011-05-08  Bruno Haible  <bruno@clisp.org>
9018
9019         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9020         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9021         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9022         * modules/getpass-gnu (configure.ac): ... to here.
9023
9024 2011-05-08  Bruno Haible  <bruno@clisp.org>
9025
9026         getpass: Move AC_LIBOBJ invocations to module description.
9027         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9028         gl_PREREQ_GETPASS invocations from here...
9029         * modules/getpass (configure.ac): ... to here.
9030
9031 2011-05-08  Bruno Haible  <bruno@clisp.org>
9032
9033         getpagesize: Move AC_LIBOBJ invocations to module description.
9034         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9035         from here...
9036         * modules/getpagesize (configure.ac): ... to here.
9037
9038 2011-05-08  Bruno Haible  <bruno@clisp.org>
9039
9040         getopt: Move AC_LIBOBJ invocations to module description.
9041         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9042         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9043         invocations from here...
9044         * modules/getopt-gnu (configure.ac): ... to here.
9045         * modules/getopt-posix (configure.ac): ... and here.
9046         (Depends-on): Update condition.
9047
9048 2011-05-08  Bruno Haible  <bruno@clisp.org>
9049
9050         getopt, argp: Respect rules for use of AC_LIBOBJ.
9051         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9052         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9053         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9054         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9055
9056 2011-05-08  Bruno Haible  <bruno@clisp.org>
9057
9058         getlogin_r: Move AC_LIBOBJ invocations to module description.
9059         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9060         gl_PREREQ_GETLOGIN_R invocations from here...
9061         * modules/getlogin_r (configure.ac): ... to here.
9062
9063 2011-05-08  Bruno Haible  <bruno@clisp.org>
9064
9065         getlogin: Move AC_LIBOBJ invocations to module description.
9066         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9067         here...
9068         * modules/getlogin (configure.ac): ... to here.
9069
9070 2011-05-08  Bruno Haible  <bruno@clisp.org>
9071
9072         getloadavg: Move AC_LIBOBJ invocations to module description.
9073         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9074         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9075         * modules/getloadavg (configure.ac): ... to here.
9076
9077 2011-05-08  Bruno Haible  <bruno@clisp.org>
9078
9079         gethrxtime: Move AC_LIBOBJ invocations to module description.
9080         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9081         LIB_GETHRXTIME from here...
9082         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9083         invocations from here...
9084         * modules/gethrxtime (configure.ac): ... to here.
9085
9086 2011-05-08  Bruno Haible  <bruno@clisp.org>
9087
9088         gethostname: Move AC_LIBOBJ invocations to module description.
9089         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9090         gl_PREREQ_GETHOSTNAME invocations from here...
9091         * modules/gethostname (configure.ac): ... to here.
9092
9093 2011-05-08  Bruno Haible  <bruno@clisp.org>
9094
9095         getgroups: Move AC_LIBOBJ invocations to module description.
9096         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9097         here...
9098         * modules/getgroups (configure.ac): ... to here.
9099
9100 2011-05-08  Bruno Haible  <bruno@clisp.org>
9101
9102         getdtablesize: Move AC_LIBOBJ invocations to module description.
9103         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9104         invocation from here...
9105         * modules/getdtablesize (configure.ac): ... to here.
9106
9107 2011-05-08  Bruno Haible  <bruno@clisp.org>
9108
9109         getdomainname: Move AC_LIBOBJ invocations to module description.
9110         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9111         gl_PREREQ_GETDOMAINNAME invocations from here...
9112         * modules/getdomainname (configure.ac): ... to here.
9113
9114 2011-05-08  Bruno Haible  <bruno@clisp.org>
9115
9116         getline: Move AC_LIBOBJ invocations to module description.
9117         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9118         invocations from here...
9119         * modules/getline (configure.ac): ... to here.
9120
9121 2011-05-08  Bruno Haible  <bruno@clisp.org>
9122
9123         getline: Simplify.
9124         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9125         It's already handled through the module dependency.
9126
9127 2011-05-08  Bruno Haible  <bruno@clisp.org>
9128
9129         getdelim: Move AC_LIBOBJ invocations to module description.
9130         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9131         and gl_PREREQ_GETDELIM invocations from here...
9132         * modules/getdelim (configure.ac): ... to here.
9133         (Depends-on): Fix condition.
9134
9135 2011-05-08  Bruno Haible  <bruno@clisp.org>
9136
9137         getcwd: Move AC_LIBOBJ invocations to module description.
9138         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9139         invocations from here...
9140         * modules/getcwd (configure.ac): ... to here.
9141
9142 2011-05-08  Bruno Haible  <bruno@clisp.org>
9143
9144         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9145         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9146         here...
9147         * modules/getcwd-lgpl (configure.ac): ... to here.
9148
9149 2011-05-07  Bruno Haible  <bruno@clisp.org>
9150
9151         crypto/gc: Move AC_LIBOBJ invocations to module description.
9152         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9153         * modules/crypto/gc (configure.ac): ... to here.
9154
9155 2011-05-07  Bruno Haible  <bruno@clisp.org>
9156
9157         fwriting: Move AC_LIBOBJ invocations to module description.
9158         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9159         here...
9160         * modules/fwriting (configure.ac): ... to here.
9161
9162 2011-05-07  Bruno Haible  <bruno@clisp.org>
9163
9164         fwritable: Move AC_LIBOBJ invocations to module description.
9165         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9166         here...
9167         * modules/fwritable (configure.ac): ... to here.
9168
9169 2011-05-07  Bruno Haible  <bruno@clisp.org>
9170
9171         futimens: Move AC_LIBOBJ invocations to module description.
9172         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9173         here...
9174         * modules/futimens (configure.ac): ... to here.
9175
9176 2011-05-07  Bruno Haible  <bruno@clisp.org>
9177
9178         ftruncate: Move AC_LIBOBJ invocations to module description.
9179         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9180         gl_PREREQ_FTRUNCATE invocations from here...
9181         * modules/ftruncate (configure.ac): ... to here.
9182
9183 2011-05-07  Bruno Haible  <bruno@clisp.org>
9184
9185         fsync: Move AC_LIBOBJ invocations to module description.
9186         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9187         invocations from here...
9188         * modules/fsync (configure.ac): ... to here.
9189
9190 2011-05-07  Bruno Haible  <bruno@clisp.org>
9191
9192         fsusage: Move AC_LIBOBJ invocations to module description.
9193         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9194         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9195         * modules/fsusage (configure.ac): ... to here.
9196
9197 2011-05-07  Bruno Haible  <bruno@clisp.org>
9198
9199         freopen: Move AC_LIBOBJ invocations to module description.
9200         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9201         invocations from here...
9202         * modules/freopen (configure.ac): ... to here.
9203
9204 2011-05-07  Bruno Haible  <bruno@clisp.org>
9205
9206         free: Move AC_LIBOBJ invocations to module description.
9207         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9208         invocations from here...
9209         * modules/free (configure.ac): ... to here.
9210
9211 2011-05-07  Bruno Haible  <bruno@clisp.org>
9212
9213         freadable: Move AC_LIBOBJ invocations to module description.
9214         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9215         here...
9216         * modules/freadable (configure.ac): ... to here.
9217
9218 2011-05-07  Bruno Haible  <bruno@clisp.org>
9219
9220         fpurge: Move AC_LIBOBJ invocations to module description.
9221         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9222         invocations from here...
9223         * modules/fpurge (configure.ac): ... to here.
9224
9225 2011-05-07  Bruno Haible  <bruno@clisp.org>
9226
9227         fpending: Move AC_LIBOBJ invocations to module description.
9228         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9229         gl_FUNC_FPENDING.
9230         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9231         invocations from here...
9232         * modules/fpending (configure.ac): ... to here.
9233
9234 2011-05-07  Bruno Haible  <bruno@clisp.org>
9235
9236         fopen: Move AC_LIBOBJ invocations to module description.
9237         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9238         invocations from here...
9239         * modules/fopen (configure.ac): ... to here.
9240
9241 2011-05-07  Bruno Haible  <bruno@clisp.org>
9242
9243         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9244         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9245         gl_FUNC_FNMATCH_POSIX.
9246         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9247         invocations from here...
9248         * modules/fnmatch (configure.ac): ... to here.
9249         * modules/fnmatch-gnu (configure.ac): ... and here.
9250
9251 2011-05-07  Bruno Haible  <bruno@clisp.org>
9252
9253         flock: Move AC_LIBOBJ invocations to module description.
9254         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9255         invocations from here...
9256         * modules/flock (configure.ac): ... to here.
9257
9258 2011-05-07  Bruno Haible  <bruno@clisp.org>
9259
9260         fileblocks: Move AC_LIBOBJ invocations to module description.
9261         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9262         gl_PREREQ_FILEBLOCKS invocations from here...
9263         * modules/fileblocks (configure.ac): ... to here.
9264
9265 2011-05-06  Bruno Haible  <bruno@clisp.org>
9266
9267         fflush: Move AC_LIBOBJ invocations to module description.
9268         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9269         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9270         invocations from here...
9271         * modules/fflush (configure.ac): ... to here.
9272
9273 2011-05-06  Bruno Haible  <bruno@clisp.org>
9274
9275         fdopendir: Move AC_LIBOBJ invocations to module description.
9276         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9277         here...
9278         * modules/fdopendir (configure.ac): ... to here.
9279         (Depends-on): Improve conditions.
9280
9281 2011-05-06  Bruno Haible  <bruno@clisp.org>
9282
9283         _Exit: Move AC_LIBOBJ invocations to module description.
9284         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9285         invocations from here...
9286         * modules/_Exit (configure.ac): ... to here.
9287
9288 2011-05-21  Bruno Haible  <bruno@clisp.org>
9289
9290         euidaccess: Respect rules for use of AC_LIBOBJ.
9291         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9292         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9293         from here...
9294         * modules/euidaccess (configure.ac): ... to here.
9295
9296 2011-05-06  Bruno Haible  <bruno@clisp.org>
9297
9298         error: Move AC_LIBOBJ invocations to module description.
9299         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9300         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9301         invocations from here...
9302         * modules/error (configure.ac): ... to here.
9303
9304 2011-05-06  Bruno Haible  <bruno@clisp.org>
9305
9306         duplocale: Move AC_LIBOBJ invocations to module description.
9307         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9308         gl_PREREQ_DUPLOCALE invocations from here...
9309         * modules/duplocale (configure.ac): ... to here.
9310
9311 2011-05-05  Bruno Haible  <bruno@clisp.org>
9312
9313         dirfd: Move AC_LIBOBJ invocations to module description.
9314         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9315         gl_FUNC_DIRFD.
9316         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9317         here...
9318         * modules/dirfd (configure.ac): ... to here.
9319         (Depends-on): Fix condition.
9320
9321 2011-05-05  Bruno Haible  <bruno@clisp.org>
9322
9323         chown: Respect rules for use of AC_LIBOBJ.
9324         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9325         * modules/chown (configure.ac): ... to here.
9326
9327 2011-05-05  Bruno Haible  <bruno@clisp.org>
9328
9329         chdir-long: Move AC_LIBOBJ invocations to module description.
9330         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9331         gl_PREREQ_CHDIR_LONG invocations from here...
9332         * modules/chdir-long (configure.ac): ... to here.
9333
9334 2011-05-05  Bruno Haible  <bruno@clisp.org>
9335
9336         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9337         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9338         from here...
9339         * modules/canonicalize-lgpl (configure.ac): ... to here.
9340
9341 2011-05-05  Bruno Haible  <bruno@clisp.org>
9342
9343         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9344         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9345         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9346         REPLACE_CALLOC.
9347         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9348         * modules/calloc-gnu (configure.ac): Likewise.
9349
9350 2011-05-05  Bruno Haible  <bruno@clisp.org>
9351
9352         btowc: Move AC_LIBOBJ invocations to module description.
9353         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9354         invocations from here...
9355         * modules/btowc (configure.ac): ... to here.
9356
9357 2011-05-21  Bruno Haible  <bruno@clisp.org>
9358
9359         atexit: Move AC_LIBOBJ invocations to module description.
9360         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9361         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9362         here...
9363         * modules/atexit (configure.ac): ... to here.
9364
9365 2011-05-05  Bruno Haible  <bruno@clisp.org>
9366
9367         atoll: Move AC_LIBOBJ invocations to module description.
9368         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9369         invocations from here...
9370         * modules/atoll (configure.ac): ... to here.
9371
9372 2011-05-05  Bruno Haible  <bruno@clisp.org>
9373
9374         argz: Move AC_LIBOBJ invocations to module description.
9375         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9376         * modules/argz (configure.ac): ... to here.
9377
9378 2011-05-05  Bruno Haible  <bruno@clisp.org>
9379
9380         alphasort: Move AC_LIBOBJ invocations to module description.
9381         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9382         gl_PREREQ_ALPHASORT invocations from here...
9383         * modules/alphasort (configure.ac): ... to here.
9384
9385 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9386
9387         verify: new macro verify_expr; verify_true deprecated
9388         * NEWS: Mention this.
9389         * doc/verify.texi (Compile-time Assertions): Document this.
9390         * lib/verify.h (verify_true): Deprecate.
9391         (verify_expr): New macro.
9392         * tests/test-verify.c (function): Test verify_expr.
9393
9394 2011-06-14  Jim Meyering  <meyering@redhat.com>
9395
9396         init.sh: give more portable redirection-related advice in a comment
9397         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9398         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9399         for lots of discussion.  Stefano Lattarini suggested the solution
9400         of putting "9>&2" after the command.  Reported by Bruno Haible.
9401
9402 2011-06-13  Bruno Haible  <bruno@clisp.org>
9403
9404         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9405         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9406         'none'.
9407
9408 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9409
9410         ftoastr: use strtof only if HAVE_STRTOF
9411         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9412         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9413         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9414         * modules/ftoastr (configure.ac): Check for strtof.
9415
9416 2011-06-13  Bruno Haible  <bruno@clisp.org>
9417
9418         gnulib-tool: Addendum to 2011-06-08 commit.
9419         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9420         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9421
9422 2011-06-13  Bruno Haible  <bruno@clisp.org>
9423
9424         fseeko: Provide a non-inline replacement of fseek().
9425         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9426         * modules/fseeko (Depends-on): Add fseek.
9427         * modules/fseek (License): Change to LGPLv2+.
9428
9429 2011-06-13  Bruno Haible  <bruno@clisp.org>
9430
9431         ftello: Provide a non-inline replacement of ftell().
9432         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9433         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9434         not have ftello() (such as on mingw).
9435         * modules/ftello (Depends-on): Add ftell.
9436         * modules/ftell (License): Change to LGPLv2+.
9437
9438 2011-05-07  Bruno Haible  <bruno@clisp.org>
9439
9440         ftell: Move AC_LIBOBJ invocations to module description.
9441         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9442         * modules/ftell (configure.ac): ... to here.
9443
9444 2011-05-07  Bruno Haible  <bruno@clisp.org>
9445
9446         ftello: Respect rules for use of AC_LIBOBJ.
9447         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9448         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9449         here...
9450         * modules/ftello (configure.ac): ... to here.
9451
9452 2011-05-07  Bruno Haible  <bruno@clisp.org>
9453
9454         fseeko: Simplify.
9455         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9456         (gl_FUNC_FSEEKO): Inline it here.
9457
9458 2011-05-07  Bruno Haible  <bruno@clisp.org>
9459
9460         fseek: Move AC_LIBOBJ invocations to module description.
9461         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9462         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9463         * modules/fseek (configure.ac): ... to here.
9464
9465 2011-05-07  Bruno Haible  <bruno@clisp.org>
9466
9467         fseek: Respect rules for use of AC_LIBOBJ.
9468         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9469         here...
9470         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9471
9472 2011-05-07  Bruno Haible  <bruno@clisp.org>
9473
9474         fseeko: Respect rules for use of AC_LIBOBJ.
9475         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9476         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9477         here...
9478         * modules/fseeko (configure.ac): ... to here.
9479
9480 2011-06-13  Bruno Haible  <bruno@clisp.org>
9481
9482         gnulib-tool: Allow comments in the 'Depends-on' section.
9483         * doc/gnulib.texi (Module description): Mention comment syntax in the
9484         Depends-on section.
9485         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9486
9487 2011-06-13  Bruno Haible  <bruno@clisp.org>
9488
9489         file-set.h: guard __attibute__ use, now that it's not always defined
9490         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9491         versions that support it.  This fixes a coreutils build failure with
9492         the vendor cc on HP-UX 11.31.
9493
9494 2011-06-12  Bruno Haible  <bruno@clisp.org>
9495
9496         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9497         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9498         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9499         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9500         (acl, aclsort): New declarations.
9501         (aclv_nontrivial): New declaration.
9502         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9503         (file_has_acl): Read also the second kind of HP-UX ACLs.
9504         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9505         kind of HP-UX ACLs if the first kind fails.
9506         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9507         second kind of HP-UX ACLs.
9508         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9509         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9510         agree.
9511         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9512         hpuxjfs.
9513         Handle hpuxjfs.
9514         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9515         hpuxjfs.
9516         Handle hpuxjfs.
9517         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9518         (func_test_same_acls): Use both lsacl and getacl.
9519         Handle hpuxjfs.
9520         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9521         (func_test_same_acls): Use both lsacl and getacl.
9522         Handle hpuxjfs.
9523
9524 2011-06-12  Bruno Haible  <bruno@clisp.org>
9525
9526         acl: Complete the 2010-08-10 fix.
9527         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9528         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9529         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9530         explicitly.
9531         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9532         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9533
9534 2011-06-12  Bruno Haible  <bruno@clisp.org>
9535
9536         spawn-pipe tests: Comments.
9537         * tests/test-spawn-pipe-child.c (main): Update comment.
9538         Reported by James Youngman <jay@gnu.org>.
9539
9540 2011-06-11  James Youngman  <jay@gnu.org>
9541
9542         New module 'stat-size'.
9543         * modules/stat-size: New module.  Provides macros for accessing
9544         file size information in instances of struct stat.  Depends on the
9545         fileblocks module because it calls st_blocks.
9546         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9547         * doc/gnulib.texi: Include stat-size.texi.
9548         * doc/stat-size.texi: Documentation for this module.
9549         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9550         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9551         AC_STRUCT_ST_BLOCKS.
9552
9553 2011-06-09  Bruno Haible  <bruno@clisp.org>
9554
9555         thread: Support pthreads-win32.
9556         * lib/glthread/thread.h (gl_thread_self): Define differently on
9557         pthreads-win32.
9558         (gl_null_thread): New declaration.
9559         (gl_thread_self_pointer): New macro.
9560         * lib/glthread/thread.c (gl_null_thread): New constant.
9561         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9562         gl_thread_self.
9563         * tests/test-tls.c: Likewise.
9564         Suggested by Paul Eggert. Reported by Eric Blake.
9565
9566 2011-06-09  Bruno Haible  <bruno@clisp.org>
9567
9568         thread: Fix confusion between NULL and 0.
9569         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9570         Reported by Paul Eggert.
9571
9572 2011-06-09  Bruno Haible  <bruno@clisp.org>
9573
9574         spawn-pipe tests: Avoid test failure on HP-UX 11.
9575         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9576         is closed.
9577
9578 2011-06-09  Bruno Haible  <bruno@clisp.org>
9579
9580         acl tests: Fix compilation error on HP-UX 11.
9581         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9582
9583 2011-06-09  Bruno Haible  <bruno@clisp.org>
9584
9585         rmdir: Avoid test failure on HP-UX 10.20.
9586         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9587         EEXIST.
9588
9589 2011-06-08  Eric Blake  <eblake@redhat.com>
9590
9591         perror: fix test on mingw
9592         * modules/perror-tests (Depends-on): Add dup2.
9593
9594         strerror_r-posix: fix on MacOS
9595         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9596         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9597         logic bug.
9598         * lib/strerror_r.c (strerror_r): Fix the bug.
9599         * lib/strerror.c (strerror): Likewise.
9600         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9601         problem.
9602         * doc/posix-functions/strerror.texi (strerror): Likewise.
9603         * doc/posix-functions/perror.texi (perror): Likewise.
9604         * tests/test-strerror.c (main): Enhance test.
9605         * tests/test-strerror_r.c (main): Likewise.
9606
9607 2011-06-08  Bruno Haible  <bruno@clisp.org>
9608
9609         gnulib-tool: Better isolation between different gnulib-tool invocations.
9610         * gnulib-tool: New option --witness-c-macro.
9611         (witness_c_macro): New variable.
9612         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9613         AM_CPPFLAGS define it as a C macro.
9614         (func_emit_tests_Makefile_am): Likewise.
9615         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9616         read it from there.
9617         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9618         m4_define, not AC_DEFUN.
9619         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9620         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9621         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9622         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9623         s|...|...|, to substitute the values of the GNULIB_* module indicator
9624         variables.
9625         * modules/dirent (Makefile.am): Likewise.
9626         * modules/fcntl-h (Makefile.am): Likewise.
9627         * modules/iconv-h (Makefile.am): Likewise.
9628         * modules/langinfo (Makefile.am): Likewise.
9629         * modules/locale (Makefile.am): Likewise.
9630         * modules/math (Makefile.am): Likewise.
9631         * modules/netdb (Makefile.am): Likewise.
9632         * modules/poll-h (Makefile.am): Likewise.
9633         * modules/pty (Makefile.am): Likewise.
9634         * modules/search (Makefile.am): Likewise.
9635         * modules/signal (Makefile.am): Likewise.
9636         * modules/spawn (Makefile.am): Likewise.
9637         * modules/stdio (Makefile.am): Likewise.
9638         * modules/stdlib (Makefile.am): Likewise.
9639         * modules/string (Makefile.am): Likewise.
9640         * modules/sys_ioctl (Makefile.am): Likewise.
9641         * modules/sys_select (Makefile.am): Likewise.
9642         * modules/sys_socket (Makefile.am): Likewise.
9643         * modules/sys_stat (Makefile.am): Likewise.
9644         * modules/sys_times (Makefile.am): Likewise.
9645         * modules/sys_utsname (Makefile.am): Likewise.
9646         * modules/sys_wait (Makefile.am): Likewise.
9647         * modules/termios (Makefile.am): Likewise.
9648         * modules/time (Makefile.am): Likewise.
9649         * modules/unistd (Makefile.am): Likewise.
9650         * modules/wchar (Makefile.am): Likewise.
9651
9652 2011-06-08  Eric Blake  <eblake@redhat.com>
9653
9654         strerror: simplify replacement
9655         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9656         * modules/strerror (configure.ac): No prereqs needed here...
9657         * modules/strerror-override (configure.ac): ...but this needs it.
9658         (Files): Add file for needed prereq macro.
9659
9660 2011-06-08  Bruno Haible  <bruno@clisp.org>
9661
9662         strerror_r-posix: Tweaks.
9663         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9664         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9665         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9666         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9667         (gl_FUNC_STRERROR_R): ... to here.
9668         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9669
9670 2011-06-07  Eric Blake  <eblake@redhat.com>
9671
9672         perror: document fixed bugs
9673         * doc/posix-functions/perror.texi (perror): Document recent
9674         patches.
9675
9676 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9677
9678         stat-time: get_stat_birthtime failure is better-defined
9679         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9680         return a timestamp whose tv_sec and tv_nsec values are both -1.
9681         Previously, the spec said only that the tv_nsec value was negative.
9682         This upward-compatible change simplifies GNU tar a bit.
9683
9684 2011-06-07  Eric Blake  <eblake@redhat.com>
9685
9686         strerror_r-posix: work around cygwin 1.7.9
9687         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9688         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9689         bug without replacing strerror_r.
9690         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9691         strerror_r is buggy, but without requiring strerror_r compilation.
9692         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9693
9694         test-perror: relax test to ignore cygwin bug
9695         * tests/test-perror2.c (main): Relax test on requiring detection
9696         of stream errors, and use unbuffered stream.
9697         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9698         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9699         * doc/posix-functions/fputc.texi (fputc): Likewise.
9700         * doc/posix-functions/fputs.texi (fputs): Likewise.
9701         * doc/posix-functions/fputws.texi (fputws): Likewise.
9702         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9703         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9704         * doc/posix-functions/getopt.texi (getopt): Likewise.
9705         * doc/posix-functions/perror.texi (perror): Likewise.
9706         * doc/posix-functions/printf.texi (printf): Likewise.
9707         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9708         * doc/posix-functions/psignal.texi (psignal): Likewise.
9709         * doc/posix-functions/putc.texi (putc): Likewise.
9710         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9711         Likewise.
9712         * doc/posix-functions/putchar.texi (putchar): Likewise.
9713         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9714         Likewise.
9715         * doc/posix-functions/puts.texi (puts): Likewise.
9716         * doc/posix-functions/putwc.texi (putwc): Likewise.
9717         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9718         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9719         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9720         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9721         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9722         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9723         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9724         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9725
9726 2011-05-22  Bruno Haible  <bruno@clisp.org>
9727
9728         strerror: Move AC_LIBOBJ invocations to module description.
9729         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9730         gl_PREREQ_STRERROR invocations from here...
9731         * modules/strerror (configure.ac): ... to here.
9732
9733 2011-05-21  Bruno Haible  <bruno@clisp.org>
9734
9735         perror: Use common idiom.
9736         * modules/perror (configure.ac): Reorder statements.
9737
9738 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9739
9740         tests: fix usage message in 'mktempd_'
9741         * tests/init.sh (mktempd_): In the usage message, use literal
9742         'mktempd_', not '$ME' (which is even undefined), as the name of
9743         the subroutine.
9744
9745 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9746
9747         tests init: new function 'fatal_', for hard errors
9748         Before this patch, the only way offered by tests/init.sh to
9749         properly signal a hard error was the `framework_failure_'
9750         function.  But the error message issued by that function,
9751         as its name would suggest, refers to a set-up failure in the
9752         testsuite, while hard errors can obviously also be due to
9753         other reasons.  The best way to fix this inconsistency is to
9754         introduce a new function with a more general error message.
9755         * tests/init.sh (fatal_): New function.
9756
9757 2011-06-06  Eric Blake  <eblake@redhat.com>
9758
9759         canonicalize-lgpl: use common idiom
9760         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9761         over newer POSIX -Rf.
9762         Reported by Bruno Haible.
9763
9764         canonicalize-lgpl: work around AIX realpath bug
9765         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9766         * doc/posix-functions/realpath.texi (realpath): Document it.
9767         Reported by Bruno Haible.
9768
9769         strerror: work around FreeBSD bug
9770         * lib/strerror.c (strerror): Special case 0.
9771         Reported by Bruno Haible.
9772
9773         strerror-override: avoid bloating errno module
9774         * modules/errno (Files, configure.ac): Move replacement strings...
9775         * modules/strerror-override: ...to new module.
9776         * modules/strerror (Depends-on): Add strerror-override.
9777         * modules/strerror_r-posix (Depends-on): Likewise.
9778         * MODULES.html.sh: Document new module.
9779         Reported by Bruno Haible.
9780
9781 2011-06-06  Bruno Haible  <bruno@clisp.org>
9782
9783         spawn-pipe tests: Rename program.
9784         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9785         * tests/test-spawn-pipe-child.c: Update comment.
9786         * tests/test-spawn-pipe.sh: Update.
9787         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9788
9789         spawn-pipe tests: Link the child program only against libc.
9790         * tests/test-spawn-pipe-child.c: New file, extracted from
9791         tests/test-spawn-pipe.c.
9792         (main): Expect only one argument.
9793         (is_open): New function, copied from tests/test-pipe.c.
9794         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9795         (child_main): Remove function.
9796         (test_pipe): Pass only one argument to the child program.
9797         (main): Remove child process code. Expect the child program's name as
9798         first argument.
9799         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9800         argument.
9801         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9802         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9803         test-spawn-pipe-child against no libraries.
9804
9805 2011-06-06  Bruno Haible  <bruno@clisp.org>
9806
9807         careadlinkat: Avoid mismatch between ssize_t and int.
9808         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9809         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9810
9811 2011-06-06  Jim Meyering  <meyering@redhat.com>
9812
9813         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9814         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9815         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9816
9817 2011-06-05  Bruno Haible  <bruno@clisp.org>
9818
9819         ansi-c++-opt: Interoperability with libtool.
9820         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9821         set the variable to "no", not to ":".
9822         * NEWS: Mention the change.
9823
9824 2011-06-05  Bruno Haible  <bruno@clisp.org>
9825
9826         acl: Fix test failure on AIX 7.
9827         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9828         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9829
9830 2011-06-05  Bruno Haible  <bruno@clisp.org>
9831
9832         pipe-filter-ii: Fix test failure on AIX and IRIX.
9833         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9834         with EAGAIN, retry with a smaller buffer size.
9835
9836 2011-06-05  Bruno Haible  <bruno@clisp.org>
9837
9838         localename: Fix link dependencies.
9839         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9840         * modules/localename-tests (Makefile.am): Link test-localename with
9841         $(LIBTHREAD).
9842
9843 2011-06-05  Bruno Haible  <bruno@clisp.org>
9844
9845         error: Avoid gcc warning.
9846         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9847
9848 2011-06-05  Bruno Haible  <bruno@clisp.org>
9849
9850         unsetenv: Avoid gcc warning.
9851         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9852
9853 2011-06-05  Bruno Haible  <bruno@clisp.org>
9854
9855         setenv: Avoid gcc warning.
9856         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9857
9858 2011-06-05  Bruno Haible  <bruno@clisp.org>
9859
9860         sys_select: Ensure memset is declared also on AIX 7.
9861         * lib/sys_select.in.h: Include <string.h> also on AIX.
9862         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9863         self-contained also on AIX 7.1.
9864
9865 2011-06-04  Jim Meyering  <meyering@redhat.com>
9866
9867         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9868         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9869         function name, "error".
9870         (_gl_translatable_diag_func_re): New configurable variable.
9871
9872 2011-06-04  Bruno Haible  <bruno@clisp.org>
9873
9874         getopt: Avoid gcc warning.
9875         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9876
9877 2011-06-04  Bruno Haible  <bruno@clisp.org>
9878
9879         strerror_r: Fix comments.
9880         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9881         commit.
9882
9883 2011-06-04  Bruno Haible  <bruno@clisp.org>
9884
9885         perror: Fix compilation error.
9886         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9887         Undefine fprintf, not sprintf.
9888         * modules/perror (Depends-on): Remove intprops, verify.
9889
9890 2011-06-04  Bruno Haible  <bruno@clisp.org>
9891
9892         setlocale: Enable replacement on Cygwin 1.5.
9893         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9894         Cygwin 1.5.x.
9895         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9896         LC_CTYPE category also exists on Cygwin 1.5.x.
9897
9898 2011-06-04  Bruno Haible  <bruno@clisp.org>
9899
9900         strerror-override: Don't disable symbol renamings.
9901         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9902         * lib/strerror-override.c: Include config.h.
9903         (strerror_override): Don't undefine.
9904
9905 2011-06-03  Bruno Haible  <bruno@clisp.org>
9906
9907         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9908         * lib/localename.h: Update copyright header.
9909         * lib/localename.c: Likewise.
9910         * lib/relocatable.h: Likewise.
9911         * lib/relocatable.c: Likewise.
9912
9913 2011-06-02  Bruno Haible  <bruno@clisp.org>
9914
9915         doc: Fix a module name.
9916         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9917
9918 2011-06-02  Bruno Haible  <bruno@clisp.org>
9919
9920         pipe2: Remove dependency on 'nonblocking' module.
9921         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9922         O_NONBLOCK is defined by gnulib.
9923         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9924         is zero.
9925         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9926         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9927         defined by gnulib.
9928         (get_nonblocking_flag): New function.
9929         (main): Test O_NONBLOCK flag only if it is nonzero.
9930         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9931
9932 2011-06-03  Jim Meyering  <meyering@redhat.com>
9933
9934         maint: three new prohibit-header-without-use rules
9935         Prohibit use of cloexec.h, posixver.h, same.h without use.
9936         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9937         (sc_prohibit_posixver_without_use): Likewise.
9938         (sc_prohibit_same_without_use): Likewise.
9939
9940 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9941
9942         allocator: 'die' routine is now given requested size
9943         * lib/allocator.h (struct allocator.die): New size arg.
9944         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9945         If the actual problem is an ssize_t limitation, not a size_t or
9946         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9947
9948 2011-06-01  Eric Blake  <eblake@redhat.com>
9949
9950         strerror: drop strerror_r dependency
9951         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9952         * lib/strerror-override.c (strerror_override): ...to new file.
9953         * lib/strerror-override.h: Add prototype.
9954         * lib/strerror-impl.h: Delete.
9955         * lib/strerror.c (strerror): New implementation.
9956         * modules/errno (Files): Add new files.
9957         (configure.ac): Compile new file as appropriate.
9958         * modules/strerror (Files): Drop unused file.
9959         (Depends-on): Drop strerror_r-posix.
9960         * MODULES.html.sh: Document strerror_r-posix.
9961         Requested by Sam Steingold.
9962
9963         perror: call strerror_r directly
9964         * modules/perror (Files): Drop strerror-impl.h.
9965         * lib/perror.c (perror): Use our own stack buffer, rather than
9966         calling a wrapper that uses static storage.
9967         * doc/posix-functions/perror.texi (perror): Document a limitation
9968         of our replacement.
9969
9970         strerror_r: fix includes for FreeBSD
9971         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9972         since we use abort on some platforms.
9973         Reported by Matthias Bolte.
9974
9975 2011-05-31  Bruno Haible  <bruno@clisp.org>
9976
9977         Fix link errors in tests: openat-die uses gettext-h.
9978         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9979         against $(LIBINTL).
9980         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9981         against $(LIBINTL).
9982         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9983         $(LIBINTL).
9984         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9985         against $(LIBINTL).
9986         * modules/linkat-tests (Makefile.am): Link test-linkat against
9987         $(LIBINTL).
9988         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9989         $(LIBINTL).
9990         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9991         against $(LIBINTL).
9992         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9993         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9994         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9995         $(LIBINTL).
9996         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9997         $(LIBINTL).
9998         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9999         $(LIBINTL).
10000         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10001
10002 2011-05-31  Bruno Haible  <bruno@clisp.org>
10003
10004         Fix link errors in tests: wait-process uses gettext-h.
10005         * modules/nonblocking-pipe-tests (Makefile.am): Set
10006         test_nonblocking_pipe_main_LDADD.
10007         * modules/nonblocking-socket-tests (Makefile.am): Link
10008         test-nonblocking-socket-main against $(LIBINTL).
10009         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10010
10011 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10012
10013         assert-h: work around 'verify' incompatibility
10014         * lib/verify.h: Use @...@ directives, not ifdef.
10015         * modules/assert-h (assert.h): Implement the directives.
10016         (assert.h): Substitute the symbol-prefix more consistently.
10017
10018 2011-05-29  Jim Meyering  <meyering@redhat.com>
10019
10020         trim: remove three superfluous assignments
10021         * lib/trim.c (trim2): Remove three superfluous assignments
10022         and correct brace positioning.
10023
10024 2011-05-29  Bruno Haible  <bruno@clisp.org>
10025
10026         wctype-h: Avoid namespace pollution on Solaris 2.6.
10027         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10028         identifiers.
10029         * doc/posix-headers/wctype.texi: Mention the problem.
10030         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10031
10032 2011-05-28  Jim Meyering  <meyering@redhat.com>
10033
10034         parse-datetime.y: accommodate -Wstrict-overflow
10035         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10036         placate -Wstrict-overflow.
10037
10038         trim: avoid a warning from -O2 -Wstrict-overflow
10039         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10040
10041 2011-05-29  Bruno Haible  <bruno@clisp.org>
10042
10043         gnulib-tool: Fix bug in yesterday's commit.
10044         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10045         twice.
10046
10047 2011-05-29  Bruno Haible  <bruno@clisp.org>
10048
10049         Allow multiple gnulib generated include files to be combined.
10050         * gnulib-tool (func_compute_include_guard_prefix): New function.
10051         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10052         ${gl_include_guard_prefix} references.
10053         (func_import, func_create_testdir): Invoke
10054         func_compute_include_guard_prefix.
10055         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10056         * lib/ctype.in.h: Likewise.
10057         * lib/dirent.in.h: Likewise.
10058         * lib/errno.in.h: Likewise.
10059         * lib/fcntl.in.h: Likewise.
10060         * lib/float.in.h: Likewise.
10061         * lib/getopt.in.h: Likewise.
10062         * lib/iconv.in.h: Likewise.
10063         * lib/langinfo.in.h: Likewise.
10064         * lib/locale.in.h: Likewise.
10065         * lib/math.in.h: Likewise.
10066         * lib/netdb.in.h: Likewise.
10067         * lib/netinet_in.in.h: Likewise.
10068         * lib/poll.in.h: Likewise.
10069         * lib/pthread.in.h: Likewise.
10070         * lib/pty.in.h: Likewise.
10071         * lib/sched.in.h: Likewise.
10072         * lib/se-selinux.in.h: Likewise.
10073         * lib/search.in.h: Likewise.
10074         * lib/signal.in.h: Likewise.
10075         * lib/spawn.in.h: Likewise.
10076         * lib/stdarg.in.h: Likewise.
10077         * lib/stddef.in.h: Likewise.
10078         * lib/stdint.in.h: Likewise.
10079         * lib/stdio.in.h: Likewise.
10080         * lib/stdlib.in.h: Likewise.
10081         * lib/string.in.h: Likewise.
10082         * lib/strings.in.h: Likewise.
10083         * lib/sys_file.in.h: Likewise.
10084         * lib/sys_ioctl.in.h: Likewise.
10085         * lib/sys_select.in.h: Likewise.
10086         * lib/sys_socket.in.h: Likewise.
10087         * lib/sys_stat.in.h: Likewise.
10088         * lib/sys_time.in.h: Likewise.
10089         * lib/sys_times.in.h: Likewise.
10090         * lib/sys_uio.in.h: Likewise.
10091         * lib/sys_utsname.in.h: Likewise.
10092         * lib/sys_wait.in.h: Likewise.
10093         * lib/sysexits.in.h: Likewise.
10094         * lib/termios.in.h: Likewise.
10095         * lib/time.in.h: Likewise.
10096         * lib/unistd.in.h: Likewise.
10097         * lib/wchar.in.h: Likewise.
10098         * lib/wctype.in.h: Likewise.
10099         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10100         * modules/ctype (Makefile.am): Likewise.
10101         * modules/dirent (Makefile.am): Likewise.
10102         * modules/errno (Makefile.am): Likewise.
10103         * modules/fcntl-h (Makefile.am): Likewise.
10104         * modules/float (Makefile.am): Likewise.
10105         * modules/getopt-posix (Makefile.am): Likewise.
10106         * modules/iconv-h (Makefile.am): Likewise.
10107         * modules/langinfo (Makefile.am): Likewise.
10108         * modules/locale (Makefile.am): Likewise.
10109         * modules/math (Makefile.am): Likewise.
10110         * modules/netdb (Makefile.am): Likewise.
10111         * modules/netinet_in (Makefile.am): Likewise.
10112         * modules/poll-h (Makefile.am): Likewise.
10113         * modules/pthread (Makefile.am): Likewise.
10114         * modules/pty (Makefile.am): Likewise.
10115         * modules/sched (Makefile.am): Likewise.
10116         * modules/search (Makefile.am): Likewise.
10117         * modules/selinux-h (Makefile.am): Likewise.
10118         * modules/signal (Makefile.am): Likewise.
10119         * modules/spawn (Makefile.am): Likewise.
10120         * modules/stdarg (Makefile.am): Likewise.
10121         * modules/stddef (Makefile.am): Likewise.
10122         * modules/stdint (Makefile.am): Likewise.
10123         * modules/stdio (Makefile.am): Likewise.
10124         * modules/stdlib (Makefile.am): Likewise.
10125         * modules/string (Makefile.am): Likewise.
10126         * modules/strings (Makefile.am): Likewise.
10127         * modules/sys_file (Makefile.am): Likewise.
10128         * modules/sys_ioctl (Makefile.am): Likewise.
10129         * modules/sys_select (Makefile.am): Likewise.
10130         * modules/sys_socket (Makefile.am): Likewise.
10131         * modules/sys_stat (Makefile.am): Likewise.
10132         * modules/sys_time (Makefile.am): Likewise.
10133         * modules/sys_times (Makefile.am): Likewise.
10134         * modules/sys_uio (Makefile.am): Likewise.
10135         * modules/sys_utsname (Makefile.am): Likewise.
10136         * modules/sys_wait (Makefile.am): Likewise.
10137         * modules/sysexits (Makefile.am): Likewise.
10138         * modules/termios (Makefile.am): Likewise.
10139         * modules/time (Makefile.am): Likewise.
10140         * modules/unistd (Makefile.am): Likewise.
10141         * modules/wchar (Makefile.am): Likewise.
10142         * modules/wctype-h (Makefile.am): Likewise.
10143         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10144
10145 2011-05-29  Bruno Haible  <bruno@clisp.org>
10146
10147         assert-h: Allow multiple gnulib generated replacements to coexist.
10148         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10149
10150 2011-05-29  Bruno Haible  <bruno@clisp.org>
10151
10152         argp: Allow coexistence with strerror_r-posix module.
10153         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10154         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10155         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10156         not the glibc signature.
10157
10158 2011-05-28  Bruno Haible  <bruno@clisp.org>
10159
10160         gnulib-tool: Alternative structure of testdirs, similar to --import.
10161         * gnulib-tool: New option --single-configure.
10162         (func_usage): Document it.
10163         (single_configure): New variable.
10164         (func_modules_transitive_closure_separately,
10165         func_modules_transitive_closure_separately,
10166         func_determine_use_libtests, func_modules_add_dummy_separately,
10167         func_modules_to_filelist_separately): New functions, extracted from
10168         func_import.
10169         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10170         (func_import): Use the new functions.
10171         (func_create_testdir): Set final_modules. Handle $single_configure =
10172         true case.
10173
10174 2011-05-28  Bruno Haible  <bruno@clisp.org>
10175
10176         getloadavg: Remove an unreliable safety check.
10177         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10178         getloadavg.c is in place.
10179         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10180         Reported by Sam Steingold <sds@gnu.org>.
10181
10182 2011-05-28  Bruno Haible  <bruno@clisp.org>
10183
10184         doc: Cleanup yet another file produced by texinfo.tex.
10185         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10186
10187 2011-05-28  Bruno Haible  <bruno@clisp.org>
10188
10189         Finish the conditional dependencies mechanism.
10190         * gnulib-tool: New option --no-conditional-dependencies.
10191         (func_usage): Document it. Don't mark --conditional-dependencies as
10192         experimental.
10193         (cond_dependencies): The possible values can now be true, false, empty.
10194         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10195         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10196         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10197
10198 2011-05-28  Bruno Haible  <bruno@clisp.org>
10199
10200         doc: Use a recent texinfo.tex.
10201         * doc/Makefile (tex_opts): New variable.
10202         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10203
10204 2011-05-28  Jim Meyering  <meyering@redhat.com>
10205
10206         intprops.h: adjust comment to match code change
10207         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10208         only once, it *may* have side effects.  Also fix an unrelated typo.
10209         (_GL_INT_SIGNED): Likewise.
10210
10211 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10212
10213         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10214
10215 2011-05-26  Bruno Haible  <bruno@clisp.org>
10216
10217         mbsrchr: Avoid collision with system function on Interix.
10218         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10219         Reported by Markus Duft <mduft@gentoo.org>.
10220
10221 2011-05-15  James Youngman  <jay@gnu.org>
10222
10223         getopt: for ambiguous options, enumerate the possibilities.
10224         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10225         the ambiguous options when an ambiguous prefix is given. This was
10226         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10227         glibc change was
10228         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10229
10230 2011-05-25  Eric Blake  <eblake@redhat.com>
10231
10232         getcwd: work around mingw bug
10233         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10234         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10235         Reported by Matthias Bolte.
10236
10237 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10238
10239         test-intprops: disable -Wtype-limits diagnostics
10240         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10241         diagnostics.  Otherwise, the integer overflow macros generate many
10242         diagnostics.  Reported by Jim Meyering in
10243         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10244
10245         intprops: shorten, to pacify gcc -Woverlength-strings
10246         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10247         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10248         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10249         likely to run afoul of C compiler limits for string constant lengths.
10250         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10251
10252 2011-05-24  Eric Blake  <eblake@redhat.com>
10253
10254         docs: document recently fixed glibc printf bug
10255         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10256         * doc/posix-functions/printf.texi (printf): Likewise.
10257         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10258         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10259
10260         closein-tests: convert to init.sh
10261         * modules/closein-tests (Files): Add init.sh
10262         * tests/test-closein.sh Use it.
10263
10264         yesno-tests: convert to init.sh
10265         * modules/yesno-tests (Files): Add init.sh.
10266         * tests/test-yesno.sh: Use it.
10267
10268         atexit-tests: ensure reliable exit status
10269         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10270         Reported by Bruno Haible.
10271
10272 2011-05-24  Bruno Haible  <bruno@clisp.org>
10273
10274         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10275         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10276         gl_PREREQ_STRERROR_R invocations from here...
10277         * modules/strerror_r-posix (configure.ac): ... to here.
10278
10279 2011-05-24  Eric Blake  <eblake@redhat.com>
10280
10281         strerror_r: fix missing header
10282         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10283
10284         strerror_r: fix AIX test failures
10285         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10286         ERANGE failure.
10287
10288         strerror_r: fix Solaris test failures
10289         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10290         failures.
10291         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10292
10293         strerror_r: enforce POSIX recommendations
10294         * lib/strerror_r.c (safe_copy): New helper method.
10295         (strerror_r): Guarantee a non-empty string.
10296         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10297         recent POSIX rulings and to match our strerror guarantees.
10298         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10299
10300 2011-05-24  Jim Meyering  <meyering@redhat.com>
10301
10302         test-perror2.c: avoid warning about unused variable
10303         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10304
10305 2011-05-24  Eric Blake  <eblake@redhat.com>
10306
10307         perror: avoid spurious test failure on HP-UX
10308         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10309
10310         tests: fix logic bug in init.sh
10311         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10312         shell.
10313
10314 2011-05-24  Jim Meyering  <meyering@redhat.com>
10315
10316         utimensat: do not reference an out-of-scope buffer
10317         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10318         declared in an inner scope, yet "times" would be dereferenced outside
10319         the scope in which "ts" was valid.
10320         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10321         of ts[2] "out/up", so that the use of aliased "times" (via
10322         "times = ts;") does not end up referencing an out-of-scope "ts"
10323
10324         opendir-safer.c: don't clobber errno; don't close negative FD
10325         * lib/opendir-safer.c (opendir_safer):
10326         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10327         file descriptor, and more importantly, don't clobber the
10328         offending errno value with EINVAL.  Before, upon failure
10329         of dup_safer, we would pass the negative file descriptor to
10330         fdopendir, which would clobber errno.
10331
10332 2011-05-23  Bruno Haible  <bruno@clisp.org>
10333
10334         idcache: Fix module description.
10335         * modules/idcache (Include): Set to "idcache.h".
10336
10337 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10338
10339         gnulib-tool: fix portability problem with MacOS sed
10340         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10341         before the "}".  Problem reported by Leo in
10342         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10343         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10344         sed_extract_condition1, sed_extract_condition2.
10345
10346 2011-05-23  Bruno Haible  <bruno@clisp.org>
10347
10348         hash: Simplify autoconf macro.
10349         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10350
10351 2011-05-23  Bruno Haible  <bruno@clisp.org>
10352
10353         getugroups: Fix module description.
10354         * modules/getugroups (Include): Set to "getugroups.h".
10355
10356 2011-05-23  Bruno Haible  <bruno@clisp.org>
10357
10358         linkat: Simplify autoconf macro.
10359         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10360
10361 2011-05-23  Bruno Haible  <bruno@clisp.org>
10362             Eric Blake  <eblake@redhat.com>
10363
10364         linkat, renameat: Update dependencies.
10365         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10366         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10367         symlinkat.
10368
10369 2011-05-23  Jim Meyering  <meyering@redhat.com>
10370
10371         maint.mk: more tight_scope improvements
10372         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10373         (_gl_TS_headers): Define only in if-0'd block.
10374         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10375         sometimes we must *not* use it.  Adjust uses accordingly.
10376         (sc_tight_scope): Use much simpler grep-based test to determine
10377         whether we skip this rule.
10378
10379         maint.mk: generalize/improve the tight-scope rule
10380         * top/maint.mk: Emit a warning when the test is skipped.
10381         (_gl_TS_dir): Add $(srcdir)/ prefix.
10382         (_gl_TS_function_match): Simplify, rather than trying
10383         to enumerate common types.  Otherwise, it would fail to match an
10384         "extern unsigned char const *" declaration in idutils.
10385         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10386         a way to support use of that type of macro.
10387         (_gl_TS_var_match): Simplify regexp.
10388         (_gl_TS_obj_files): New configurable variable.
10389         (_gl_TS_headers): Likewise.
10390
10391 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10392
10393         verify: fix bug when gnulib <assert.h> is also included
10394         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10395         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10396         Perhaps there's a better way, but this fixes the immediate problem.
10397         Problem reported by Bruno Haible in
10398         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10399
10400 2011-05-22  Bruno Haible  <bruno@clisp.org>
10401
10402         xgetcwd: Simplify autoconf macro.
10403         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10404
10405 2011-05-22  Bruno Haible  <bruno@clisp.org>
10406
10407         New module 'mktime-internal'.
10408         * modules/mktime-internal: New file.
10409         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10410         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10411         mktime_internal as a C macro if libc has __mktime_internal.
10412         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10413         conditions.
10414         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10415
10416 2011-05-22  Bruno Haible  <bruno@clisp.org>
10417
10418         timegm: Correct mktime replacement statements.
10419         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10420         defining mktime as a C macro. This completes a 2009-07-28 commit.
10421
10422 2011-05-22  Bruno Haible  <bruno@clisp.org>
10423
10424         timegm: Simplify autoconf macro.
10425         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10426
10427 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10428
10429         clock-time: change to LGPLv2+.
10430         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10431         BSD-like but we have no mark for that; this is good enough for now.
10432
10433 2011-05-21  Bruno Haible  <bruno@clisp.org>
10434
10435         strerror_r: Fix comments.
10436         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10437
10438 2011-05-21  Bruno Haible  <bruno@clisp.org>
10439
10440         relocatable-prog-wrapper: Fix possible link error.
10441         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10442         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10443         (gl_FUNC_SETENV): ... to here.
10444         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10445         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10446
10447 2011-05-21  Bruno Haible  <bruno@clisp.org>
10448
10449         relocatable-prog-wrapper: Assume strerror() exists.
10450         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10451         m4/strerror.m4.
10452         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10453         * lib/relocwrapper.c: Remove mention of strerror module.
10454         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10455         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10456         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10457         C macro.
10458
10459 2011-05-21  Bruno Haible  <bruno@clisp.org>
10460
10461         select: Simplify replacement idiom.
10462         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10463         Win32 platforms.
10464         * lib/sys_select.in.h (select): Simplify accordingly.
10465         * modules/select (Depends-on): Likewise.
10466
10467 2011-05-21  Bruno Haible  <bruno@clisp.org>
10468
10469         mkdir-p: Simplify autoconf macro.
10470         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10471         gl_FUNC_LCHOWN.
10472
10473 2011-05-21  Eric Blake  <eblake@redhat.com>
10474
10475         strerror_r: avoid clobbering strerror on cygwin
10476         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10477         fall back instead to sys_errlist.
10478         * modules/strerror (configure.ac): Add witness.
10479         * tests/test-strerror_r.c (main): Enhance test.
10480         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10481         * tests/test-perror2.c (main): Free memory before exit.
10482
10483 2011-05-21  Bruno Haible  <bruno@clisp.org>
10484
10485         mkdtemp: Use gnulib naming conventions.
10486         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10487         * modules/mkdtemp (configure.ac): Update.
10488
10489 2011-05-20  Eric Blake  <eblake@redhat.com>
10490
10491         strerror_r: avoid corrupting errno on Solaris
10492         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10493         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10494
10495         strerror_r: avoid compiler warning
10496         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10497
10498         strerror_r: simplify AIX code
10499         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10500
10501         test-perror: avoid spurious failure on FreeBSD
10502         * modules/perror-tests (Depends-on): Add strerror, now that
10503         strerror_r no longer pulls it in.
10504
10505 2011-05-20  Bruno Haible  <bruno@clisp.org>
10506
10507         strerror_r-posix: Remove unused dependencies.
10508         * modules/strerror_r-posix (Depends-on): Remove strerror.
10509         Reported by Eric Blake.
10510
10511 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10512
10513         intprops: remove assumption about A|B representation
10514         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10515         is a valid integer if both A and B are.  Although this is true for
10516         all known practical hosts, the C standard doesn't guarantee it,
10517         and the code need not assume it.  Also, this change may work around
10518         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10519         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10520
10521 2011-05-20  Eric Blake  <eblake@redhat.com>
10522
10523         perror: work around FreeBSD bug
10524         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10525         is broken.  Move AC_LIBOBJ...
10526         * modules/perror (configure.ac): Here.
10527         * doc/posix-functions/perror.texi (perror): Document this.
10528         * tests/test-perror2.c (main): Enhance test.
10529
10530         test-perror: check for strerror interactions
10531         * tests/macros.h (STREQ): Add macro.
10532         * modules/perror-tests (Files): Add second test.
10533         * tests/test-perror2.c (main): New file.
10534         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10535
10536         test-perror: rewrite to use init script
10537         * modules/perror-tests (Files): Add init.sh.
10538         * tests/test-perror.sh: Use temporary directory.
10539
10540 2011-05-20  Jim Meyering  <meyering@redhat.com>
10541
10542         maint: replace misused "a" with "an"
10543         * doc/intprops.texi: "a integer"
10544         * doc/regex.texi: "a explanation"
10545         * lib/alignof.h: "a object"
10546         * lib/argmatch.h: "a explanation"
10547         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10548         * lib/stdint.in.h: "a integer"
10549         * lib/userspec.c: "a owner"
10550         * doc/gnulib.texi: Fix "a idea", and reword.
10551
10552 2011-05-19  Jim Meyering  <meyering@redhat.com>
10553
10554         maint: correct misuse of "a" and "an"
10555         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10556         * lib/argp-help.c: "an docum...": s/an/a/
10557         * lib/argp-parse.c: "An vector": s/An/A/
10558         * lib/execute.c: "an native": s/an/a/
10559         * lib/spawn-pipe.c: Likewise.
10560         * lib/gc.h: "an Gc_rc": s/an/a/
10561         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10562         * lib/fts.c: "an stat.st_dev": s/an/a/
10563
10564 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10565
10566         intprops-tests: work around HP-UX 11.23 cc bug with constants
10567         * tests/test-intprops.c (VERIFY): New macro.
10568         (main): Use it, instead of verify, to work around the compiler bug; see
10569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10570
10571         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10572         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10573         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10574         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10575         (_GL_REMAINDER_OVERFLOW): Use it.
10576
10577         intprops-tests: revert unsigned part of previous change
10578         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10579         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10580         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10581         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10582
10583 2011-05-19  Bruno Haible  <bruno@clisp.org>
10584
10585         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10586         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10587         strerror_r() returned without filling the buffer.
10588         Reported by Eric Blake.
10589
10590 2011-05-19  Eric Blake  <eblake@redhat.com>
10591
10592         strerror_r: guarantee unchanged errno
10593         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10594         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10595         failure.
10596         * tests/test-strerror_r.c (main): Enhance test.
10597
10598 2011-05-19  Bruno Haible  <bruno@clisp.org>
10599
10600         strerror_r: Reorder #if blocks.
10601         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10602         for consistency with the previous commit.
10603
10604 2011-05-19  Bruno Haible  <bruno@clisp.org>
10605
10606         perror: Avoid clobbering the strerror buffer when possible.
10607         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10608         * lib/strerror.c: Include it.
10609         * modules/strerror (Files): Add lib/strerror-impl.h.
10610         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10611         (my_strerror): New function, defined through lib/strerror-impl.h.
10612         (perror): Use it instead of strerror.
10613         * modules/perror (Files): Add lib/strerror-impl.h.
10614         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10615
10616 2011-05-19  Eric Blake  <eblake@redhat.com>
10617
10618         strerror_r: fix on newer cygwin
10619         * lib/strerror_r.c (strerror_r): Cygwin now has
10620         __xpg_strerror_r, use it.
10621
10622 2011-05-19  Bruno Haible  <bruno@clisp.org>
10623
10624         strerror_r: Avoid clobbering the strerror buffer when possible.
10625         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10626         (sys_nerr, sys_errlist): New declarations.
10627         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10628         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10629         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10630
10631 2011-05-19  Bruno Haible  <bruno@clisp.org>
10632
10633         strerror_r: Fix test failure on mingw.
10634         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10635         EXTEND_STRERROR_R.
10636         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10637         macros from errno.in.h instead.
10638
10639 2011-05-19  Eric Blake  <eblake@redhat.com>
10640
10641         strerror: relax test for Solaris
10642         * tests/test-strerror.c (main): Permit Solaris behavior.
10643         * tests/test-strerror_r.c (main): Likewise.
10644
10645         strerror: enforce POSIX ruling on strerror(0)
10646         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10647         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10648         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10649         * doc/posix-functions/strerror.texi (strerror): Document it.
10650         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10651         * tests/test-strerror.c (main): Strengthen test.
10652         * tests/test-strerror_r.c (main): Likewise.
10653
10654 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10655
10656         intprop-tests: port to older and more-pedantic compilers
10657         * modules/intprops-tests (Files): Add tests/macros.h.
10658         * tests/test-intprops.c: Include macros.h.
10659         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10660         it's no longer documented to expand to an integer constant expression.
10661         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10662         argument is floating point, as it's no longer documented to expand
10663         to an integer constant expression in that case.
10664         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10665         compiler bugs reported by Bruno Haible.  See
10666         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10667         (U0, U1): New constants, to work around the same bugs.  Also,
10668         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10669
10670         intprops: work around C compiler bugs
10671         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10672         bug in Sun C 5.11 2010/08/13 and other compilers; see
10673         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10674
10675         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10676         * doc/intprops.texi (Integer Type Determination): Fix
10677         documentation for TYPE_IS_INTEGER: it returns an constant
10678         expression, not an integer constant expression.  Fix doc for
10679         TYPE_SIGNED: it returns an integer constant expression only if its
10680         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10681         hardly worth documented that way....)
10682
10683 2011-05-18  Bruno Haible  <bruno@clisp.org>
10684
10685         strerror_r: Avoid clobbering the strerror buffer when possible.
10686         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10687         Handle gnulib defined errno values here. When strerror() returns NULL
10688         or an empty string, return EINVAL.
10689         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10690         gnulib defined errno values here.
10691         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10692
10693 2011-05-18  Eric Blake  <eblake@redhat.com>
10694
10695         fnmatch: avoid compiler warning
10696         * lib/fnmatch_loop.c (FCT): Use correct type.
10697         Reported by Matthias Bolte.
10698
10699 2011-05-13  Jim Meyering  <meyering@redhat.com>
10700
10701         maint.mk: three new prohibit_<HDR>_without_use rules
10702         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10703         (sc_prohibit_stdio-safer_without_use): Likewise.
10704         (sc_prohibit_xfreopen_without_use): Likewise.
10705
10706 2011-05-17  Jim Meyering  <meyering@redhat.com>
10707
10708         announce-gen: fail if the NEWS delta is empty
10709         If there's nothing noteworthy in NEWS, then either you forgot
10710         or you shouldn't be releasing.
10711         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10712
10713 2011-05-17  Pádraig Brady <P@draigBrady.com>
10714
10715         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10716         reserved symbols starting with double underscore from the check.
10717
10718 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10719
10720         intprops: add doc
10721         * doc/intprops.texi: New file, documenting intprops.
10722         * doc/gnulib.texi (Particular Modules): Include it.
10723
10724         verify: add doc to gnulib manual and fix example
10725         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10726         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10727         (Compile-time Assertions): Fix example so it can't overflow.
10728
10729 2011-05-17  Jim Meyering  <meyering@redhat.com>
10730
10731         warnings.m4: don't usurp save_CPPFLAGS variable name
10732         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10733
10734         doc: fix typo
10735         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10736
10737 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10738             Bruno Haible  <bruno@clisp.org>
10739
10740         doc: Tweak recent change.
10741         * README (Portability guidelines): Tweak new text.
10742         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10743         Interix 6.1.
10744
10745 2011-05-16  Eric Blake  <eblake@redhat.com>
10746
10747         inttypes: avoid autoconf warning
10748         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10749         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10750
10751 2011-05-16  Sam Steingold <sds@gnu.org>
10752         and Eric Blake  <eblake@redhat.com>
10753
10754         vc-list-files: accept multiple directory operands
10755         * build-aux/vc-list-files: Iterate over all remaining operands.
10756
10757 2011-05-16  Bruno Haible  <bruno@clisp.org>
10758
10759         Fix confusion regarding deprecated modules.
10760         * modules/calloc (Status, Notice): Mark module as deprecated, not
10761         obsolete.
10762         * modules/fnmatch-posix (Status, Notice): Likewise.
10763         * modules/getdate (Status, Notice): Likewise.
10764         * modules/getopt (Status, Notice): Likewise.
10765         * modules/malloc (Status, Notice): Likewise.
10766         * modules/pipe (Status, Notice): Likewise.
10767         * modules/realloc (Status, Notice): Likewise.
10768         * modules/rename-dest-slash (Status, Notice): Likewise.
10769         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10770         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10771         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10772         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10773         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10774
10775 2011-05-16  Bruno Haible  <bruno@clisp.org>
10776
10777         doc: List the target platforms.
10778         * doc/gnulib-intro.texi (Target Platforms): New section.
10779         * doc/gnulib.texi (Introduction): Update menu.
10780         * README (Portability guidelines): Refer to the new section. Update
10781         statement about oldest supported environment. Remove rationale why
10782         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10783         unportable C89 function.
10784         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10785         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10786
10787 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10788
10789         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10790
10791 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10792
10793         intprops-tests: new module
10794         * modules/intprops-tests, tests/test-intprops.c: New files.
10795
10796         intprops: add safe, portable integer overflow checking
10797         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10798         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10799         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10800         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10801         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10802         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10803         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10804         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10805         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10806         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10807         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10808
10809 2011-05-12  James Youngman  <jay@gnu.org>
10810
10811         Add a test for glibc's Bugzilla bug #12378.
10812         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10813         doesn't allow the literal matching of a lone "[" (which is
10814         required by POSIX).
10815         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10816
10817 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10818
10819         Sync glibc change fixing Bugzilla bug #12378.
10820         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10821         beginning and fall back to matching as normal character if the
10822         string ends before the matching ']' is found.  This is what POSIX
10823         requires.
10824
10825 2011-05-13  Eric Blake  <eblake@redhat.com>
10826
10827         getcwd-lgpl: relax test for FreeBSD
10828         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10829         issue.
10830         * tests/test-getcwd-lgpl.c (main): Relax test.
10831         Reported by Matthias Bolte.
10832
10833 2011-05-11  Eric Blake  <eblake@redhat.com>
10834
10835         test-fflush: silence compiler warning
10836         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10837
10838 2011-05-11  Bruno Haible  <bruno@clisp.org>
10839
10840         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10841         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10842         * modules/canonicalize (Depends-on): Add 'nocrash'.
10843         * modules/canonicalize-lgpl (Depends-on): Likewise.
10844         * doc/posix-functions/realpath.texi: Update platforms list.
10845         Reported by Ryan Schmidt <ryandesign@macports.org>.
10846
10847 2011-05-11  Bruno Haible  <bruno@clisp.org>
10848
10849         group-member: Declare function in <unistd.h>.
10850         * lib/unistd.in.h (group_member): New declaration.
10851         * lib/group-member.h: Remove file.
10852         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10853         * tests/test-unistd-c++.cc: Check signature of group_member.
10854         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10855         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10856         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10857         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10858         HAVE_GROUP_MEMBER.
10859         * modules/group-member (Files): Remove lib/group-member.h.
10860         (Depends-on): Add unistd. Specify conditions.
10861         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10862         (Include): Change to <unistd.h>.
10863         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10864         HAVE_GROUP_MEMBER.
10865         * NEWS: Mention the change.
10866         * lib/euidaccess.c: Don't include group-member.h.
10867
10868 2011-05-11  Bruno Haible  <bruno@clisp.org>
10869
10870         group-member: Document module.
10871         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10872         module.
10873
10874 2011-05-11  Bruno Haible  <bruno@clisp.org>
10875
10876         fclose: Fix mistake earlier today.
10877         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10878
10879 2011-05-11  Eric Blake  <eblake@redhat.com>
10880
10881         fclose: preserve fflush errors
10882         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10883         Reported by Jim Meyering.
10884
10885         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10886         * build-aux/bootstrap (check_versions): When no specific version
10887         is required, merely check that the app produces an exit status
10888         that indicates its existence.
10889
10890         maint.mk: drop redundant check
10891         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10892         the same but better.
10893
10894 2011-05-11  Bruno Haible  <bruno@clisp.org>
10895
10896         fclose: Fix possible link error.
10897         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10898         unregister_shadow_fd. Improve comments.
10899         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10900         Eric Blake.
10901
10902 2011-05-11  Jim Meyering  <meyering@redhat.com>
10903
10904         maint.mk: improve "can not" detection and generalize rule name
10905         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10906         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10907         Use the same technique as in sc_prohibit_doubled_word, so that
10908         we recognize "can not" also when the words are separated by a newline.
10909         Suggested by Eric Blake.
10910         (perl_filename_lineno_text_): Define.  Factored out of...
10911         (prohibit_doubled_word_): ...here.  Use the new definition.
10912         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10913         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10914         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10915
10916 2011-05-10  Eric Blake  <eblake@redhat.com>
10917
10918         fclose: avoid double close race when possible
10919         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10920         all but WINDOWS_SOCKETS.
10921
10922 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10923
10924         openat: correct new comment
10925         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10926
10927 2011-05-10  Jim Meyering  <meyering@redhat.com>
10928
10929         openat: add comments
10930         * lib/openat-proc.c (openat_proc_name): Add comments,
10931         mostly from Eric Blake.
10932
10933 2011-05-09  Eric Blake  <eblake@redhat.com>
10934
10935         openat: reduce syscalls in first probe of /proc
10936         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10937         be a directory.  Simplify the probe for .. bugs.
10938         * modules/openat (Depends-on): Drop same-inode.
10939         Reported by Bastien ROUCARIES.
10940
10941 2011-05-09  Jim Meyering  <meyering@redhat.com>
10942
10943         maint.mk: change semantics/name of tight_scope variables
10944         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10945         Rename variables to align with semantics that make them more useful.
10946
10947         maint.mk: tweak new rule's name not to impinge
10948         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10949         (sc_tight_scope): Use new rule name rather than $@-0.
10950
10951         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10952         * top/maint.mk (sc_tight_scope): New rule.
10953         (sc_tight_scope-0): New rule, ifdef'd out.
10954         (_gl_TS_dir): Default.
10955         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10956         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10957
10958 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10959
10960         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10961         Haible <bruno@clisp.org>.
10962
10963 2011-05-08  Bruno Haible  <bruno@clisp.org>
10964
10965         Comments.
10966         * m4/isnanf.m4: Add comment.
10967         * m4/isnanl.m4: Likewise.
10968
10969 2011-05-08  Bruno Haible  <bruno@clisp.org>
10970
10971         glob: Remove obsolete macro.
10972         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10973
10974 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10975
10976         intprops: Sun C 5.11 supports __typeof__
10977         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10978         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10979         which is new.
10980         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10981
10982         intprops: switch to usual gnulib indenting and naming
10983         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10984         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10985
10986         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10987
10988 2011-05-08  Jim Meyering  <meyering@redhat.com>
10989
10990         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10991         * top/maint.mk (release-prep): Use make's --no-print-directory
10992         option when generating the announcement.  This eliminates the
10993         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10994         generated announcement template.
10995
10996 2011-05-08  Bruno Haible  <bruno@clisp.org>
10997
10998         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10999         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11000         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11001
11002 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11003
11004         ignore-value, verify: Omit include files from lib_SOURCES.
11005         * modules/ignore-value, modules/verify (Makefile.am):
11006         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11007         that leads Automake to duplicate use of am__objects_... variables
11008         in Makefile.in.  See
11009         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11010
11011 2011-05-07  Bruno Haible  <bruno@clisp.org>
11012
11013         fclose: Simplify autoconf macro.
11014         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11015         defined.
11016
11017 2011-05-07  Bruno Haible  <bruno@clisp.org>
11018
11019         canonicalize-lgpl: Fix autoconf macro ordering bug.
11020         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11021         gl_STDLIB_H_DEFAULTS.
11022
11023 2011-05-06  Eric Blake  <eblake@redhat.com>
11024
11025         maintainer-makefile: make sc_po_check easier to tune
11026         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11027         to probe for strings, such as an alternate location for gnulib.
11028
11029         fclose: guarantee behavior on seekable stdin
11030         * modules/fclose (Depends-on): Add fflush.
11031         * doc/posix-functions/fclose.texi (fclose): Document this.
11032         * tests/test-fclose.c (main): Make test for this unconditional.
11033
11034 2011-05-06  Bruno Haible  <bruno@clisp.org>
11035
11036         fflush, fpurge: Relicense under LGPLv2+.
11037         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11038         * modules/fpurge (License): Likewise.
11039         With permission from Eric Blake and Jim Meyering.
11040         Suggested by Eric Blake.
11041
11042 2011-05-06  Karl Berry  <karl@gnu.org>
11043
11044         * MODULES.html.sh (func_all_modules): remove exit.
11045
11046 2011-05-06  Jim Meyering  <meyering@redhat.com>
11047
11048         maint.mk: use info-gnu@ as the default only for a stable release
11049         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11050         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11051         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11052         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11053
11054 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11055
11056         assert-h: new module, which supports C1X-style static_assert
11057         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11058         * lib/verify.h: Revamp so that this can be copied into assert.h,
11059         while retaining the ability to use it standalone as before.
11060         Rename private identifiers so as not to encroach on the
11061         standard C namespace, since this is now used by assert.h.
11062         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11063         the old verify_true.
11064         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11065         the old verify_true.  Use _GL_VERIFY_TYPE.
11066         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11067         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11068         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11069         defined when this file is copied into the replacement assert.h.
11070         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11071         and _Static_assert is not built in.
11072         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11073         defined, and use the new macros mentioned above.
11074         * doc/posix-headers/assert.texi: Document this.
11075
11076 2011-05-05  Bruno Haible  <bruno@clisp.org>
11077
11078         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11079         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11080         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11081         gl_REPLACE_FCLOSE here.
11082         * modules/fflush (Depends-on): Remove fclose.
11083         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11084         combination with module 'fclose'.
11085
11086 2011-05-05  Bruno Haible  <bruno@clisp.org>
11087
11088         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11089         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11090         gl_FUNC_FFLUSH.
11091         (gl_FUNC_FFLUSH): Use it.
11092         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11093         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11094         gl_REPLACE_FSEEKO here.
11095
11096 2011-05-05  Bruno Haible  <bruno@clisp.org>
11097
11098         tzset: Relicense under LGPL.
11099         * modules/tzset (License): Change to LGPL.
11100         No agreement needed; it's a no-op.
11101
11102         strtoimax, strtoumax: Relicense under LGPL.
11103         * modules/strtoimax (License): Change to LGPL.
11104         * modules/strtoumax (License): Likewise.
11105         With permission from Jim Meyering, Paul Eggert:
11106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11107         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11108
11109         getgroups: Relicense under LGPL.
11110         * modules/getgroups (License): Change to LGPL.
11111         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11112         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11113         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11115
11116         nanosleep: Relicense under LGPL.
11117         * modules/nanosleep (License): Change to LGPL.
11118         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11119         Haible:
11120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11121         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11122         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11124
11125         futimens: Relicense under LGPL.
11126         * modules/futimens (License): Change to LGPL.
11127         With permission from Eric Blake:
11128         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11129
11130         fflush: Relicense under LGPL.
11131         * modules/fflush (License): Change to LGPL.
11132         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11134         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11135         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11136
11137         tmpfile: Relicense under LGPL.
11138         * modules/tmpfile (License): Change to LGPL.
11139         With permission from Ben Pfaff:
11140         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11141
11142         isfinite: Relicense under LGPL.
11143         * modules/isfinite (License): Change to LGPL.
11144         With permission from Ben Pfaff, Bruno Haible:
11145         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11147
11148         acosl..tanl: Relicense under LGPL.
11149         * modules/acosl (License): Change to LGPL.
11150         * modules/asinl (License): Likewise.
11151         * modules/atanl (License): Likewise.
11152         * modules/cosl (License): Likewise.
11153         * modules/expl (License): Likewise.
11154         * modules/logl (License): Likewise.
11155         * modules/sinl (License): Likewise.
11156         * modules/sqrtl (License): Likewise.
11157         * modules/tanl (License): Likewise.
11158         Source code originally from glibc and Paolo Bonzini. Agreements:
11159         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11160         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11161
11162 2011-05-05  Bruno Haible  <bruno@clisp.org>
11163
11164         signal: Define sighandler_t.
11165         * lib/signal.in.h (sighandler_t): New type.
11166         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11167         whether sighandler_t is defined.
11168         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11169         * modules/signal (Depends-on): Add extensions.
11170         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11171         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11172         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11173
11174 2011-05-05  Eric Blake  <eblake@redhat.com>
11175
11176         maint: remove useless REPLACE_*_H macros
11177         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11178         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11179         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11180         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11181         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11182         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11183         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11184         * m4/btowc.m4: Update callers.
11185         * m4/dirfd.m4: Likewise.
11186         * m4/duplocale.m4: Likewise.
11187         * m4/fchdir.m4: Likewise.
11188         * m4/fdopendir.m4: Likewise.
11189         * m4/inet_ntop.m4: Likewise.
11190         * m4/inet_pton.m4: Likewise.
11191         * m4/ioctl.m4: Likewise.
11192         * m4/mbrlen.m4: Likewise.
11193         * m4/mbrtowc.m4: Likewise.
11194         * m4/mbsinit.m4: Likewise.
11195         * m4/mbsnrtowcs.m4: Likewise.
11196         * m4/mbsrtowcs.m4: Likewise.
11197         * m4/poll.m4: Likewise.
11198         * m4/setlocale.m4: Likewise.
11199         * m4/wcrtomb.m4: Likewise.
11200         * m4/wcsnrtombs.m4: Likewise.
11201         * m4/wcsrtombs.m4: Likewise.
11202         * m4/wctob.m4: Likewise.
11203         * m4/wcwidth.m4: Likewise.
11204         * modules/posix_spawn: Likewise.
11205         * modules/posix_spawn_file_actions_addclose: Likewise.
11206         * modules/posix_spawn_file_actions_adddup2: Likewise.
11207         * modules/posix_spawn_file_actions_addopen: Likewise.
11208         * modules/posix_spawn_file_actions_destroy: Likewise.
11209         * modules/posix_spawn_file_actions_init: Likewise.
11210         * modules/posix_spawnattr_destroy: Likewise.
11211         * modules/posix_spawnattr_getflags: Likewise.
11212         * modules/posix_spawnattr_getpgroup: Likewise.
11213         * modules/posix_spawnattr_getschedparam: Likewise.
11214         * modules/posix_spawnattr_getschedpolicy: Likewise.
11215         * modules/posix_spawnattr_getsigdefault: Likewise.
11216         * modules/posix_spawnattr_getsigmask: Likewise.
11217         * modules/posix_spawnattr_init: Likewise.
11218         * modules/posix_spawnattr_setflags: Likewise.
11219         * modules/posix_spawnattr_setpgroup: Likewise.
11220         * modules/posix_spawnattr_setschedparam: Likewise.
11221         * modules/posix_spawnattr_setschedpolicy: Likewise.
11222         * modules/posix_spawnattr_setsigdefault: Likewise.
11223         * modules/posix_spawnattr_setsigmask: Likewise.
11224         * modules/posix_spawnp: Likewise.
11225
11226 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11227
11228         Add option to do-release-commit-and-tag to specify branch.
11229         * build-aux/do-release-commit-and-tag: Add --branch.
11230
11231 2011-05-03  Bruno Haible  <bruno@clisp.org>
11232
11233         Avoid unnecessary compilation units, through conditional dependencies.
11234         * modules/accept (Depends-on): Add conditions to the dependencies.
11235         * modules/acosl (Depends-on): Likewise.
11236         * modules/argz (Depends-on): Likewise.
11237         * modules/asinl (Depends-on): Likewise.
11238         * modules/atanl (Depends-on): Likewise.
11239         * modules/atoll (Depends-on): Likewise.
11240         * modules/bind (Depends-on): Likewise.
11241         * modules/btowc (Depends-on): Likewise.
11242         * modules/canonicalize-lgpl (Depends-on): Likewise.
11243         * modules/ceil (Depends-on): Likewise.
11244         * modules/ceilf (Depends-on): Likewise.
11245         * modules/ceill (Depends-on): Likewise.
11246         * modules/chdir-long (Depends-on): Likewise.
11247         * modules/chown (Depends-on): Likewise.
11248         * modules/close (Depends-on): Likewise.
11249         * modules/connect (Depends-on): Likewise.
11250         * modules/cosl (Depends-on): Likewise.
11251         * modules/dirfd (Depends-on): Likewise.
11252         * modules/dprintf (Depends-on): Likewise.
11253         * modules/dprintf-posix (Depends-on): Likewise.
11254         * modules/error (Depends-on): Likewise.
11255         * modules/euidaccess (Depends-on): Likewise.
11256         * modules/expl (Depends-on): Likewise.
11257         * modules/faccessat (Depends-on): Likewise.
11258         * modules/fchdir (Depends-on): Likewise.
11259         * modules/fclose (Depends-on): Likewise.
11260         * modules/fcntl (Depends-on): Likewise.
11261         * modules/fdopendir (Depends-on): Likewise.
11262         * modules/fflush (Depends-on): Likewise.
11263         * modules/floor (Depends-on): Likewise.
11264         * modules/floorf (Depends-on): Likewise.
11265         * modules/floorl (Depends-on): Likewise.
11266         * modules/fnmatch (Depends-on): Likewise.
11267         * modules/fopen (Depends-on): Likewise.
11268         * modules/fprintf-posix (Depends-on): Likewise.
11269         * modules/frexp (Depends-on): Likewise.
11270         * modules/frexp-nolibm (Depends-on): Likewise.
11271         * modules/frexpl (Depends-on): Likewise.
11272         * modules/frexpl-nolibm (Depends-on): Likewise.
11273         * modules/fseek (Depends-on): Likewise.
11274         * modules/fsusage (Depends-on): Likewise.
11275         * modules/ftell (Depends-on): Likewise.
11276         * modules/ftello (Depends-on): Likewise.
11277         * modules/futimens (Depends-on): Likewise.
11278         * modules/getcwd (Depends-on): Likewise.
11279         * modules/getcwd-lgpl (Depends-on): Likewise.
11280         * modules/getdelim (Depends-on): Likewise.
11281         * modules/getdomainname (Depends-on): Likewise.
11282         * modules/getgroups (Depends-on): Likewise.
11283         * modules/gethostname (Depends-on): Likewise.
11284         * modules/getline (Depends-on): Likewise.
11285         * modules/getlogin_r (Depends-on): Likewise.
11286         * modules/getopt-posix (Depends-on): Likewise.
11287         * modules/getpeername (Depends-on): Likewise.
11288         * modules/getsockname (Depends-on): Likewise.
11289         * modules/getsockopt (Depends-on): Likewise.
11290         * modules/getsubopt (Depends-on): Likewise.
11291         * modules/getusershell (Depends-on): Likewise.
11292         * modules/glob (Depends-on): Likewise.
11293         * modules/grantpt (Depends-on): Likewise.
11294         * modules/iconv_open (Depends-on): Likewise.
11295         * modules/iconv_open-utf (Depends-on): Likewise.
11296         * modules/inet_ntop (Depends-on): Likewise.
11297         * modules/inet_pton (Depends-on): Likewise.
11298         * modules/ioctl (Depends-on): Likewise.
11299         * modules/isapipe (Depends-on): Likewise.
11300         * modules/isfinite (Depends-on): Likewise.
11301         * modules/isinf (Depends-on): Likewise.
11302         * modules/lchown (Depends-on): Likewise.
11303         * modules/ldexpl (Depends-on): Likewise.
11304         * modules/link (Depends-on): Likewise.
11305         * modules/linkat (Depends-on): Likewise.
11306         * modules/listen (Depends-on): Likewise.
11307         * modules/logl (Depends-on): Likewise.
11308         * modules/lstat (Depends-on): Likewise.
11309         * modules/mbrlen (Depends-on): Likewise.
11310         * modules/mbrtowc (Depends-on): Likewise.
11311         * modules/mbsinit (Depends-on): Likewise.
11312         * modules/mbsnrtowcs (Depends-on): Likewise.
11313         * modules/mbsrtowcs (Depends-on): Likewise.
11314         * modules/mbtowc (Depends-on): Likewise.
11315         * modules/memcmp (Depends-on): Likewise.
11316         * modules/mkdir (Depends-on): Likewise.
11317         * modules/mkdtemp (Depends-on): Likewise.
11318         * modules/mkfifo (Depends-on): Likewise.
11319         * modules/mkfifoat (Depends-on): Likewise.
11320         * modules/mknod (Depends-on): Likewise.
11321         * modules/mkostemp (Depends-on): Likewise.
11322         * modules/mkostemps (Depends-on): Likewise.
11323         * modules/mkstemp (Depends-on): Likewise.
11324         * modules/mkstemps (Depends-on): Likewise.
11325         * modules/mktime (Depends-on): Likewise.
11326         * modules/nanosleep (Depends-on): Likewise.
11327         * modules/open (Depends-on): Likewise.
11328         * modules/openat (Depends-on): Likewise.
11329         * modules/perror (Depends-on): Likewise.
11330         * modules/poll (Depends-on): Likewise.
11331         * modules/popen (Depends-on): Likewise.
11332         * modules/posix_spawn (Depends-on): Likewise.
11333         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11334         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11335         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11336         * modules/posix_spawnp (Depends-on): Likewise.
11337         * modules/pread (Depends-on): Likewise.
11338         * modules/printf-posix (Depends-on): Likewise.
11339         * modules/ptsname (Depends-on): Likewise.
11340         * modules/putenv (Depends-on): Likewise.
11341         * modules/pwrite (Depends-on): Likewise.
11342         * modules/readline (Depends-on): Likewise.
11343         * modules/readlink (Depends-on): Likewise.
11344         * modules/readlinkat (Depends-on): Likewise.
11345         * modules/recv (Depends-on): Likewise.
11346         * modules/recvfrom (Depends-on): Likewise.
11347         * modules/regex (Depends-on): Likewise.
11348         * modules/remove (Depends-on): Likewise.
11349         * modules/rename (Depends-on): Likewise.
11350         * modules/renameat (Depends-on): Likewise.
11351         * modules/rmdir (Depends-on): Likewise.
11352         * modules/round (Depends-on): Likewise.
11353         * modules/roundf (Depends-on): Likewise.
11354         * modules/roundl (Depends-on): Likewise.
11355         * modules/rpmatch (Depends-on): Likewise.
11356         * modules/select (Depends-on): Likewise.
11357         * modules/send (Depends-on): Likewise.
11358         * modules/sendto (Depends-on): Likewise.
11359         * modules/setenv (Depends-on): Likewise.
11360         * modules/setlocale (Depends-on): Likewise.
11361         * modules/setsockopt (Depends-on): Likewise.
11362         * modules/shutdown (Depends-on): Likewise.
11363         * modules/sigaction (Depends-on): Likewise.
11364         * modules/signbit (Depends-on): Likewise.
11365         * modules/sigprocmask (Depends-on): Likewise.
11366         * modules/sinl (Depends-on): Likewise.
11367         * modules/sleep (Depends-on): Likewise.
11368         * modules/snprintf (Depends-on): Likewise.
11369         * modules/snprintf-posix (Depends-on): Likewise.
11370         * modules/socket (Depends-on): Likewise.
11371         * modules/sprintf-posix (Depends-on): Likewise.
11372         * modules/sqrtl (Depends-on): Likewise.
11373         * modules/stat (Depends-on): Likewise.
11374         * modules/strchrnul (Depends-on): Likewise.
11375         * modules/strdup-posix (Depends-on): Likewise.
11376         * modules/strerror (Depends-on): Likewise.
11377         * modules/strerror_r-posix (Depends-on): Likewise.
11378         * modules/strndup (Depends-on): Likewise.
11379         * modules/strnlen (Depends-on): Likewise.
11380         * modules/strptime (Depends-on): Likewise.
11381         * modules/strsep (Depends-on): Likewise.
11382         * modules/strsignal (Depends-on): Likewise.
11383         * modules/strstr-simple (Depends-on): Likewise.
11384         * modules/strtod (Depends-on): Likewise.
11385         * modules/strtoimax (Depends-on): Likewise.
11386         * modules/strtok_r (Depends-on): Likewise.
11387         * modules/strtoumax (Depends-on): Likewise.
11388         * modules/symlink (Depends-on): Likewise.
11389         * modules/symlinkat (Depends-on): Likewise.
11390         * modules/tanl (Depends-on): Likewise.
11391         * modules/tcgetsid (Depends-on): Likewise.
11392         * modules/tmpfile (Depends-on): Likewise.
11393         * modules/trunc (Depends-on): Likewise.
11394         * modules/truncf (Depends-on): Likewise.
11395         * modules/truncl (Depends-on): Likewise.
11396         * modules/uname (Depends-on): Likewise.
11397         * modules/unlink (Depends-on): Likewise.
11398         * modules/unlockpt (Depends-on): Likewise.
11399         * modules/unsetenv (Depends-on): Likewise.
11400         * modules/usleep (Depends-on): Likewise.
11401         * modules/utimensat (Depends-on): Likewise.
11402         * modules/vasprintf (Depends-on): Likewise.
11403         * modules/vdprintf (Depends-on): Likewise.
11404         * modules/vdprintf-posix (Depends-on): Likewise.
11405         * modules/vfprintf-posix (Depends-on): Likewise.
11406         * modules/vprintf-posix (Depends-on): Likewise.
11407         * modules/vsnprintf (Depends-on): Likewise.
11408         * modules/vsnprintf-posix (Depends-on): Likewise.
11409         * modules/vsprintf-posix (Depends-on): Likewise.
11410         * modules/wcrtomb (Depends-on): Likewise.
11411         * modules/wcscasecmp (Depends-on): Likewise.
11412         * modules/wcscspn (Depends-on): Likewise.
11413         * modules/wcsdup (Depends-on): Likewise.
11414         * modules/wcsncasecmp (Depends-on): Likewise.
11415         * modules/wcsnrtombs (Depends-on): Likewise.
11416         * modules/wcspbrk (Depends-on): Likewise.
11417         * modules/wcsrtombs (Depends-on): Likewise.
11418         * modules/wcsspn (Depends-on): Likewise.
11419         * modules/wcsstr (Depends-on): Likewise.
11420         * modules/wcstok (Depends-on): Likewise.
11421         * modules/wcswidth (Depends-on): Likewise.
11422         * modules/wctob (Depends-on): Likewise.
11423         * modules/wctomb (Depends-on): Likewise.
11424         * modules/wctype (Depends-on): Likewise.
11425         * modules/wcwidth (Depends-on): Likewise.
11426         * modules/write (Depends-on): Likewise.
11427
11428 2011-05-03  Bruno Haible  <bruno@clisp.org>
11429
11430         Support for conditional dependencies.
11431         * doc/gnulib.texi (Module description): Document the syntax of
11432         conditional dependencies.
11433         * gnulib-tool: New option --conditional-dependencies.
11434         (func_usage): Document it.
11435         (cond_dependencies): New variable.
11436         (func_get_automake_snippet_conditional,
11437         func_get_automake_snippet_unconditional): New functions, extracted from
11438         func_get_automake_snippet.
11439         (func_get_automake_snippet): Use them.
11440         (sed_first_32_chars): New variable.
11441         (func_module_shellfunc_name): New function.
11442         (func_module_shellvar_name): New function.
11443         (func_module_conditional_name): New function.
11444         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11445         func_cond_module_condition): New functions.
11446         (func_modules_transitive_closure): Add support for conditional
11447         dependencies.
11448         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11449         conditional automake snippet in an automake conditional.
11450         (func_emit_autoconf_snippets): Emit shell functions that contain the
11451         code for conditional modules.
11452         (func_import, func_create_testdir): Update specification.
11453
11454 2011-05-03  Eric Blake  <eblake@redhat.com>
11455
11456         test-getaddrinfo: report error information
11457         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11458
11459 2011-05-03  Jim Meyering  <meyering@redhat.com>
11460
11461         bootstrap: avoid build failure when $GZIP is set
11462         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11463         program name.  If defined at all, it is supposed to list gzip options.
11464         Reported by Alan Curry in http://debbugs.gnu.org/8609
11465
11466 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11467
11468         readme-release: new module with release instructions
11469         * modules/readme-release: New module.
11470         * top/README-release: New file, from coreutils, grep, diffutils.
11471         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11472
11473 2011-05-02  Eric Blake  <eblake@redhat.com>
11474
11475         fflush: also replace fclose when fixing fflush
11476         * modules/fflush (Depends-on): Add fclose.
11477         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11478         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11479         memstreams with no backing fd.
11480         * doc/posix-functions/fclose.texi (fclose): Document the use of
11481         fflush module to fix the bug.
11482         * tests/test-fclose.c (main): Relax test when fclose is used in
11483         isolation.
11484
11485         fclose: add some tests
11486         * modules/fclose-tests: New test module.
11487         * tests/test-fclose.c: New file.
11488         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11489
11490         fclose: reduced dependencies
11491         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11492         simpler lseek.
11493         * lib/fclose.c (rpl_fclose): Likewise.
11494         Reported by Simon Josefsson.
11495
11496         exit: drop remaining clients
11497         * modules/argmatch (Depends-on): Replace exit with stdlib.
11498         * modules/copy-file (Depends-on): Likewise.
11499         * modules/execute (Depends-on): Likewise.
11500         * modules/exitfail (Depends-on): Likewise.
11501         * modules/obstack (Depends-on): Likewise.
11502         * modules/pagealign_alloc (Depends-on): Likewise.
11503         * modules/pipe-filter-gi (Depends-on): Likewise.
11504         * modules/pipe-filter-ii (Depends-on): Likewise.
11505         * modules/savewd (Depends-on): Likewise.
11506         * modules/spawn-pipe (Depends-on): Likewise.
11507         * modules/wait-process (Depends-on): Likewise.
11508         * modules/xsetenv (Depends-on): Likewise.
11509         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11510         * modules/git-merge-changelog (Depends-on): Likewise.
11511         * modules/long-options (Depends-on): Likewise.
11512         * modules/pt_chown (Depends-on): Likewise.
11513         * modules/sysexits (Depends-on): Likewise.
11514
11515         freading: relax license from LGPLv3+ to LGPLv2+
11516         * modules/freading (License): Relax LGPL version.
11517
11518 2011-05-02  Bruno Haible  <bruno@clisp.org>
11519
11520         fchdir: Remove unused dependencies.
11521         * modules/fchdir (Depends-on): Remove include_next.
11522
11523 2011-05-02  Bruno Haible  <bruno@clisp.org>
11524
11525         gnulib-tool: Refactor.
11526         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11527         from func_emit_autoconf_snippets.
11528         (func_emit_autoconf_snippets): Use it.
11529
11530 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11531
11532         * NEWS: Document removal of 'exit'.
11533         * modules/exit: Remove file.
11534
11535 2011-05-01  Bruno Haible  <bruno@clisp.org>
11536
11537         Update DEPENDENCIES.
11538         * DEPENDENCIES (gettext): Recommend the newest release.
11539         Reported by Simon Josefsson.
11540
11541 2011-05-01  Bruno Haible  <bruno@clisp.org>
11542
11543         gnulib-tool: Reduce code duplication.
11544         * gnulib-tool (func_emit_autoconf_snippets): New function.
11545         (func_import, func_create_testdir): Use it.
11546
11547 2011-04-30  Eric Blake  <eblake@redhat.com>
11548
11549         fclose: don't fail on non-seekable input stream
11550         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11551         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11552         since fflush is allowed to fail in that case.
11553
11554 2011-04-30  Bruno Haible  <bruno@clisp.org>
11555
11556         dup3: cleanup
11557         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11558
11559 2011-04-30  Bruno Haible  <bruno@clisp.org>
11560
11561         netdb: Make it work in C++ mode.
11562         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11563         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11564         module.
11565         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11566         gl_MODULE_INDICATOR_FOR_TESTS.
11567         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11568         * modules/netdb-c++-tests: New file.
11569         * tests/test-netdb-c++.cc: New file.
11570
11571 2011-04-30  Bruno Haible  <bruno@clisp.org>
11572
11573         New modules 'vfscanf', 'vscanf'.
11574         * modules/vfscanf: New file.
11575         * modules/vscanf: New file.
11576         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11577         here.
11578         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11579         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11580
11581 2011-04-30  Bruno Haible  <bruno@clisp.org>
11582
11583         passfd: Add comments.
11584         * lib/passfd.c: Add comments about platforms.
11585
11586 2011-04-30  Bruno Haible  <bruno@clisp.org>
11587
11588         sys_uio: Make <sys/uio.h> self-contained.
11589         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11590         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11591
11592 2011-04-30  Bruno Haible  <bruno@clisp.org>
11593
11594         sys_socket: Ensure 'struct iovec' definition.
11595         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11596         <sys/socket.h>.
11597         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11598
11599 2011-04-30  Bruno Haible  <bruno@clisp.org>
11600
11601         sys_uio: Protect definition of 'struct iovec'.
11602         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11603         it as a C struct.
11604
11605 2011-04-30  Bruno Haible  <bruno@clisp.org>
11606
11607         manywarnings: fix indentation
11608         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11609
11610 2011-04-30  Pádraig Brady <P@draigBrady.com>
11611
11612         manywarnings: add -Wno-missing-field-initializers if needed.
11613         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11614         option if it's needed to allow initialization with { 0, }
11615
11616 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11617
11618         announce-gen: cosmetic improvement
11619         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11620
11621 2011-04-29  Jim Meyering  <meyering@redhat.com>
11622
11623         vc-list-files: indent with spaces, not TABs
11624         * build-aux/vc-list-files: Convert leading TABs to spaces,
11625         to match the style of most other files in gnulib.
11626
11627         announce-gen: indent with spaces, not TABs
11628         * build-aux/announce-gen: Convert all TABs to spaces, to match
11629         the style of most other files in gnulib.
11630
11631 2011-04-29  Eric Blake  <eblake@redhat.com>
11632
11633         quotearg: avoid uninitialized variable use
11634         * lib/quotearg.c (quoting_options_from_style): Initialize
11635         remaining fields, and ensure that custom styles are only used via
11636         quoting_options rather than quoting_style.
11637
11638 2011-04-29  Jim Meyering  <meyering@redhat.com>
11639
11640         maint.mk: remove unused VC-tag variable
11641         * top/maint.mk (VC-tag): Remove unused variable.
11642
11643 2011-04-29  Bruno Haible  <bruno@clisp.org>
11644
11645         netdb: fix gai_strerror replacements
11646         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11647         * modules/netdb: Substitute it.
11648
11649 2011-04-29  Jim Meyering  <meyering@redhat.com>
11650
11651         test-getcwd.c: avoid new set-but-not-used warning
11652         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11653         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11654         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11655         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11656
11657         test-hash.c: avoid a new shadowing warning
11658         * tests/test-hash.c (main): Don't shadow "dup".
11659
11660 2011-04-28  Eric Blake  <eblake@redhat.com>
11661
11662         getaddrinfo: fix gai_strerror signature
11663         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11664         and work around mingw with UNICODE defined.
11665         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11666         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11667         * modules/netdb (Makefile.am): Substitute it.
11668         * lib/netdb.in.h (gai_strerror): Declare replacement.
11669         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11670         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11671         the fix.
11672
11673         getsockopt: avoid compiler warning
11674         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11675         Reported by Matthias Bolte.
11676
11677         tests: drop unused link dependency
11678         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11679         * modules/dirent-safer-tests (Makefile.am): Likewise.
11680         * modules/fdopendir-tests (Makefile.am): Likewise.
11681         * modules/mkfifoat-tests (Makefile.am): Likewise.
11682         * modules/openat-safer-tests (Makefile.am): Likewise.
11683         * modules/openat-tests (Makefile.am): Likewise.
11684         * modules/readlinkat-tests (Makefile.am): Likewise.
11685         * modules/symlinkat-tests (Makefile.am): Likewise.
11686         * modules/linkat-tests (Makefile.am): Likewise.
11687         (Depends-on): Switch to filenamecat-lgpl.
11688         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11689         LIBINTL.
11690         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11691         * tests/test-linkat.c (main): Don't require xalloc.
11692
11693         hash, mgetgroups: drop xalloc dependency
11694         * lib/hash.c (includes): Adjust includes.
11695         * lib/mgetgroups.c (includes): Likewise.
11696         (xgetgroups): Move...
11697         * lib/xgetgroups.c: ...to new file.
11698         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11699         * modules/xgetgroups: New file, split from...
11700         * modules/mgetgroups: ...here.
11701         (Depends-on): Add xalloc-oversized.
11702         * modules/hash (Depends-on): Likewise.
11703         * modules/hash-tests (Depends-on): Drop xalloc.
11704         (test_hash_LDADD): Drop unused library.
11705         * tests/test-hash.c (main): Break xalloc dependency.
11706         (includes): Drop unused include.
11707
11708         xalloc-oversized: new module
11709         * modules/xalloc-oversized: New module.
11710         * modules/xalloc (Depends-on): Add it.
11711         * lib/xalloc.h (xalloc_oversized): Move...
11712         * lib/xalloc-oversized.h: ...into new file.
11713
11714         utimecmp: drop dependency on xmalloc
11715         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11716         due to memory pressure.
11717         * modules/utimecmp (Depends-on): Drop xalloc.
11718
11719 2011-04-27  Eric Blake  <eblake@redhat.com>
11720
11721         getcwd: fix mingw bugs
11722         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11723         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11724         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11725
11726 2011-04-27  Bruno Haible  <bruno@clisp.org>
11727
11728         mkstemps: Ensure declaration on MacOS X 10.5.
11729         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11730         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11731         MacOS X.
11732
11733 2011-04-27  Bruno Haible  <bruno@clisp.org>
11734
11735         mkstemp: More documentation.
11736         * doc/posix-functions/mkstemp.texi: Document header file problem on
11737         MacOS X.
11738
11739 2011-04-27  Bruno Haible  <bruno@clisp.org>
11740
11741         mkstemp: Tweak configure message when cross-compiling.
11742         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11743         result as a guess.
11744
11745 2011-04-27  Bruno Haible  <bruno@clisp.org>
11746
11747         clean-temp: Clarify what it does.
11748         * lib/clean-temp.h: Add more comments.
11749         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11750         module.
11751         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11752         * doc/glibc-functions/mkstemps.texi: Likewise.
11753         * doc/glibc-functions/mkostemps.texi: Likewise.
11754
11755 2011-04-27  Eric Blake  <eblake@redhat.com>
11756
11757         fchdir: avoid extra chdir and fix test
11758         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11759         getcwd-lgpl.
11760         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11761         have to be canonical.
11762         (canonicalize_file_name): Drop unused macro.
11763         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11764
11765         filenamecat-lgpl: fix licence
11766         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11767         when it was first created.
11768
11769         linkat, renameat: add missing dependency
11770         * modules/linkat (Depends-on): Require getcwd-lgpl.
11771         * modules/renameat (Depends-on): Likewise.
11772
11773         tests: reduce dependencies
11774         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11775         * tests/test-renameat.c (main): Likewise.
11776         * modules/linkat-tests (Depends-on): Relax dependency.
11777         * modules/renameat-tests (Depends-on): Likewise.
11778         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11779         dependency explicit.
11780
11781         save-cwd: reduce default dependency
11782         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11783         * lib/save-cwd.c: Update comments.
11784         * NEWS: Document the semantic change.
11785
11786         getcwd: enhance tests
11787         * tests/test-getcwd-lgpl.c: New file, taken from...
11788         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11789         repeat long path stress tests from m4 probe.
11790         * modules/getcwd-lgpl-tests: New module.
11791         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11792         * m4/getcwd-abort-bug.m4: Update comment.
11793         * m4/getcwd-path-max.m4: Likewise.
11794
11795         getcwd-lgpl: new module
11796         * modules/getcwd-lgpl: New module.
11797         * lib/getcwd-lgpl.c: New file.
11798         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11799         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11800         * modules/getcwd (configure.ac): Set C witness.
11801         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11802
11803         getcwd: tweak comments
11804         * m4/getcwd-abort-bug.m4: Fix comments.
11805         * m4/getcwd-path-max.m4: Likewise.
11806         * m4/getcwd.m4: Likewise.
11807
11808 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11809         and Eric Blake  <eblake@redhat.com>
11810
11811         mkstemp: replace if system version uses wrong permissions
11812         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11813         read/write mode bits set in file created by mkstemp.
11814         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11815
11816 2011-04-27  Eric Blake  <eblake@redhat.com>
11817
11818         passfd: avoid compiler warning
11819         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11820         Reported by Laine Stump.
11821
11822 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11823
11824         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11825         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11826
11827 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11828         and Eric Blake  <eblake@redhat.com>
11829
11830         mkstemp: mention clean-temp module
11831         * lib/mkstemp.c: Add comment.
11832         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11833
11834 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11835
11836         inttypes: also provide default values for 32-bit tests
11837         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11838         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11839
11840 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11841
11842         strtoumax: remove dependency on strtoimax
11843         This is like the strtoull change of yesterday.
11844         * modules/strtoumax (Files): Add lib/strtoimax.c.
11845         (Depends-on): Remove strtoimax and add verify.
11846
11847         inttypes-incomplete: new module
11848         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11849         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11850         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11851         of gl_INTTYPES_H.
11852         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11853         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11854         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11855         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11856         * modules/strtoumax, modules/xstrtol (Depends-on):
11857         Depend on inttypes-incomplete, not inttypes.
11858         * modules/inttypes-incomplete: New module, containing the contents
11859         of the old modules/inttypes module, except that the Files: section
11860         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11861         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11862         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11863         (Depends-on): Depend only on inttypes-incomplete.
11864         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11865
11866         inttypes: omit now-redundant strtoimax and strtoumax work
11867         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11868         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11869
11870         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11871         This supports apps that need pointers to strtoimax and strtoumax,
11872         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11873         nonexistent functions.  See
11874         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11875         et seq.
11876         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11877         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11878         a macro.
11879         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11880
11881 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11882
11883         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11884
11885 2011-04-25  Bruno Haible  <bruno@clisp.org>
11886
11887         strtol, strtoul: Mark modules as obsolete.
11888         * modules/strtol (Status, Notice): New sections.
11889         * modules/strtoul (Status, Notice): New sections.
11890
11891 2011-04-25  Bruno Haible  <bruno@clisp.org>
11892
11893         strtod: Remove check for strtod, unless supporting old platforms.
11894         * modules/strtod-obsolete: New file.
11895         * m4/strtod-obsolete.m4: New file.
11896         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11897         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11898         * modules/strtod (Depends-on): Add strtod-obsolete.
11899         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11900
11901 2011-04-25  Bruno Haible  <bruno@clisp.org>
11902
11903         strcase: Make module obsolete.
11904         * modules/strcase (Status, Notice): New sections.
11905
11906 2011-04-25  Bruno Haible  <bruno@clisp.org>
11907
11908         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11909         * modules/dup2-obsolete: New file.
11910         * m4/dup2-obsolete.m4: New file.
11911         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11912         gl_FUNC_DUP2_OBSOLETE is not also defined.
11913         * modules/dup2 (Depends-on): Add dup2-obsolete.
11914         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11915
11916 2011-04-25  Bruno Haible  <bruno@clisp.org>
11917
11918         strnlen: Avoid memchr related link error on old obsolete platforms.
11919         * modules/memchr-obsolete: New file.
11920         * m4/memchr-obsolete.m4: New file.
11921         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11922         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11923         * modules/memchr (Depends-on): Add memchr-obsolete.
11924         * modules/strnlen (Depends-on): Likewise.
11925         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11926
11927 2011-04-25  Jim Meyering  <meyering@redhat.com>
11928
11929         maint.mk: makefile_at_at_check extend and clean up
11930         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11931         in addition to */Makefile.am.
11932         Exempt legitimate uses of @VAR@ notation, e.g.,
11933         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11934         Remove obsolete coreutils-specific comment.
11935         Prompted by discussion here:
11936         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11937
11938 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11939
11940         strtoul: remove dependency on strtol
11941         This is so that 'configure' need not check for strtol merely because
11942         the application needs strtoul.
11943         * modules/strtoul (Files): Add lib/strtol.c.
11944         (Depends-on): Remove strtol.
11945
11946         strtoull: remove dependency on strtoul
11947         This is like the strtoll change.
11948         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11949         (Depends-on): Remove strtoul.
11950
11951         strtoll: remove dependency on strtol
11952         This is so that 'configure' need not check for strtol merely because
11953         the application needs strtoll.
11954         * modules/strtoll (Files): Add lib/strtol.c.
11955         (Depends-on): Remove strtol.
11956
11957 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11958
11959         inttypes: Move some configure check to module 'imaxdiv'.
11960         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11961         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11962         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11963
11964 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11965
11966         inttypes: Move some configure check to module 'imaxabs'.
11967         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11968         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11969         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11970
11971 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11972
11973         inttypes: Remove configure tests that are not needed since 2009-12-31.
11974         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11975         gl_cv_header_working_inttypes_h.
11976
11977 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11978
11979         * modules/strnlen (Depends-on): Remove memchr.
11980         The strnlen implementation doesn't need the memchr module's fixes; see
11981         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11982
11983         strtol: remove dependency on wchar
11984         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11985         * modules/strtol (Depends-on): Remove wchar.
11986
11987 2011-04-21  Eric Blake  <eblake@redhat.com>
11988
11989         passfd: fix test regression on Linux
11990         * modules/passfd-tests (configure.ac): Correct socketpair check.
11991
11992         passfd: speed up configure and drop unused code
11993         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11994         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11995         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11996         Instead of probing at configure for unix_scm_rights_bsd44_way,
11997         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11998         check to a struct member probe.
11999         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12000         (sendfd, recvfd): Update preprocessor checks.
12001         * modules/passfd (Files): Reflect rename, and drop unused file.
12002         (Depends-on): Drop unused dependency.
12003
12004         passfd: allow compilation on mingw
12005         * modules/sys_socket (Depends-on): Add sys_uio.
12006         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12007         iovec and a minimal struct msghdr.
12008         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12009         * tests/test-sys_socket.c (main): Enhance test.
12010         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12011         guaranteed to provide what we need.
12012         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12013         * modules/passfd-tests (Depends-on): Add sys_wait.
12014         * tests/test-passfd.c (main): Skip test on mingw, for now.
12015         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12016         partial 'struct msghdr' implementation.
12017
12018         sys_uio: new module
12019         * modules/sys_uio: New module.
12020         * modules/sys_uio-tests: Likewise.
12021         * lib/sys_uio.in.h: New file.
12022         * m4/sys_uio_h.m4: Likewise.
12023         * tests/test-sys_uio.c: Likewise.
12024         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12025         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12026
12027 2011-04-20  Jim Meyering  <meyering@redhat.com>
12028
12029         useless-if-before-free: avoid false-positive
12030         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12031         disjunct so that it too requires a terminating ";".  Without that,
12032         this script would identify as useless one statement from gcc that
12033         was not:
12034           if (aligned_ptr)
12035             free (((void **) aligned_ptr) [-1]);
12036
12037 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12038
12039         doc: update users.txt.
12040         * users.txt: Add barcode.
12041
12042 2011-04-19  Bruno Haible  <bruno@clisp.org>
12043
12044         ioctl: Remove link dependency on native Windows.
12045         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12046         (gl_close_fn, gl_ioctl_fn): New types.
12047         (struct fd_hook): Renamed from struct close_hook. Change type of
12048         private_close_fn field. Add private_ioctl_fn field.
12049         (close_hook_fn): Add parameter for primary close method.
12050         (execute_close_hooks, execute_all_close_hooks): Likewise.
12051         (ioctl_hook_fn): New type.
12052         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12053         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12054         argument.
12055         (unregister_fd_hook): Renamed from unregister_close_hook.
12056         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12057         Don't include <unistd.h>.
12058         (close): Remove undef.
12059         (anchor): Update.
12060         (execute_close_hooks): Add argument for primary close method.
12061         (execute_all_close_hooks): Likewise.
12062         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12063         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12064         argument. Allow each argument to be NULL.
12065         (unregister_fd_hook): Renamed from unregister_close_hook.
12066         * lib/close.c (rpl_close): Pass 'close' function pointer to
12067         execute_all_close_hooks.
12068         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12069         (primary_ioctl): New function.
12070         (ioctl): Don't call ioctlsocket here. Instead, call
12071         execute_all_ioctl_hooks.
12072         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12073         close method.
12074         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12075         (fd_sockets_hook): Renamed from close_sockets_hook.
12076         (gl_sockets_startup, gl_sockets_cleanup): Update.
12077         * modules/fd-hook: Renamed from modules/close-hook. Update.
12078         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12079         * modules/sockets (Depends-on): Likewise.
12080         * modules/ioctl (Depends-on): Add fd-hook.
12081         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12082         GNULIB_SOCKET.
12083
12084 2011-04-19  Bruno Haible  <bruno@clisp.org>
12085
12086         Move the support of O_NONBLOCK in open() to the 'open' module.
12087         * modules/nonblocking (Depends-on): Remove 'open'.
12088         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12089         gl_cv_have_open_O_NONBLOCK.
12090         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12091         O_NONBLOCK support.
12092         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12093
12094 2011-04-17  Bruno Haible  <bruno@clisp.org>
12095
12096         pipe2: Simplify code.
12097         * lib/pipe2.c (pipe2): Reduce code duplication.
12098
12099 2011-04-17  Bruno Haible  <bruno@clisp.org>
12100
12101         nonblocking: Add comment.
12102         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12103
12104 2011-04-17  Bruno Haible  <bruno@clisp.org>
12105
12106         nonblocking: Add tests for sockets.
12107         * tests/test-nonblocking-socket.sh: New file.
12108         * tests/test-nonblocking-socket-main.c: New file.
12109         * tests/test-nonblocking-socket-child.c: New file.
12110         * tests/test-nonblocking-socket.h: New file.
12111         * tests/socket-server.h: New file.
12112         * tests/socket-client.h: New file.
12113         * modules/nonblocking-socket-tests: New file.
12114         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12115
12116 2011-04-17  Bruno Haible  <bruno@clisp.org>
12117
12118         nonblocking: Add tests for pipes.
12119         * tests/test-nonblocking-pipe.sh: New file.
12120         * tests/test-nonblocking-pipe-main.c: New file.
12121         * tests/test-nonblocking-pipe-child.c: New file.
12122         * tests/test-nonblocking-pipe.h: New file.
12123         * tests/test-nonblocking-writer.h: New file.
12124         * tests/test-nonblocking-reader.h: New file.
12125         * tests/test-nonblocking-misc.h: New file.
12126         * modules/nonblocking-pipe-tests: New file.
12127         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12128
12129 2011-04-16  Bruno Haible  <bruno@clisp.org>
12130
12131         gettext: Clarify the needed programmer actions.
12132         * modules/gettext (Notice): New field.
12133         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12134
12135 2011-04-16  Bruno Haible  <bruno@clisp.org>
12136
12137         strchrnul: Tweak last commit.
12138         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12139         bug.
12140         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12141         as in _GL_FUNCDECL_SYS.
12142         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12143         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12144
12145 2011-04-15  Eric Blake  <eblake@redhat.com>
12146
12147         strchrnul: work around cygwin bug
12148         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12149         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12150         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12151         * modules/string (Makefile.am): Substitute it.
12152         * lib/string.in.h (strchrnul): Use it.
12153
12154 2011-04-15  Bruno Haible  <bruno@clisp.org>
12155
12156         Don't require lib/stdio-write.c when only module 'stdio' is used.
12157         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12158         invocation.
12159         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12160
12161 2011-04-14  Bruno Haible  <bruno@clisp.org>
12162
12163         Support non-blocking pipe I/O in read() on native Windows.
12164         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12165         (read): New declaration.
12166         * lib/read.c: New file.
12167         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12168         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12169         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12170         vscanf): New declarations.
12171         * lib/stdio-read.c: New file.
12172         * m4/read.m4: New file.
12173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12174         REPLACE_READ.
12175         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12176         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12177         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12178         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12179         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12180         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12181         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12182         * modules/read: New file.
12183         * modules/nonblocking (Files): Add lib/stdio-read.c.
12184         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12185         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12186         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12187         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12188         * modules/pread (Depends-on): Add read.
12189         * modules/safe-read (Depends-on): Likewise.
12190         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12191         gets, scanf, vfscanf, vscanf): Verify signatures.
12192         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12193         problem with non-blocking pipes.
12194         * doc/posix-functions/fgetc.texi: Likewise.
12195         * doc/posix-functions/fgets.texi: Likewise.
12196         * doc/posix-functions/fread.texi: Likewise.
12197         * doc/posix-functions/fscanf.texi: Likewise.
12198         * doc/posix-functions/getc.texi: Likewise.
12199         * doc/posix-functions/getchar.texi: Likewise.
12200         * doc/posix-functions/gets.texi: Likewise.
12201         * doc/posix-functions/scanf.texi: Likewise.
12202         * doc/posix-functions/vfscanf.texi: Likewise.
12203         * doc/posix-functions/vscanf.texi: Likewise.
12204
12205 2011-04-14  Bruno Haible  <bruno@clisp.org>
12206
12207         Support non-blocking pipe I/O in write() on native Windows.
12208         * lib/write.c (rpl_write): Split a write request that failed merely
12209         because the byte count was larger than the pipe buffer's size.
12210         * doc/posix-functions/write.texi: Mention the problem with large byte
12211         counts.
12212
12213 2011-04-14  Bruno Haible  <bruno@clisp.org>
12214
12215         wchar: Ensure that wchar_t gets defined on uClibc.
12216         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12217         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12218
12219 2011-04-13  Bruno Haible  <bruno@clisp.org>
12220
12221         safe-write, full-read: Avoid unnecessary compilation units.
12222         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12223         (Depends-on): Remove safe-read. Add ssize_t.
12224         * modules/full-read (Files): Add lib/full-write.c.
12225         (Depends-on): Add full-write.
12226
12227 2011-04-13  Bruno Haible  <bruno@clisp.org>
12228
12229         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12230         * modules/pwrite (Depends-on): Add 'write'.
12231
12232 2011-04-13  Bruno Haible  <bruno@clisp.org>
12233
12234         Support non-blocking pipe I/O in write() on native Windows.
12235         * lib/unistd.in.h (write): Enable replacement also if
12236         GNULIB_UNISTD_H_NONBLOCKING is 1.
12237         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12238         (rpl_write): When failing to write on a non-blocking pipe, change
12239         errno from ENOSPC to EAGAIN.
12240         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12241         putchar, puts, vfprintf, vprintf): Enable replacement also if
12242         GNULIB_STDIO_H_NONBLOCKING is 1.
12243         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12244         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12245         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12246         CALL_WITH_SIGPIPE_EMULATION.
12247         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12248         * m4/nonblocking.m4: New file.
12249         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12250         for non-blocking I/O support.
12251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12252         GNULIB_UNISTD_H_NONBLOCKING.
12253         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12254         required for non-blocking I/O support.
12255         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12256         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12257         lib/stdio-write.c, m4/asm-underscore.m4.
12258         (Depends-on): Add stdio, unistd.
12259         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12260         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12261         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12262         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12263         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12264         problem with non-blocking pipes.
12265         * doc/posix-functions/fputc.texi: Likewise.
12266         * doc/posix-functions/fputs.texi: Likewise.
12267         * doc/posix-functions/fwrite.texi: Likewise.
12268         * doc/posix-functions/printf.texi: Likewise.
12269         * doc/posix-functions/putc.texi: Likewise.
12270         * doc/posix-functions/putchar.texi: Likewise.
12271         * doc/posix-functions/puts.texi: Likewise.
12272         * doc/posix-functions/vfprintf.texi: Likewise.
12273         * doc/posix-functions/vprintf.texi: Likewise.
12274         * doc/posix-functions/write.texi: Likewise.
12275
12276 2011-04-10  Jim Meyering  <meyering@redhat.com>
12277
12278         maint.mk: prohibit doubled words
12279         Detect them also when they're separated by a newline.
12280         There are 3 ways to customize it:
12281           - disable the test on a per file basis, as usual with rules using
12282             $(VC_LIST_EXCEPT)
12283           - replace the default doubled-word-selecting regexp (affects all files)
12284           - ignore a particular file-vs-doubled-word match
12285         I nearly used that last one to ignore the "is is" match in
12286         coreutils' NEWS file, since the text was "ls -is is ..."
12287         To do that, I would have added this line to cfg.mk:
12288           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12289         but it would have ignored any "is is" match in NEWS.
12290         Low probability, but still...
12291         Instead, I changed the text, slightly:
12292           -  ls -is is now consistent with ls -lis in ignoring values returned
12293           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12294         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12295         (prohibit_doubled_word_): Define.
12296         (sc_prohibit_doubled_word): New rule.
12297         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12298
12299 2011-04-10  Jim Meyering  <meyering@redhat.com>
12300
12301         maint: fix doubled-word typo in comment
12302         * m4/gethostname.m4: s/is is/it is/
12303         * m4/getdomainname.m4: Likewise.
12304
12305 2011-04-10  Jim Meyering  <meyering@redhat.com>
12306
12307         maint: remove doubled word: s/it it/it/
12308         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12309
12310 2011-04-10  Jim Meyering  <meyering@redhat.com>
12311
12312         maint.mk: remove useless semicolon and backslash
12313         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12314         semicolon and backslash.
12315
12316 2011-04-10  Bruno Haible  <bruno@clisp.org>
12317
12318         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12319         * modules/stdint-tests (Depends-on): Add wchar.
12320
12321 2011-04-10  Jim Meyering  <meyering@redhat.com>
12322
12323         maint: remove doubled words in comments, e.g., s/a a/a/
12324         * lib/strptime.c (day_of_the_week): s/the the/the/
12325         * tests/test-chown.h (test_chown): s/a a/a/
12326
12327         test-chown.h: correct a cast
12328         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12329         when the destination is a stat.st_gid.
12330
12331 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12332
12333         getaddrinfo: Fix test for sa_len member.
12334         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12335         include <sys/types.h> before <sys/socket.h>.
12336
12337 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12338
12339         maint: change "can not" to "cannot"
12340         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12341         boundaries.
12342
12343 2011-04-09  Jim Meyering  <meyering@redhat.com>
12344
12345         maint: change "a a" to "a"
12346         * tests/test-lchown.h (test_lchown): s/a a/a/
12347
12348         maint.mk: prohibit \<the the\>
12349         * top/maint.mk (sc_prohibit_the_the): New rule.
12350
12351         maint: fix "the the" in comment
12352         * lib/count-one-bits.h: s/the the/the/
12353
12354         maint: change "can not" to "cannot"
12355         But do not change the occurrences in maintain.texi or in
12356         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12357         * doc/gnulib-tool.texi: s/can not/cannot/
12358         * doc/posix-functions/accept.texi (accept): Likewise.
12359         * doc/posix-functions/socket.texi (socket): Likewise.
12360         * lib/mbrtowc.c: Likewise.
12361
12362         maint.mk: prohibit use of "can not"
12363         * top/maint.mk (sc_prohibit_can_not): New rule.
12364         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12365
12366 2011-04-09  Bruno Haible  <bruno@clisp.org>
12367
12368         careadlinkat: Guard against misuse of careadlinkatcwd.
12369         * lib/careadlinkat.c: Include <stdlib.h>.
12370         (careadlinkatcwd): Check that the fd argument is as expected.
12371
12372 2011-04-09  Bruno Haible  <bruno@clisp.org>
12373
12374         careadlinkat: Use common coding style.
12375         * lib/careadlinkat.c: Move gnulib includes after system includes.
12376
12377 2011-04-09  Bruno Haible  <bruno@clisp.org>
12378
12379         careadlinkat: Clarify specification.
12380         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12381         (careadlinkatcwd): Add comment.
12382         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12383
12384 2011-04-09  Bruno Haible  <bruno@clisp.org>
12385
12386         areadlinkat: Avoid link error on many platforms.
12387         * modules/areadlinkat (Depends-on): Add areadlink.
12388
12389 2011-04-09  Bruno Haible  <bruno@clisp.org>
12390
12391         allocator, careadlinkat: Fix double-inclusion guard.
12392         * lib/allocator.h: Fix double-inclusion guard.
12393         * lib/careadlinkat.h: Likewise.
12394
12395 2011-04-09  Bruno Haible  <bruno@clisp.org>
12396
12397         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12398         * lib/relocwrapper.c: Update dependencies hierarchy.
12399         * build-aux/install-reloc: Update list of files to be compiled.
12400         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12401         lib/allocator.[hc].
12402
12403 2011-04-08  Eric Blake  <eblake@redhat.com>
12404
12405         strftime: silence gnulib-tool warning
12406         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12407
12408 2011-04-08  Bruno Haible  <bruno@clisp.org>
12409
12410         verify: Fix syntax error with GCC 4.6 in C++ mode.
12411         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12412         (HAVE_STATIC_ASSERT): New macro.
12413         (verify_true, verify): Use 'static_assert' if it is supported and
12414         '_Static_assert' is not supported.
12415
12416 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12417
12418         allocator: New module.
12419         * modules/allocator, lib/allocator.c: New files.
12420         * lib/allocator.h (stdlib_allocator): New decl.
12421         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12422         Remove.  Do not include <stdlib.h>.
12423         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12424         * modules/careadlinkat (Files): Remove lib/allocator.h.
12425         (Depends-on): Add allocator.
12426
12427         stdlib: let modules use system malloc, realloc
12428         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12429         if !_GL_USE_STDLIB_ALLOC.
12430         (malloc, realloc): Limit this change to a smaller scope.
12431
12432         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12433         (malloc, realloc): Don't #undef; no longer needed.
12434         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12435         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12436         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12437         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12438         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12439         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12440         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12441         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12442
12443         careadlinkat: rename members to avoid problem
12444         * lib/allocator.h (struct allocator): Rename members from
12445         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12446         and realloc are #define'd.  Reported by Eric Blake in
12447         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12448         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12449
12450 2011-04-08  Eric Blake  <eblake@redhat.com>
12451
12452         nonblocking: reduce dependency
12453         * tests/test-nonblocking.c: Only test sockets when in use.
12454         * modules/nonblocking-tests (Depends-on): Drop socket.
12455         (Makefile.am): Link even if sockets are not present.
12456         * modules/pipe2-tests (Makefile.am): Likewise.
12457         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12458
12459         pipe2: fix O_NONBLOCK support on mingw
12460         * modules/pipe2 (Depends-on): Add nonblocking.
12461         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12462         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12463         * tests/test-nonblocking.c (main): Likewise.
12464         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12465
12466         fcntl-h: fix O_ACCMODE on cygwin
12467         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12468         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12469
12470         pipe-filter: drop O_NONBLOCK workarounds
12471         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12472         * modules/pipe-filter-ii (Depends-on): Likewise.
12473         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12474
12475         nonblocking: provide O_NONBLOCK for mingw
12476         * modules/nonblocking (Depends-on): Add open.
12477         (configure.ac): Set new witness macro.
12478         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12479         * modules/fcntl-h (Makefile.am): Substitute it.
12480         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12481         nonblocking module is in use.
12482         * lib/nonblocking.c: Adjust portability test.
12483         * lib/open.c (open): Don't let native open see gnulib flag.
12484         * tests/test-fcntl-h.c (main): Enhance test.
12485         * tests/test-open.h (test_open): Likewise.
12486         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12487
12488         careadlinkat: fix compilation error on mingw
12489         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12490         within struct allocator.
12491
12492 2011-04-06  Eric Blake  <eblake@redhat.com>
12493
12494         binary-io: relicense under LGPLv2+
12495         * modules/binary-io (License): Relax to LGPLv2+.
12496         Requested for libvirt, and required by pipe2.
12497
12498 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12499
12500         verify: use _Static_assert if available
12501         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12502         (verify_true, verify): Use it if available.  This generates better
12503         diagnostics with GCC 4.6.0 and later.
12504
12505 2011-04-05  Bruno Haible  <bruno@clisp.org>
12506
12507         Remove leftover generated .h files after config.status changed.
12508
12509         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12510         GL_GENERATE_ALLOCA_H.
12511         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12512         GL_GENERATE_ALLOCA_H evaluates to false.
12513
12514         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12515         GL_GENERATE_ARGZ_H.
12516         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12517         evaluates to false.
12518
12519         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12520         GL_GENERATE_BYTESWAP_H.
12521         * modules/byteswap (Makefile.am): Remove byteswap.h if
12522         GL_GENERATE_BYTESWAP_H evaluates to false.
12523
12524         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12525         GL_GENERATE_ERRNO_H.
12526         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12527         evaluates to false.
12528
12529         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12530         GL_GENERATE_FLOAT_H.
12531         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12532         evaluates to false.
12533
12534         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12535         GL_GENERATE_FNMATCH_H.
12536         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12537         GL_GENERATE_FNMATCH_H evaluates to false.
12538
12539         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12540         GL_GENERATE_GLOB_H.
12541         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12542         evaluates to false.
12543
12544         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12545         automake conditional GL_GENERATE_ICONV_H.
12546         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12547         evaluates to false.
12548
12549         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12550         GL_GENERATE_NETINET_IN_H.
12551         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12552         GL_GENERATE_NETINET_IN_H evaluates to false.
12553
12554         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12555         conditional GL_GENERATE_PTHREAD_H.
12556         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12557         * modules/pthread (Makefile.am): Remove pthread.h if
12558         GL_GENERATE_PTHREAD_H evaluates to false.
12559
12560         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12561         GL_GENERATE_SCHED_H.
12562         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12563         evaluates to false.
12564
12565         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12566         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12567         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12568         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12569
12570         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12571         GL_GENERATE_STDARG_H.
12572         * modules/stdarg (Makefile.am): Remove stdarg.h if
12573         GL_GENERATE_STDARG_H evaluates to false.
12574
12575         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12576         GL_GENERATE_STDBOOL_H.
12577         * modules/stdbool (Makefile.am): Remove stdbool.h if
12578         GL_GENERATE_STDBOOL_H evaluates to false.
12579
12580         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12581         conditional GL_GENERATE_STDDEF_H.
12582         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12583         * modules/stddef (Makefile.am): Remove stddef.h if
12584         GL_GENERATE_STDDEF_H evaluates to false.
12585
12586         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12587         GL_GENERATE_STDINT_H.
12588         * modules/stdint (Makefile.am): Remove stdint.h if
12589         GL_GENERATE_STDINT_H evaluates to false.
12590
12591         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12592         GL_GENERATE_SYSEXITS_H.
12593         * modules/sysexits (Makefile.am): Remove sysexits.h if
12594         GL_GENERATE_SYSEXITS_H evaluates to false.
12595
12596         Reported by Karl Berry and Ralf Wildenhues.
12597
12598 2011-04-05  Bruno Haible  <bruno@clisp.org>
12599
12600         Ensure to rebuild generated .h files when config.status has changed.
12601         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12602         config.status.
12603         * modules/ctype (Makefile.am): Likewise.
12604         * modules/dirent (Makefile.am): Likewise.
12605         * modules/errno (Makefile.am): Likewise.
12606         * modules/fcntl-h (Makefile.am): Likewise.
12607         * modules/float (Makefile.am): Likewise.
12608         * modules/getopt-posix (Makefile.am): Likewise.
12609         * modules/glob (Makefile.am): Likewise.
12610         * modules/iconv-h (Makefile.am): Likewise.
12611         * modules/inttypes (Makefile.am): Likewise.
12612         * modules/langinfo (Makefile.am): Likewise.
12613         * modules/locale (Makefile.am): Likewise.
12614         * modules/math (Makefile.am): Likewise.
12615         * modules/netdb (Makefile.am): Likewise.
12616         * modules/netinet_in (Makefile.am): Likewise.
12617         * modules/poll-h (Makefile.am): Likewise.
12618         * modules/pthread (Makefile.am): Likewise.
12619         * modules/pty (Makefile.am): Likewise.
12620         * modules/sched (Makefile.am): Likewise.
12621         * modules/search (Makefile.am): Likewise.
12622         * modules/selinux-h (Makefile.am): Likewise.
12623         * modules/signal (Makefile.am): Likewise.
12624         * modules/spawn (Makefile.am): Likewise.
12625         * modules/stdarg (Makefile.am): Likewise.
12626         * modules/stdbool (Makefile.am): Likewise.
12627         * modules/stddef (Makefile.am): Likewise.
12628         * modules/stdint (Makefile.am): Likewise.
12629         * modules/stdio (Makefile.am): Likewise.
12630         * modules/stdlib (Makefile.am): Likewise.
12631         * modules/string (Makefile.am): Likewise.
12632         * modules/strings (Makefile.am): Likewise.
12633         * modules/sys_file (Makefile.am): Likewise.
12634         * modules/sys_ioctl (Makefile.am): Likewise.
12635         * modules/sys_select (Makefile.am): Likewise.
12636         * modules/sys_socket (Makefile.am): Likewise.
12637         * modules/sys_stat (Makefile.am): Likewise.
12638         * modules/sys_time (Makefile.am): Likewise.
12639         * modules/sys_times (Makefile.am): Likewise.
12640         * modules/sys_utsname (Makefile.am): Likewise.
12641         * modules/sys_wait (Makefile.am): Likewise.
12642         * modules/sysexits (Makefile.am): Likewise.
12643         * modules/termios (Makefile.am): Likewise.
12644         * modules/time (Makefile.am): Likewise.
12645         * modules/unistd (Makefile.am): Likewise.
12646         * modules/wchar (Makefile.am): Likewise.
12647         * modules/wctype-h (Makefile.am): Likewise.
12648         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12649
12650 2011-04-05  Bruno Haible  <bruno@clisp.org>
12651
12652         pipe2: Relicense under LGPLv2+.
12653         * modules/pipe2 (License): Change to LGPLv2+.
12654         Requested by Eric Blake, for libvirt.
12655
12656 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12657
12658         bootstrap: compute gnulib_extra_files after updating build_aux
12659         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12660         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12661
12662 2011-04-05  Eric Blake  <eblake@redhat.com>
12663
12664         bootstrap: preserve git whitelist item sorting
12665         * build-aux/bootstrap (sort_patterns): New function.
12666         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12667
12668 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12669
12670         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12671         sc_space_tab check.
12672
12673 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12674
12675         areadlink, areadlinkat: rewrite in terms of careadlinkat
12676         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12677         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12678         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12679         (malloc, realloc): Remove #undefs.
12680         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12681         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12682         readlink, ssize_t, stdint, unistd.
12683         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12684         areadlink, stdint.
12685
12686         careadlinkat: new module
12687         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12688         * modules/careadlinkat: New files, written by me with
12689         a review and feedback from Ben Pfaff in
12690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12691
12692 2011-04-01  Bruno Haible  <bruno@clisp.org>
12693
12694         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12695         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12696         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12697         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12698         Reported by Bruce Korb <bruce.korb@gmail.com>.
12699
12700 2011-04-01  Bruno Haible  <bruno@clisp.org>
12701
12702         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12703         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12704         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12705         * modules/wcpcpy (Depends-on): Add extensions.
12706         * modules/wcpncpy (Depends-on): Likewise.
12707         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12708         systems.
12709         * doc/posix-functions/wcpncpy.texi: Likewise.
12710         * doc/posix-functions/wcwidth.texi: Likewise.
12711
12712 2011-03-31  Eric Blake  <eblake@redhat.com>
12713
12714         nonblocking: fix mingw test failures
12715         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12716         non-blocking flag on regular file.
12717         (get_nonblocking_flag): Set errno on invalid fd.
12718         * tests/test-nonblocking.c (main): Avoid test failure on
12719         directories if fchdir is not active.
12720         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12721
12722 2011-03-31  Bruno Haible  <bruno@clisp.org>
12723
12724         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12725         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12726         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12727         Reported by Simon Josefsson <simon@josefsson.org>.
12728
12729 2011-03-31  Bruno Haible  <bruno@clisp.org>
12730         and Eric Blake  <eblake@redhat.com>
12731
12732         nonblocking: new module
12733         * modules/nonblocking: New module.
12734         * modules/nonblocking-tests: Likewise.
12735         * lib/nonblocking.h: New file.
12736         * lib/nonblocking.c: Likewise.
12737         * tests/test-nonblocking.c: New test.
12738         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12739
12740 2011-03-30  Bruno Haible  <bruno@clisp.org>
12741
12742         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12743         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12744         instead of 'printf' format for GCC >= 4.4.
12745         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12746         (fprintf, printf, vfprintf, vprintf): Declare with
12747         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12748         the system's vfprintf() function.
12749         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12750
12751 2011-03-30  Eric Blake  <eblake@redhat.com>
12752
12753         passfd: fix scoping bug
12754         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12755         before sendmsg/recvmsg.
12756
12757         passfd: standardize coding conventions
12758         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12759         can be learned at compile time.
12760         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12761         ifdefs.
12762         (sendfd, recvfd): Follow gnulib code conventions.
12763
12764         passfd: fix incorrect sendmsg arguments
12765         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12766         incorrect msg_controllen value.
12767         * modules/passfd-tests (Depends-on): Check for alarm.
12768         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12769         Reported by Bastien ROUCARIES.
12770
12771 2011-03-30  Bruno Haible  <bruno@clisp.org>
12772
12773         c-strcasestr: Relicense under LGPLv2+.
12774         * modules/c-strcasestr (License): Change to LGPLv2+.
12775         Requested by Eric Blake, for libvirt.
12776
12777 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12778
12779         * users.txt: Add libidn2.  Fix libtasn1 link.
12780
12781 2011-03-30  Jim Meyering  <meyering@redhat.com>
12782
12783         tests: readlink* ("",... fails with EINVAL on newer kernels
12784         readlink and readlinkat have typically failed with ENOENT for
12785         the invalid, empty file name,  "".  However, with the advent
12786         of linux-2.6.39, they fail with EINVAL.
12787         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12788         when operating on the empty file name.
12789         * tests/test-readlink.h (test_readlink): Likewise.
12790
12791 2011-03-29  Bruno Haible  <bruno@clisp.org>
12792
12793         Relicense some modules under LGPLv2+, for libidn2.
12794         * modules/array-mergesort (License): Change to LGPLv2+.
12795         * modules/c-strcaseeq (License): Likewise.
12796         * modules/striconveh (License): Likewise.
12797         * modules/striconveha (License): Likewise.
12798         * modules/uniconv/base (License): Likewise.
12799         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12800         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12801         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12802         * modules/unictype/base (License): Likewise.
12803         * modules/unictype/bidiclass-of (License): Likewise.
12804         * modules/unictype/category-M (License): Likewise.
12805         * modules/unictype/category-none (License): Likewise.
12806         * modules/unictype/category-of (License): Likewise.
12807         * modules/unictype/category-test (License): Likewise.
12808         * modules/unictype/category-test-withtable (License): Likewise.
12809         * modules/unictype/combining-class (License): Likewise.
12810         * modules/unictype/joiningtype-of (License): Likewise.
12811         * modules/unictype/scripts (License): Likewise.
12812         * modules/uninorm/base (License): Likewise.
12813         * modules/uninorm/canonical-decomposition (License): Likewise.
12814         * modules/uninorm/composition (License): Likewise.
12815         * modules/uninorm/decompose-internal (License): Likewise.
12816         * modules/uninorm/decomposition-table (License): Likewise.
12817         * modules/uninorm/nfc (License): Likewise.
12818         * modules/uninorm/nfd (License): Likewise.
12819         * modules/uninorm/u32-normalize (License): Likewise.
12820         * modules/unistr/base (License): Likewise.
12821         * modules/unistr/u32-cpy (License): Likewise.
12822         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12823         * modules/unistr/u32-to-u8 (License): Likewise.
12824         * modules/unistr/u32-uctomb (License): Likewise.
12825         * modules/unistr/u8-check (License): Likewise.
12826         * modules/unistr/u8-mblen (License): Likewise.
12827         * modules/unistr/u8-mbtouc (License): Likewise.
12828         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12829         * modules/unistr/u8-mbtoucr (License): Likewise.
12830         * modules/unistr/u8-prev (License): Likewise.
12831         * modules/unistr/u8-strlen (License): Likewise.
12832         * modules/unistr/u8-to-u32 (License): Likewise.
12833         * modules/unistr/u8-uctomb (License): Likewise.
12834         * modules/unitypes (License): Likewise.
12835         Requested by Simon Josefsson.
12836
12837 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12838
12839         lib-symbol-visibility: Add a notice.
12840         * modules/lib-symbol-visibility (Notice): New field.
12841
12842 2011-03-29  Bruno Haible  <bruno@clisp.org>
12843
12844         getaddrinfo: Doc fix.
12845         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12846         section "fixed in Gnulib".
12847
12848 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12849
12850         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12851         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12852
12853 2011-03-26  Bruno Haible  <bruno@clisp.org>
12854
12855         unictype/property-byname: Reduce the number of load-time relocations.
12856         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12857         (UC_PROPERTY_INDEX_*): New enumeration values.
12858         (uc_property_byname): Convert an index from the lookup table to an
12859         uc_property_t.
12860         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12861         values.
12862
12863 2011-03-26  Bruno Haible  <bruno@clisp.org>
12864
12865         unictype/property-byname: Allow omitted word separators and aliases.
12866         * lib/unictype/pr_byname.gperf: Add property names without word
12867         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12868         for 'space'.
12869
12870 2011-03-26  Bruno Haible  <bruno@clisp.org>
12871
12872         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12873         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12874         also hyphens to space.
12875         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12876         without spaces.
12877         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12878
12879 2011-03-26  Bruno Haible  <bruno@clisp.org>
12880
12881         unictype/joiningtype-byname: Recognize long names as well.
12882         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12883         a long name.
12884         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12885         unictype/joiningtype_byname.h.
12886         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12887         * lib/unictype/joiningtype_byname.gperf: New file.
12888         * modules/unictype/joiningtype-byname (Files): Add
12889         lib/unictype/joiningtype_byname.gperf.
12890         (Depends-on): Add gperf.
12891         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12892         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12893         long names.
12894
12895         Tests for module 'unictype/joiningtype-longname'.
12896         * modules/unictype/joiningtype-longname-tests: New file.
12897         * tests/unictype/test-joiningtype_longname.c: New file.
12898
12899         New module 'unictype/joiningtype-longname'.
12900         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12901         * lib/unictype/joiningtype_longname.c: New file.
12902         * modules/unictype/joiningtype-longname: New file.
12903         * modules/unictype/joiningtype-all (Depends-on): Add
12904         unictype/joiningtype-longname.
12905
12906 2011-03-26  Bruno Haible  <bruno@clisp.org>
12907
12908         unictype/bidiclass-byname: Recognize long names as well.
12909         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12910         name.
12911         * lib/unictype/bidi_byname.c: Include <string.h>,
12912         unictype/bidi_byname.h.
12913         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12914         * lib/unictype/bidi_byname.gperf: New file.
12915         * modules/unictype/bidiclass-byname (Files): Add
12916         lib/unictype/bidi_byname.gperf.
12917         (Depends-on): Add gperf.
12918         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12919         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12920         long names.
12921
12922         Tests for module 'unictype/bidiclass-longname'.
12923         * modules/unictype/bidiclass-longname-tests: New file.
12924         * tests/unictype/test-bidi_longname.c: New file.
12925
12926         New module 'unictype/bidiclass-longname'.
12927         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12928         * lib/unictype/bidi_longname.c: New file.
12929         * modules/unictype/bidiclass-longname: New file.
12930         * modules/unictype/bidiclass-all (Depends-on): Add
12931         unictype/bidiclass-longname.
12932
12933 2011-03-26  Bruno Haible  <bruno@clisp.org>
12934
12935         unictype/bidi*: Rename modules.
12936         * modules/unictype/bidiclass-all: Renamed from
12937         modules/unictype/bidicategory-all.
12938         * modules/unictype/bidiclass-name: Renamed from
12939         modules/unictype/bidiclass-name.
12940         (Description): Update.
12941         * modules/unictype/bidiclass-name-tests: Renamed from
12942         modules/unictype/bidicategory-name-tests.
12943         * modules/unictype/bidiclass-byname: Renamed from
12944         modules/unictype/bidicategory-byname.
12945         (Description): Update.
12946         * modules/unictype/bidiclass-byname-tests: Renamed from
12947         modules/unictype/bidicategory-byname-tests.
12948         * modules/unictype/bidiclass-of: Renamed from
12949         modules/unictype/bidicategory-of.
12950         (Description): Update.
12951         * modules/unictype/bidiclass-of-tests: Renamed from
12952         modules/unictype/bidicategory-of-tests.
12953         * modules/unictype/bidiclass-test: Renamed from
12954         modules/unictype/bidicategory-test.
12955         (Description): Update.
12956         * modules/unictype/bidiclass-test-tests: Renamed from
12957         modules/unictype/bidicategory-test-tests.
12958         * modules/unictype/bidicategory-all: New file, a simple redirection.
12959         * modules/unictype/bidicategory-name: Likewise.
12960         * modules/unictype/bidicategory-byname: Likewise.
12961         * modules/unictype/bidicategory-of: Likewise.
12962         * modules/unictype/bidicategory-test: Likewise.
12963         * modules/unictype/property-bidi-* (Dependencies): Update.
12964         * lib/unictype/bidi_*.c: Update comment.
12965
12966 2011-03-26  Bruno Haible  <bruno@clisp.org>
12967
12968         unictype/bidi*: Rename functions, part 2.
12969         * modules/unictype/bidicategory-name (configure.ac): Update required
12970         libunistring version.
12971         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12972
12973 2011-03-25  Bruno Haible  <bruno@clisp.org>
12974
12975         New module 'unictype/combining-class-all'.
12976         * modules/unictype/combining-class-all: New file.
12977
12978         Tests for module 'unictype/combining-class-byname'.
12979         * modules/unictype/combining-class-byname-tests: New file.
12980         * tests/unictype/test-combiningclass_byname.c: New file.
12981
12982         New module 'unictype/combining-class-byname'.
12983         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12984         * lib/unictype/combiningclass_byname.c: New file.
12985         * lib/unictype/combiningclass_byname.gperf: New file.
12986         * modules/unictype/combining-class-byname: New file.
12987
12988         Tests for module 'unictype/combining-class-longname'.
12989         * modules/unictype/combining-class-longname-tests: New file.
12990         * tests/unictype/test-combiningclass_longname.c: New file.
12991
12992         New module 'unictype/combining-class-longname'.
12993         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12994         * lib/unictype/combiningclass_longname.c: New file.
12995         * modules/unictype/combining-class-longname: New file.
12996
12997         Tests for module 'unictype/combining-class-name'.
12998         * modules/unictype/combining-class-name-tests: New file.
12999         * tests/unictype/test-combiningclass_name.c: New file.
13000
13001         New module 'unictype/combining-class-name'.
13002         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13003         * lib/unictype/combiningclass_name.c: New file.
13004         * modules/unictype/combining-class-name: New file.
13005
13006 2011-03-25  Bruno Haible  <bruno@clisp.org>
13007
13008         unictype/combining-class: Rename source files.
13009         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13010         of unictype/combining.h.
13011         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13012         Update.
13013         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13014         * modules/unictype/combining-class (Description): Fix.
13015         (Files, Makefile.am): Update.
13016         * tests/unictype/test-combiningclass.c: Renamed from
13017         tests/unictype/test-combining.c.
13018         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13019
13020 2011-03-25  Bruno Haible  <bruno@clisp.org>
13021
13022         unictype: Update list of canonical combining classes.
13023         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13024
13025 2011-03-25  Bruno Haible  <bruno@clisp.org>
13026
13027         unictype/category-byname: Recognize long names as well.
13028         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13029         a long name.
13030         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13031         unictype/categ_byname.h.
13032         (UC_CATEGORY_INDEX_*): New enumeration values.
13033         (uc_general_category_byname): Use uc_general_category_lookup and
13034         convert from index to value.
13035         * lib/unictype/categ_byname.gperf: New file.
13036         * modules/unictype/category-byname (Files): Add
13037         lib/unictype/categ_byname.gperf.
13038         (Depends-on): Add gperf.
13039         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13040         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13041         long names.
13042
13043         Tests for module 'unictype/category-longname'.
13044         * modules/unictype/category-longname-tests: New file.
13045         * tests/unictype/test-categ_longname.c: New file.
13046
13047         New module 'unictype/category-longname'.
13048         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13049         * lib/unictype/categ_longname.c: New file.
13050         * modules/unictype/category-longname: New file.
13051         * modules/unictype/category-all (Depends-on): Add it.
13052
13053 2011-03-25  Bruno Haible  <bruno@clisp.org>
13054
13055         Tests for module 'unictype/category-LC'.
13056         * modules/unictype/category-LC-tests: New file.
13057         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13058
13059         New module 'unictype/category-LC'.
13060         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13061         (UC_CATEGORY_LC): New declaration.
13062         (UC_CASED_LETTER): New macro.
13063         * lib/gen-uni-tables.c (is_category_LC): New function.
13064         (output_categories): Also handle category LC.
13065         (UC_CATEGORY_MASK_LC): New enumeration value.
13066         (general_category_byname): Also handle category LC.
13067         * lib/unictype/categ_LC.c: New file.
13068         * lib/unictype/categ_LC.h: New file, automatically generated.
13069         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13070         category LC.
13071         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13072         * modules/unictype/category-LC: New file.
13073         * modules/unictype/category-byname (Depends-on): Add
13074         unictype/category-LC.
13075         * modules/unictype/category-all (Depends-on): Likewise.
13076
13077 2011-03-25  Eric Blake  <eblake@redhat.com>
13078
13079         xmalloc: revert yesterday's regression
13080         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13081         realloc's underlying behavior (allowing allocation of zero-size
13082         objects, especially if malloc-gnu is also in use).
13083
13084 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13085
13086         maint.mk: add missing version to VC-tag
13087         * top/maint.mk: git tag was missing actual tag name; add it.
13088
13089         valgrind: do leak checking, and exit with code 1 on error (not 0)
13090         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13091         to VALGRIND.
13092
13093 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13094
13095         posix-modules: say what it does.
13096         * posix-modules: Add a line to the --help output saying what it does.
13097
13098 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13099
13100         xmalloc: Do not leak if underlying realloc is C99 compatible.
13101         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13102         This avoids a leak on C99-based systems.  See
13103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13104
13105 2011-03-24  Eric Blake  <eblake@redhat.com>
13106
13107         realloc: document portability problem
13108         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13109         passing 0 size to realloc.
13110
13111 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13112
13113         doc: update users.txt
13114         * users.txt: Add cvsps, tmpwatch
13115
13116 2011-03-23  Matt Rice  <ratmice@gmail.com>
13117
13118         doc: update users.txt
13119         * users.txt: Add gdb.
13120
13121 2011-03-23  Jim Meyering  <meyering@redhat.com>
13122
13123         doc: update users.txt
13124         Looking through matches up to the following URL (there are still
13125         several more pages), I found several projects that use gnulib:
13126         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13127         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13128         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13129
13130 2011-03-22  Bruno Haible  <bruno@clisp.org>
13131
13132         unictype/bidi*: Rename functions.
13133         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13134         uc_bidi_class, uc_is_bidi_class): New declarations.
13135         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13136         uc_bidi_category_byname.
13137         (uc_bidi_category_byname): New function.
13138         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13139         u_bidi_category_name.
13140         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13141         (uc_bidi_category_name): New function.
13142         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13143         uc_bidi_category.
13144         (uc_bidi_category): New function.
13145         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13146         uc_is_bidi_category. Invoke uc_bidi_class.
13147         (uc_is_bidi_category): New function.
13148         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13149         instead of uc_bidi_category_byname.
13150         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13151         instead of uc_bidi_category_name.
13152         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13153         uc_bidi_category.
13154         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13155         instead of uc_is_bidi_category.
13156
13157 2011-03-21  Bruno Haible  <bruno@clisp.org>
13158
13159         New module 'unictype/joininggroup-all'.
13160         * modules/unictype/joininggroup-all: New file.
13161
13162         Tests for module 'unictype/joininggroup-of'.
13163         * modules/unictype/joininggroup-of-tests: New file.
13164         * tests/unictype/test-joininggroup_of.c: New file.
13165         * tests/unictype/test-joininggroup_of.h: New file, automatically
13166         generated by gen-uni-tables.
13167
13168         New module 'unictype/joininggroup-of'.
13169         * modules/unictype/joininggroup-of: New file.
13170         * lib/unictype/joininggroup_of.c: New file.
13171         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13172         gen-uni-tables.
13173
13174         Tests for module 'unictype/joininggroup-byname'.
13175         * modules/unictype/joininggroup-byname-tests: New file.
13176         * tests/unictype/test-joininggroup_byname.c: New file.
13177
13178         New module 'unictype/joininggroup-byname'.
13179         * modules/unictype/joininggroup-byname: New file.
13180         * lib/unictype/joininggroup_byname.c: New file.
13181         * lib/unictype/joininggroup_byname.gperf: New file.
13182
13183         Tests for module 'unictype/joininggroup-name'.
13184         * modules/unictype/joininggroup-name-tests: New file.
13185         * tests/unictype/test-joininggroup_name.c: New file.
13186
13187         New module 'unictype/joininggroup-name'.
13188         * modules/unictype/joininggroup-name: New file.
13189         * lib/unictype/joininggroup_name.c: New file.
13190         * lib/unictype/joininggroup_name.h: New file.
13191
13192         New module 'unictype/joiningtype-all'.
13193         * modules/unictype/joiningtype-all: New file.
13194
13195         Tests for module 'unictype/joiningtype-of'.
13196         * modules/unictype/joiningtype-of-tests: New file.
13197         * tests/unictype/test-joiningtype_of.c: New file.
13198         * tests/unictype/test-joiningtype_of.h: New file, automatically
13199         generated by gen-uni-tables.
13200
13201         New module 'unictype/joiningtype-of'.
13202         * modules/unictype/joiningtype-of: New file.
13203         * lib/unictype/joiningtype_of.c: New file.
13204         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13205         gen-uni-tables.
13206
13207         Tests for module 'unictype/joiningtype-byname'.
13208         * modules/unictype/joiningtype-byname-tests: New file.
13209         * tests/unictype/test-joiningtype_byname.c: New file.
13210
13211         New module 'unictype/joiningtype-byname'.
13212         * modules/unictype/joiningtype-byname: New file.
13213         * lib/unictype/joiningtype_byname.c: New file.
13214
13215         Tests for module 'unictype/joiningtype-name'.
13216         * modules/unictype/joiningtype-name-tests: New file.
13217         * tests/unictype/test-joiningtype_name.c: New file.
13218
13219         New module 'unictype/joiningtype-name'.
13220         * modules/unictype/joiningtype-name: New file.
13221         * lib/unictype/joiningtype_name.c: New file.
13222
13223         unictype: Add support for Arabic shaping properties.
13224         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13225         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13226         declarations.
13227         (UC_JOINING_GROUP_*): New enumeration values.
13228         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13229         declarations.
13230         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13231         (unicode_joining_type): New variable.
13232         (UC_JOINING_GROUP_*): New enumeration values.
13233         (unicode_joining_group): New variable.
13234         (fill_arabicshaping, joining_type_as_c_identifier,
13235         output_joining_type_test, output_joining_type,
13236         joining_group_as_c_identifier, output_joining_group_test,
13237         output_joining_group): New functions.
13238         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13239         fill_arabicshaping and output_joining_type_test, output_joining_type,
13240         output_joining_group_test, output_joining_group.
13241         Reported by Simon Josefsson.
13242
13243 2011-03-21  Jim Meyering  <meyering@redhat.com>
13244
13245         strftime: fix a bug in yesterday's change
13246         * lib/strftime.c (add): Accommodate width's initial value of -1.
13247         Otherwise, nstrftime would copy uninitialized data into
13248         the result buffer.
13249
13250 2011-03-21  Jim Meyering  <meyering@redhat.com>
13251
13252         tests: add strftime-tests module
13253         * tests/test-strftime.c: New file.
13254         * modules/strftime-tests: New module.
13255
13256 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13257
13258         strftime: don't assume a byte count fits in 'int'
13259         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13260         found this problem by static analysis, using gcc -Wstrict-overflow
13261         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13262         on an integer overflow having undefined behavior, but it turns out
13263         that the argument is a size, which might not fit in 'int' anyway,
13264
13265 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13266
13267         stdio: don't require ignore_value around fwrite
13268
13269         This patch works around libc bug 11959
13270         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13271         Without this patch, applications must often write
13272         ignore_value (fwrite (...)) even though the ignore_value is
13273         not helpful here.  It's common to write many objects, using
13274         fwrite/printf/etc., and then use ferror to detect output error.
13275
13276         I considered making this patch optional, but decided against it,
13277         because libc is obviously being inconsistent here: there is no
13278         reason libc should insist that user code must inspect fwrite
13279         return's value without also insisting that it inspect printf's,
13280         putchar's, etc.  If user code wants to have a strict style where
13281         all these functions' values are checked (so that ferror need not
13282         be checked), we could add support for that style in a new gnulib
13283         module, but in the meantime it's better to be consistent and to
13284         support common usage.
13285
13286         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13287         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13288         that we are compiling in checking mode, and if not C++, and
13289         if not already wrapping fwrite for some other reason.
13290         (fwrite): #define to rpl_fwrite if the latter is defined.
13291
13292 2011-03-20  Bruno Haible  <bruno@clisp.org>
13293
13294         verror: Fix compilation error introduced on 2011-02-13.
13295         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13296         instead of __attribute__.
13297         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13298
13299 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13300             Bruno Haible  <bruno@clisp.org>
13301
13302         socklen: do not depend on sys_socket
13303         While trying to modify Emacs to use gnulib's socklen module,
13304         I discovered a circular dependency: socklen depends on sys_socket
13305         and vice versa.  Emacs can use socklen, but it does not need
13306         sys_socket because it has its own substitute for sys/socket.h.
13307         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13308         gl_TYPE_SOCKLEN_T.
13309         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13310         gl_PREREQ_SYS_H_SOCKET.
13311         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13312         gl_PREREQ_SYS_H_SOCKET.
13313         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13314         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13315         * modules/socklen (Depends-on): Do not depend on sys_socket.
13316         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13317
13318 2011-03-20  Jim Meyering  <meyering@redhat.com>
13319
13320         maint.mk: sort file names *after* new transformation
13321         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13322         prefix would have led to an unwarranted failure in GNU parted.
13323         Sort after that transformation.
13324
13325 2011-03-19  Jim Meyering  <meyering@redhat.com>
13326
13327         maint.mk: fix po-file syntax-check rule
13328         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13329         Patch by Bruno Haible.
13330
13331 2011-03-19  Bruno Haible  <bruno@clisp.org>
13332
13333         socklen: Update comment.
13334         * m4/socklen.m4: Update comment about platforms.
13335
13336 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13337             Bruno Haible  <bruno@clisp.org>
13338
13339         inet_ntop, inet_pton: Simplify.
13340         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13341         documented to provide socklen_t and we already depend on sys_socket.
13342         * modules/inet_pton (Depends-on): Likewise.
13343         * lib/arpa_inet.in.h: Adjust comment.
13344
13345 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13346             Bruno Haible  <bruno@clisp.org>
13347
13348         netdb: Simplify.
13349         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13350         documented to provide socklen_t and we already depend on sys_socket.
13351         * lib/netdb.in.h: Adjust comment.
13352
13353 2011-03-19  Bruno Haible  <bruno@clisp.org>
13354
13355         sys_socket, netdb: Document problem with socklen_t.
13356         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13357         platforms.
13358         * doc/posix-headers/netdb.texi: Likewise.
13359
13360 2011-03-18  Eric Blake  <eblake@redhat.com>
13361
13362         maint.mk: let po check work in VPATH build
13363         * top/maint.mk (po_file): Allow cfg.mk override.
13364         (sc_po_check): Allow VPATH use.
13365         Reported by Jiri Denemark.
13366
13367 2011-03-16  Jim Meyering  <meyering@redhat.com>
13368
13369         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13370         Before, you would have had to create one .x-sc_ file per rule in order
13371         to exempt offending files.  Now, you may instead use a Make variable --
13372         usually defined in cfg.mk -- whose name identifies the affected rule.
13373         * top/maint.mk (_sc_excl): Define.
13374         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13375         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13376
13377 2011-03-13  Bruno Haible  <bruno@clisp.org>
13378
13379         ignore-value tests: Avoid warnings.
13380         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13381         empty for gcc < 3.4.
13382
13383 2011-03-13  Bruno Haible  <bruno@clisp.org>
13384
13385         passfd: Fix link error on Solaris.
13386         * modules/passfd (Description): Correct.
13387         (Depends-on): Add socketlib.
13388         (Link): New section.
13389         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13390
13391 2011-03-13  Bruno Haible  <bruno@clisp.org>
13392
13393         passfd: Fix link error on AIX 5.2.
13394         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13395
13396 2011-03-13  Bruno Haible  <bruno@clisp.org>
13397
13398         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13399         * lib/sys_socket.in.h: Include <stddef.h>.
13400         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13401         CMSG_FIRSTHDR. Remove unused variable.
13402
13403 2011-03-13  Bruno Haible  <bruno@clisp.org>
13404
13405         passfd: Fix compilation error on OpenBSD.
13406         * lib/passfd.c: Include <sys/uio.h>.
13407
13408 2011-03-13  Bruno Haible  <bruno@clisp.org>
13409
13410         passfd test: Fix warnings.
13411         * tests/test-passfd.c: Include <sys/wait.h>.
13412         (main): Fix typo.
13413
13414 2011-03-13  Bruno Haible  <bruno@clisp.org>
13415
13416         passfd module, part 4, tweaks.
13417         * tests/test-passfd.c: Reorder includes.
13418         (main): Fix perror and printf calls.
13419
13420 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13421
13422         passfd module, part 4.
13423         * modules/passfd-tests: New file.
13424         * tests/test-passfd.c: New file.
13425
13426 2011-03-13  Jim Meyering  <meyering@redhat.com>
13427
13428         Makefile: rely on GNU make; derive syntax-check rule names
13429         Rather than requiring that each sc_ rule be listed as a dependent
13430         of "check", use features of GNU make to derive the list.
13431         * Makefile (syntax-check-rules): Define.
13432         (check): Depend on the new variable, not the hard-coded list.
13433
13434 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13435             Bruno Haible  <bruno@clisp.org>
13436
13437         passfd module, part 3.
13438         * lib/passfd.h (recvfd): Add a flags argument.
13439         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13440         (recvfd): Add a flags argument.
13441         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13442         exists.
13443         * modules/passfd (Depends-on): Add cloexec.
13444         Suggested by Eric Blake.
13445
13446 2011-03-13  Bruno Haible  <bruno@clisp.org>
13447
13448         passfd module, part 2, tweaks.
13449         * modules/passfd (Files): Reorder.
13450         (Depends-on): Remove errno.
13451         (Include): Remove <sys/socket.h>, <sys/un.h>.
13452         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13453         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13454         specification header. Include <sys/socket.h> always. Don't include
13455         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13456         (sendfd): Clarify that it sets errno when it fails.
13457         (recvfd): Fix specification.
13458
13459 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13460
13461         passfd module, part 2.
13462         * modules/passfd: New file.
13463         * lib/passfd.h: New file.
13464         * lib/passfd.c: New file.
13465
13466 2011-03-12  Bruno Haible  <bruno@clisp.org>
13467
13468         wcswidth, mbswidth: Avoid integer overflow.
13469         * lib/wcswidth.c: Include <limits.h>.
13470         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13471         * lib/mbswidth.c: Include <limits.h>.
13472         (mbsnwidth): Avoid 'int' overflow.
13473         Reported by Jim Meyering.
13474
13475 2011-03-12  Bruno Haible  <bruno@clisp.org>
13476
13477         futimens, utimensat: Avoid endless recursion on Solaris 10.
13478         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13479         Solaris.
13480         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13481         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13482
13483 2011-03-11  Jim Meyering  <meyering@redhat.com>
13484
13485         maint.mk: relax a regexp to accommodate other formatting styles
13486         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13487         between "ngettext" and the following "(".
13488
13489 2011-03-11  Pádraig Brady <P@draigBrady.com>
13490
13491         maint.mk: suppress a false positive warning
13492         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13493         diagnostics are marked with ngettext.
13494
13495 2011-03-10  Eric Blake  <eblake@redhat.com>
13496
13497         wchar: add explicit dependencies, for Tru64
13498         * modules/mbmemcasecoll (Depends-on): Add wchar.
13499         * modules/mbtowc (Depends-on): Likewise.
13500         * modules/vasnprintf (Depends-on): Likewise.
13501         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13502         * modules/wctomb (Depends-on): Likewise.
13503         Reported by Peter O'Gorman.
13504
13505 2011-03-08  Bruno Haible  <bruno@clisp.org>
13506
13507         passfd module, part 1, tweaks.
13508         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13509         Improve indentation. Improve AC_MSG_CHECKING messages.
13510         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13511         gl_SOCKET_FAMILIES.
13512
13513 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13514
13515         passfd module, part 1.
13516         * m4/afunix.m4: New file.
13517         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13518         sockets.
13519
13520 2011-03-08  Bruno Haible  <bruno@clisp.org>
13521
13522         regex-quote: New API.
13523         * lib/regex-quote.h: Include <stdbool.h>.
13524         (struct regex_quote_spec): New type.
13525         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13526         New declarations.
13527         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13528         'const struct regex_quote_spec *' argument.
13529         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13530         (pcre_special): New constant.
13531         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13532         New functions.
13533         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13534         'const struct regex_quote_spec *' argument.
13535         * modules/regex-quote (Depends-on): Add stdbool.
13536         * tests/test-regex-quote.c (check): Update for new API. Add test for
13537         anchored results.
13538         * NEWS: Mention the API change.
13539         Reported by Reuben Thomas and Eric Blake.
13540
13541 2011-03-06  Bruno Haible  <bruno@clisp.org>
13542
13543         regex-quote: Fix creation of POSIX extended regular expressions.
13544         * lib/regex-quote.c (ere_special): Add grouping and alternation
13545         operators.
13546
13547 2011-03-05  Bruno Haible  <bruno@clisp.org>
13548
13549         doc: Improve doc regarding autopoint vs. gnulib.
13550         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13551         disable autopoint while running autoreconf.
13552         Suggested by Ralf Wildenhues.
13553
13554 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13555
13556         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13557         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13558
13559 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13560
13561         parse-duration: remove xalloc.h dependency
13562         * lib/parse-duration.c (parse_period): handle NULL return from
13563         strdup instead of calling xstrdup().
13564         * modules/parse-duration: remove "xalloc" dependency
13565
13566 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13567
13568         bootstrap: honor m4_base when running aclocal
13569         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13570
13571 2011-03-02  Jim Meyering  <meyering@redhat.com>
13572
13573         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13574         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13575         on request from Matt Booth.
13576
13577 2011-03-01  Eric Blake  <eblake@redhat.com>
13578
13579         test-link: work on Hurd
13580         * tests/test-link.h (test_link): Hurd rejects linking directories
13581         with EISDIR instead of the POSIX-mandated EPERM.
13582
13583 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13584
13585         stdio: simplify by moving files to printf-posix, sigpipe
13586         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13587         since this symbol is needed only if printf is replaced.
13588         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13589         Require gl_ASM_SYMBOL_PREFIX.
13590         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13591         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13592         (Depends-on): Add 'raise'.
13593         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13594         * modules/stdio (Files): Remove lib/stdio-write.c,
13595         m4/asm-underscore.m4.
13596         (Depends-on): Remove 'raise'.
13597
13598         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13599         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13600         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13601         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13602
13603 2011-02-28  Bruno Haible  <bruno@clisp.org>
13604
13605         localcharset: Assume ANSI C behaviour of free().
13606         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13607         calling free().
13608         Suggested by Simon Josefsson <simon@josefsson.org>.
13609
13610 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13611             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13612             Bruno Haible  <bruno@clisp.org>  (tiny change)
13613
13614         On Cygwin, use /proc file system instead of win32 API.
13615         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13616         Win32 file names.
13617         (DllMain): Simplify by removing Cygwin specific code.
13618         (find_shared_library_fullname): Use Linux specific implementation also
13619         for Cygwin.
13620         (get_shared_library_fullname): Update accordingly.
13621         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13622         Win32 file names.
13623         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13624         Cygwin specific code.
13625
13626 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13627             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13628
13629         Fix OpenMP flag detection for various Fortran compilers.
13630         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13631         OpenMP-conditional compilation construct, to force compile
13632         failure with missing OpenMP flag.
13633         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13634
13635 2011-02-25  Eric Blake  <eblake@redhat.com>
13636
13637         strstr: expand test coverage
13638         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13639         compilation.
13640         * tests/test-memmem.c (main): Duplicate tests.
13641         * tests/test-strcasestr.c (main): Likewise.
13642         * tests/test-c-strcasestr.c (main): Likewise.
13643
13644 2011-02-25  Jim Meyering  <meyering@redhat.com>
13645
13646         maint.mk: detect missing-NL-at-EOF, too
13647         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13648         it also detects when a file lacks a newline at EOF.
13649         (require_exactly_one_NL_at_EOF_): Renamed from
13650         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13651         since people may well have .x-sc_... file names tied to the
13652         existing name.  Suggested by Eric Blake.
13653
13654 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13655
13656         dirname: move m4/dos.m4 functionality into lib/dosname.h
13657
13658         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13659         extracts symbols from it, puts them into config.h; but it's much
13660         easier to use the symbols directly.  filename.h already does this,
13661         but it disagrees with dos.m4 in some respects.  This patch
13662         introduces a different include file dosname.h that packages up
13663         dos.m4, and then later we can work on merging filename.h and
13664         dosname.h.  Applications that need only the easy-to-configure
13665         symbols should consider including dosname.h rather than dirname.h.
13666         * NEWS: Mention incompatible changes.
13667         * m4/dos.m4: Remove.
13668         * lib/dosname.h, modules/dosname: New files.
13669         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13670         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13671         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13672         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13673         Include dosname.h, not dirname.h.
13674         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13675         Include dosname.h, for definitions of symbols like ISSLASH
13676         that used to be in config.h.
13677         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13678         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13679         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13680         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13681         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13682         * modules/rmdir (Files): Likewise.
13683         * modules/stat (Files): Likewise.
13684         * modules/unlink (Files): Likewise.
13685         * modules/dirname-lgpl (Depends-on): Add dosname.
13686         * modules/lstat (Depends-on): Likewise.
13687         * modules/openat (Depends-on): Likewise.
13688         * modules/rmdir (Depends-on): Likewise.
13689         * modules/savewd (Depends-on): Likewise.
13690         * modules/stat (Depends-on): Likewise.
13691         * modules/unlink (Depends-on): Likewise.
13692         * modules/openat (Depends-on): Remove dirname-lgpl.
13693         * modules/savewd (Depends-on): Likewise.
13694         * tests/test-dirname.c: Do not use removed symbols like
13695         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13696         the remaining symbols, e.g., ISSLASH ('\\').
13697
13698 2011-02-25  Eric Blake  <eblake@redhat.com>
13699
13700         strstr: revert patches that introduced bug and pessimization
13701         * lib/str-two-way.h: Add another reference.
13702         (two_way_short_needle, two_way_long_needle): Revert changes from
13703         2011-02-24; they pessimize search speed.
13704         (critical_factorization): Partially revert changes from
13705         2010-06-22; they violate the requirement that the left half of the
13706         needle be smaller than the period of the needle.
13707
13708 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13709
13710         filenamecat: remove unnecessary dependency on dirname-lgpl
13711         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13712         is no direct dependency, just an indirect one via filenamecat-lgpl.
13713
13714         remove: remove unnecessary use of m4/dos.m4
13715         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13716         * modules/remove (FILES): Remove m4/dos.m4.
13717
13718         * lib/openat-proc.c: Don't include dirname.h; not needed.
13719
13720         backupfile: remove unnecessary use of m4/dos.m4
13721         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13722         of its symbols are used by the backupfile code.  backupfile.c does
13723         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13724         for the rare case of programs that want all their backup file
13725         names to live within 8+3 limits, and dos.m4 doesn't address that.
13726         * modules/backupfile (Files): Remove m4/dos.m4.
13727
13728 2011-02-24  Jim Meyering  <meyering@redhat.com>
13729
13730         strstr: fix a bug whereby strstr would mistakenly return NULL
13731         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13732         in period calculation.
13733         (two_way_long_needle): Likewise.
13734         The original problem was reported by Mike Stump in
13735         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13736         Ralf Wildenhues provided the short needle and haystack.
13737         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13738         Add a more involved test to trigger the bug in two_way_long_needle.
13739
13740 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13741
13742         gnulib-tool: remove use of bold display in help screen
13743         * gnulib-tool (func_usage): Do not use bold display anymore in the
13744         help screen.  That was just meant to be a temporary emphasis for a
13745         backward-incompatible change.
13746
13747 2011-02-23  Bruno Haible  <bruno@clisp.org>
13748
13749         Fix misindentation of preprocessor directives.
13750         * lib/argp-namefrob.h: Reindent preprocessor directives.
13751         * lib/getopt_int.h (struct _getopt_data): Likewise.
13752         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13753         * lib/vasnprintf.c (decode_long_double): Likewise.
13754         * tests/test-argmatch.c: Insert blank lines, for clarity.
13755         * tests/test-exclude.c: Likewise.
13756
13757 2011-02-22  Bruno Haible  <bruno@clisp.org>
13758
13759         ioctl: Fix for MacOS X in 64-bit mode.
13760         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13761         value.
13762         Suggested by Eric Blake.
13763         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13764
13765 2011-02-22  Jim Meyering  <meyering@redhat.com>
13766
13767         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13768         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13769         in lib/.
13770
13771 2011-02-22  Eric Blake  <eblake@redhat.com>
13772
13773         maint: avoid any CDPATH issue
13774         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13775
13776         maint: adjust cpp indentation for my modules, as well
13777         * Makefile (sc_cpp_indent_check): Add my name.
13778         * lib/fbufmode.c: Filter through cppi.
13779         * lib/fpurge.c: Likewise.
13780         * lib/freadable.c: Likewise.
13781         * lib/freading.c: Likewise.
13782         * lib/fwritable.c: Likewise.
13783         * lib/fwriting.c: Likewise.
13784         * lib/sigaction.c: Likewise.
13785
13786 2011-02-22  Jim Meyering  <meyering@redhat.com>
13787
13788         maint: adjust cpp indentation to reflect nesting depth
13789         I.e., in a block of code that begins with an unnested "#if",
13790         put one space between the "#" in column 1 and following token.
13791         For example,
13792         -#include <sys/vfs.h>
13793         +# include <sys/vfs.h>
13794         Do this only in .c files that are part of a module I maintain.
13795         * lib/linkat.c: Filter through cppi.
13796         * lib/nanosleep.c: Likewise.
13797         * lib/openat.c: Likewise.
13798         * lib/openat-die.c: Likewise.
13799         * lib/dup3.c: Likewise.
13800         * lib/fchownat.c: Likewise.
13801         * lib/flock.c: Likewise.
13802         * lib/fsync.c: Likewise.
13803         * lib/fts.c: Likewise.
13804         * lib/getpass.c: Likewise.
13805         * lib/gettimeofday.c: Likewise.
13806         * lib/userspec.c: Likewise.
13807         * Makefile (sc_cpp_indent_check): New rule, to check this.
13808
13809 2011-02-22  Bruno Haible  <bruno@clisp.org>
13810
13811         New module 'wctomb'.
13812         * lib/stdlib.in.h (wctomb): New declaration.
13813         * lib/wctomb.c: New file.
13814         * lib/wctomb-impl.h: New file.
13815         * m4/wctomb.m4: New file.
13816         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13817         REPLACE_WCTOMB.
13818         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13819         REPLACE_WCTOMB.
13820         * modules/wctomb: New file.
13821         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13822         * doc/posix-functions/wctomb.texi: Mention the new module.
13823         * modules/wctob (Depends-on): Add wctomb.
13824
13825 2011-02-22  Bruno Haible  <bruno@clisp.org>
13826
13827         New module 'mbtowc'.
13828         * lib/stdlib.in.h (mbtowc): New declaration.
13829         * lib/mbtowc.c: New file.
13830         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13831         * m4/mbtowc.m4: New file.
13832         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13833         REPLACE_MBTOWC.
13834         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13835         REPLACE_MBTOWC.
13836         * modules/mbtowc: New file.
13837         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13838         * doc/posix-functions/mbtowc.texi: Mention the new module.
13839         * modules/btowc (Depends-on): Add mbtowc.
13840
13841 2011-02-22  Bruno Haible  <bruno@clisp.org>
13842
13843         wcrtomb: Add more tests for native Windows platforms.
13844         * tests/test-wcrtomb-w32-1.sh: New file.
13845         * tests/test-wcrtomb-w32-2.sh: New file.
13846         * tests/test-wcrtomb-w32-3.sh: New file.
13847         * tests/test-wcrtomb-w32-4.sh: New file.
13848         * tests/test-wcrtomb-w32-5.sh: New file.
13849         * tests/test-wcrtomb-w32.c: New file.
13850         * modules/wcrtomb-tests (Files): Add them.
13851         (Makefile.am): Arrange to run these tests.
13852         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13853         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13854
13855 2011-02-20  Bruno Haible  <bruno@clisp.org>
13856
13857         wcrtomb: Enhance test.
13858         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13859
13860 2011-02-20  Bruno Haible  <bruno@clisp.org>
13861
13862         mbrtowc: Tiny optimization.
13863         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13864
13865 2011-02-20  Jim Meyering  <meyering@redhat.com>
13866
13867         test-exclude.c: remove unmatched #endif
13868         * tests/test-exclude.c: Remove stray #endif, left over from
13869         the change of a week ago.
13870
13871 2011-02-19  Jim Meyering  <meyering@redhat.com>
13872
13873         git-version-gen: skip "-dirty" check when appropriate
13874         * build-aux/git-version-gen: Don't run any git commands when the
13875         version string comes from .tarball-version.  Prior to this, we
13876         would run git update-index --refresh even from a just-unpacked
13877         tarball directory, and that could affect a .git/ directory in a
13878         parent of the build directory.  Reported by Mike Frysinger.
13879
13880 2011-02-19  Bruno Haible  <bruno@clisp.org>
13881
13882         unictype/property-byname: Reduce the size of the 'data' segment.
13883         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13884
13885 2011-02-19  Bruno Haible  <bruno@clisp.org>
13886
13887         unictype/scripts: Reduce the size of the 'data' segment.
13888         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13889         '%pic'.
13890         * lib/unictype/scripts_byname.gperf: Regenerated.
13891
13892 2011-02-19  Bruno Haible  <bruno@clisp.org>
13893
13894         stdint: Update documentation.
13895         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13896
13897 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13898
13899         stdint: omit redundant check for wchar.h
13900         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13901         always tests whether wchar.h exists, so remove the now-redundant test.
13902
13903 2011-02-18  Bruno Haible  <bruno@clisp.org>
13904
13905         stdint: Cut dependency to module 'wchar'.
13906         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13907         include the necessary prerequisites.
13908         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13909         * modules/stdint (Depends-on): Remove wchar.
13910         (Makefile.am): Substitute HAVE_WCHAR_H.
13911         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13912
13913 2011-02-18  Eric Blake  <eblake@redhat.com>
13914
13915         longlong: skip, rather than fail, on cross-compilation
13916         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13917         when cross-compiling; regression from 2011-02-16.
13918
13919 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13920
13921         * NEWS: Mention 2011-02-08 change to stdlib.
13922
13923 2011-02-17  Bruno Haible  <bruno@clisp.org>
13924
13925         getloadavg: Add comments about platforms.
13926         * m4/getloadavg.m4: Add comment.
13927         * lib/getloadavg.c: Likewise.
13928
13929 2011-02-17  Bruno Haible  <bruno@clisp.org>
13930
13931         getloadavg: Fix link error on Solaris 2.6.
13932         * modules/getloadavg (Link): New section.
13933         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13934         linking test-getloadavg.
13935         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13936         getloadavg.
13937
13938 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13939
13940         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13941         It was 'int', but this doesn't match the IRIX 6.5 manual.
13942         Suggested by Bruno Haible in
13943         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13944
13945 2011-02-17  Bruno Haible  <bruno@clisp.org>
13946
13947         havelib: Fix comments.
13948         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13949         change.
13950
13951 2011-02-17  Bruno Haible  <bruno@clisp.org>
13952
13953         havelib: Update config.rpath.
13954         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13955
13956 2011-02-17  Bruno Haible  <bruno@clisp.org>
13957
13958         getloadavg test: Add some plausibility checks.
13959         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13960         is improbable.
13961
13962 2011-02-16  Eric Blake  <eblake@redhat.com>
13963
13964         maintainer-makefile: make syntax-check a no-op from tarballs
13965         * top/maint.mk (no-vc-detected): New rule.
13966         (local-checks-available): Use it to avoid hanging if someone tries
13967         'make syntax-check' from a tarball.  Also append to any non-syntax
13968         checks already defined in cfg.mk.
13969
13970 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13971
13972         longlong: tune, particularly for common case of c99
13973
13974         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13975         or running anything if c99, or if unsigned long long int does not
13976         work.  In either case, we know the answer without further tests.
13977         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13978         it at most once, and use its results for both long long int and
13979         unsigned long long int.  This is more likely to be efficient in
13980         the common case where the program wants to check for both long
13981         long int and unsigned long long int.
13982         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13983         since the answer is already known.
13984
13985 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13986
13987         getloadavg: set errno
13988         * lib/getloadavg.c: Set errno when returning -1.  If no other
13989         error number looks appropriate, set it to ENOSYS if the getloadavg
13990         looks like it can't possibly ever work, ENOTSUP otherwise.
13991         Suggested by Bruno Haible in
13992         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13993
13994         getloadavg: trim unused parts and speed up 'configure'
13995         * NEWS: Document this.
13996         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13997         always compiled if getloadavg is absent.
13998         Move test code to ...
13999         * tests/test-getloadavg.c: New file, containing previous
14000         contents of test from lib/getloadavg.c.  It also contains
14001         suggestions by Bruno Haible in
14002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14003         * modules/getloadavg-tests: New file.
14004         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14005         Do tests in the same order as they're needed for getloadavg.c.
14006         Omit setgid-related tests that generate symbols KMEM_GROUP,
14007         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14008         Do only the tests that are needed to see whether the system has
14009         getloadavg, moving the other tests into ...
14010         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14011         NLIST_NAME_UNION; nobody should be using it.  Do not define
14012         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14013         relevant, as the user of this module shouldn't care how getloadavg
14014         is implemented.
14015
14016         getloadavg: omit unused var
14017         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14018
14019 2011-02-15  Jim Meyering  <meyering@redhat.com>
14020
14021         doc: update users.txt
14022         * users.txt: Update iwhd's URL.
14023
14024 2011-02-13  Bruno Haible  <bruno@clisp.org>
14025
14026         Consistent macro naming for macros that use GCC __attribute__.
14027         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14028         _ATTRIBUTE_NONNULL_.
14029         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14030         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14031         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14032         ATTRIBUTE_DEPRECATED.
14033         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14034         ATTRIBUTE_NORETURN.
14035         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14036         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14037         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14038         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14039         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14040         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14041         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14042         ATTRIBUTE_SENTINEL.
14043         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14044         ATTRIBUTE_RETURN_CHECK.
14045         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14046         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14047         ATTRIBUTE_NORETURN.
14048         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14049         Reported by Paul Eggert.
14050
14051 2011-02-13  Bruno Haible  <bruno@clisp.org>
14052
14053         Don't interfere with a program's definition of __attribute__.
14054         * lib/argp.h (__attribute__): Remove definition.
14055         (_GL_ATTRIBUTE_FORMAT): New macro.
14056         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14057         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14058         (_GL_ATTRIBUTE_FORMAT): New macro.
14059         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14060         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14061         GCC 3 or newer.
14062         * lib/error.h (__attribute__): Remove definition.
14063         (_GL_ATTRIBUTE_FORMAT): New macro.
14064         (error, error_at_line): Use it.
14065         * lib/hash.h (__attribute__): Remove definition.
14066         (ATTRIBUTE_WUR): Update definition. Define always.
14067         * lib/openat.h (__attribute__): Remove definition.
14068         (ATTRIBUTE_NORETURN): Update definition. Define always.
14069         * lib/sigpipe-die.h (__attribute__): Remove definition.
14070         (ATTRIBUTE_NORETURN): Update definition. Define always.
14071         * lib/vasnprintf.h (__attribute__): Remove definition.
14072         (_GL_ATTRIBUTE_FORMAT): New macro.
14073         (asnprintf, vasnprintf): Use it.
14074         * lib/xalloc.h (__attribute__): Remove definition.
14075         (ATTRIBUTE_NORETURN): Update definition. Define always.
14076         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14077         * lib/xmemdup0.h (__attribute__): Remove definition.
14078         (ATTRIBUTE_NORETURN): Update definition. Define always.
14079         * lib/xprintf.h (__attribute__): Remove definition.
14080         (_GL_ATTRIBUTE_FORMAT): New macro.
14081         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14082         * lib/xstrtol.h (__attribute__): Remove definition.
14083         (ATTRIBUTE_NORETURN): Update definition. Define always.
14084         * lib/xvasprintf.h (__attribute__): Remove definition.
14085         (_GL_ATTRIBUTE_FORMAT): New macro.
14086         (xasprintf, xvasprintf): Use it.
14087         * tests/test-argmatch.c (__attribute__): Remove definition.
14088         (ATTRIBUTE_NORETURN): Update definition. Define always.
14089         * tests/test-exclude.c (__attribute__): Remove definition.
14090         (ATTRIBUTE_NORETURN): Update definition. Define always.
14091         Reported by Paul Eggert.
14092
14093 2011-02-13  Bruno Haible  <bruno@clisp.org>
14094
14095         mbrtowc: Add more tests for native Windows platforms.
14096         * tests/test-mbrtowc-w32-1.sh: New file.
14097         * tests/test-mbrtowc-w32-2.sh: New file.
14098         * tests/test-mbrtowc-w32-3.sh: New file.
14099         * tests/test-mbrtowc-w32-4.sh: New file.
14100         * tests/test-mbrtowc-w32-5.sh: New file.
14101         * tests/test-mbrtowc-w32.c: New file.
14102         * modules/mbrtowc-tests (Files): Add them.
14103         (Makefile.am): Arrange to run these tests.
14104         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14105         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14106
14107 2011-02-13  Bruno Haible  <bruno@clisp.org>
14108
14109         mbrtowc: Work around native Windows bug.
14110         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14111         guess when no suitable locale for testing was found.
14112         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14113
14114 2011-02-13  Bruno Haible  <bruno@clisp.org>
14115
14116         mbsinit: Work around mingw bug.
14117         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14118         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14119         Windows.
14120         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14121
14122 2011-02-13  Bruno Haible  <bruno@clisp.org>
14123
14124         mbsinit: Don't crash for a NULL argument.
14125         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14126         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14127
14128 2011-02-13  Bruno Haible  <bruno@clisp.org>
14129
14130         Don't interfere with a program's definition of __attribute__.
14131         * lib/stdio.in.h (__attribute__): Remove definition.
14132         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14133         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14134         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14135         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14136         * lib/string.in.h (__attribute__): Remove definition.
14137         Reported by Paul Eggert.
14138
14139 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14140
14141         stdlib: don't get in the way of non-GCC __attribute__
14142         See thread starting at
14143         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14144         Revert previous stdlib change, installing the following instead:
14145         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14146         to get in the way of a non-GCC compiler that supports __attribute__.
14147         (_GL_ATTRIBUTE_RETURN): New macro.
14148         (_Exit): Use it instead of __attribute__.
14149
14150 2011-02-12  Bruno Haible  <bruno@clisp.org>
14151
14152         quotearg test: Avoid test failure on mingw.
14153         * tests/test-quotearg.sh: Convert the locale identifier from native
14154         Windows syntax to Unix syntax.
14155
14156 2011-02-12  Bruno Haible  <bruno@clisp.org>
14157
14158         setlocale: Prefer gnulib's override over libintl's override.
14159         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14160         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14161         GNULIB_defined_setlocale is set.
14162
14163 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14164
14165         stdlib: support non-GCC __attribute__
14166
14167         Fix a serious and tricky problem encountered when attempting to
14168         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14169         5.5, but it crashed due to memory corruption on Solaris 10 with
14170         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14171         bits that are otherwise zero.  This tagging is optional inside
14172         Emacs but is preferred and is used when __attribute__ ((__aligned
14173         (8))) works, as it does with both recent-enough GCC and with Sun C
14174         5.11.  However, Sun C 5.11 is not GCC and does not #define
14175         __GNUC__ and __GNUC_MINOR__.
14176
14177         When I added the getloadavg module to Emacs, it brought in
14178         stdlib.in.h, which contained this fragment:
14179
14180            #ifndef __attribute__
14181            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14182            #  define __attribute__(Spec)   /* empty */
14183            # endif
14184            #endif
14185
14186         When files that include <stdlib.h> were compiled with Sun C 5.11,
14187         the above code disabled __attribute__ ((__aligned (8))), which
14188         caused variables to not be properly aligned, which eventually led
14189         to the pointer corruption mentioned above.  (This was a bit hard
14190         to diagnose, unfortunately.)
14191
14192         Several "#define __attribute__(X) /* empty */" code snippets need
14193         to be eradicated from Gnulib to work with non-GCC compilers that
14194         support __attribute__.  The Autoconf way to do this is to test for
14195         each kind of attribute that we want support for, and selectively
14196         enable that in source code.
14197
14198         Fix this problem just for stdlib.h, by adding a test for the
14199         __noreturn__ attribute, and change stdlib.in.h to use that test
14200         when needed.  This technique can be easily generalized to the
14201         other *.in.h files and attributes, and a similar technique can be
14202         used for *.h and *.c files.  This patch is enough to solve the
14203         problem for Emacs + getloadavg, and I thought I'd publish it for
14204         feedback before undertaking further, similar fixes in other
14205         modules.
14206
14207         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14208         because it's not needed for stdlib.h.  It merely substitutes the
14209         value directly into stdlib.h.  We may well need to #define it, or
14210         similar symbols, for other modules, but it's nice to also have an
14211         option to not #define it for applications like Emacs that do not
14212         need it.
14213
14214         * lib/stdlib.in.h (__attribute__): Do not #define.
14215         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14216         be defined only if the _Exit module is also used.
14217         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14219         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14220         platforms.
14221         * modules/_Exit (Files): Add m4/attribute.m4.
14222         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14223         * m4/attribute.m4: New file.
14224
14225 2011-02-12  Bruno Haible  <bruno@clisp.org>
14226
14227         wcsrtombs: Work around bug on native Windows.
14228         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14229         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14230         instead of len.
14231         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14232
14233 2011-02-12  Bruno Haible  <bruno@clisp.org>
14234
14235         mbsrtowcs: Work around bug on native Windows.
14236         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14237         against mingw bug.
14238         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14239
14240 2011-02-12  Bruno Haible  <bruno@clisp.org>
14241
14242         Avoid setlocale bugs in tests.
14243         * modules/btowc (Dependencies): Add setlocale.
14244         * modules/c-strcase (Dependencies): Likewise.
14245         * modules/mbmemcasecmp (Dependencies): Likewise.
14246         * modules/mbmemcasecoll (Dependencies): Likewise.
14247         * modules/mbrtowc (Dependencies): Likewise.
14248         * modules/mbscasecmp (Dependencies): Likewise.
14249         * modules/mbscasestr (Dependencies): Likewise.
14250         * modules/mbschr (Dependencies): Likewise.
14251         * modules/mbscspn (Dependencies): Likewise.
14252         * modules/mbsinit (Dependencies): Likewise.
14253         * modules/mbsncasecmp (Dependencies): Likewise.
14254         * modules/mbsnrtowcs (Dependencies): Likewise.
14255         * modules/mbspbrk (Dependencies): Likewise.
14256         * modules/mbspcasecmp (Dependencies): Likewise.
14257         * modules/mbsrchr (Dependencies): Likewise.
14258         * modules/mbsrtowcs (Dependencies): Likewise.
14259         * modules/mbsspn (Dependencies): Likewise.
14260         * modules/mbsstr (Dependencies): Likewise.
14261         * modules/nl_langinfo (Dependencies): Likewise.
14262         * modules/quotearg (Dependencies): Likewise.
14263         * modules/unicase/locale-language (Dependencies): Likewise.
14264         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14265         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14266         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14267         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14268         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14269         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14270         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14271         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14272         * modules/vasnprintf-posix (Dependencies): Likewise.
14273         * modules/wcrtomb (Dependencies): Likewise.
14274         * modules/wcsnrtombs (Dependencies): Likewise.
14275         * modules/wcsrtombs (Dependencies): Likewise.
14276
14277 2011-02-12  Bruno Haible  <bruno@clisp.org>
14278
14279         setlocale: Workaround native Windows bug.
14280         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14281         succeeds but sets LC_CTYPE to "C", report a failure.
14282         * tests/test-setlocale2.sh: New file.
14283         * tests/test-setlocale2.c: New file.
14284         * modules/setlocale-tests (Files): Add the new files.
14285         (Makefile.am): Enable test-setlocale2.sh test.
14286         * doc/posix-functions/setlocale.texi: Mention workaround.
14287
14288 2011-02-11  Bruno Haible  <bruno@clisp.org>
14289
14290         Tests for module 'setlocale'.
14291         * modules/setlocale-tests: New file.
14292         * tests/test-setlocale1.sh: New file.
14293         * tests/test-setlocale1.c: New file.
14294
14295         New module 'setlocale'.
14296         * lib/locale.in.h (setlocale): New declaration.
14297         * lib/setlocale.c: New file, based on
14298         gettext/gettext-runtime/intl/setlocale.c.
14299         * m4/setlocale.m4: New file.
14300         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14301         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14302         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14303         REPLACE_SETLOCALE.
14304         * modules/setlocale: New file.
14305         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14306         * doc/posix-functions/setlocale.texi: Mention the new module.
14307
14308 2011-02-11  Bruno Haible  <bruno@clisp.org>
14309
14310         Prepare for locale dependent tests on mingw.
14311         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14312         because it has the wrong locale encoding.
14313         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14314         French_France.1252 instead of "fr".
14315         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14316         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14317         because it has the wrong locale encoding.
14318         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14319         native Windows, try Turkish_Turkey.65001.
14320         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14321         Chinese_China.54936.
14322
14323         Prepare for locale dependent tests on mingw.
14324         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14325         differently.
14326         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14327         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14328         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14329         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14330
14331 2011-02-11  Eric Blake  <eblake@redhat.com>
14332
14333         strptime: avoid compiler warnings
14334         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14335         compiler warnings about dead code.
14336         Reported by Daniel P. Berrange.
14337
14338 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14339
14340         doc: update users.txt
14341         * users.txt: Add rcs.
14342
14343 2011-02-10  John W. Eaton  <jwe@gnu.org>
14344
14345         doc: update users.txt
14346         * users.txt: Add octave.
14347
14348 2011-02-10  Jim Meyering  <meyering@redhat.com>
14349
14350         doc: update users.txt
14351         * users.txt: Add iwhd.
14352
14353 2011-02-09  Bruno Haible  <bruno@clisp.org>
14354
14355         gnulib-tool: Make copyright notice adjustment more robust.
14356         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14357         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14358         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14359         License".
14360         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14361
14362 2011-02-06  Bruno Haible  <bruno@clisp.org>
14363
14364         New module 'towctrans'.
14365         * modules/towctrans: New file.
14366         * lib/wctype.in.h (towctrans): New declaration.
14367         * lib/towctrans.c: New file.
14368         * lib/towctrans-impl.h: New file.
14369         * m4/towctrans.m4: New file.
14370         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14371         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14372         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14373         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14374         * doc/posix-functions/towctrans.texi: Mention the new module.
14375
14376 2011-02-06  Bruno Haible  <bruno@clisp.org>
14377
14378         New module 'wctrans'.
14379         * modules/wctrans: New file.
14380         * lib/wctype.in.h (wctrans): New declaration.
14381         * lib/wctrans.c: New file.
14382         * lib/wctrans-impl.h: New file.
14383         * m4/wctrans.m4: New file.
14384         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14385         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14386         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14387         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14388         * doc/posix-functions/wctrans.texi: Mention the new module.
14389
14390 2011-02-06  Bruno Haible  <bruno@clisp.org>
14391
14392         New module 'iswctype'.
14393         * modules/iswctype: New file.
14394         * lib/wctype.in.h (iswctype): New declaration.
14395         * lib/iswctype.c: New file.
14396         * lib/iswctype-impl.h: New file.
14397         * m4/iswctype.m4: New file.
14398         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14399         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14400         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14401         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14402         * doc/posix-functions/iswctype.texi: Mention the new module and the
14403         HP-UX 11.00 problem.
14404
14405 2011-02-06  Bruno Haible  <bruno@clisp.org>
14406
14407         New module 'wctype'.
14408         * modules/wctype: Change to represent the wctype() substitute.
14409         * lib/wctype.in.h (wctype): New declaration.
14410         * lib/wctype.c: New file.
14411         * lib/wctype-impl.h: New file.
14412         * m4/wctype.m4: New file.
14413         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14414         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14415         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14416         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14417         * doc/posix-functions/wctype.texi: Mention the new module and the
14418         HP-UX 11.00 problem.
14419
14420 2011-02-06  Bruno Haible  <bruno@clisp.org>
14421
14422         wctype-h: Ensure wctype_t and wctrans_t are defined.
14423         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14424         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14425         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14426         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14427         HAVE_WCTRANS_T.
14428         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14429
14430 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14431
14432         flock: fix license typo
14433
14434         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14435         omitted.
14436
14437 2011-02-08  Bruno Haible  <bruno@clisp.org>
14438
14439         Split large sed scripts, for HP-UX sed.
14440         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14441         to avoid HP-UX limit of 99 commands, in the near future.
14442         * modules/stdlib (Makefile.am): Likewise.
14443         * modules/unistd (Makefile.am): Likewise.
14444         * modules/wchar (Makefile.am): Likewise.
14445         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14446         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14447         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14448
14449 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14450             Bruno Haible  <bruno@clisp.org>
14451
14452         stdlib: improve random_r modularization
14453         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14454         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14455         you also need the random_r module to get this material right.
14456         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14457         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14458         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14459
14460 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14461
14462         stdlib: don't depend on stdint
14463         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14464         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14465         be independent of whether stdint.h is needed.
14466         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14467         here, instead of ...
14468         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14469         struct random_data should be using the random_r module, not just
14470         the stdlib module (which wouldn't make sense: what package needs
14471         just struct random_data without also needing random_r?).
14472         * modules/stdlib (Depends-on): Remove stdint.
14473
14474         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14475         See the thread rooted at
14476         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14477         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14478         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14479         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14480         __VMS)); previously it was always included (via fcntl--.h).
14481         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14482         hand; this is good enough for load averages.  Also, do not use
14483         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14484         flags directly if available and don't bother otherwise.  (Packages
14485         that need the extra reliability should use the modules that define
14486         these flags on older platforms that lack them.)
14487         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14488         fcntl-safer.
14489
14490 2011-02-08  Jim Meyering  <meyering@redhat.com>
14491
14492         di-set.h, ino-map.h: add multiple-inclusion guard
14493         Technically, the guard is required only for ino-map.h, due to its
14494         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14495         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14496         * lib/ino-map.h: Likewise.
14497
14498 2011-02-06  Bruno Haible  <bruno@clisp.org>
14499
14500         iswblank: Ensure declaration on glibc systems.
14501         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14502         * modules/iswblank (Dependencies): Add 'extensions'.
14503         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14504
14505 2011-02-06  Bruno Haible  <bruno@clisp.org>
14506
14507         New module 'iswblank'.
14508         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14509         * modules/iswblank: New file.
14510         * modules/wctype-h (Files): Remove lib/iswblank.c.
14511         (Makefile.am): Substitute GNULIB_ISWBLANK.
14512         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14513         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14514         (gl_WCTYPE_H_DEFAULTS): New macro.
14515         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14516         * modules/iswblank-tests: New file.
14517         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14518         * tests/test-wctype-h.c (main): Remove iswblank tests.
14519         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14520         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14521         of 'wctype-h'.
14522         * NEWS: Mention the change.
14523         * modules/mbchar (Depends-on): Add iswblank.
14524
14525 2011-02-08  Bruno Haible  <bruno@clisp.org>
14526
14527         di-set tests: Refactor.
14528         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14529         unnecessary includes.
14530         (ASSERT): Remove macro.
14531         (main): Make C90 compliant by avoiding variable declaration after
14532         statement.
14533         * modules/di-set-tests (Files): Add tests/macros.h.
14534
14535 2011-02-08  Bruno Haible  <bruno@clisp.org>
14536
14537         ino-map tests: Refactor.
14538         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14539         unnecessary includes.
14540         (ASSERT): Remove macro.
14541         (main): Make C90 compliant by avoiding variable declaration after
14542         statement.
14543         * modules/ino-map-tests (Files): Add tests/macros.h.
14544
14545 2011-02-08  Jim Meyering  <meyering@redhat.com>
14546
14547         di-set: add "const" to a cast
14548         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14549         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14550
14551 2011-02-06  Bruno Haible  <bruno@clisp.org>
14552
14553         Rename module 'wctype' to 'wctype-h'.
14554         * modules/wctype-h: Renamed from modules/wctype.
14555         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14556         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14557         (Files, Depends-on, Makefile.am): Update.
14558         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14559         (Files, Makefile.am): Update.
14560         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14561         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14562         * doc/posix-headers/wctype.texi: Update.
14563         * doc/posix-functions/iswalnum.texi: Update.
14564         * doc/posix-functions/iswalpha.texi: Update.
14565         * doc/posix-functions/iswblank.texi: Update.
14566         * doc/posix-functions/iswcntrl.texi: Update.
14567         * doc/posix-functions/iswdigit.texi: Update.
14568         * doc/posix-functions/iswgraph.texi: Update.
14569         * doc/posix-functions/iswlower.texi: Update.
14570         * doc/posix-functions/iswprint.texi: Update.
14571         * doc/posix-functions/iswpunct.texi: Update.
14572         * doc/posix-functions/iswspace.texi: Update.
14573         * doc/posix-functions/iswupper.texi: Update.
14574         * doc/posix-functions/iswxdigit.texi: Update.
14575         * doc/posix-functions/towlower.texi: Update.
14576         * doc/posix-functions/towupper.texi: Update.
14577         * NEWS: Mention the change.
14578         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14579         * modules/mbchar (Dependencies): Likewise.
14580         * modules/mbswidth (Dependencies): Likewise.
14581         * modules/quotearg (Dependencies): Likewise.
14582         * modules/regex (Dependencies): Likewise.
14583         * modules/wcscasecmp (Dependencies): Likewise.
14584         * modules/wcsncasecmp (Dependencies): Likewise.
14585         * modules/wcwidth (Dependencies): Likewise.
14586
14587 2011-02-06  Bruno Haible  <bruno@clisp.org>
14588
14589         New module 'wcswidth'.
14590         * modules/wcswidth: New file.
14591         * lib/wchar.in.h (wcswidth): New declaration.
14592         * lib/wcswidth.c: New file.
14593         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14594         * m4/wcswidth.m4: New file.
14595         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14596         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14597         REPLACE_WCSWIDTH.
14598         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14599         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14600         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14601         * doc/posix-functions/wcswidth.texi: Mention the new module.
14602
14603 2011-02-06  Bruno Haible  <bruno@clisp.org>
14604
14605         New module 'wcstok'.
14606         * modules/wcstok: New file.
14607         * lib/wchar.in.h (wcstok): New declaration.
14608         * lib/wcstok.c: New file.
14609         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14610         * m4/wcstok.m4: New file.
14611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14613         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14614         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14615         * doc/posix-functions/wcstok.texi: Mention the new module.
14616
14617 2011-02-06  Bruno Haible  <bruno@clisp.org>
14618
14619         New module 'wcsstr'.
14620         * modules/wcsstr: New file.
14621         * lib/wchar.in.h (wcsstr): New declaration.
14622         * lib/wcsstr.c: New file.
14623         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14624         * m4/wcsstr.m4: New file.
14625         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14626         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14627         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14628         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14629         * doc/posix-functions/wcsstr.texi: Mention the new module.
14630
14631 2011-02-06  Bruno Haible  <bruno@clisp.org>
14632
14633         New module 'wcspbrk'.
14634         * modules/wcspbrk: New file.
14635         * lib/wchar.in.h (wcspbrk): New declaration.
14636         * lib/wcspbrk.c: New file.
14637         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14638         * m4/wcspbrk.m4: New file.
14639         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14640         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14641         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14642         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14643         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14644
14645 2011-02-06  Bruno Haible  <bruno@clisp.org>
14646
14647         New module 'wcsspn'.
14648         * modules/wcsspn: New file.
14649         * lib/wchar.in.h (wcsspn): New declaration.
14650         * lib/wcsspn.c: New file.
14651         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14652         * m4/wcsspn.m4: New file.
14653         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14654         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14655         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14656         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14657         * doc/posix-functions/wcsspn.texi: Mention the new module.
14658
14659 2011-02-06  Bruno Haible  <bruno@clisp.org>
14660
14661         New module 'wcscspn'.
14662         * modules/wcscspn: New file.
14663         * lib/wchar.in.h (wcscspn): New declaration.
14664         * lib/wcscspn.c: New file.
14665         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14666         * m4/wcscspn.m4: New file.
14667         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14668         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14669         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14670         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14671         * doc/posix-functions/wcscspn.texi: Mention the new module.
14672
14673 2011-02-06  Bruno Haible  <bruno@clisp.org>
14674
14675         New module 'wcsrchr'.
14676         * modules/wcsrchr: New file.
14677         * lib/wchar.in.h (wcsrchr): New declaration.
14678         * lib/wcsrchr.c: New file.
14679         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14680         * m4/wcsrchr.m4: New file.
14681         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14682         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14683         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14684         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14685         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14686
14687 2011-02-06  Bruno Haible  <bruno@clisp.org>
14688
14689         New module 'wcschr'.
14690         * modules/wcschr: New file.
14691         * lib/wchar.in.h (wcschr): New declaration.
14692         * lib/wcschr.c: New file.
14693         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14694         * m4/wcschr.m4: New file.
14695         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14696         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14697         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14698         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14699         * doc/posix-functions/wcschr.texi: Mention the new module.
14700
14701 2011-02-06  Bruno Haible  <bruno@clisp.org>
14702
14703         New module 'wcsdup'.
14704         * modules/wcsdup: New file.
14705         * lib/wchar.in.h (wcsdup): New declaration.
14706         * lib/wcsdup.c: New file.
14707         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14708         * m4/wcsdup.m4: New file.
14709         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14710         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14711         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14712         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14713         * doc/posix-functions/wcsdup.texi: Mention the new module.
14714
14715 2011-02-06  Bruno Haible  <bruno@clisp.org>
14716
14717         New module 'wcsxfrm'.
14718         * modules/wcsxfrm: New file.
14719         * lib/wchar.in.h (wcsxfrm): New declaration.
14720         * lib/wcsxfrm.c: New file.
14721         * lib/wcsxfrm-impl.h: New file.
14722         * m4/wcsxfrm.m4: New file.
14723         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14724         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14725         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14726         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14727         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14728
14729 2011-02-06  Bruno Haible  <bruno@clisp.org>
14730
14731         New module 'wcscoll'.
14732         * modules/wcscoll: New file.
14733         * lib/wchar.in.h (wcscoll): New declaration.
14734         * lib/wcscoll.c: New file.
14735         * lib/wcscoll-impl.h: New file.
14736         * m4/wcscoll.m4: New file.
14737         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14738         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14739         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14740         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14741         * doc/posix-functions/wcscoll.texi: Mention the new module.
14742
14743 2011-02-06  Bruno Haible  <bruno@clisp.org>
14744
14745         New module 'wcsncasecmp'.
14746         * modules/wcsncasecmp: New file.
14747         * lib/wchar.in.h (wcsncasecmp): New declaration.
14748         * lib/wcsncasecmp.c: New file.
14749         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14750         * m4/wcsncasecmp.m4: New file.
14751         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14752         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14753         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14754         HAVE_WCSNCASECMP.
14755         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14756         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14757
14758 2011-02-06  Bruno Haible  <bruno@clisp.org>
14759
14760         New module 'wcscasecmp'.
14761         * modules/wcscasecmp: New file.
14762         * lib/wchar.in.h (wcscasecmp): New declaration.
14763         * lib/wcscasecmp.c: New file.
14764         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14765         * m4/wcscasecmp.m4: New file.
14766         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14767         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14768         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14769         HAVE_WCSCASECMP.
14770         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14771         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14772
14773 2011-02-05  Bruno Haible  <bruno@clisp.org>
14774
14775         New module 'wcsncmp'.
14776         * modules/wcsncmp: New file.
14777         * lib/wchar.in.h (wcsncmp): New declaration.
14778         * lib/wcsncmp.c: New file.
14779         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14780         * m4/wcsncmp.m4: New file.
14781         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14782         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14783         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14784         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14785         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14786
14787 2011-02-05  Bruno Haible  <bruno@clisp.org>
14788
14789         New module 'wcscmp'.
14790         * modules/wcscmp: New file.
14791         * lib/wchar.in.h (wcscmp): New declaration.
14792         * lib/wcscmp.c: New file.
14793         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14794         * m4/wcscmp.m4: New file.
14795         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14796         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14797         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14798         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14799         * doc/posix-functions/wcscmp.texi: Mention the new module.
14800
14801 2011-02-05  Bruno Haible  <bruno@clisp.org>
14802
14803         New module 'wcsncat'.
14804         * modules/wcsncat: New file.
14805         * lib/wchar.in.h (wcsncat): New declaration.
14806         * lib/wcsncat.c: New file.
14807         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14808         * m4/wcsncat.m4: New file.
14809         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14810         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14811         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14812         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14813         * doc/posix-functions/wcsncat.texi: Mention the new module.
14814
14815 2011-02-05  Bruno Haible  <bruno@clisp.org>
14816
14817         New module 'wcscat'.
14818         * modules/wcscat: New file.
14819         * lib/wchar.in.h (wcscat): New declaration.
14820         * lib/wcscat.c: New file.
14821         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14822         * m4/wcscat.m4: New file.
14823         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14824         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14825         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14826         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14827         * doc/posix-functions/wcscat.texi: Mention the new module.
14828
14829 2011-02-05  Bruno Haible  <bruno@clisp.org>
14830
14831         New module 'wcpncpy'.
14832         * modules/wcpncpy: New file.
14833         * lib/wchar.in.h (wcpncpy): New declaration.
14834         * lib/wcpncpy.c: New file.
14835         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14836         * m4/wcpncpy.m4: New file.
14837         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14838         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14839         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14840         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14841         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14842
14843 2011-02-05  Bruno Haible  <bruno@clisp.org>
14844
14845         New module 'wcsncpy'.
14846         * modules/wcsncpy: New file.
14847         * lib/wchar.in.h (wcsncpy): New declaration.
14848         * lib/wcsncpy.c: New file.
14849         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14850         * m4/wcsncpy.m4: New file.
14851         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14852         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14853         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14854         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14855         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14856
14857 2011-02-05  Bruno Haible  <bruno@clisp.org>
14858
14859         New module 'wcpcpy'.
14860         * modules/wcpcpy: New file.
14861         * lib/wchar.in.h (wcpcpy): New declaration.
14862         * lib/wcpcpy.c: New file.
14863         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14864         * m4/wcpcpy.m4: New file.
14865         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14866         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14867         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14868         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14869         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14870
14871 2011-02-05  Bruno Haible  <bruno@clisp.org>
14872
14873         New module 'wcscpy'.
14874         * modules/wcscpy: New file.
14875         * lib/wchar.in.h (wcscpy): New declaration.
14876         * lib/wcscpy.c: New file.
14877         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14878         * m4/wcscpy.m4: New file.
14879         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14880         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14881         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14882         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14883         * doc/posix-functions/wcscpy.texi: Mention the new module.
14884
14885 2011-02-05  Bruno Haible  <bruno@clisp.org>
14886
14887         New module 'wcsnlen'.
14888         * modules/wcsnlen: New file.
14889         * lib/wchar.in.h (wcsnlen): New declaration.
14890         * lib/wcsnlen.c: New file.
14891         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14892         * m4/wcsnlen.m4: New file.
14893         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14894         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14895         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14896         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14897         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14898
14899 2011-02-05  Bruno Haible  <bruno@clisp.org>
14900
14901         New module 'wcslen'.
14902         * modules/wcslen: New file.
14903         * lib/wchar.in.h (wcslen): New declaration.
14904         * lib/wcslen.c: New file.
14905         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14906         * m4/wcslen.m4: New file.
14907         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14908         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14909         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14910         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14911         * doc/posix-functions/wcslen.texi: Mention the new module.
14912
14913 2011-02-05  Bruno Haible  <bruno@clisp.org>
14914
14915         New module 'wmemset'.
14916         * modules/wmemset: New file.
14917         * lib/wchar.in.h (wmemset): New declaration.
14918         * lib/wmemset.c: New file.
14919         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14920         * m4/wmemset.m4: New file.
14921         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14922         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14923         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14924         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14925         * doc/posix-functions/wmemset.texi: Mention the new module.
14926
14927 2011-02-05  Bruno Haible  <bruno@clisp.org>
14928
14929         New module 'wmemmove'.
14930         * modules/wmemmove: New file.
14931         * lib/wchar.in.h (wmemmove): New declaration.
14932         * lib/wmemmove.c: New file.
14933         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14934         * m4/wmemmove.m4: New file.
14935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14937         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14938         HAVE_WMEMMOVE.
14939         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14940         * doc/posix-functions/wmemmove.texi: Mention the new module.
14941
14942 2011-02-05  Bruno Haible  <bruno@clisp.org>
14943
14944         New module 'wmemcpy'.
14945         * modules/wmemcpy: New file.
14946         * lib/wchar.in.h (wmemcpy): New declaration.
14947         * lib/wmemcpy.c: New file.
14948         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14949         * m4/wmemcpy.m4: New file.
14950         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14951         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14952         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14953         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14954         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14955
14956 2011-02-05  Bruno Haible  <bruno@clisp.org>
14957
14958         New module 'wmemcmp'.
14959         * modules/wmemcmp: New file.
14960         * lib/wchar.in.h (wmemcmp): New declaration.
14961         * lib/wmemcmp.c: New file.
14962         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14963         * m4/wmemcmp.m4: New file.
14964         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14965         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14966         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14967         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14968         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14969
14970 2011-02-07  Jim Meyering  <meyering@redhat.com>
14971
14972         di-set, ino-map: new modules, from coreutils
14973         * lib/di-set.c: New file.
14974         * lib/di-set.h: Likewise.
14975         * lib/ino-map.c: Likewise.
14976         * lib/ino-map.h: Likewise.
14977         * modules/di-set: Likewise.
14978         * modules/di-set-tests: Likewise.
14979         * modules/ino-map: Likewise.
14980         * modules/ino-map-tests: Likewise.
14981         * tests/test-di-set.c: Likewise.
14982         * tests/test-ino-map.c: Likewise.
14983
14984 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14985
14986         getloadavg: merge minor changes from Emacs
14987
14988         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14989         (getloadavg): Use memset, not bzero.
14990
14991         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14992         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14993         clash (bug#86).
14994
14995 2010-11-14  Bruno Haible  <bruno@clisp.org>
14996
14997         Allow multiple gnulib generated replacements to coexist.
14998         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14999         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15000         * lib/langinfo.in.h (nl_item): Likewise.
15001         * lib/math.in.h (_NaN, NAN): Likewise.
15002         * lib/netdb.in.h (struct addrinfo): Likewise.
15003         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15004         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15005         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15006         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15007         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15008         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15009         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15010         pthread_mutexattr_init, pthread_mutexattr_settype,
15011         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15012         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15013         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15014         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15015         * lib/sched.in.h (struct sched_param): Likewise.
15016         * lib/se-selinux.in.h (security_class_t, security_context_t,
15017         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15018         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15019         lsetfilecon, fsetfilecon, security_check_context,
15020         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15021         Likewise.
15022         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15023         Likewise.
15024         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15025         _gl_function_taking_int_returning_void_t, union sigval,
15026         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15027         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15028         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15029         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15030         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15031         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15032         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15033         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15034         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15035         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15036         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15037         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15038         socklen_t, rpl_fd_isset): Likewise.
15039         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15040         * lib/sys_time.in.h (struct timeval): Likewise.
15041         * lib/sys_times.in.h (struct tms): Likewise.
15042         * lib/sys_utsname.in.h (struct utsname):
15043         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15044         * lib/unistd.in.h (getpagesize): Likewise.
15045         * lib/wchar.in.h (mbstate_t): Likewise.
15046         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15047         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15048         towlower, towupper): Likewise.
15049         Reported by Sam Steingold <sds@gnu.org>.
15050
15051 2011-02-05  Eric Blake  <eblake@redhat.com>
15052
15053         unsetenv: work around Haiku issues
15054         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15055         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15056
15057 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15058
15059         libposix: avoid calling error() within libposix
15060         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15061         is defined.
15062
15063 2011-02-05  Eric Blake  <eblake@redhat.com>
15064
15065         strerror_r-posix: port to cygwin
15066         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15067         implementation.
15068         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15069         * tests/test-strerror_r.c (main): Fix test.
15070         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15071         issue.
15072
15073 2011-02-05  Bruno Haible  <bruno@clisp.org>
15074
15075         New module 'wmemchr'.
15076         * modules/wmemchr: New file.
15077         * lib/wchar.in.h (wmemchr): New declaration.
15078         * lib/wmemchr.c: New file.
15079         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15080         * m4/wmemchr.m4: New file.
15081         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15082         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15083         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15084         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15085         * doc/posix-functions/wmemchr.texi: Mention the new module.
15086
15087 2011-02-04  Eric Blake  <eblake@redhat.com>
15088
15089         fdopendir: detect FreeBSD bug
15090         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15091         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15092
15093 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15094
15095         stdbool: do not define HAVE_STDBOOL_H
15096         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15097         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15098         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15099         imported from the latest Autoconf git.  It was motivated by Emacs,
15100         which uses gnulib but does not need HAVE_STDBOOL_H.
15101
15102 2011-02-04  Bruno Haible  <bruno@clisp.org>
15103
15104         wcsnrtombs: Prepare for new module wwcsnrtombs.
15105         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15106         * lib/wcsnrtombs.c: Include it.
15107         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15108
15109         wcsrtombs: Prepare for new module wwcsrtombs.
15110         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15111         * lib/wcsrtombs.c: Include it.
15112         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15113
15114         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15115         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15116         * lib/mbsnrtowcs.c: Include it.
15117         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15118
15119         mbsrtowcs: Prepare for new module mbsrtowwcs.
15120         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15121         * lib/mbsrtowcs.c: Include it.
15122         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15123
15124 2011-02-04  Bruno Haible  <bruno@clisp.org>
15125
15126         vasnprintf: Reduce use of malloc for small format strings.
15127         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15128         (arguments): Add room for the first 7 arguments.
15129         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15130         (char_directives, u8_directives, u16_directives, u32_directives): Add
15131         room for the first 7 directives.
15132         * lib/printf-parse.c: Include <string.h>.
15133         (PRINTF_PARSE): Change memory handling code so that it uses the first
15134         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15135         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15136         Reported by Pádraig Brady <P@draigbrady.com>.
15137
15138 2011-01-31  Eric Blake  <eblake@redhat.com>
15139
15140         dup2: work around Haiku bug
15141         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15142         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15143         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15144         * tests/test-dup2.c (main): Enhance test.
15145
15146 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15147
15148         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15149         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15150         declared by eglibc 2.11.2.
15151         * lib/stdio.in.h: Likewise.
15152
15153 2011-01-31  Eric Blake  <eblake@redhat.com>
15154
15155         ignore-value: add missing test dependency
15156         * tests/test-ignore-value.c: Revert previous change; stdio.h
15157         provides off_t.
15158         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15159
15160 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15161
15162         mktime: clarify long_int width checking
15163         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15164         the top level, to make it clearer that the assumption about
15165         long_int width is being checked.  See
15166         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15167
15168 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15169
15170         ignore-value: Fix self-test.
15171         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15172
15173 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15174
15175         TYPE_MAXIMUM: avoid theoretically undefined behavior
15176         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15177         negative number, which the C Standard says has undefined behavior.
15178         In practice this is not a problem, but might as well do it by the book.
15179         Reported by Rich Felker and Eric Blake; see
15180         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15181         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15182         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15183         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15184         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15185         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15186         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15187
15188         mktime: #undef mktime before #defining it
15189         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15190
15191         mktime: systematically normalize tm_isdst comparisons
15192         * lib/mktime.c (isdst_differ): New function.
15193         (__mktime_internal): Use it systematically for all isdst comparisons.
15194         This completes the fix for libc BZ #6723, and removes the need for
15195         normalizing tm_isdst.  See
15196         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15197         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15198
15199         mktime: fix some integer overflow issues and sidestep the rest
15200
15201         This was prompted by a bug report by Benjamin Lindner for MinGW
15202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15203         His bug is due to signed integer overflow (0 - INT_MIN), and I
15204         I scanned through mktime.c looking for other integer overflow
15205         problems, fixing all the bugs I found.
15206
15207         Although the C Standard says the resulting code is still not safe
15208         in the presence of integer overflow, in practice it should be good
15209         enough for all real-world two's-complement implementations, except
15210         for debugging environments that deliberately trap on integer
15211         overflow (e.g., gcc -ftrapv).
15212
15213         * lib/mktime.c (WRAPV): New macro.
15214         (SHR): Also check that long_int and time_t shift right in the
15215         usual way, before using the fast-but-unportable method.
15216         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15217         used.  The code already assumed two's complement, so there's
15218         no need to test for alternatives.  All uses removed.
15219         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15220         the C standard.  Problem reported by Rich Felker in
15221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15222         (twos_complement_arithmetic): Also check long_int and time_t.
15223         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15224         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15225         (__mktime_internal): Avoid integer overflow with unary subtraction
15226         in two instances where -1 - X is an adequate replacement for -X,
15227         since the calculations are approximate.
15228
15229 2011-01-29  Eric Blake  <eblake@redhat.com>
15230
15231         mktime: avoid infinite loop
15232         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15233         type; behavior is still undefined but portable to all known targets.
15234         Reported by Rich Felker.
15235
15236 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15237
15238         rename, unlink, same-inode: Relicense.
15239         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15240         * modules/unlink (License): Likewise.
15241         * modules/same-inode (License): Likewise.
15242
15243 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15244
15245         mktime: avoid problems on NetBSD 5 / i386
15246         * lib/mktime.c (long_int): New type.  This works around a problem
15247         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15248         but time_t is 64 bits, and where I expect the existing code is
15249         wrong in some cases.
15250         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15251         (ydhms_diff): Bring back the compile-time check for wide-enough
15252         year and yday.
15253
15254         mktime: fix misspelling in comment
15255         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15256         This merges all recent glibc changes of importance.
15257
15258 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15259
15260         move-if-change: cope with concurrent mv of identical file.
15261         * build-aux/move-if-change (CMPPROG): Accept environment
15262         variable as an override for `cmp'.
15263         (usage): Document CMPPROG.
15264         Adjust comparison to drop stdout.  Cope with failure of mv if
15265         the target file exists and is identical to the source, for
15266         parallel builds.
15267         Report from H.J. Lu against binutils in PR binutils/12283.
15268
15269 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15270
15271         * users.txt: Mention sharutils.
15272
15273 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15274
15275         * users.txt: Mention OATH Toolkit.
15276
15277 2011-01-27  Bruno Haible  <bruno@clisp.org>
15278
15279         Prepare for supporting FreeBSD 10.
15280         * build-aux/config.libpath: Remove handling of freebsd1*.
15281
15282 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15283
15284         Prepare for supporting FreeBSD 10.
15285         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15286         match FreeBSD 10.0.
15287
15288 2011-01-27  Bruno Haible  <bruno@clisp.org>
15289
15290         vma-iter, get-rusage-as: Add OpenBSD support.
15291         * modules/vma-iter (configure.ac): Test for mquery.
15292         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15293         * lib/vma-iter.c: Include <sys/mman.h>.
15294         (vma_iterate): Add an implementation based on mquery().
15295         * lib/resource-ext.h (get_rusage_as): Update comments.
15296         * lib/get-rusage-as.c: Likewise.
15297         * lib/get-rusage-data.c: Likewise.
15298
15299 2011-01-26  Karl Berry  <karl@gnu.org>
15300
15301         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15302         variables to make it easier to override the makeinfo program used.
15303
15304 2011-01-26  Eric Blake  <eblake@redhat.com>
15305
15306         fcntl: work around Haiku F_DUPFD bugs
15307         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15308         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15309         cloexec bit on duplication.
15310         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15311
15312 2011-01-26  Bruno Haible  <bruno@clisp.org>
15313
15314         Enable memory leak tests on AIX.
15315         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15316         * tests/test-fprintf-posix3.c (main): Likewise.
15317
15318 2011-01-26  Bruno Haible  <bruno@clisp.org>
15319
15320         Tests for module 'get-rusage-data'.
15321         * modules/get-rusage-data-tests: New file.
15322         * tests/test-get-rusage-data.c: New file.
15323
15324         New module 'get-rusage-data'.
15325         * lib/resource-ext.h (get_rusage_data): New declaration.
15326         * lib/get-rusage-data.c: New file.
15327         * modules/get-rusage-data: New file.
15328
15329 2011-01-25  Bruno Haible  <bruno@clisp.org>
15330
15331         get-rusage-as: Allow for easier testing.
15332         * lib/resource-ext.h (get_rusage_as): Add comment.
15333         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15334         (main): New function for interactive testing.
15335
15336 2011-01-25  Bruno Haible  <bruno@clisp.org>
15337
15338         vma-iter: Treat Haiku like BeOS.
15339         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15340         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15341
15342 2011-01-25  Eric Blake  <eblake@redhat.com>
15343
15344         c-stack: fix regression on cygwin when libsigsegv is present
15345         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15346
15347 2011-01-24  Bruno Haible  <bruno@clisp.org>
15348
15349         vma-iter: Avoid empty intervals.
15350         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15351         on an empty interval.
15352
15353 2011-01-24  Jim Meyering  <meyering@redhat.com>
15354
15355         u64: remove unnecessary #include
15356         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15357
15358 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15359
15360         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15361         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15362
15363 2011-01-23  Bruno Haible  <bruno@clisp.org>
15364
15365         New module 'vma-iter'.
15366         * lib/vma-iter.h: New file.
15367         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15368         * modules/vma-iter: New file.
15369         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15370         for get_rusage_as_via_iterator.
15371         (vma_iterate_callback): New function.
15372         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15373         * modules/get-rusage-as (Depends-on): Add vma-iter.
15374
15375 2011-01-23  Bruno Haible  <bruno@clisp.org>
15376
15377         uninorm: Tweak includes.
15378         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15379         Reported by Jim Meyering.
15380
15381 2011-01-23  Bruno Haible  <bruno@clisp.org>
15382
15383         get-rusage-as: Improve on NetBSD.
15384         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15385         /proc, like on FreeBSD.
15386
15387 2011-01-23  Jim Meyering  <meyering@redhat.com>
15388
15389         xreadlink.h: remove unnecessary #include
15390         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15391
15392         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15393         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15394
15395 2011-01-23  Bruno Haible  <bruno@clisp.org>
15396
15397         get-rusage-as: Fix bug.
15398         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15399         original limit when aborting the first loop.
15400
15401 2011-01-23  Bruno Haible  <bruno@clisp.org>
15402
15403         wctype: Ensure valid C syntax.
15404         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15405         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15406
15407 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15408
15409         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15410         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15411         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15412         as they are needed only for configure's test case.
15413         This removes two unnecessary symbols from config.h.
15414
15415         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15416         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15417         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15418         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15419         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15420         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15421         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15422         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15423         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15424         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15425         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15426         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15427         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15428         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15429         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15430         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15431         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15432         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15433
15434 2011-01-21  Eric Blake  <eblake@redhat.com>
15435
15436         maintainer-makefile: work with older git for submodule check
15437         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15438         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15439         Reported by Matthias Bolte.
15440
15441         bootstrap: minor portability fixes
15442         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15443         (usage): Omit leading capital and trailing . on help phrases, per
15444         GNU Coding Standards.
15445         (check_versions, top level): Prefix messages with script name.
15446
15447 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15448
15449         bootstrap: support --no-git option
15450         * build-aux/bootstrap: Add --no-git option, to be used when
15451         --gnulib-srcdir points to the exact desired checkout.
15452
15453 2011-01-21  Eric Blake  <eblake@redhat.com>
15454
15455         strerror_r-posix: work with glibc 2.13
15456         * lib/strerror_r.c (strerror_r): Fix return type.
15457
15458 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15459             Bruno Haible  <bruno@clisp.org>
15460
15461         uN_strstr: New unit tests.
15462         * modules/unistr/u8-strstr-tests: New file.
15463         * modules/unistr/u16-strstr-tests: New file.
15464         * modules/unistr/u32-strstr-tests: New file.
15465         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15466         * tests/unistr/test-u8-strstr.c: New file.
15467         * tests/unistr/test-u16-strstr.c: New file.
15468         * tests/unistr/test-u32-strstr.c: New file.
15469
15470 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15471             Bruno Haible  <bruno@clisp.org>
15472
15473         Make uN_strstr functions O(n) worst-case.
15474         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15475         16-bit and 32-bit unit cases, use the unibyte algorithm from
15476         lib/mbsstr.c.
15477         * lib/unistr/u8-strstr.c: Include <string.h>.
15478         (UNIT_IS_UINT8_T): New macro.
15479         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15480         (U_STRLEN, U_STRNLEN): New macros.
15481         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15482         (U_STRLEN, U_STRNLEN): New macros.
15483         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15484         (configure.ac): Update required libunistring version.
15485         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15486         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15487         malloca.
15488         (configure.ac): Update required libunistring version.
15489         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15490         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15491         malloca.
15492         (configure.ac): Update required libunistring version.
15493
15494 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15495             Bruno Haible  <bruno@clisp.org>
15496
15497         Prepare for faster uN_strstr functions.
15498         * lib/str-kmp.h: Support definable UNITs.
15499         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15500         needle_len argument.
15501         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15502         * lib/mbscasestr.c (mbscasestr): Likewise.
15503
15504 2011-01-21  Pádraig Brady <P@draigBrady.com>
15505
15506         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15507         * tests/test-malloca.c (main): Unset the environment variable
15508         to greatly speed up the test.
15509         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15510         * modules/malloca-tests: Depend on unsetenv.
15511
15512 2011-01-21  Pádraig Brady <P@draigBrady.com>
15513
15514         ignore-value: remove stdint dependency
15515         * lib/ignore-value.h: Remove <stdint.h>
15516         * modules/ignore-value: Remove stdint dependency.
15517
15518 2011-01-21  Jim Meyering  <meyering@redhat.com>
15519
15520         maint.mk: adjust variable name to be consistent with other gl_ vars
15521         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15522         to be lower case.
15523
15524 2011-01-20  Jim Meyering  <meyering@redhat.com>
15525
15526         maint.mk: make "check" depend on public-submodule-commit by default
15527         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15528
15529 2011-01-20  Bruno Haible  <bruno@clisp.org>
15530
15531         mbfile, mbiter: Complete change from 2008-12-21.
15532         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15533         * m4/mbiter.m4 (gl_MBITER): Likewise.
15534
15535 2011-01-20  Jim Meyering  <meyering@redhat.com>
15536
15537         init.sh: insert space between each function name and "()"
15538         * tests/init.sh: Make it a little easier to see that a function's
15539         name is "warn_", and not "warn" when looking at the first part of
15540         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15541
15542 2011-01-20  Jim Meyering  <meyering@redhat.com>
15543
15544         mountlist: clean up code formatting
15545         * lib/mountlist.c (read_file_system_list): Split a long line,
15546         correct bracing style, use NULL in place of "(struct statfs *)0",
15547         don't parenthesize return value, add spaces around "=" and after
15548         ";-in-for-stmt".
15549
15550 2011-01-14  Markus Duft <mduft@gentoo.org>
15551
15552         mountlist: add support for Interix
15553         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15554         Apply statvfs to all entries of /dev/fs.
15555         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15556         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15557
15558 2011-01-20  Jim Meyering  <meyering@redhat.com>
15559
15560         maint.mk: improve the public-submodule-commit rule
15561         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15562         to suppress printing of its commands... unless V=1.
15563         Add git submodule's --quiet option to suppress printing of e.g.,
15564         "Entering gnulib" output.
15565         "cd" into $(srcdir) before running git submodule.
15566
15567 2011-01-20  Bruno Haible  <bruno@clisp.org>
15568
15569         include_next: Fix bug introduced on 2011-01-18.
15570         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15571         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15572         ac_cv_header_... variable if the second argument is not 'check'.
15573         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15574         gl_NEXT_HEADERS_INTERNAL.
15575
15576 2011-01-20  Bruno Haible  <bruno@clisp.org>
15577
15578         Allow the user to avoid the GNULIB_TEST_* macros.
15579         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15580         Suggested by Paul Eggert.
15581
15582 2011-01-14  Jim Meyering  <meyering@redhat.com>
15583
15584         bootstrap: avoid failure when there is no .gitmodules file
15585         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15586         has been assigned to, even when its value is the empty string.
15587         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15588         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15589         Reported by John W. Eaton <jwe@gnu.org>.
15590
15591 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15592
15593         assume <ctype.h>, ..., <time.h> exist
15594         For years gnulib has been assuming the existence of the headers
15595         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15596         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15597         them, since they don't appear to be needed.
15598         * README (Portability guidelines): Document this.
15599         * lib/flock.c: Assume <fcntl.h> exists.
15600         * lib/regex_internal.h: Assume <locale.h> exists.
15601         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15602         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15603         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15604         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15605         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15606         * m4/regex.m4 (gl_REGEX): Likewise.
15607         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15608         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15609         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15610         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15611         * tests/test-argp.c: Likewise.
15612         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15613
15614         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15615         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15616         AA_APPLE_UNIVERSAL_BUILD.  See
15617         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15618         * NEWS: Document this.
15619
15620 2011-01-19  Eric Blake  <eblake@redhat.com>
15621
15622         c-stack: assume stack overflow if SA_SIGINFO unsupported
15623         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15624         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15625         sigaction will work.
15626         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15627         behavior match Linux.
15628         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15629
15630         stdbool-tests: accomodate Haiku
15631         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15632
15633         binary-io: fix O_TEXT on Haiku
15634         * modules/binary-io (Depends-on): Add fcntl-h.
15635         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15636         than blindly undefining O_TEXT.
15637         Reported by Scott McCreary.
15638
15639 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15640
15641         include_next: do not check for standard headers like stddef.h
15642
15643         I found this problem when modifying Emacs to use gnulib.
15644         I noticed that it added HAVE_STDDEF_H to config.h, even though
15645         gnulib always assumes <stddef.h> exists as per README and this
15646         symbol is unnecessary.
15647         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15648         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15649         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15650         faster for headers like stddef.h that are known to exist.
15651         (gl_CHECK_NEXT_HEADERS): Use it.
15652         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15653         rather than gl_CHECK_NEXT_HEADERS.
15654         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15655         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15656
15657 2011-01-18  Eric Blake  <eblake@redhat.com>
15658
15659         ansi-c++-opt: skip C++ dependency style if C++ is unused
15660         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15661         tests when we know C++ compilation is not desired.
15662         Reported by Scott McCreary.
15663
15664 2011-01-18  Bruno Haible  <bruno@clisp.org>
15665
15666         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15667         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15668         (main): Perform test also when getrlimit and setrlimit don't exist or
15669         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15670         limiting the address space size using setrlimit, compare the address
15671         space size before and after the the test.
15672         * tests/test-dprintf-posix2.c: Likewise.
15673         * tests/test-fprintf-posix3.sh: Update skip messages.
15674         * tests/test-dprintf-posix2.sh: Likewise.
15675         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15676         * modules/dprintf-posix-tests (Depends-on): Likewise.
15677         Reported by Bruce Korb <bkorb@gnu.org> and
15678         Gary V. Vaughan <gary@gnu.org>.
15679
15680 2011-01-18  Bruno Haible  <bruno@clisp.org>
15681
15682         get-rusage-as: Improvement for Cygwin.
15683         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15684         areas that are merely reserved.
15685
15686 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15687
15688         strftime: remove dependencies on multibyte modules
15689
15690         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15691         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15692         only if __osf__ is defined, and I suspect OSF doesn't need these
15693         other modules.  If my guess is wrong, we'll need to come up with a
15694         variant of strftime that doesn't need the multibyte modules.
15695
15696         I discovered this problem when attempting modify Emacs to use the
15697         strftime module.  With the previous gnulib, this caused Emacs to
15698         need 31 new files, ranging from lib/config.charset to
15699         m4/wint_t.m4.  This was overkill and I expect would be offputting
15700         to the Emacs maintainers.  After this change, only 6 new files are
15701         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15702         stdbool.m4, and tm_gmtoff.m4.
15703
15704         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15705         Suggested by Bruno Haible in
15706         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15707         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15708         and do not check for wchar.h.
15709         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15710         (Depends-on): Remove mbrlen, mbsinit, wchar.
15711
15712 2011-01-18  Bruno Haible  <bruno@clisp.org>
15713
15714         Tests for module 'get-rusage-as'.
15715         * modules/get-rusage-as-tests: New file.
15716         * tests/test-get-rusage-as.c: New file.
15717
15718         New module 'get-rusage-as'.
15719         * modules/get-rusage-as: New file.
15720         * lib/resource-ext.h: New file.
15721         * lib/get-rusage-as.c: New file.
15722
15723 2011-01-17  Eric Blake  <eblake@redhat.com>
15724
15725         sigaction: relax license from LGPLv3+ to LGPLv2+
15726         * modules/sigaction (License): Relax to LGPLv2+.
15727
15728 2011-01-14  Bruno Haible  <bruno@clisp.org>
15729
15730         filemode: Make function declarations usable in C++ mode.
15731         * lib/filemode.h: Enclose function declarations in extern "C" block.
15732         Reported by John W. Eaton <jwe@gnu.org>.
15733
15734 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15735
15736         save-cwd: no longer include "xgetcwd.h"
15737         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15738         This avoids a compilation failure in projects that use save-cwd
15739         without also using the xgetcwd module.
15740
15741 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15742
15743         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15744         This is so that a program like Emacs, which needs only dtoastr,
15745         does not have to bother with distributing and compiling ftoastr
15746         and ldtoastr.
15747         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15748         * modules/dtoastr, modules/ldtoastr: New files.
15749         * modules/ftoastr: Now works just for 'float'.
15750         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15751         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15752         dtoastr.c, ldtoastr.c.
15753
15754 2011-01-11  Jim Meyering  <meyering@redhat.com>
15755
15756         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15757         There is no need to work around the lack of the fchdir function,
15758         since gnulib can now provide a replacement when required.
15759         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15760         * modules/save-cwd (Depends-on): Add fchdir.
15761
15762 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15763
15764         openat, save-cwd: avoid xmalloc
15765
15766         This removes a direct (but undocumented) dependency of openat on
15767         xalloc, along with an indirect dependency via save-cwd.  It also
15768         removes a dependency of save-cwd on xgetcwd, and thereby
15769         indirectly on xalloc.  This change causes the openat substitute
15770         to fall back on save_cwd when memory is tight, and for save_cwd to
15771         fail instead of dying when memory is tight, but that's good enough.
15772         Problem and initial idea for fix reported by Bastien Roucaries in
15773         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15774
15775         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15776         xalloc.h (for xmalloc).
15777         (openat_proc_name): Use malloc, not xmalloc.
15778         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15779         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15780
15781         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15782         This avoids heap allocation for file names whose lengths are in
15783         the range 512..1023, with the upper bound increasing to at most
15784         4031 depending on the platform's PATH_MAX.  (We do not want
15785         pathmax.h here as it might supply a non-constant PATH_MAX.)
15786         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15787         Perhaps they should be moved to malloca.h?
15788         (OPENAT_BUFFER_SIZE): Use them.
15789
15790 2011-01-10  Bruno Haible  <bruno@clisp.org>
15791
15792         doc: Update users.txt.
15793         * users.txt: Add recutils.
15794
15795 2011-01-09  Karl Berry  <karl@gnu.org>
15796
15797         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15798
15799         * doc/configmake.texi: New file.
15800         * doc/gnulib.texi: Include it.
15801         * modules/configmake: Move documentation from here.
15802
15803 2011-01-09  Bruno Haible  <bruno@clisp.org>
15804
15805         Update to Unicode 6.0.0.
15806         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15807         (get_lbp): Update for Unicode 6.0.0.
15808         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15809         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15810         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15811         U+11001, U+11038..U+11046. Remove U+06DE.
15812         (uc_width): Fix bounds of planes.
15813         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15814         lib/uniwidth/width.c.
15815         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15816         trailing whitespace removed.
15817         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15818         without comments, but with the original copyright notice.
15819         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15820         * lib/unicase/ignorable.h: Likewise.
15821         * lib/unicase/tocasefold.h: Likewise.
15822         * lib/unicase/tolower.h: Likewise.
15823         * lib/unicase/totitle.h: Likewise.
15824         * lib/unicase/toupper.h: Likewise.
15825         * lib/unictype/bidi_of.h: Likewise.
15826         * lib/unictype/blocks.h: Likewise.
15827         * lib/unictype/categ_C.h: Likewise.
15828         * lib/unictype/categ_Cn.h: Likewise.
15829         * lib/unictype/categ_L.h: Likewise.
15830         * lib/unictype/categ_Ll.h: Likewise.
15831         * lib/unictype/categ_Lm.h: Likewise.
15832         * lib/unictype/categ_Lo.h: Likewise.
15833         * lib/unictype/categ_Lu.h: Likewise.
15834         * lib/unictype/categ_M.h: Likewise.
15835         * lib/unictype/categ_Mc.h: Likewise.
15836         * lib/unictype/categ_Me.h: Likewise.
15837         * lib/unictype/categ_Mn.h: Likewise.
15838         * lib/unictype/categ_N.h: Likewise.
15839         * lib/unictype/categ_Nd.h: Likewise.
15840         * lib/unictype/categ_No.h: Likewise.
15841         * lib/unictype/categ_P.h: Likewise.
15842         * lib/unictype/categ_Po.h: Likewise.
15843         * lib/unictype/categ_S.h: Likewise.
15844         * lib/unictype/categ_Sc.h: Likewise.
15845         * lib/unictype/categ_Sk.h: Likewise.
15846         * lib/unictype/categ_Sm.h: Likewise.
15847         * lib/unictype/categ_So.h: Likewise.
15848         * lib/unictype/categ_of.h: Likewise.
15849         * lib/unictype/combining.h: Likewise.
15850         * lib/unictype/ctype_alnum.h: Likewise.
15851         * lib/unictype/ctype_alpha.h: Likewise.
15852         * lib/unictype/ctype_graph.h: Likewise.
15853         * lib/unictype/ctype_lower.h: Likewise.
15854         * lib/unictype/ctype_print.h: Likewise.
15855         * lib/unictype/ctype_punct.h: Likewise.
15856         * lib/unictype/ctype_upper.h: Likewise.
15857         * lib/unictype/decdigit.h: Likewise.
15858         * lib/unictype/digit.h: Likewise.
15859         * lib/unictype/numeric.h: Likewise.
15860         * lib/unictype/pr_alphabetic.h: Likewise.
15861         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15862         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15863         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15864         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15865         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15866         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15867         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15868         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15869         * lib/unictype/pr_case_ignorable.h: Likewise.
15870         * lib/unictype/pr_cased.h: Likewise.
15871         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15872         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15873         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15874         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15875         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15876         * lib/unictype/pr_combining.h: Likewise.
15877         * lib/unictype/pr_composite.h: Likewise.
15878         * lib/unictype/pr_currency_symbol.h: Likewise.
15879         * lib/unictype/pr_decimal_digit.h: Likewise.
15880         * lib/unictype/pr_deprecated.h: Likewise.
15881         * lib/unictype/pr_format_control.h: Likewise.
15882         * lib/unictype/pr_grapheme_base.h: Likewise.
15883         * lib/unictype/pr_grapheme_extend.h: Likewise.
15884         * lib/unictype/pr_grapheme_link.h: Likewise.
15885         * lib/unictype/pr_id_continue.h: Likewise.
15886         * lib/unictype/pr_id_start.h: Likewise.
15887         * lib/unictype/pr_ideographic.h: Likewise.
15888         * lib/unictype/pr_lowercase.h: Likewise.
15889         * lib/unictype/pr_math.h: Likewise.
15890         * lib/unictype/pr_numeric.h: Likewise.
15891         * lib/unictype/pr_other_alphabetic.h: Likewise.
15892         * lib/unictype/pr_other_id_continue.h: Likewise.
15893         * lib/unictype/pr_other_math.h: Likewise.
15894         * lib/unictype/pr_punctuation.h: Likewise.
15895         * lib/unictype/pr_sentence_terminal.h: Likewise.
15896         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15897         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15898         * lib/unictype/pr_unified_ideograph.h: Likewise.
15899         * lib/unictype/pr_uppercase.h: Likewise.
15900         * lib/unictype/pr_xid_continue.h: Likewise.
15901         * lib/unictype/pr_xid_start.h: Likewise.
15902         * lib/unictype/scripts.h: Likewise.
15903         * lib/unictype/scripts_byname.gperf: Likewise.
15904         * lib/unictype/sy_java_ident.h: Likewise.
15905         * lib/unigbrk/gbrkprop.h: Likewise.
15906         * lib/unilbrk/lbrkprop1.h: Likewise.
15907         * lib/unilbrk/lbrkprop2.h: Likewise.
15908         * lib/uninorm/decomposition-table2.h: Likewise.
15909         * lib/uniwbrk/wbrkprop.h: Likewise.
15910         * tests/unicase/test-cased.c: Likewise.
15911         * tests/unicase/test-ignorable.c: Likewise.
15912         * tests/unicase/test-uc_tolower.c: Likewise.
15913         * tests/unicase/test-uc_totitle.c: Likewise.
15914         * tests/unicase/test-uc_toupper.c: Likewise.
15915         * tests/unictype/test-categ_C.c: Likewise.
15916         * tests/unictype/test-categ_Cn.c: Likewise.
15917         * tests/unictype/test-categ_L.c: Likewise.
15918         * tests/unictype/test-categ_Ll.c: Likewise.
15919         * tests/unictype/test-categ_Lm.c: Likewise.
15920         * tests/unictype/test-categ_Lo.c: Likewise.
15921         * tests/unictype/test-categ_Lu.c: Likewise.
15922         * tests/unictype/test-categ_M.c: Likewise.
15923         * tests/unictype/test-categ_Mc.c: Likewise.
15924         * tests/unictype/test-categ_Me.c: Likewise.
15925         * tests/unictype/test-categ_Mn.c: Likewise.
15926         * tests/unictype/test-categ_N.c: Likewise.
15927         * tests/unictype/test-categ_Nd.c: Likewise.
15928         * tests/unictype/test-categ_No.c: Likewise.
15929         * tests/unictype/test-categ_P.c: Likewise.
15930         * tests/unictype/test-categ_Po.c: Likewise.
15931         * tests/unictype/test-categ_S.c: Likewise.
15932         * tests/unictype/test-categ_Sc.c: Likewise.
15933         * tests/unictype/test-categ_Sk.c: Likewise.
15934         * tests/unictype/test-categ_Sm.c: Likewise.
15935         * tests/unictype/test-categ_So.c: Likewise.
15936         * tests/unictype/test-ctype_alnum.c: Likewise.
15937         * tests/unictype/test-ctype_alpha.c: Likewise.
15938         * tests/unictype/test-ctype_graph.c: Likewise.
15939         * tests/unictype/test-ctype_lower.c: Likewise.
15940         * tests/unictype/test-ctype_print.c: Likewise.
15941         * tests/unictype/test-ctype_punct.c: Likewise.
15942         * tests/unictype/test-ctype_upper.c: Likewise.
15943         * tests/unictype/test-decdigit.h: Likewise.
15944         * tests/unictype/test-digit.h: Likewise.
15945         * tests/unictype/test-numeric.h: Likewise.
15946         * tests/unictype/test-pr_alphabetic.c: Likewise.
15947         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15948         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15949         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15950         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15951         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15952         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15953         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15954         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15955         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15956         * tests/unictype/test-pr_cased.c: Likewise.
15957         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15958         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15959         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15960         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15961         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15962         * tests/unictype/test-pr_combining.c: Likewise.
15963         * tests/unictype/test-pr_composite.c: Likewise.
15964         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15965         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15966         * tests/unictype/test-pr_deprecated.c: Likewise.
15967         * tests/unictype/test-pr_format_control.c: Likewise.
15968         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15969         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15970         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15971         * tests/unictype/test-pr_id_continue.c: Likewise.
15972         * tests/unictype/test-pr_id_start.c: Likewise.
15973         * tests/unictype/test-pr_ideographic.c: Likewise.
15974         * tests/unictype/test-pr_lowercase.c: Likewise.
15975         * tests/unictype/test-pr_math.c: Likewise.
15976         * tests/unictype/test-pr_numeric.c: Likewise.
15977         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15978         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15979         * tests/unictype/test-pr_other_math.c: Likewise.
15980         * tests/unictype/test-pr_punctuation.c: Likewise.
15981         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15982         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15983         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15984         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15985         * tests/unictype/test-pr_uppercase.c: Likewise.
15986         * tests/unictype/test-pr_xid_continue.c: Likewise.
15987         * tests/unictype/test-pr_xid_start.c: Likewise.
15988         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15989         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15990         changes.
15991         * lib/unictype/categ_Cc.h: Likewise.
15992         * lib/unictype/categ_Cf.h: Likewise.
15993         * lib/unictype/categ_Co.h: Likewise.
15994         * lib/unictype/categ_Cs.h: Likewise.
15995         * lib/unictype/categ_Lt.h: Likewise.
15996         * lib/unictype/categ_Nl.h: Likewise.
15997         * lib/unictype/categ_Pc.h: Likewise.
15998         * lib/unictype/categ_Pd.h: Likewise.
15999         * lib/unictype/categ_Pe.h: Likewise.
16000         * lib/unictype/categ_Pf.h: Likewise.
16001         * lib/unictype/categ_Pi.h: Likewise.
16002         * lib/unictype/categ_Ps.h: Likewise.
16003         * lib/unictype/categ_Z.h: Likewise.
16004         * lib/unictype/categ_Zl.h: Likewise.
16005         * lib/unictype/categ_Zp.h: Likewise.
16006         * lib/unictype/categ_Zs.h: Likewise.
16007         * lib/unictype/ctype_blank.h: Likewise.
16008         * lib/unictype/ctype_cntrl.h: Likewise.
16009         * lib/unictype/ctype_digit.h: Likewise.
16010         * lib/unictype/ctype_space.h: Likewise.
16011         * lib/unictype/ctype_xdigit.h: Likewise.
16012         * lib/unictype/mirror.h: Likewise.
16013         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16014         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16015         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16016         * lib/unictype/pr_bidi_control.h: Likewise.
16017         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16018         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16019         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16020         * lib/unictype/pr_bidi_pdf.h: Likewise.
16021         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16022         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16023         * lib/unictype/pr_dash.h: Likewise.
16024         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16025         * lib/unictype/pr_diacritic.h: Likewise.
16026         * lib/unictype/pr_extender.h: Likewise.
16027         * lib/unictype/pr_hex_digit.h: Likewise.
16028         * lib/unictype/pr_hyphen.h: Likewise.
16029         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16030         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16031         * lib/unictype/pr_ignorable_control.h: Likewise.
16032         * lib/unictype/pr_iso_control.h: Likewise.
16033         * lib/unictype/pr_join_control.h: Likewise.
16034         * lib/unictype/pr_left_of_pair.h: Likewise.
16035         * lib/unictype/pr_line_separator.h: Likewise.
16036         * lib/unictype/pr_logical_order_exception.h: Likewise.
16037         * lib/unictype/pr_non_break.h: Likewise.
16038         * lib/unictype/pr_not_a_character.h: Likewise.
16039         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16040         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16041         * lib/unictype/pr_other_id_start.h: Likewise.
16042         * lib/unictype/pr_other_lowercase.h: Likewise.
16043         * lib/unictype/pr_other_uppercase.h: Likewise.
16044         * lib/unictype/pr_paired_punctuation.h: Likewise.
16045         * lib/unictype/pr_paragraph_separator.h: Likewise.
16046         * lib/unictype/pr_pattern_syntax.h: Likewise.
16047         * lib/unictype/pr_pattern_white_space.h: Likewise.
16048         * lib/unictype/pr_private_use.h: Likewise.
16049         * lib/unictype/pr_quotation_mark.h: Likewise.
16050         * lib/unictype/pr_radical.h: Likewise.
16051         * lib/unictype/pr_soft_dotted.h: Likewise.
16052         * lib/unictype/pr_space.h: Likewise.
16053         * lib/unictype/pr_titlecase.h: Likewise.
16054         * lib/unictype/pr_variation_selector.h: Likewise.
16055         * lib/unictype/pr_white_space.h: Likewise.
16056         * lib/unictype/pr_zero_width.h: Likewise.
16057         * lib/unictype/sy_c_ident.h: Likewise.
16058         * lib/unictype/sy_c_whitespace.h: Likewise.
16059         * lib/unictype/sy_java_whitespace.h: Likewise.
16060         * lib/uninorm/composition-table.gperf: Likewise.
16061         * lib/uninorm/decomposition-table1.h: Likewise.
16062         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16063         LB8.
16064         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16065         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16066         * modules/unictype/*: Bump version number of expected libunistring
16067         version.
16068
16069 2011-01-09  Bruno Haible  <bruno@clisp.org>
16070
16071         Update to Unicode 5.2.0.
16072         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16073         trailing whitespace removed.
16074
16075 2011-01-09  Bruno Haible  <bruno@clisp.org>
16076
16077         New Unicode character properties, from Unicode 5.2.0.
16078         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16079         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16080         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16081         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16082         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16083         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16084         uc_is_property_cased, uc_is_property_case_ignorable,
16085         uc_is_property_changes_when_lowercased,
16086         uc_is_property_changes_when_uppercased,
16087         uc_is_property_changes_when_titlecased,
16088         uc_is_property_changes_when_casefolded,
16089         uc_is_property_changes_when_casemapped): New declarations.
16090         * lib/unictype/pr_byname.gperf: Add the new properties.
16091         * modules/unictype/property-byname (Depends-on): Depend on the new
16092         properties modules.
16093         * modules/unictype/property-all (Depends-on): Likewise.
16094         * MODULES.html.sh (Unicode string functions): Add
16095         unictype/property-case-ignorable, unictype/property-cased,
16096         unictype/property-changes-when-casefolded,
16097         unictype/property-changes-when-casemapped,
16098         unictype/property-changes-when-lowercased,
16099         unictype/property-changes-when-titlecased,
16100         unictype/property-changes-when-uppercased.
16101
16102         New module 'unictype/property-changes-when-casemapped'.
16103         * modules/unictype/property-changes-when-casemapped: New file.
16104         * lib/unictype/pr_changes_when_casemapped.c: New file.
16105         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16106         generated by gen-uni-tables.
16107         * modules/unictype/property-changes-when-casemapped-tests: New file.
16108         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16109         automatically generated by gen-uni-tables.
16110
16111         New module 'unictype/property-changes-when-casefolded'.
16112         * modules/unictype/property-changes-when-casefolded: New file.
16113         * lib/unictype/pr_changes_when_casefolded.c: New file.
16114         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16115         generated by gen-uni-tables.
16116         * modules/unictype/property-changes-when-casefolded-tests: New file.
16117         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16118         automatically generated by gen-uni-tables.
16119
16120         New module 'unictype/property-changes-when-titlecased'.
16121         * modules/unictype/property-changes-when-titlecased: New file.
16122         * lib/unictype/pr_changes_when_titlecased.c: New file.
16123         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16124         generated by gen-uni-tables.
16125         * modules/unictype/property-changes-when-titlecased-tests: New file.
16126         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16127         automatically generated by gen-uni-tables.
16128
16129         New module 'unictype/property-changes-when-uppercased'.
16130         * modules/unictype/property-changes-when-uppercased: New file.
16131         * lib/unictype/pr_changes_when_uppercased.c: New file.
16132         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16133         generated by gen-uni-tables.
16134         * modules/unictype/property-changes-when-uppercased-tests: New file.
16135         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16136         automatically generated by gen-uni-tables.
16137
16138         New module 'unictype/property-changes-when-lowercased'.
16139         * modules/unictype/property-changes-when-lowercased: New file.
16140         * lib/unictype/pr_changes_when_lowercased.c: New file.
16141         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16142         generated by gen-uni-tables.
16143         * modules/unictype/property-changes-when-lowercased-tests: New file.
16144         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16145         automatically generated by gen-uni-tables.
16146
16147         New module 'unictype/property-case-ignorable'.
16148         * modules/unictype/property-case-ignorable: New file.
16149         * lib/unictype/pr_case_ignorable.c: New file.
16150         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16151         by gen-uni-tables.
16152         * modules/unictype/property-case-ignorable-tests: New file.
16153         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16154         generated by gen-uni-tables.
16155
16156         New module 'unictype/property-cased'.
16157         * modules/unictype/property-cased: New file.
16158         * lib/unictype/pr_cased.c: New file.
16159         * lib/unictype/pr_cased.h: New file, automatically generated by
16160         gen-uni-tables.
16161         * modules/unictype/property-cased-tests: New file.
16162         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16163         gen-uni-tables.
16164
16165 2011-01-09  Bruno Haible  <bruno@clisp.org>
16166
16167         Update to Unicode 5.2.0.
16168         * lib/gen-uni-tables.c (output_predicate, output_category,
16169         output_combclass, output_bidi_category, output_decimal_digit_test,
16170         output_decimal_digit, output_digit_test, output_digit,
16171         output_numeric_test, output_numeric, output_mirror, output_scripts,
16172         output_scripts_byname, output_blocks, output_ident_category): Fix
16173         comment header.
16174         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16175         get_wbp.
16176         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16177         items.
16178         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16179         Changes_When_Lowercased, Changes_When_Uppercased,
16180         Changes_When_Titlecased, Changes_When_Casefolded,
16181         Changes_When_Casemapped.
16182         (is_property_alphabetic, is_property_default_ignorable_code_point):
16183         Update for Unicode 5.2.0.
16184         (is_property_cased, is_property_case_ignorable,
16185         is_property_changes_when_lowercased,
16186         is_property_changes_when_uppercased,
16187         is_property_changes_when_titlecased,
16188         is_property_changes_when_casefolded,
16189         is_property_changes_when_casemapped): New functions.
16190         (output_properties): Output also the properties cased, case_ignorable,
16191         changes_when_lowercased, changes_when_uppercased,
16192         changes_when_titlecased, changes_when_casefolded,
16193         changes_when_casemapped.
16194         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16195         Unicode TR#11 revision 17 -> 19.
16196         (LBP_CP): New enumeration value.
16197         (LBP_*): Adjust values accordingly.
16198         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16199         TR#14 revision 22 -> 24.
16200         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16201         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16202         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16203         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16204         is_WBP_MIDLETTER.
16205         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16206         the code1 and code2 of each composition rule.
16207         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16208         * lib/unicase/ignorable.h: Likewise.
16209         * lib/unicase/tocasefold.h: Likewise.
16210         * lib/unicase/tolower.h: Likewise.
16211         * lib/unicase/totitle.h: Likewise.
16212         * lib/unicase/toupper.h: Likewise.
16213         * lib/unictype/bidi_of.h: Likewise.
16214         * lib/unictype/blocks.h: Likewise.
16215         * lib/unictype/categ_C.h: Likewise.
16216         * lib/unictype/categ_Cf.h: Likewise.
16217         * lib/unictype/categ_Cn.h: Likewise.
16218         * lib/unictype/categ_L.h: Likewise.
16219         * lib/unictype/categ_Ll.h: Likewise.
16220         * lib/unictype/categ_Lm.h: Likewise.
16221         * lib/unictype/categ_Lo.h: Likewise.
16222         * lib/unictype/categ_Lu.h: Likewise.
16223         * lib/unictype/categ_M.h: Likewise.
16224         * lib/unictype/categ_Mc.h: Likewise.
16225         * lib/unictype/categ_Mn.h: Likewise.
16226         * lib/unictype/categ_N.h: Likewise.
16227         * lib/unictype/categ_Nd.h: Likewise.
16228         * lib/unictype/categ_Nl.h: Likewise.
16229         * lib/unictype/categ_No.h: Likewise.
16230         * lib/unictype/categ_P.h: Likewise.
16231         * lib/unictype/categ_Pd.h: Likewise.
16232         * lib/unictype/categ_Po.h: Likewise.
16233         * lib/unictype/categ_S.h: Likewise.
16234         * lib/unictype/categ_Sc.h: Likewise.
16235         * lib/unictype/categ_So.h: Likewise.
16236         * lib/unictype/categ_of.h: Likewise.
16237         * lib/unictype/combining.h: Likewise.
16238         * lib/unictype/ctype_alnum.h: Likewise.
16239         * lib/unictype/ctype_alpha.h: Likewise.
16240         * lib/unictype/ctype_graph.h: Likewise.
16241         * lib/unictype/ctype_lower.h: Likewise.
16242         * lib/unictype/ctype_print.h: Likewise.
16243         * lib/unictype/ctype_punct.h: Likewise.
16244         * lib/unictype/ctype_upper.h: Likewise.
16245         * lib/unictype/decdigit.h: Likewise.
16246         * lib/unictype/digit.h: Likewise.
16247         * lib/unictype/numeric.h: Likewise.
16248         * lib/unictype/pr_alphabetic.h: Likewise.
16249         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16250         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16251         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16252         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16253         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16254         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16255         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16256         * lib/unictype/pr_combining.h: Likewise.
16257         * lib/unictype/pr_composite.h: Likewise.
16258         * lib/unictype/pr_currency_symbol.h: Likewise.
16259         * lib/unictype/pr_dash.h: Likewise.
16260         * lib/unictype/pr_decimal_digit.h: Likewise.
16261         * lib/unictype/pr_deprecated.h: Likewise.
16262         * lib/unictype/pr_diacritic.h: Likewise.
16263         * lib/unictype/pr_extender.h: Likewise.
16264         * lib/unictype/pr_grapheme_base.h: Likewise.
16265         * lib/unictype/pr_grapheme_extend.h: Likewise.
16266         * lib/unictype/pr_grapheme_link.h: Likewise.
16267         * lib/unictype/pr_id_continue.h: Likewise.
16268         * lib/unictype/pr_id_start.h: Likewise.
16269         * lib/unictype/pr_ideographic.h: Likewise.
16270         * lib/unictype/pr_ignorable_control.h: Likewise.
16271         * lib/unictype/pr_logical_order_exception.h: Likewise.
16272         * lib/unictype/pr_lowercase.h: Likewise.
16273         * lib/unictype/pr_numeric.h: Likewise.
16274         * lib/unictype/pr_other_alphabetic.h: Likewise.
16275         * lib/unictype/pr_punctuation.h: Likewise.
16276         * lib/unictype/pr_sentence_terminal.h: Likewise.
16277         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16278         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16279         * lib/unictype/pr_unified_ideograph.h: Likewise.
16280         * lib/unictype/pr_uppercase.h: Likewise.
16281         * lib/unictype/pr_xid_continue.h: Likewise.
16282         * lib/unictype/pr_xid_start.h: Likewise.
16283         * lib/unictype/pr_zero_width.h: Likewise.
16284         * lib/unictype/scripts.h: Likewise.
16285         * lib/unictype/scripts_byname.gperf: Likewise.
16286         * lib/unictype/sy_java_ident.h: Likewise.
16287         * lib/unigbrk/gbrkprop.h: Likewise.
16288         * lib/unilbrk/lbrkprop1.h: Likewise.
16289         * lib/unilbrk/lbrkprop2.h: Likewise.
16290         * lib/unilbrk/lbrktables.h: Likewise.
16291         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16292         LBP_CP. Implement rule LB30.
16293         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16294         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16295         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16296         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16297         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16298         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16299         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16300         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16301         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16302         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16303         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16304         bits instead of 16 bits in the code1 and code2 of each composition
16305         rule.
16306         (uc_composition): Update for Unicode 5.2.0.
16307         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16308         * lib/uninorm/decomposition-table2.h: Likewise.
16309         * lib/uniwbrk/wbrkprop.h: Likewise.
16310         * tests/unicase/test-cased.c: Likewise.
16311         * tests/unicase/test-ignorable.c: Likewise.
16312         * tests/unicase/test-uc_tolower.c: Likewise.
16313         * tests/unicase/test-uc_totitle.c: Likewise.
16314         * tests/unicase/test-uc_toupper.c: Likewise.
16315         * tests/unictype/test-categ_C.c: Likewise.
16316         * tests/unictype/test-categ_Cf.c: Likewise.
16317         * tests/unictype/test-categ_Cn.c: Likewise.
16318         * tests/unictype/test-categ_L.c: Likewise.
16319         * tests/unictype/test-categ_Ll.c: Likewise.
16320         * tests/unictype/test-categ_Lm.c: Likewise.
16321         * tests/unictype/test-categ_Lo.c: Likewise.
16322         * tests/unictype/test-categ_Lu.c: Likewise.
16323         * tests/unictype/test-categ_M.c: Likewise.
16324         * tests/unictype/test-categ_Mc.c: Likewise.
16325         * tests/unictype/test-categ_Mn.c: Likewise.
16326         * tests/unictype/test-categ_N.c: Likewise.
16327         * tests/unictype/test-categ_Nd.c: Likewise.
16328         * tests/unictype/test-categ_Nl.c: Likewise.
16329         * tests/unictype/test-categ_No.c: Likewise.
16330         * tests/unictype/test-categ_P.c: Likewise.
16331         * tests/unictype/test-categ_Pd.c: Likewise.
16332         * tests/unictype/test-categ_Po.c: Likewise.
16333         * tests/unictype/test-categ_S.c: Likewise.
16334         * tests/unictype/test-categ_Sc.c: Likewise.
16335         * tests/unictype/test-categ_So.c: Likewise.
16336         * tests/unictype/test-ctype_alnum.c: Likewise.
16337         * tests/unictype/test-ctype_alpha.c: Likewise.
16338         * tests/unictype/test-ctype_graph.c: Likewise.
16339         * tests/unictype/test-ctype_lower.c: Likewise.
16340         * tests/unictype/test-ctype_print.c: Likewise.
16341         * tests/unictype/test-ctype_punct.c: Likewise.
16342         * tests/unictype/test-ctype_upper.c: Likewise.
16343         * tests/unictype/test-decdigit.h: Likewise.
16344         * tests/unictype/test-digit.h: Likewise.
16345         * tests/unictype/test-numeric.h: Likewise.
16346         * tests/unictype/test-pr_alphabetic.c: Likewise.
16347         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16348         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16349         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16350         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16351         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16352         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16353         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16354         * tests/unictype/test-pr_combining.c: Likewise.
16355         * tests/unictype/test-pr_composite.c: Likewise.
16356         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16357         * tests/unictype/test-pr_dash.c: Likewise.
16358         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16359         * tests/unictype/test-pr_deprecated.c: Likewise.
16360         * tests/unictype/test-pr_diacritic.c: Likewise.
16361         * tests/unictype/test-pr_extender.c: Likewise.
16362         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16363         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16364         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16365         * tests/unictype/test-pr_id_continue.c: Likewise.
16366         * tests/unictype/test-pr_id_start.c: Likewise.
16367         * tests/unictype/test-pr_ideographic.c: Likewise.
16368         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16369         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16370         * tests/unictype/test-pr_lowercase.c: Likewise.
16371         * tests/unictype/test-pr_numeric.c: Likewise.
16372         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16373         * tests/unictype/test-pr_punctuation.c: Likewise.
16374         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16375         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16376         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16377         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16378         * tests/unictype/test-pr_uppercase.c: Likewise.
16379         * tests/unictype/test-pr_xid_continue.c: Likewise.
16380         * tests/unictype/test-pr_xid_start.c: Likewise.
16381         * tests/unictype/test-pr_zero_width.c: Likewise.
16382         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16383         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16384         changed behaviour: line breaking is now disallowed between a letter
16385         or '=' and '('.
16386         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16387         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16388         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16389         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16390         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16391         lib/uniwidth/width.c.
16392         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16393         without comments, but with the original copyright notice.
16394         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16395         changes.
16396         * lib/unictype/categ_Cc.h: Likewise.
16397         * lib/unictype/categ_Co.h: Likewise.
16398         * lib/unictype/categ_Cs.h: Likewise.
16399         * lib/unictype/categ_Lt.h: Likewise.
16400         * lib/unictype/categ_Me.h: Likewise.
16401         * lib/unictype/categ_Pc.h: Likewise.
16402         * lib/unictype/categ_Pe.h: Likewise.
16403         * lib/unictype/categ_Pf.h: Likewise.
16404         * lib/unictype/categ_Pi.h: Likewise.
16405         * lib/unictype/categ_Ps.h: Likewise.
16406         * lib/unictype/categ_Sk.h: Likewise.
16407         * lib/unictype/categ_Sm.h: Likewise.
16408         * lib/unictype/categ_Z.h: Likewise.
16409         * lib/unictype/categ_Zl.h: Likewise.
16410         * lib/unictype/categ_Zp.h: Likewise.
16411         * lib/unictype/categ_Zs.h: Likewise.
16412         * lib/unictype/ctype_blank.h: Likewise.
16413         * lib/unictype/ctype_cntrl.h: Likewise.
16414         * lib/unictype/ctype_digit.h: Likewise.
16415         * lib/unictype/ctype_space.h: Likewise.
16416         * lib/unictype/ctype_xdigit.h: Likewise.
16417         * lib/unictype/mirror.h: Likewise.
16418         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16419         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16420         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16421         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16422         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16423         * lib/unictype/pr_bidi_control.h: Likewise.
16424         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16425         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16426         * lib/unictype/pr_bidi_pdf.h: Likewise.
16427         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16428         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16429         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16430         * lib/unictype/pr_format_control.h: Likewise.
16431         * lib/unictype/pr_hex_digit.h: Likewise.
16432         * lib/unictype/pr_hyphen.h: Likewise.
16433         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16434         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16435         * lib/unictype/pr_iso_control.h: Likewise.
16436         * lib/unictype/pr_join_control.h: Likewise.
16437         * lib/unictype/pr_left_of_pair.h: Likewise.
16438         * lib/unictype/pr_line_separator.h: Likewise.
16439         * lib/unictype/pr_math.h: Likewise.
16440         * lib/unictype/pr_non_break.h: Likewise.
16441         * lib/unictype/pr_not_a_character.h: Likewise.
16442         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16443         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16444         * lib/unictype/pr_other_id_continue.h: Likewise.
16445         * lib/unictype/pr_other_id_start.h: Likewise.
16446         * lib/unictype/pr_other_lowercase.h: Likewise.
16447         * lib/unictype/pr_other_math.h: Likewise.
16448         * lib/unictype/pr_other_uppercase.h: Likewise.
16449         * lib/unictype/pr_paired_punctuation.h: Likewise.
16450         * lib/unictype/pr_paragraph_separator.h: Likewise.
16451         * lib/unictype/pr_pattern_syntax.h: Likewise.
16452         * lib/unictype/pr_pattern_white_space.h: Likewise.
16453         * lib/unictype/pr_private_use.h: Likewise.
16454         * lib/unictype/pr_quotation_mark.h: Likewise.
16455         * lib/unictype/pr_radical.h: Likewise.
16456         * lib/unictype/pr_soft_dotted.h: Likewise.
16457         * lib/unictype/pr_space.h: Likewise.
16458         * lib/unictype/pr_titlecase.h: Likewise.
16459         * lib/unictype/pr_variation_selector.h: Likewise.
16460         * lib/unictype/pr_white_space.h: Likewise.
16461         * lib/unictype/sy_c_ident.h: Likewise.
16462         * lib/unictype/sy_c_whitespace.h: Likewise.
16463         * lib/unictype/sy_java_whitespace.h: Likewise.
16464         * modules/uni*/*: Bump version number of expected libunistring version.
16465         Reported by Simon Josefsson.
16466
16467 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16468
16469         useless-if-before-free: fix typo in --help and make the internal,
16470         automatic version date update process work once again.
16471         --help output contained a NUL character instead of the
16472         backslash-zero that was intended.  Also, the "must lie within
16473         the first 8 lines" line is on line 9, and hence not getting
16474         automatically updated.
16475         * build-aux/useless-if-before-free: Fix the former by adding a
16476         backslash, and the latter by condensing the three lines of what-it-does
16477         to a single line, leaving one line of slack for the future.
16478
16479 2011-01-09  Bruno Haible  <bruno@clisp.org>
16480
16481         uniwidth/width: Fix width of U+1D173..U+1D17A.
16482         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16483         symbolic_width, output_width_property_test): New functions.
16484         (main): Invoke output_nonspacing_property, output_width_property_test.
16485         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16486         U+1D173..U+1D17A.
16487         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16488         1.
16489         * modules/uniwidth/*: Bump version number of expected libunistring
16490         version.
16491         * modules/unilbrk/*: Likewise.
16492
16493 2011-01-08  Bruno Haible  <bruno@clisp.org>
16494
16495         uninorm tests: Preserve copyright of Unicode data file.
16496         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16497         Mention modifications.
16498
16499 2011-01-08  Bruno Haible  <bruno@clisp.org>
16500
16501         gen-uni-tables: Prepare for Unicode 5.2.0.
16502         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16503         (debug_output_lbp, output_lbp): Update.
16504
16505 2011-01-08  Bruno Haible  <bruno@clisp.org>
16506
16507         unilbrk: Clarify gen-uni-tables.c code.
16508         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16509         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16510         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16511
16512 2011-01-07  Bruno Haible  <bruno@clisp.org>
16513
16514         strtod: Restore errno when successfully parsing Infinity or NaN.
16515         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16516         restore the original errno.
16517
16518 2011-01-07  Bruno Haible  <bruno@clisp.org>
16519
16520         remove test: Avoid failure on HP-UX 11.
16521         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16522
16523 2011-01-07  Bruno Haible  <bruno@clisp.org>
16524
16525         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16526         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16527         error code.
16528
16529 2011-01-07  Pádraig Brady <P@draigBrady.com>
16530
16531         ignore-value: fixup comments, and add Eric Blake
16532         as an author since he rewrote the macros.
16533         * lib/ignore-value.h (ignore_value):  State that
16534         we now support aggregates.  Also specify exactly
16535         when the GCC warn_unused_result feature was added.
16536
16537 2011-01-06  Eric Blake  <eblake@redhat.com>
16538
16539         ignore-value: support aggregate types
16540         * lib/ignore-value.h (ignore_value): Provide separate gcc
16541         definition.
16542         * modules/ignore-value-tests: New test module.
16543         * tests/test-ignore-value.c: New test.
16544
16545         maint.mk: improve sc_prohibit_strcmp regex
16546         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16547         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16548         definition of STRNEQ.
16549
16550         signal: work around Haiku issue with SIGBUS
16551         * lib/siglist.h: Add comment.
16552         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16553         strsignal's favoring of SIGSEGV.
16554         * tests/test-signal.c (main): Avoid test failure.
16555         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16556         Reported by Scott McCreary.
16557
16558         maint.mk: add pre-release check to ensure submodule commits are public
16559         * top/maint.mk (public-submodule-commit): New rule.
16560         (submodule-checks): New variable.
16561         (alpha beta stable): Depend on the variable.
16562
16563 2011-01-05  Pádraig Brady <P@draigBrady.com>
16564         and Jim Meyering  <meyering@redhat.com>
16565
16566         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16567         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16568         (ATTRIBUTE_DEPRECATED): Define.
16569         (_ignore_case): New function.
16570         (ignore_value): New macro, to replace the old function.
16571         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16572         * modules/ignore-value (Depends-on): Add stdint.
16573
16574 2011-01-04  Eric Blake  <eblake@redhat.com>
16575
16576         doc: regenerate INSTALL
16577         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16578         @firstparagraphindent support, now that autoconf dropped it.
16579         (INSTALL_PRELUDE): Reinstate old macro.
16580         * doc/install.texi: Resync from autoconf.
16581         * doc/INSTALL: Reflect recent autoconf update.
16582         * doc/INSTALL.ISO: Likewise.
16583         * doc/INSTALL.UTF-8: Likewise.
16584         Reported by Karl Berry.
16585
16586 2011-01-04  Bruce Korb  <address@hidden>
16587
16588         git-version-gen: avoid a sub-shell
16589         * build-aux/git-version-gen: Redirect stderr in `...` via
16590         "exec 2>...", rather than via an added sub-shell.
16591
16592 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16593
16594         git-version-gen: use (...) rather than sh -c '...'
16595         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16596         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16597
16598 2011-01-03  Jim Meyering  <meyering@redhat.com>
16599
16600         git-version-gen: convert leading TABs to spaces
16601         * build-aux/git-version-gen: Expand leading TABs.
16602
16603         git-version-gen: handle failed "git rev-list"
16604         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16605         from git and proceeding as if it had succeeded but printed no SHA1
16606         checksums, suppress the diagnostic and handle the failure.
16607         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16608
16609         git-version-gen: include command name in one more diagnostic
16610         * build-aux/git-version-gen: When the required .tarball-version file
16611         was missing or unreadable, you might see the diagnostic from "cat",
16612         but no trace of the name of the invoking script.  Now, you still see
16613         the diagnostic from cat, but also get one from "git-version-gen: ".
16614         Inspired by a patch from Bruce Korb.
16615
16616         update-copyright: adjust test to match changed code
16617         * tests/test-update-copyright.sh: Change test's expected output
16618         to match new actual output.
16619
16620 2011-01-02  Bruno Haible  <bruno@clisp.org>
16621
16622         getlogin_r: Avoid test failure on HP-UX 11.
16623         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16624         ERANGE when the second argument is zero.
16625         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16626         portability problem.
16627
16628 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16629
16630         * build-aux/update-copyright: doc Simon's changes
16631
16632 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16633
16634         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16635         environment variable.
16636
16637 2011-01-02  Bruno Haible  <bruno@clisp.org>
16638
16639         unigbrk: Avoid gcc warnings.
16640         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16641         unused variable.
16642         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16643         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16644         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16645         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16646         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16647         Change type of first argument to 'const char *'.
16648         (main): Remove unused variable.
16649         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16650         type of first argument to 'const char *'.
16651         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16652         Likewise.
16653         (main): Change type of variable 's'.
16654         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16655         to 'int'.
16656
16657 2011-01-02  Bruno Haible  <bruno@clisp.org>
16658
16659         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16660         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16661         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16662         bug.
16663         * lib/pwrite.c: Undo 2010-12-31 patch.
16664         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16665
16666 2011-01-02  Bruno Haible  <bruno@clisp.org>
16667
16668         pread: Fix test whether it works.
16669         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16670
16671 2011-01-02  Bruno Haible  <bruno@clisp.org>
16672
16673         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16674         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16675         ends in "6". Don't require a specific month name. Try also the locale
16676         names found on HP-UX 11 and Solaris 7.
16677
16678 2011-01-02  Bruno Haible  <bruno@clisp.org>
16679
16680         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16681         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16682         C linkage.
16683         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16684
16685 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16686
16687         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16688         for consistency, since the "cluster" term is not used elsewhere.
16689         * lib/unigbrk.in.h: Update name.
16690         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16691         * lib/unigbrk/u16-grapheme-next.c: Update name.
16692         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16693         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16694         * lib/unigbrk/u32-grapheme-next.c: Update name.
16695         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16696         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16697         * lib/unigbrk/u8-grapheme-next.c: Update name.
16698         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16699         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16700         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16701         Suggested by Bruno Haible.
16702
16703 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16704
16705         Remove module 'u8-grapheme-len' as too redundant with
16706         'u8-grapheme-next'.
16707         * modules/unigbrk/u8-grapheme-len: Delete file.
16708         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16709         * lib/unigbrk.in.h: Remove prototype for deleted function.
16710         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16711         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16712
16713         Remove module 'u16-grapheme-len' as too redundant with
16714         'u16-grapheme-next'.
16715         * modules/unigbrk/u16-grapheme-len: Delete file.
16716         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16717         * lib/unigbrk.in.h: Remove prototype for deleted function.
16718         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16719         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16720
16721         Remove module 'u32-grapheme-len' as too redundant with
16722         'u32-grapheme-next'.
16723         * modules/unigbrk/u32-grapheme-len: Delete file.
16724         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16725         * lib/unigbrk.in.h: Remove prototype for deleted function.
16726         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16727         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16728
16729         Suggested by Bruno Haible.
16730
16731 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16732
16733         * unigbrk.in.h: Fix typo: "ben" => "been".
16734         Reported by Bruno Haible.
16735
16736 2011-01-01  Jim Meyering  <meyering@redhat.com>
16737
16738         maint: update almost all copyright ranges to include 2011
16739         Run the new "make update-copyright" rule.
16740
16741 2011-01-01  Jim Meyering  <meyering@redhat.com>
16742
16743         maint: update-copyright: exempt doc/INSTALL*
16744         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16745         since they are generated.  Suggested by Bruno Haible.
16746
16747 2011-01-01  Jim Meyering  <meyering@redhat.com>
16748
16749         maint: refine the update-copyright rule
16750         * Makefile (update-copyright): Also exclude any file that includes
16751         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16752         code that merely generates the comment.
16753
16754 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16755
16756         New module 'u8-grapheme-len'.
16757         * modules/unigbrk/u8-grapheme-len: New file.
16758         * modules/unigbrk/u8-grapheme-len-tests: New file.
16759         * lib/unigbrk.in.h: Add prototype for new function.
16760         * lib/unigbrk/u8-grapheme-len.c: New file.
16761         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16762
16763         New module 'u16-grapheme-len'.
16764         * modules/unigbrk/u16-grapheme-len: New file.
16765         * modules/unigbrk/u16-grapheme-len-tests: New file.
16766         * lib/unigbrk.in.h: Add prototype for new function.
16767         * lib/unigbrk/u16-grapheme-len.c: New file.
16768         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16769
16770         New module 'u32-grapheme-len'.
16771         * modules/unigbrk/u32-grapheme-len: New file.
16772         * modules/unigbrk/u32-grapheme-len-tests: New file.
16773         * lib/unigbrk.in.h: Add prototype for new function.
16774         * lib/unigbrk/u32-grapheme-len.c: New file.
16775         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16776
16777         New module 'u8-grapheme-next'.
16778         * modules/unigbrk/u8-grapheme-next: New file.
16779         * modules/unigbrk/u8-grapheme-next-tests: New file.
16780         * lib/unigbrk.in.h: Add prototype for new function.
16781         * lib/unigbrk/u8-grapheme-next.c: New file.
16782         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16783
16784         New module 'u16-grapheme-next'.
16785         * modules/unigbrk/u16-grapheme-next: New file.
16786         * modules/unigbrk/u16-grapheme-next-tests: New file.
16787         * lib/unigbrk.in.h: Add prototype for new function.
16788         * lib/unigbrk/u16-grapheme-next.c: New file.
16789         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16790
16791         New module 'u32-grapheme-next'.
16792         * modules/unigbrk/u32-grapheme-next: New file.
16793         * modules/unigbrk/u32-grapheme-next-tests: New file.
16794         * lib/unigbrk.in.h: Add prototype for new function.
16795         * lib/unigbrk/u32-grapheme-next.c: New file.
16796         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16797
16798         New module 'u8-grapheme-prev'.
16799         * modules/unigbrk/u8-grapheme-prev: New file.
16800         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16801         * lib/unigbrk.in.h: Add prototype for new function.
16802         * lib/unigbrk/u8-grapheme-prev.c: New file.
16803         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16804
16805         New module 'u16-grapheme-prev'.
16806         * modules/unigbrk/u16-grapheme-prev: New file.
16807         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16808         * lib/unigbrk.in.h: Add prototype for new function.
16809         * lib/unigbrk/u16-grapheme-prev.c: New file.
16810         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16811
16812         New module 'u32-grapheme-prev'.
16813         * modules/unigbrk/u32-grapheme-prev: New file.
16814         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16815         * lib/unigbrk.in.h: Add prototype for new function.
16816         * lib/unigbrk/u32-grapheme-prev.c: New file.
16817         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16818
16819         New module 'u8-grapheme-breaks'.
16820         * modules/unigbrk/u8-grapheme-breaks: New file.
16821         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16822         * lib/unigbrk.in.h: Add prototype for new function.
16823         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16824         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16825
16826         New module 'u16-grapheme-breaks'.
16827         * modules/unigbrk/u16-grapheme-breaks: New file.
16828         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16829         * lib/unigbrk.in.h: Add prototype for new function.
16830         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16831         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16832
16833         New module 'u32-grapheme-breaks'.
16834         * modules/unigbrk/u32-grapheme-breaks: New file.
16835         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16836         * lib/unigbrk.in.h: Add prototype for new function.
16837         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16838         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16839
16840         New module 'ulc-grapheme-breaks'.
16841         * modules/unigbrk/ulc-grapheme-breaks: New file.
16842         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16843         * m4/locale-ar.m4: New file.
16844         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16845         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16846         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16847
16848 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16849
16850         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16851         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16852         modified how this file was generated before I initially submitted
16853         the module, but failed to regenerate it.  This meant that several
16854         of the level2 entries were wrong.
16855         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16856         Remove the division-by-2 that is folded into the table now that
16857         gbrkprop.h has been regenerated properly.  Now -1 entries are
16858         handled correctly.
16859
16860         New module 'unigbrk/uc-gbrk-prop-tests'.
16861         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16862         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16863         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16864         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16865
16866 2011-01-01  Bruno Haible  <bruno@clisp.org>
16867
16868         Avoid use of hexadecimal escapes.
16869         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16870         instead of hexadecimal escapes.
16871
16872 2011-01-01  Jim Meyering  <meyering@redhat.com>
16873
16874         maint: new rule to update copyright year ranges
16875         * Makefile (update-copyright): New rule.
16876
16877         maint: indent with TABs in Makefile
16878         * Makefile: Expand leading sequences of spaces to TABs
16879
16880         version-etc: update the copyright year it reports
16881         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16882
16883 2010-12-31  Bruno Haible  <bruno@clisp.org>
16884
16885         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16886         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16887         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16888         zero.
16889
16890 2010-12-31  Bruno Haible  <bruno@clisp.org>
16891
16892         pwrite: Work around HP-UX 11.11 bug.
16893         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16894         works and set REPLACE_PWRITE if not.
16895         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16896         function.
16897         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16898
16899 2010-12-31  Bruno Haible  <bruno@clisp.org>
16900
16901         pread: Work around HP-UX 11 bugs.
16902         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16903         and set REPLACE_PREAD if not.
16904         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16905
16906 2010-12-31  Eric Blake  <eblake@redhat.com>
16907
16908         nl_langinfo: fix YESEXPR on Irix 6.5
16909         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16910         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16911         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16912         it.
16913
16914 2010-12-31  Bruno Haible  <bruno@clisp.org>
16915
16916         iconv: Document HP-UX 11 bug.
16917         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16918
16919 2010-12-31  Bruno Haible  <bruno@clisp.org>
16920
16921         ldexpl: Fix link error on HP-UX 11.
16922         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16923         LDEXPL_LIBM, using $ISNANL_LIBM.
16924
16925 2010-12-31  Eric Blake  <eblake@redhat.com>
16926
16927         ftello: avoid compilation failure with SunStudio c89
16928         * lib/ftello.c (ftello): Use lseek, not llseek.
16929
16930         tests: avoid failing coreutils tests on cygwin
16931         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16932         (create_exe_shims_): Return 0 when skipping.
16933
16934 2010-12-31  Bruno Haible  <bruno@clisp.org>
16935
16936         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16937         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16938
16939 2010-12-31  Bruno Haible  <bruno@clisp.org>
16940
16941         waitpid: Fix link error in C++ mode.
16942         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16943
16944 2010-12-31  Bruno Haible  <bruno@clisp.org>
16945
16946         isnan: Use GCC built-ins when possible.
16947         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16948         __builtin_isnan.
16949         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16950         (isnan): Define using GCC built-ins for GCC >= 4.0.
16951
16952 2010-12-31  Bruno Haible  <bruno@clisp.org>
16953
16954         isnand: Fix mistake.
16955         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16956         __builtin_isnand.
16957
16958 2010-12-31  Bruno Haible  <bruno@clisp.org>
16959
16960         open: Avoid C++ error on HP-UX 11.
16961         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16962
16963 2010-12-31  Bruno Haible  <bruno@clisp.org>
16964
16965         time_r: Add missing declarations on HP-UX 11.
16966         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16967         instead of HAVE_LOCALTIME_R.
16968         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16969         HAVE_LOCALTIME_R always.
16970         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16971         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16972         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16973         HAVE_LOCALTIME_R.
16974         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16975         * doc/posix-functions/localtime_r.texi: Likewise.
16976
16977 2010-12-29  Eric Blake  <eblake@redhat.com>
16978
16979         mountlist: tweak previous commit
16980         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16981         Reported by Paul Eggert.
16982
16983         mountlist: fix local drive detection on cygwin
16984         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16985         that works for cygwin.
16986
16987 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16988
16989         ftoastr, snprintf: ftoastr + snprintf module
16990         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16991         since the snprintf module now should be good enough here.
16992         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16993         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16994         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16995         GNULIB_SNPRINTF only for the test directory, and the latter
16996         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16997         seems to suffice by itself.
16998
16999 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17000
17001         alloca: one step towards thread-safety
17002         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17003         need for a static variable.  All callers changed.  This does not
17004         make the alloca replacement thread-safe, but it's one step.
17005
17006         tests: minor indenting change
17007         * tests/init.sh: Sync from coreutils housekeeping patch
17008         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17009         to keep lines within 80 columns.
17010
17011 2010-12-28  Jim Meyering  <meyering@redhat.com>
17012
17013         regex: don't infloop on persistent failing calloc
17014         * lib/regexec.c (build_trtable): Return failure indication upon
17015         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17016         In glibc, this was fixed for version 2.13:
17017         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17018
17019 2010-12-28  Bruno Haible  <bruno@clisp.org>
17020             Paul Eggert <eggert@cs.ucla.edu>
17021
17022         linkat: Make implementation robust against system behaviour variations.
17023         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17024         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17025         way, and to -2 if it needs a generic runtime test.
17026         * lib/linkat.c (solaris_optimized_link_immediate,
17027         solaris_optimized_link_follow): New functions.
17028         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17029         (check_same_link): Use it.
17030
17031 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17032
17033         New module 'unigbrk/base'.
17034         * modules/unigbrk/base: New file.
17035         * lib/unigbrk.in.h: New file.
17036
17037         New module 'unigbrk/uc-gbrk-prop'.
17038         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17039         * modules/unigbrk/uc-gbrk-prop: New file.
17040         * lib/unigbrk/gbrkprop.h: New file.
17041         * lib/unigbrk/uc-gbrk-prop.c: New file.
17042
17043         New module 'unigbrk/uc-is-grapheme-break'.
17044         * modules/unigbrk/uc-is-grapheme-break: New file.
17045         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17046         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17047         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17048         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17049         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17050
17051         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17052
17053 2010-12-27  Bruno Haible  <bruno@clisp.org>
17054
17055         linkat test: Avoid failure on Solaris 11 2010-11.
17056         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17057
17058 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17059
17060         utimens: work around glibc rounding bug on more platforms
17061         * lib/utimens.c (fdutimens): Work around rounding bug even if
17062         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17063         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17064
17065 2010-12-27  Bruno Haible  <bruno@clisp.org>
17066
17067         select tests: Improve comments.
17068         * tests/test-select.c (do_select): Add comments.
17069
17070 2010-12-27  Bruno Haible  <bruno@clisp.org>
17071
17072         select tests: Safer way of handling timeout.
17073         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17074         at every invocation.
17075
17076 2010-12-27  Bruno Haible  <bruno@clisp.org>
17077
17078         select tests: Use 'bool' where appropriate.
17079         * tests/test-select.c (connect_to_socket): Change argument type to
17080         'bool'.
17081
17082 2010-12-27  Bruno Haible  <bruno@clisp.org>
17083
17084         select tests: Use existing modules.
17085         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17086         (configure.ac): Don't test for unistd.h.
17087         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17088         declared in <unistd.h>.
17089
17090 2010-12-27  Bruno Haible  <bruno@clisp.org>
17091
17092         mbrtowc: Work around a Solaris 7 bug.
17093         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17094         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17095         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17096         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17097         MBRTOWC_NULL_ARG1_BUG.
17098         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17099         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17100         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17101         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17102
17103 2010-12-27  Jim Meyering  <meyering@redhat.com>
17104
17105         read-file.c: tweak syntax
17106         * lib/read-file.c (fread_file): Remove space after "*" in function
17107         definitions.
17108
17109 2010-12-27  Bruno Haible  <bruno@clisp.org>
17110
17111         times test: Avoid gcc warnings on OSF/1.
17112         * tests/test-times.c (main): Cast printf arguments from clock_t to
17113         'long int'.
17114
17115 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17116
17117         utimens: work around glibc rounding bug on older Linux kernels
17118         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17119         on Linux with a glibc whose utimes might not work, then work
17120         around a longstanding glibc bug involving rounding rather than
17121         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17122         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17123
17124 2010-12-26  Bruno Haible  <bruno@clisp.org>
17125
17126         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17127         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17128         _GL_CXXALIAS_SYS.
17129         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17130
17131 2010-12-26  Bruno Haible  <bruno@clisp.org>
17132
17133         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17134         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17135         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17136         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17137         looking for the declaration.
17138         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17139         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17140         problem.
17141         * doc/posix-functions/inet_pton.texi: Likewise.
17142
17143 2010-12-26  Bruno Haible  <bruno@clisp.org>
17144
17145         arpa_inet: Use the common idioms with C++ support.
17146         * lib/arpa_inet.in.h: Include c++defs.h.
17147         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17148         support.
17149         * modules/arpa_inet (Depends-on): Add c++defs.
17150         (Makefile.am): Substitute the contents of c++defs.h.
17151         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17152         * modules/arpa_inet-c++-tests: New file.
17153         * tests/test-arpa_inet-c++.cc: New file.
17154
17155 2010-12-25  Bruno Haible  <bruno@clisp.org>
17156
17157         Fix more C++ link errors on Solaris 8.
17158         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17159         $(LIB_EACCESS).
17160         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17161         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17162         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17163         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17164         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17165
17166 2010-12-25  Bruno Haible  <bruno@clisp.org>
17167
17168         printf-posix: Fix link error when a non-GCC compiler is used.
17169         * lib/stdio.in.h (printf): When not using GCC, override printf
17170         correctly.
17171         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17172
17173 2010-12-25  Bruno Haible  <bruno@clisp.org>
17174
17175         strerror_r-posix: Update doc.
17176         * doc/posix-functions/strerror_r.texi: Update doc about the return
17177         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17178
17179 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17180
17181         utimens: simplify the logic of the previous change
17182         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17183         This should not affect whether the test succeeds or fails.
17184
17185         utimens: configure better on hosts with NFS clock skew
17186         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17187         uses the clock of the local host.  It might use the clock of the
17188         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17189         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17190
17191 2010-12-25  Bruno Haible  <bruno@clisp.org>
17192
17193         ptsname test: Avoid failure on Solaris.
17194         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17195         open a pseudo-terminal; don't use BSD-style ptys.
17196         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17197
17198 2010-12-25  Bruno Haible  <bruno@clisp.org>
17199
17200         ptsname: Avoid ERANGE failure on some systems.
17201         * lib/ptsname.c (buffer): Increase size.
17202
17203 2010-12-25  Bruno Haible  <bruno@clisp.org>
17204
17205         rename, renameat: Avoid test failures at NFS mounted locations.
17206         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17207         so that subsequent mkdir calls succeed.
17208
17209 2010-12-25  Bruno Haible  <bruno@clisp.org>
17210
17211         iswblank: Fix C++ link error on Solaris 8.
17212         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17213         _GL_FUNCDECL_SYS.
17214
17215 2010-12-25  Bruno Haible  <bruno@clisp.org>
17216
17217         unistd: Fix C++ link error on Solaris 8.
17218         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17219
17220 2010-12-25  Bruno Haible  <bruno@clisp.org>
17221
17222         readlink doc: Mention an old glibc bug.
17223         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17224
17225 2010-12-25  Bruno Haible  <bruno@clisp.org>
17226
17227         fcntl-h: Fix for use of C++ on glibc systems.
17228         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17229         also on glibc systems in C++ mode.
17230         Reported by Gary V. Vaughan <gary@gnu.org>.
17231
17232 2010-12-25  Bruno Haible  <bruno@clisp.org>
17233
17234         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17235         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17236
17237 2010-12-25  Bruno Haible  <bruno@clisp.org>
17238
17239         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17240         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17241         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17242         test whether truncl works according to ISO C 99 with IEC 60559.
17243         * m4/truncl-ieee.m4: New file.
17244         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17245         m4/signbit.m4.
17246         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17247
17248 2010-12-25  Bruno Haible  <bruno@clisp.org>
17249
17250         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17251         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17252         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17253         test whether ceill works according to ISO C 99 with IEC 60559.
17254         * m4/ceill-ieee.m4: New file.
17255         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17256         m4/signbit.m4.
17257         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17258
17259 2010-12-25  Bruno Haible  <bruno@clisp.org>
17260
17261         Ensure all prerequisites of <wchar.h> are included.
17262         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17263         before <wchar.h>.
17264         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17265         gl_MBRLEN_NUL_RETVAL): Likewise.
17266         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17267         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17268         AC_FUNC_MBRTOWC): Likewise.
17269         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17270         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17271         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17272         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17273         Likewise.
17274         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17275         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17276         (gl_WCHAR_H): Improve comments.
17277         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17278
17279 2010-12-25  Bruno Haible  <bruno@clisp.org>
17280
17281         strtok_r: Fix C syntax error in autoconf macro.
17282         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17283         characters in test program.
17284
17285 2010-12-24  Bruno Haible  <bruno@clisp.org>
17286
17287         ceil, trunc, round: Fix gcc warnings.
17288         * lib/ceil.c (MIN): Undefine before redefining.
17289         * lib/trunc.c (MIN): Likewise.
17290         * lib/round.c (MIN): Likewise.
17291         Include <math.h> first.
17292
17293 2010-12-24  Bruno Haible  <bruno@clisp.org>
17294
17295         select tests: Avoid failures on OSF/1 5.1.
17296         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17297         failure of closing the last socket; it may fail with ECONNRESET.
17298
17299 2010-12-24  Eric Blake  <eblake@redhat.com>
17300
17301         stdint: avoid HP-UX 10.20 preprocessor bug
17302         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17303         than #if.
17304         * tests/test-floor2.c (main): Likewise.
17305         Reported by Peter O'Gorman.
17306
17307         pipe: make obsoletion transition easier
17308         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17309         * modules/pipe (Files): Include revived file.
17310         (Include): Drop reference, to mirror getdate's behavior.
17311
17312 2010-12-24  Bruno Haible  <bruno@clisp.org>
17313
17314         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17315         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17316         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17317         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17318
17319 2010-12-24  Bruno Haible  <bruno@clisp.org>
17320
17321         gethostname: Ensure declaration on NonStop Kernel.
17322         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17323         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17324
17325 2010-12-24  Bruno Haible  <bruno@clisp.org>
17326
17327         sys_select: Ensure all necessary types on NonStop Kernel.
17328         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17329         include <sys/time.h>.
17330         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17331         NonStop Kernel.
17332         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17333
17334 2010-12-24  Bruno Haible  <bruno@clisp.org>
17335
17336         sys_select: Remove unneeded include.
17337         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17338         have <sys/select.h>.
17339
17340 2010-12-24  Bruno Haible  <bruno@clisp.org>
17341
17342         gethostname: Provide a fallback for HOST_NAME_MAX.
17343         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17344         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17345         instead.
17346         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17347
17348 2010-12-24  Bruno Haible  <bruno@clisp.org>
17349
17350         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17351         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17352         (SA_RESTART): Likewise.
17353         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17354
17355 2010-12-24  Bruno Haible  <bruno@clisp.org>
17356
17357         signal: Define NSIG.
17358         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17359         * tests/test-signal.c (nsig): New variable.
17360         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17361
17362 2010-12-24  Bruno Haible  <bruno@clisp.org>
17363
17364         rename, renameat: Avoid test failures on OSF/1 5.1.
17365         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17366         alternative error codes.
17367         * tests/test-renameat.c (main): Likewise.
17368
17369 2010-12-24  Bruno Haible  <bruno@clisp.org>
17370
17371         *printf: Detect large precisions bug on Solaris 10/SPARC.
17372         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17373         by Paul Eggert.
17374         * tests/test-snprintf-posix.h (test_function): Add this test code here
17375         too.
17376         * tests/test-sprintf-posix.h (test_function): Likewise.
17377         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17378         * tests/test-vasprintf-posix.c (test_function): Likewise.
17379         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17380         around by gnulib.
17381         * doc/posix-functions/printf.texi: Likewise.
17382         * doc/posix-functions/snprintf.texi: Likewise.
17383         * doc/posix-functions/sprintf.texi: Likewise.
17384         * doc/posix-functions/vfprintf.texi: Likewise.
17385         * doc/posix-functions/vprintf.texi: Likewise.
17386         * doc/posix-functions/vsnprintf.texi: Likewise.
17387         * doc/posix-functions/vsprintf.texi: Likewise.
17388         * doc/posix-functions/dprintf.texi: Undo last commit.
17389         * doc/posix-functions/vdprintf.texi: Likewise.
17390
17391 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17392
17393         tests: port test-fdutimensat.c to Solaris 8
17394         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17395         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17396         On Solaris 8, it fails with errno == ENOSYS, because there is no
17397         futimens (so it can't use the fd), and there is no lutimens (so it
17398         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17399
17400         vsnprintf: make more consistent with snprintf; doc fixes
17401
17402         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17403         the byte count return problem was promoted from the snprintf-posix
17404         to the snprintf module.
17405         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17406         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17407         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17408         * tests/test-snprintf.c (main): Check the byte count returned.
17409         * tests/test-vsnprintf.c (main): Likewise.
17410
17411 2010-12-23  Eric Blake  <eblake@redhat.com>
17412
17413         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17414         * modules/sigpipe (License): Relax license.
17415
17416 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17417
17418         doc: document Solaris printf bug with large float precisions
17419         * doc/posix-functions/dprintf.texi (dprintf):
17420         * doc/posix-functions/fprintf.texi (fprintf):
17421         * doc/posix-functions/printf.texi (printf):
17422         * doc/posix-functions/snprintf.texi (snprintf):
17423         * doc/posix-functions/sprintf.texi (sprintf):
17424         * doc/posix-functions/vdprintf.texi (vdprintf):
17425         * doc/posix-functions/vfprintf.texi (vfprintf):
17426         * doc/posix-functions/vprintf.texi (vprintf):
17427         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17428         * doc/posix-functions/vsprintf.texi (vsprintf):
17429         Mention that these functions mishandle large floating point
17430         precisions on Solaris 10.  The same bug is also present in Solaris
17431         8, and I assume earlier.  This causes "cd gnulib-tests; make
17432         check" to fail on Solaris 8 (and I assume, later) when building
17433         the latest coreutils, in test-vasprintf-posix's call to
17434         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17435         the wide flavors (e.g., wprintf) so this patch just updates the
17436         documentation for the narrow ones.
17437
17438         test-posixtm.c: add two tests
17439         * tests/test-posixtm.c: Add two tests, to highlight the
17440         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17441         around this bug; this is merely to document it.
17442
17443 2010-12-22  Bruno Haible  <bruno@clisp.org>
17444
17445         getlogin_r: Work around portability problem on OSF/1.
17446         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17447         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17448         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17449         test for a truncated result.
17450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17451         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17452         * modules/getlogin_r (Depends-on): Add memchr.
17453         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17454
17455 2010-12-22  Bruno Haible  <bruno@clisp.org>
17456
17457         ptsname: Avoid test failure on OSF/1 5.1.
17458         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17459         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17460         (same_slave): New function.
17461         (main): Use it to compare ptsname's result with the expected file name.
17462
17463 2010-12-22  Bruno Haible  <bruno@clisp.org>
17464
17465         Port extended stdio modules to HP NonStop Kernel.
17466         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17467         macros.
17468         * lib/fbufmode.c: Update comments.
17469         * lib/fflush.c: Likewise.
17470         * lib/fpurge.c: Likewise.
17471         * lib/freadable.c: Likewise.
17472         * lib/freadahead.c: Likewise.
17473         * lib/freading.c: Likewise.
17474         * lib/freadptr.c: Likewise.
17475         * lib/freadseek.c: Likewise.
17476         * lib/fseeko.c: Likewise.
17477         * lib/fseterr.c: Likewise.
17478         * lib/fwritable.c: Likewise.
17479         * lib/fwriting.c: Likewise.
17480         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17481
17482 2010-12-22  Bruno Haible  <bruno@clisp.org>
17483
17484         ttyname_r: Work around bug on OSF/1 5.1.
17485         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17486         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17487         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17488         present.
17489         * lib/ttyname_r.c (ttyname_r): Update comments.
17490
17491 2010-12-22  Bruno Haible  <bruno@clisp.org>
17492
17493         round: Implement result sign according to IEEE 754.
17494         * lib/round.c (MIN, MINUS_ZERO): New macros.
17495         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17496         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17497         * tests/test-round-ieee.c (main): Likewise.
17498         * tests/test-roundl-ieee.c (main): Likewise.
17499
17500         trunc: Implement result sign according to IEEE 754.
17501         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17502         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17503         * tests/test-trunc2.c: Include minus-zero.h.
17504         (MINUS_ZERO): New macro.
17505         (trunc_reference): Keep in sync with lib/trunc.c.
17506         * tests/test-truncf2.c: Include minus-zero.h.
17507         (MINUS_ZERO): New macro.
17508         (truncf_reference): Keep in sync with lib/trunc.c.
17509         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17510         * tests/test-trunc-ieee.c (main): Likewise.
17511         * tests/test-truncl-ieee.c (main): Likewise.
17512
17513         ceil: Implement result sign according to IEEE 754.
17514         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17515         (FUNC): Return -0.0 for -1 < x < 0.
17516         * tests/test-ceil2.c: Include minus-zero.h.
17517         (MINUS_ZERO): New macro.
17518         (ceil_reference): Keep in sync with lib/ceil.c.
17519         * tests/test-ceilf2.c: Include minus-zero.h.
17520         (MINUS_ZERO): New macro.
17521         (ceilf_reference): Keep in sync with lib/ceil.c.
17522         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17523         * tests/test-ceil-ieee.c (main): Likewise.
17524         * tests/test-ceill-ieee.c (main): Likewise.
17525
17526         floor: Implement result sign according to IEEE 754.
17527         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17528         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17529         * tests/test-floorf2.c (floorf_reference): Likewise.
17530         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17531         * tests/test-floor-ieee.c (main): Likewise.
17532         * tests/test-floorl-ieee.c (main): Likewise.
17533
17534 2010-12-22  Bruno Haible  <bruno@clisp.org>
17535
17536         getaddrinfo: Update doc.
17537         * doc/posix-functions/gai_strerror.texi: Return type is also different
17538         on AIX and HP-UX.
17539
17540 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17541
17542         getaddrinfo, inet_ntop: Update doc for Solaris.
17543         * doc/posix-functions/gai_strerror.texi: Return type is also an
17544         issue on Solaris 9 and earlier.
17545         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17546         on Solaris 10 and earlier.
17547
17548 2010-12-21  Bruno Haible  <bruno@clisp.org>
17549
17550         New module 'roundl-ieee'.
17551         * modules/roundl-ieee: New file.
17552         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17553         test whether roundl works according to ISO C 99 with IEC 60559.
17554         * m4/roundl-ieee.m4: New file.
17555         * modules/roundl-ieee-tests: New file.
17556         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17557         * tests/test-roundl.c (main): Remove signbit tests.
17558         * modules/roundl-tests (Depends-on): Remove signbit.
17559         * doc/posix-functions/roundl.texi: Mention the new module.
17560
17561 2010-12-21  Bruno Haible  <bruno@clisp.org>
17562
17563         New module 'truncl-ieee'.
17564         * modules/truncl-ieee: New file.
17565         * modules/truncl-ieee-tests: New file.
17566         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17567         * tests/test-truncl.c (main): Remove signbit tests.
17568         * modules/truncl-tests (Depends-on): Remove signbit.
17569         * doc/posix-functions/truncl.texi: Mention the new module.
17570
17571 2010-12-21  Bruno Haible  <bruno@clisp.org>
17572
17573         New module 'ceill-ieee'.
17574         * modules/ceill-ieee: New file.
17575         * modules/ceill-ieee-tests: New file.
17576         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17577         * tests/test-ceill.c (main): Remove signbit tests.
17578         * modules/ceill-tests (Depends-on): Remove signbit.
17579         * doc/posix-functions/ceill.texi: Mention the new module.
17580
17581 2010-12-21  Bruno Haible  <bruno@clisp.org>
17582
17583         New module 'floorl-ieee'.
17584         * modules/floorl-ieee: New file.
17585         * modules/floorl-ieee-tests: New file.
17586         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17587         * tests/test-floorl.c (main): Remove signbit tests.
17588         * modules/floorl-tests (Depends-on): Remove signbit.
17589         * doc/posix-functions/floorl.texi: Mention the new module.
17590
17591 2010-12-21  Bruno Haible  <bruno@clisp.org>
17592
17593         New module 'round-ieee'.
17594         * modules/round-ieee: New file.
17595         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17596         whether round works according to ISO C 99 with IEC 60559.
17597         * m4/round-ieee.m4: New file.
17598         * modules/round-ieee-tests: New file.
17599         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17600         * tests/test-round1.c (main): Remove signbit tests.
17601         * modules/round-tests (Depends-on): Remove 'signbit'.
17602         * doc/posix-functions/round.texi: Mention the new module.
17603
17604 2010-12-21  Bruno Haible  <bruno@clisp.org>
17605
17606         New module 'trunc-ieee'.
17607         * modules/trunc-ieee: New file.
17608         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17609         whether trunc works according to ISO C 99 with IEC 60559.
17610         * m4/trunc-ieee.m4: New file.
17611         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17613         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17614         * modules/trunc-ieee-tests: New file.
17615         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17616         * tests/test-trunc1.c (main): Remove signbit tests.
17617         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17618         * doc/posix-functions/trunc.texi: Mention the new module.
17619
17620 2010-12-21  Bruno Haible  <bruno@clisp.org>
17621
17622         New module 'ceil-ieee'.
17623         * modules/ceil-ieee: New file.
17624         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17625         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17626         ISO C 99 with IEC 60559.
17627         * m4/ceil-ieee.m4: New file.
17628         * modules/ceil (Files): Add lib/ceil.c.
17629         (Depends-on): Add 'float'.
17630         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17631         * lib/math.in.h (ceil): New declaration.
17632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17633         REPLACE_CEIL.
17634         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17635         * modules/ceil-ieee-tests: New file.
17636         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17637         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17638         * doc/posix-functions/ceil.texi: Mention the new module.
17639
17640 2010-12-21  Bruno Haible  <bruno@clisp.org>
17641
17642         New module 'floor-ieee'.
17643         * modules/floor-ieee: New file.
17644         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17645         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17646         ISO C 99 with IEC 60559.
17647         * m4/floor-ieee.m4: New file.
17648         * modules/floor (Files): Add lib/floor.c.
17649         (Depends-on): Add 'float'.
17650         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17651         * lib/math.in.h (floor): New declaration.
17652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17653         REPLACE_FLOOR.
17654         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17655         * modules/floor-ieee-tests: New file.
17656         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17657         * tests/test-math-c++.cc: Check the signature of 'floor'.
17658         * doc/posix-functions/floor.texi: Mention the new module.
17659
17660 2010-12-21  Bruno Haible  <bruno@clisp.org>
17661
17662         New module 'roundf-ieee'.
17663         * modules/roundf-ieee: New file.
17664         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17665         test whether roundf works according to ISO C 99 with IEC 60559.
17666         * m4/roundf-ieee.m4: New file.
17667         * modules/roundf-ieee-tests: New file.
17668         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17669         * tests/test-roundf1.c (main): Remove signbit tests.
17670         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17671         * doc/posix-functions/roundf.texi: Mention the new module.
17672
17673 2010-12-21  Bruno Haible  <bruno@clisp.org>
17674
17675         New module 'truncf-ieee'.
17676         * modules/truncf-ieee: New file.
17677         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17678         test whether truncf works according to ISO C 99 with IEC 60559.
17679         * m4/truncf-ieee.m4: New file.
17680         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17682         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17683         * modules/truncf-ieee-tests: New file.
17684         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17685         * tests/test-truncf1.c (main): Remove signbit tests.
17686         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17687         * doc/posix-functions/truncf.texi: Mention the new module.
17688
17689 2010-12-21  Bruno Haible  <bruno@clisp.org>
17690
17691         New module 'ceilf-ieee'.
17692         * modules/ceilf-ieee: New file.
17693         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17694         test whether ceilf works according to ISO C 99 with IEC 60559.
17695         * m4/ceilf-ieee.m4: New file.
17696         * modules/ceilf-ieee-tests: New file.
17697         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17698         * tests/test-ceilf1.c (main): Remove signbit tests.
17699         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17700         * doc/posix-functions/ceilf.texi: Mention the new module.
17701
17702 2010-12-21  Bruno Haible  <bruno@clisp.org>
17703
17704         New module 'floorf-ieee'.
17705         * modules/floorf-ieee: New file.
17706         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17707         test whether floorf works according to ISO C 99 with IEC 60559.
17708         * m4/floorf-ieee.m4: New file.
17709         * modules/floorf-ieee-tests: New file.
17710         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17711         * tests/test-floorf1.c (main): Remove signbit tests.
17712         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17713         * doc/posix-functions/floorf.texi: Mention the new module.
17714
17715 2010-12-21  Bruno Haible  <bruno@clisp.org>
17716
17717         Support for minus zero in autoconf macros.
17718         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17719         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17720         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17721         * tests/minus-zero.h: Update comments.
17722
17723 2010-12-21  Bruno Haible  <bruno@clisp.org>
17724
17725         Tests for module 'ceil'.
17726         * modules/ceil-tests: New file.
17727         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17728         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17729
17730 2010-12-21  Bruno Haible  <bruno@clisp.org>
17731
17732         Tests for module 'floor'.
17733         * modules/floor-tests: New file.
17734         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17735         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17736
17737 2010-12-21  Bruno Haible  <bruno@clisp.org>
17738
17739         math: Fix indentation.
17740         * lib/math.in.h (floorf): Fix indentation.
17741
17742 2010-12-21  Bruno Haible  <bruno@clisp.org>
17743
17744         Fix cross-compilation guesses on Solaris.
17745         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17746         not match "solaris2.10".
17747         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17748         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17749         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17750
17751 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17752
17753         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17754         This fixes a problem observed with the latest coreutils snapshot
17755         that caused a test to fail on Solaris 8.  src/csplit.c's call
17756         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17757         earlier, instead of returning the number of bytes that would have
17758         been generated; this causes csplit to incorrectly report memory
17759         exhaustion.
17760         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17761         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17762         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17763         comments to match.
17764         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17765         Fix typo in matching older versions of Solaris: "solaris2.10"
17766         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17767         only for guessing while cross-compiling.
17768         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17769
17770 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17771
17772         ftoastr: fix comment again
17773         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17774         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17775         Also, simplify example a bit by using flags = 0.
17776
17777 2010-12-20  Bruno Haible  <bruno@clisp.org>
17778
17779         round*, trunc*: Update documentation regarding glibc.
17780         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17781         * doc/posix-functions/round.texi: Likewise.
17782         * doc/posix-functions/roundl.texi: Likewise.
17783         * doc/posix-functions/truncf.texi: Likewise.
17784         * doc/posix-functions/trunc.texi: Likewise.
17785         * doc/posix-functions/truncl.texi: Likewise.
17786
17787 2010-12-20  Bruno Haible  <bruno@clisp.org>
17788
17789         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17790         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17791         * doc/posix-functions/round.texi: Likewise.
17792         * doc/posix-functions/roundl.texi: Likewise.
17793
17794 2010-12-20  Bruno Haible  <bruno@clisp.org>
17795
17796         ttyname_r: Add missing declaration on HP-UX 11.
17797         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17798         HAVE_TTYNAME_R.
17799         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17800         declared. Set HAVE_TTYNAME_R always.
17801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17802         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17803         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17804         HAVE_TTYNAME_R.
17805         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17806
17807 2010-12-20  Bruno Haible  <bruno@clisp.org>
17808
17809         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17810         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17811         * doc/posix-functions/getlogin_r.texi: Likewise.
17812         * tests/test-getlogin.c: Include <errno.h>.
17813         (main): Avoid test failure on HP-UX 11.11.
17814         * tests/test-getlogin_r.c (main): Likewise.
17815
17816 2010-12-20  Bruno Haible  <bruno@clisp.org>
17817
17818         getlogin_r: Add missing declaration on HP-UX 11.
17819         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17820         declared also when it exists as a function.
17821         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17822
17823 2010-12-20  Bruno Haible  <bruno@clisp.org>
17824
17825         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17826         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17827         through wcrtomb.
17828
17829 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17830
17831         ftoastr: fix comment
17832         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17833         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17834
17835 2010-12-19  Bruno Haible  <bruno@clisp.org>
17836
17837         isnan: Ensure it is a macro.
17838         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17839         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17840         Solaris.
17841
17842 2010-12-19  Bruno Haible  <bruno@clisp.org>
17843
17844         ldexpl test: Fix link error on OSF/1 5.1.
17845         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17846
17847 2010-12-19  Bruno Haible  <bruno@clisp.org>
17848
17849         wctype: Make it work in C++ mode on OSF/1 5.1.
17850         * lib/wctype.in.h (iswblank): Declare but not define here.
17851         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17852         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17853         * modules/wctype (Files): Add lib/iswblank.c.
17854
17855 2010-12-19  Bruno Haible  <bruno@clisp.org>
17856
17857         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17858         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17859         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17860
17861 2010-12-19  Bruno Haible  <bruno@clisp.org>
17862
17863         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17864         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17865         _POSIX_PII_SOCKET.
17866         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17867         * doc/posix-functions/recvfrom.texi: Likewise.
17868         * doc/posix-functions/send.texi: Likewise.
17869         * doc/posix-functions/sendto.texi: Likewise.
17870
17871 2010-12-19  Bruno Haible  <bruno@clisp.org>
17872
17873         tcgetsid: Add missing declaration on OSF/1 5.1.
17874         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17875         HAVE_TCGETSID.
17876         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17877         Don't set HAVE_TCGETSID.
17878         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17879         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17880         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17881         HAVE_TCGETSID.
17882         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17883
17884 2010-12-19  Bruno Haible  <bruno@clisp.org>
17885
17886         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17887         * lib/stdio.in.h: During the include_next statement, let recursive
17888         includes of this file include only the system header file.
17889
17890 2010-12-19  Bruno Haible  <bruno@clisp.org>
17891
17892         iconv_open: Fix regression from 2010-12-04.
17893         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17894         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17895
17896 2010-12-19  Bruno Haible  <bruno@clisp.org>
17897
17898         stdbool test: Avoid a gcc warning.
17899         * tests/test-stdbool.c (main): Fail if e1 is false.
17900         Reported by Jim Meyering.
17901
17902 2010-12-19  Jim Meyering  <meyering@redhat.com>
17903
17904         setenv: restore to working order
17905         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17906         mistakenly removed.
17907         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17908         HAVE_SETENV.
17909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17910         HAVE_SETENV.
17911
17912 2010-12-19  Bruno Haible  <bruno@clisp.org>
17913
17914         Document some different function declarations on OSF/1 5.1.
17915         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17916         * doc/posix-functions/inet_ntop.texi: Likewise.
17917         * doc/posix-functions/gethostname.texi: Likewise.
17918         * lib/unistd.in.h (gethostname): Update comment.
17919
17920 2010-12-19  Bruno Haible  <bruno@clisp.org>
17921
17922         doc: Mention vasprintf-posix module.
17923         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17924         the 'vasprintf-posix' module.
17925         * doc/glibc-functions/vasprintf.texi: Likewise.
17926
17927 2010-12-19  Bruno Haible  <bruno@clisp.org>
17928
17929         unsetenv: Add missing declaration on OSF/1 5.1.
17930         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17931         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17932         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17933         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17934         not HAVE_UNSETENV.
17935         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17936         HAVE_UNSETENV.
17937         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17938
17939 2010-12-19  Bruno Haible  <bruno@clisp.org>
17940
17941         setenv: Add missing declaration on OSF/1 5.1.
17942         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17943         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17944         declared. Don't set HAVE_SETENV.
17945         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17946         not HAVE_SETENV.
17947         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17948         HAVE_SETENV.
17949         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17950
17951 2010-12-19  Bruno Haible  <bruno@clisp.org>
17952
17953         nl_langinfo tests: Avoid gcc warning.
17954         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17955
17956 2010-12-19  Bruno Haible  <bruno@clisp.org>
17957
17958         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17959         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17960         _GL_CXXALIAS_SYS.
17961
17962 2010-12-19  Bruno Haible  <bruno@clisp.org>
17963
17964         stdbool: Relax test.
17965         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17966         address to 'bool' work in static initializer, for compilers other than
17967         GCC.
17968
17969 2010-12-19  Bruno Haible  <bruno@clisp.org>
17970
17971         ftello: Add missing declaration on OSF/1 5.1.
17972         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17973         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17975         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17976         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17977
17978 2010-12-19  Bruno Haible  <bruno@clisp.org>
17979
17980         fseeko: Add missing declaration on OSF/1 5.1.
17981         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17982         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17983         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17984         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17985         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17986
17987 2010-12-19  Bruno Haible  <bruno@clisp.org>
17988
17989         fchdir: Add missing declaration on OSF/1 5.1.
17990         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17991         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17993         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17994         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17995
17996 2010-12-19  Bruno Haible  <bruno@clisp.org>
17997
17998         relocatable-prog-wrapper: Separate from relocatable-prog.
17999         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18000         uninstall-relocwrapper rule here.
18001         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18002         Reported by Ian Beckwith <ianb@erislabs.net>.
18003
18004 2010-12-19  Bruno Haible  <bruno@clisp.org>
18005
18006         unistr/u8-mbsnlen: Add missing dependency.
18007         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18008         Reported by Ian Beckwith <ianb@erislabs.net>.
18009
18010 2010-12-19  Bruno Haible  <bruno@clisp.org>
18011
18012         iconv: Make it possible again to use this module without 'iconv-h'.
18013         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18014         if it is not defined.
18015         Reported by Ian Beckwith <ianb@erislabs.net>.
18016
18017 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18018
18019         acl: port to Solaris 8 when copying from tmpfs to ufs
18020         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18021         error number.  Problem observed on Solaris 8 with latest
18022         coreutils, with "mv A B", where A is on a tmpfs file system and B
18023         is on a ufs file system.  This caused coreutils' mv/part-symlink
18024         test to fail.
18025
18026         tests: set fail=0 at start
18027         * tests/init.sh (setup_): Move fail=0 initialization here ...
18028         (mktempd_): ... from here, so that tests can rely on fail being
18029         set to 0 initially.  This fixes a problem in coreutils; see:
18030         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18031
18032 2010-12-18  Bruno Haible  <bruno@clisp.org>
18033
18034         memmem-simple: Stylistic changes.
18035         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18036         Fix preprocessor directive indentation.
18037
18038 2010-12-15  Pádraig Brady <P@draigBrady.com>
18039
18040         memmem, memmem-simple: reorganize and expand empty needle check
18041         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18042         functional checks to memmem-simple so that one has a fully functional
18043         memmem by using just this module.
18044         Restrict the performance only check to the memmem module.
18045         Also expand the empty needle check to ensure the correct
18046         pointer is returned, not just a non NULL pointer.
18047         * doc/glibc-functions/memmem.texi: Rearrange the portability
18048         documentation to correlate with the rearranged checks.
18049         Clarify exactly how the memmem and memmem-simple modules
18050         relate to each other.
18051
18052 2010-12-15  Pádraig Brady <P@draigBrady.com>
18053             Bruno Haible  <bruno@clisp.org>
18054
18055         Improve cross-compilation guesses for uClibc.
18056         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18057         that uClibc does not have the glibc bug.
18058         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18059         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18060
18061 2010-12-14  Eric Blake  <eblake@redhat.com>
18062
18063         configmake: provide fallbacks for oldest supported autotools
18064         * m4/configmake.m4: New file.
18065         * modules/configmake (Files): Ship it.
18066         (configure.ac): Use it to guarantee fallbacks.
18067
18068 2010-12-13  Pádraig Brady <P@draigBrady.com>
18069
18070         read-file: Improve handling of large files
18071         * lib/read-file.c (fread_file): Minimize realloc()s
18072         for regular files, and better manage sizes around SIZE_MAX.
18073
18074 2010-12-13  Eric Blake  <eblake@redhat.com>
18075
18076         cloexec, fcntl: relax license
18077         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18078         consent from all contributors.
18079         * modules/fcntl (License): Likewise.
18080
18081 2010-12-10  Bruno Haible  <bruno@clisp.org>
18082
18083         Tests for module 'pipe-posix'.
18084         * modules/pipe-posix-tests: New file.
18085         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18086
18087 2010-12-10  Bruno Haible  <bruno@clisp.org>
18088
18089         pipe-posix: Make it work in C++ mode.
18090         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18091         (pipe): Use common idiom, not a macro definition.
18092         * lib/pipe.c: New file.
18093         * m4/pipe.m4: New file.
18094         * modules/pipe-posix (Description): Enhance.
18095         (Files): Add lib/pipe.c, m4/pipe.m4.
18096         (configure.ac): Invoke gl_FUNC_PIPE.
18097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18098         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18099         * tests/test-unistd-c++.cc: Check the signature of pipe.
18100
18101 2010-12-10  Bruno Haible  <bruno@clisp.org>
18102
18103         Rename module 'pipe' to 'spawn-pipe'.
18104         * modules/spawn-pipe: New file, renamed from modules/pipe.
18105         (Files, configure.ac, Makefile.am): Update.
18106         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18107         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18108         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18109         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18110         "spawn-pipe.h" instead of "pipe.h".
18111         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18112         to gl_SPAWN_PIPE.
18113         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18114         (Files, Makefile.am): Update.
18115         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18116         Update.
18117         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18118         Include "spawn-pipe.h" instead of "pipe.h".
18119         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18120         * lib/javacomp.c: Likewise.
18121         * lib/javaversion.c: Likewise.
18122         * lib/pipe-filter-gi.c: Likewise.
18123         * lib/pipe-filter-ii.c: Likewise.
18124         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18125         * modules/javacomp (Depends-on): Likewise.
18126         * modules/javaversion (Depends-on): Likewise.
18127         * modules/pipe-filter-gi (Depends-on): Likewise.
18128         * modules/pipe-filter-ii (Depends-on): Likewise.
18129         * MODULES.html.sh (Executing programs): Update.
18130         * NEWS: Mention the change.
18131
18132 2010-12-10  Eric Blake  <eblake@redhat.com>
18133
18134         pipe-posix: new module
18135         * modules/pipe-posix: New file.
18136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18137         (gl_UNISTD_H): Check for declaration.
18138         * modules/unistd (Makefile.am): Substitute it.
18139         * lib/unistd.in.h (pipe): Provide it for mingw.
18140         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18141         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18142
18143 2010-12-07  Bruno Haible  <bruno@clisp.org>
18144
18145         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18146         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18147         u8_strcmp_gnu.
18148         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18149
18150 2010-12-06  Bruno Haible  <bruno@clisp.org>
18151
18152         Update internal documentation.
18153         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18154
18155 2010-12-04  Bruno Haible  <bruno@clisp.org>
18156
18157         Put more information about failed tests into the test return codes.
18158         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18159         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18160         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18161         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18162         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18163         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18164         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18165         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18166         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18167         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18168         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18169         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18170         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18171         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18172         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18173         returns a bit mask.
18174         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18175         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18176         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18177         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18178         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18179         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18180         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18181         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18182         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18183         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18184         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18185         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18186         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18187         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18188         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18189         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18190         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18191         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18192         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18193         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18194         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18195         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18196         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18197         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18198         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18199         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18200         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18201         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18202         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18203         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18204         gl_PRINTF_PRECISION): Likewise.
18205         * m4/regex.m4 (gl_REGEX): Likewise.
18206         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18207         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18208         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18209         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18210         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18211         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18212         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18213         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18214         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18215         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18216         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18217         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18218         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18219         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18220         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18221         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18222         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18223         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18225         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18226         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18227         enumerated value.
18228         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18229
18230 2010-12-04  Bruno Haible  <bruno@clisp.org>
18231
18232         Update for Solaris 11 2010-11.
18233         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18234         Express, released in November 2010.
18235
18236 2010-12-04  Bruno Haible  <bruno@clisp.org>
18237
18238         nproc: Relax license.
18239         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18240         and Paul Eggert.
18241         Requested by Ludovic Courtès <ludo@gnu.org>.
18242
18243 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18244
18245         utimecmp: fine-grained src to nearby coarse-grained dest
18246
18247         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18248         and the source is on a file system with higher-resolution time
18249         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18250         not work, and the time stamps are close together, the algorithm to
18251         determine the exact resolution from the read-back mtime was buggy:
18252         it had a "!=" where it should have had an "==".  This bug has been
18253         in the code ever since it was introduced to gnulib.
18254         Problem reported by Dan Jacobson in
18255         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18256
18257 2010-11-30  Bruno Haible  <bruno@clisp.org>
18258
18259         strerror_r-posix: Fix autoconf test.
18260         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18261
18262 2010-11-28  Bruno Haible  <bruno@clisp.org>
18263             Paul Eggert  <eggert@cs.ucla.edu>
18264
18265         Tests for module 'getdomainname'.
18266         * modules/getdomainname-tests: New file.
18267         * tests/test-getdomainname.c: New file, based on
18268         tests/test-gethostname.c.
18269
18270 2010-11-28  Bruno Haible  <bruno@clisp.org>
18271             Paul Eggert  <eggert@cs.ucla.edu>
18272
18273         getdomainname: Use the system function when possible.
18274         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18275         (getdomainname): Replace if needed. Provide the declaration if it is
18276         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18277         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18278         (getdomainname): When the system has getdomainname, call the system
18279         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18280         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18281         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18282         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18283         the function if its second argument is of type 'int' or if it is found
18284         in libnsl.
18285         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18286         <sys/systeminfo.h> and sysinfo().
18287         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18289         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18290         HAVE_GETDOMAINNAME.
18291         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18292         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18293         * doc/glibc-functions/getdomainname.texi: Document the problems with
18294         the getdomainname declaration.
18295
18296 2010-11-28  Bruno Haible  <bruno@clisp.org>
18297
18298         sys_socket: Ensure ss_family field on AIX.
18299         * lib/sys_socket.in.h (ss_family): New macro definition.
18300         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18301         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18302         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18303         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18304         * modules/sys_socket (Makefile.am): Substitute
18305         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18306         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18307
18308 2010-11-27  Bruno Haible  <bruno@clisp.org>
18309
18310         readline: Improve configure output.
18311         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18312         "checking for readline..." result understandable.
18313
18314 2010-11-27  Bruno Haible  <bruno@clisp.org>
18315
18316         *printf-posix: Detect a bug on Solaris 10/x86.
18317         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18318         for floating-point output.
18319         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18320         directive.
18321         * tests/test-snprintf-posix.h (test_function): Likewise.
18322         * tests/test-sprintf-posix.h (test_function): Likewise.
18323         * tests/test-vasprintf-posix.c (test_function): Likewise.
18324         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18325         * doc/posix-functions/printf.texi: Likewise.
18326         * doc/posix-functions/snprintf.texi: Likewise.
18327         * doc/posix-functions/sprintf.texi: Likewise.
18328         * doc/posix-functions/vfprintf.texi: Likewise.
18329         * doc/posix-functions/vprintf.texi: Likewise.
18330         * doc/posix-functions/vsnprintf.texi: Likewise.
18331         * doc/posix-functions/vsprintf.texi: Likewise.
18332         * doc/glibc-functions/obstack_printf.texi: Likewise.
18333         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18334
18335 2010-11-27  Bruno Haible  <bruno@clisp.org>
18336
18337         Fix link error when module libunistring-optional is in use.
18338         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18339         * modules/striconveha-tests (Makefile.am): Likewise.
18340
18341 2010-11-27  Bruno Haible  <bruno@clisp.org>
18342
18343         regex: Mention link dependencies.
18344         * modules/regex (Link): New section.
18345         * modules/rpmatch (Link): Likewise.
18346         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18347
18348 2010-11-27  Bruno Haible  <bruno@clisp.org>
18349
18350         ftoastr: Fix compilation error on Solaris.
18351         * lib/ftoastr.c: Include <config.h>.
18352
18353 2010-11-27  Bruno Haible  <bruno@clisp.org>
18354
18355         getloadavg: Update documentation.
18356         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18357
18358 2010-11-27  Bruno Haible  <bruno@clisp.org>
18359
18360         sys_socket: Fix test whether the functions are declared.
18361         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18362         not <sys/select.h>.
18363
18364 2010-11-27  Bruno Haible  <bruno@clisp.org>
18365
18366         getpass: Make sure to get system declaration on some platforms.
18367         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18368         gl_USE_SYSTEM_EXTENSIONS.
18369         * modules/getpass (Depends-on): Add extensions.
18370
18371 2010-11-26  Bruno Haible  <bruno@clisp.org>
18372
18373         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18374         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18375         'iconv' module is present.
18376         (ICONV_CONST): New macro.
18377         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18378         ICONV_CONST.
18379         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18380         set ICONV_CONST.
18381         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18382         here.
18383         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18384         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18385         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18386         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18387         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18388         present.
18389
18390 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18391
18392         ftoastr: comment fix
18393         * lib/ftoastr.c: "little" -> "little or no" in comment
18394
18395 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18396
18397         stdint: port to GCC 4.3 + OSX + Octave
18398         On this platform, stdint.h is buggy and defines int64_t to long
18399         long int.  The replacement defined it to long int, causing
18400         problems with C++ style name mangling.  Instead, trust the system
18401         definition if INT64_MAX is defined, and likewise for the unsigned
18402         variant.   Problem reported by Jarno Rajahalme in
18403         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18404         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18405         and don't mess with int64_t and INT64_MAX in this case.
18406         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18407
18408 2010-11-24  Bruno Haible  <bruno@clisp.org>
18409
18410         doc: Corrections regarding MacOS X 10.4 and 10.5.
18411         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18412         MacOS X.
18413         Reported by Simon Josefsson.
18414
18415 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18416
18417         Uninstall ".bin" files installed by relocwrapper.
18418         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18419         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18420         unless it is already there.
18421
18422 2010-11-21  Bruno Haible  <bruno@clisp.org>
18423
18424         Update for NetBSD 5.0.
18425         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18426         NetBSD; the test fails on NetBSD 5.0.
18427         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18428         about NetBSD.
18429
18430 2010-11-21  Bruno Haible  <bruno@clisp.org>
18431
18432         Update for HP-UX 11.23 and HP-UX 11.31.
18433         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18434         HP-UX.
18435
18436 2010-11-21  Bruno Haible  <bruno@clisp.org>
18437
18438         Update for MacOS X 10.5.
18439         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18440         MacOS X; the test fails on MacOS X 10.5.8.
18441         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18442         about MacOS X.
18443
18444 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18445
18446         bootstrap: add bootstrap_sync option.
18447         See discussion at
18448         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18449         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18450         * build-aux/bootstrap: Accept --bootstrap-sync to update
18451         bootstrap if it is not identical to the local gnulib's
18452         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18453         enable this by default.  Accept --no-bootstrap-sync to disable
18454         it.
18455
18456 2010-11-20  Bruno Haible  <bruno@clisp.org>
18457
18458         Ensure that <features.h> is included before __GLIBC__ is tested.
18459         * lib/printf-parse.h: Include <features.h>.
18460         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18461         Reported by Mike Frysinger <vapier@gentoo.org>.
18462
18463         Ensure that <features.h> is included before __GLIBC__ is tested.
18464         * lib/wchar.in.h: Include <features.h>.
18465         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18466         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18467         Reported by Mike Frysinger <vapier@gentoo.org>.
18468
18469         Ensure that <features.h> is included before __GLIBC__ is tested.
18470         * lib/arpa_inet.in.h: Include <features.h>.
18471         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18472         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18473         Reported by Mike Frysinger <vapier@gentoo.org>.
18474
18475         Ensure that <features.h> is included before __GLIBC__ is tested.
18476         * build-aux/link-warning.h: Include <features.h>.
18477         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18478         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18479         Reported by Mike Frysinger <vapier@gentoo.org>.
18480
18481         Ensure that <features.h> is included before __GLIBC__ is tested.
18482         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18483         Reported by Mike Frysinger <vapier@gentoo.org>.
18484
18485 2010-11-20  Bruno Haible  <bruno@clisp.org>
18486
18487         memmem: Fix autoconf test.
18488         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18489
18490 2010-11-20  Bruno Haible  <bruno@clisp.org>
18491
18492         Port to uClibc.
18493         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18494         * lib/fcntl.in.h: Likewise.
18495         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18496         * lib/mbrtowc.c (mbrtowc): Likewise.
18497         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18498         * lib/strerror_r.c: Likewise.
18499         * lib/unistr/u8-strnlen.c: Likewise.
18500         * lib/vasnprintf.c (decimal_point_char): Likewise.
18501         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18502         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18503         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18504         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18505         * tests/test-sigaction.c (handler, main): Likewise.
18506         * lib/freading.h: Treat uClibc like a non-glibc platform.
18507         * lib/freading.c: Likewise.
18508         * lib/gettext.h: Likewise.
18509         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18510         Likewise.
18511         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18512         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18513         * lib/propername.c (proper_name_utf8): Likewise.
18514         * lib/spawn.in.h: Likewise.
18515         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18516         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18517         mem_cd_iconveh_internal): Likewise.
18518         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18519         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18520         strstr, strcasestr): Likewise.
18521         * lib/unicodeio.c (unicode_to_mb): Likewise.
18522         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18523         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18524         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18525         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18526         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18527         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18528         * lib/unistr/u8-stpncpy.c: Likewise.
18529         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18530         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18531         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18532         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18533         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18534         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18535         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18536         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18537         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18538         Likewise.
18539         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18540         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18541         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18542         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18543         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18544         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18545         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18546         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18547         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18548         * tests/test-striconveha.c (main): Likewise.
18549         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18550         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18551         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18552         * doc/posix-functions/getline.texi: Likewise.
18553         Reported by Mike Frysinger <vapier@gentoo.org>.
18554
18555 2010-11-20  Bruno Haible  <bruno@clisp.org>
18556
18557         nproc: Fix condition.
18558         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18559         HAVE_PTHREAD_AFFINITY_NP.
18560
18561 2010-11-20  Bruno Haible  <bruno@clisp.org>
18562
18563         Fix a comment.
18564         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18565
18566 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18567
18568         ftoastr: don't assume snprintf
18569         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18570         Implement a subset of snprintf here, by using sprintf safely.
18571         * modules/ftoastr (Depends-on): Remove snprintf.
18572
18573 2010-11-19  Jim Meyering  <meyering@redhat.com>
18574
18575         test-rename.h: fix compilation failure
18576         * tests/test-rename.h (test_rename): Add omitted "}".
18577
18578 2010-11-17  Jim Meyering  <meyering@redhat.com>
18579
18580         maint.mk: add a URL discussing the no-@acronym policy
18581         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18582
18583 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18584
18585         ftoastr: depend on snprintf, improve comments
18586         * lib/ftoastr.c: Also mention Loitsch's draft.
18587         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18588         needed in the current implementation, but it might simplify
18589         speeding up the code later.
18590         * modules/ftoastr: Depend on snprintf; this improves portability.
18591         Suggested by Bruno Haible in the same email.
18592
18593         ftoastr: port to hosts lacking strtof and strtold
18594         Problem reported by Bruno Haible in
18595         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18596         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18597         environment and strtold (and presumably strtof) are not available.
18598         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18599         (configure.ac): Require gl_C99_STRTOLD.
18600
18601 2010-11-18  Bruno Haible  <bruno@clisp.org>
18602
18603         c-strtold: Avoid link error on AIX 7.
18604         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18605         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18606         (gl_C_STRTOLD): Test whether strtold_l exists.
18607         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18608
18609 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18610
18611         intprops: new macro INT_BITS_STRLEN_BOUND
18612         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18613         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18614         not exposed.  Also, it uses a slightly tighter bound than before;
18615         though this makes no practical difference, we might as well be as
18616         tight as we easily can.
18617
18618         ftoastr: new module, for lossless conversion of floats to short strings
18619         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18620         * modules/ftoastr: New files.
18621
18622 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18623
18624         bootstrap: port to Solaris sed
18625         * build-aux/bootstrap (get_version): Port to Solaris sed.
18626         See Ralf Wildenhues's note in
18627         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18628
18629 2010-11-14  Jim Meyering  <meyering@redhat.com>
18630
18631         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18632         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18633         and move definition closer to sole use.
18634
18635 2010-11-13  Jim Meyering  <meyering@redhat.com>
18636
18637         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18638         Now we require at least autoconf-2.59, which means the work-around
18639         is no longer needed.
18640         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18641         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18642         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18643         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18644         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18645
18646 2010-11-13  Bruno Haible  <bruno@clisp.org>
18647
18648         rename, renameat: Avoid test failures at NFS mounted locations.
18649         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18650         functions.
18651         (test_rename): Use assert_nonexistent.
18652         * tests/test-rename.c: Include <dirent.h>.
18653         * tests/test-renameat.c: Likewise.
18654         Reported by Gary V. Vaughan <gary@gnu.org>.
18655
18656         rename, renameat: Document Linux bug with NFS
18657         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18658         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18659         * doc/posix-functions/renameat.texi: Likewise.
18660         Suggested by Eric Blake.
18661
18662 2010-11-13  Bruno Haible  <bruno@clisp.org>
18663
18664         rename test: Add comments.
18665         * tests/test-rename.h (test_rename): Add structure and comments.
18666
18667 2010-11-13  Eric Blake  <eblake@redhat.com>
18668
18669         maintainer-makefile: cover a few more files
18670         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18671         scripts generated within C files, for libvirt.
18672
18673 2010-11-13  Bruno Haible  <bruno@clisp.org>
18674
18675         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18676         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18677         character, return the number of bytes that belong together, not always
18678         1.
18679         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18680         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18681         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18682         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18683         number of bytes of an invalid character.
18684         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18685         (main): Invoke it.
18686         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18687         results.
18688         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18689         malformed byte sequences.
18690         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18691         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18692         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18693         Reported by Ben Pfaff and Paolo Bonzini.
18694
18695 2010-11-13  Bruno Haible  <bruno@clisp.org>
18696
18697         openat: Work around glibc bug with fchownat() and empty file names.
18698         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18699         (gl_FUNC_FCHOWNAT): Invoke it.
18700         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18701         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18702         Reported by Gary V. Vaughan <gary@gnu.org>.
18703
18704 2010-11-13  Bruno Haible  <bruno@clisp.org>
18705
18706         openat: Ensure autoconf macro ordering.
18707         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18708         gl_USE_SYSTEM_EXTENSIONS.
18709         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18710
18711 2010-11-13  Bruno Haible  <bruno@clisp.org>
18712
18713         Update comments.
18714         * lib/unistr/u8-check.c: Update file name in comments.
18715         * lib/unistr/u8-mblen.c: Likewise.
18716         * lib/unistr/u8-prev.c: Likewise.
18717         * lib/unistr/u8-strmblen.c: Likewise.
18718         * lib/unistr/u8-strmbtouc.c: Likewise.
18719
18720 2010-11-13  Jim Meyering  <meyering@redhat.com>
18721
18722         tests: avoid test failure on Solaris 10 due to lack of PATH export
18723         * tests/test-update-copyright.sh: Don't forget to export PATH.
18724
18725         init.sh: ensure that IFS is defined, just in case...
18726         * tests/init.sh (setup_): Ensure that IFS is defined,
18727         so that saving and restoring it works as expected.  This
18728         appears to be useful at least for an old version of dash
18729         from a long time ago (RH 6).  See here for details:
18730         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18731
18732         maint.mk: tighten "test a == b" check
18733         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18734         test to files that contain something like #!/bin/sh.
18735         Without this, coreutils would get two false positives in
18736         the comments of C source files.
18737
18738 2010-11-12  Eric Blake  <eblake@redhat.com>
18739
18740         bootstrap: fix typo in previous attempt
18741         * build-aux/bootstrap (buildreq): Correct the grouping.
18742         Reported by Paul Eggert.
18743
18744         maintainer-makefile: prohibit test x == x
18745         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18746         Based on a report by Matthias Bolte.
18747
18748         bootstrap: allow FreeBSD gzip
18749         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18750         which has no '.' and goes to stderr.
18751         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18752         Reported by Matthias Bolte.
18753
18754         maintainer-makefile: check for i18n setup
18755         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18756         will likely work.
18757
18758 2010-11-12  Bruno Haible  <bruno@clisp.org>
18759
18760         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18761         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18762         * lib/nanosleep.c (nanosleep): Likewise.
18763
18764 2010-11-11  Bruno Haible  <bruno@clisp.org>
18765
18766         fcntl-h: Fix for use of C++ on glibc systems.
18767         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18768         also on glibc systems in C++ mode.
18769         Reported by Gary V. Vaughan <gary@gnu.org>.
18770
18771 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18772
18773         mknod: avoid false failure with dash
18774         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18775
18776 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18777
18778         unlink: Fix "is it should" typo in diagnostic.
18779         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18780         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18781
18782 2010-11-11  Bruno Haible  <bruno@clisp.org>
18783
18784         Tests for module 'strerror_r-posix'.
18785         * modules/strerror_r-posix-tests: New file.
18786         * tests/test-strerror_r.c: New file.
18787         * tests/test-string-c++.cc: Check the signature of strerror_r.
18788
18789         New module 'strerror_r-posix'.
18790         * lib/string.in.h (strerror_r): New declaration.
18791         * lib/strerror_r.c: New file.
18792         * m4/strerror_r.m4: New file.
18793         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18794         of strerror_r.
18795         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18796         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18797         * modules/strerror_r-posix: New file.
18798         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18799         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18800         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18801         portability problems.
18802
18803 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18804
18805         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18806         line is also considered for output. Quoted function name in shell
18807         command, so temporary files for functions like MyClass::operator()
18808         are removed correctly without errors.
18809
18810 2010-11-09  Bruno Haible  <bruno@clisp.org>
18811
18812         * doc/posix-functions/strerror.texi: List more failing platforms.
18813
18814         * doc/posix-functions/strerror.texi: Add a comment.
18815
18816 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18817
18818         fdopendir: fix bug on MacOS X when low on file descriptors
18819
18820         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18821         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18822         All callers changed.
18823         (fdopendir): Invoke save_cwd at the top level, not after using
18824         multiple dup() calls to use up file descriptors.  Then retry
18825         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18826         less than the maximum number of open file descriptors, because
18827         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18828         on Mac OS X 10.6.4 for tar 1.24
18829         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18830         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18831         and for tar 1.25
18832         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18833
18834 2010-11-07  Bruno Haible  <bruno@clisp.org>
18835
18836         vasnprintf: Support I flag on glibc systems.
18837         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18838         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18839         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18840         snprintf function.
18841         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18842         glibc systems.
18843         * tests/test-vasnprintf-posix3.c: New file.
18844         * modules/vasnprintf-posix-tests (Files): Add it.
18845         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18846
18847 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18848
18849         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18850         * MODULES.html.sh: For compiler warnings, use name
18851         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18852
18853 2010-11-05  Eric Blake  <eblake@redhat.com>
18854
18855         ceil, floor: avoid spurious failure with icc
18856         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18857         [denormals-as-zero] when optimizing without -mieee-fp option.
18858         * tests/test-floorf2.c (floorf_reference): Likewise.
18859         * tests/test-ceilf1.c (dummy): New function.
18860         (main): Use it to outsmart icc's optimization.
18861         * tests/test-floorf1.c (dummy, main): Likewise.
18862
18863         tests: require working signbit
18864         * modules/ceilf-tests (Depends-on): Add signbit.
18865         * modules/ceill-tests (Depends-on): Likewise.
18866         * modules/floorf-tests (Depends-on): Likewise.
18867         * modules/floorl-tests (Depends-on): Likewise.
18868         * modules/round-tests (Depends-on): Likewise.
18869         * modules/roundf-tests (Depends-on): Likewise.
18870         * modules/roundl-tests (Depends-on): Likewise.
18871         * modules/trunc-tests (Depends-on): Likewise.
18872         * modules/truncf-tests (Depends-on): Likewise.
18873         * modules/truncl-tests (Depends-on): Likewise.
18874
18875         strtod: work around icc bug
18876         * lib/strtod.c (minus_zero): Define to working value.
18877         (strtod): Use it to avoid icc bug.
18878
18879         copysign: enhance tests
18880         * modules/copysign-tests (Files): Add minus-zero.h.
18881         * tests/test-copysign.c (main): Also test zeros.
18882
18883 2010-11-04  Eric Blake  <eblake@redhat.com>
18884
18885         ceil, floor, round, trunc: enhance tests of -0
18886         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18887         * tests/test-ceill.c (main): Likewise.
18888         * tests/test-floorf1.c (main): Likewise.
18889         * tests/test-floorl.c (main): Likewise.
18890         * tests/test-round1.c (main): Likewise.
18891         * tests/test-roundf1.c (main): Likewise.
18892         * tests/test-roundl.c (main): Likewise.
18893         * tests/test-trunc1.c (main): Likewise.
18894         * tests/test-truncf1.c (main): Likewise.
18895         * tests/test-truncl.c (main): Likewise.
18896
18897 2010-11-04  Eric Blake  <eblake@redhat.com>
18898
18899         frexp, tests: work around ICC bug with -zero
18900         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18901         works with more compilers.
18902         * tests/minus-zero.h: New file.
18903         * modules/ceilf-tests (Files): Include it.
18904         * modules/ceill-tests (Files): Likewise.
18905         * modules/floorf-tests (Files): Likewise.
18906         * modules/floorl-tests (Files): Likewise.
18907         * modules/frexp-nolibm-tests (Files): Likewise.
18908         * modules/frexp-tests (Files): Likewise.
18909         * modules/frexpl-nolibm-tests (Files): Likewise.
18910         * modules/frexpl-tests (Files): Likewise.
18911         * modules/isnan-tests (Files): Likewise.
18912         * modules/isnand-nolibm-tests (Files): Likewise.
18913         * modules/isnand-tests (Files): Likewise.
18914         * modules/isnanf-nolibm-tests (Files): Likewise.
18915         * modules/isnanf-tests (Files): Likewise.
18916         * modules/isnanl-nolibm-tests (Files): Likewise.
18917         * modules/isnanl-tests (Files): Likewise.
18918         * modules/round-tests (Files): Likewise.
18919         * modules/roundf-tests (Files): Likewise.
18920         * modules/roundl-tests (Files): Likewise.
18921         * modules/ldexpl-tests (Files): Likewise.
18922         * modules/signbit-tests (Files): Likewise.
18923         * modules/snprintf-posix-tests (Files): Likewise.
18924         * modules/sprintf-posix-tests (Files): Likewise.
18925         * modules/strtod-tests (Files): Likewise.
18926         * modules/trunc-tests (Files): Likewise.
18927         * modules/truncf-tests (Files): Likewise.
18928         * modules/truncl-tests (Files): Likewise.
18929         * modules/vsnprintf-posix-tests (Files): Likewise.
18930         * modules/vsprintf-posix-tests (Files): Likewise.
18931         * modules/vasnprintf-posix-tests (Files): Likewise.
18932         * modules/vasprintf-posix-tests (Files): Likewise.
18933         * tests/test-ceilf1.c (main): Use it.
18934         * tests/test-ceill.c (main): Likewise.
18935         * tests/test-floorf1.c (main): Likewise.
18936         * tests/test-floorl.c (main): Likewise.
18937         * tests/test-frexp.c (main): Likewise.
18938         * tests/test-frexpl.c (main): Likewise.
18939         * tests/test-isnan.c (main): Likewise.
18940         * tests/test-isnand.h (main): Likewise.
18941         * tests/test-isnanf.h (main): Likewise.
18942         * tests/test-isnanl.h (main): Likewise.
18943         * tests/test-ldexpl.c (main): Likewise.
18944         * tests/test-round.c (main): Likewise.
18945         * tests/test-roundf.c (main): Likewise.
18946         * tests/test-roundl.c (main): Likewise.
18947         * tests/test-signbit.c (test_signbitf, test_signbitd)
18948         (test_signbitl): Likewise.
18949         * tests/test-snprintf-posix.h (test_function): Likewise.
18950         * tests/test-sprintf-posix.h (test_function): Likewise.
18951         * tests/test-strtod.c (main): Likewise.
18952         * tests/test-trunc1.c (main): Likewise.
18953         * tests/test-truncf1.c (main): Likewise.
18954         * tests/test-truncl.c (main): Likewise.
18955
18956         isnanl: work around icc bug
18957         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18958
18959 2010-11-03  Eric Blake  <eblake@redhat.com>
18960
18961         tests: fix compiler warnings
18962         * tests/test-getopt.h (test_getopt): Fix condition.
18963         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18964         * tests/test-pipe2.c (main): Likewise.
18965         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18966
18967         utimens: fix broken m4 test
18968         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18969
18970 2010-10-28  Bruno Haible  <bruno@clisp.org>
18971
18972         posix_spawn*, getdtablesize: Relax license.
18973         * modules/posix_spawn (License): Change to LGPLv2+.
18974         * modules/posix_spawnp (License): Likewise.
18975         * modules/posix_spawn-internal (License): Likewise.
18976         * modules/posix_spawnattr_init (License): Likewise.
18977         * modules/posix_spawnattr_getflags (License): Likewise.
18978         * modules/posix_spawnattr_setflags (License): Likewise.
18979         * modules/posix_spawnattr_getpgroup (License): Likewise.
18980         * modules/posix_spawnattr_setpgroup (License): Likewise.
18981         * modules/posix_spawnattr_getschedparam (License): Likewise.
18982         * modules/posix_spawnattr_setschedparam (License): Likewise.
18983         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18984         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18985         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18986         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18987         * modules/posix_spawnattr_getsigmask (License): Likewise.
18988         * modules/posix_spawnattr_setsigmask (License): Likewise.
18989         * modules/posix_spawnattr_destroy (License): Likewise.
18990         * modules/posix_spawn_file_actions_init (License): Likewise.
18991         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18992         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18993         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18994         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18995         * modules/getdtablesize (License): Likewise.
18996         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18997
18998 2010-10-26  Bruno Haible  <bruno@clisp.org>
18999
19000         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19001         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19002         Cygwin and mingw.
19003         Suggested by Eric Blake.
19004
19005 2010-10-26  Bruno Haible  <bruno@clisp.org>
19006
19007         stdio: Work around compilation error due to renameat() on Solaris 10.
19008         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19009         * lib/renameat.c: Don't include <unistd.h> here.
19010         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19011         Reported by Paul Eggert and Eric Blake.
19012
19013 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19014
19015         renameat: port to Solaris 10, which declares renameat in unistd.h
19016
19017         * lib/renameat.c: Include unistd.h before stdio.h, because
19018         Solaris 10 declares renameat in unistd.h.  Problem encountered
19019         when building GNU tar 1.24 on Solaris 10.
19020
19021 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19022
19023         fdopendir: fix C89 compilation
19024         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19025         compilers.
19026
19027 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19028
19029         inttostr: simplify by removing unnecessary redundancy
19030         * lib/anytostr.c: Don't include verify.h.
19031         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19032         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19033         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19034         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19035         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19036         Likewise.
19037         * modules/inttostr (Depends-on): Remove 'verify'.
19038
19039 2010-10-23  Bruno Haible  <bruno@clisp.org>
19040
19041         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19042         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19043         Reported by Eric Blake.
19044
19045 2010-10-23  Bruno Haible  <bruno@clisp.org>
19046
19047         Tests: Fix LOCALE_JA on MirBSD 10.
19048         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19049         to an UTF-8 locale.
19050         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19051         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19052         Reported by Eric Blake.
19053
19054 2010-10-21  Bruno Haible  <bruno@clisp.org>
19055
19056         nl_langinfo test: Avoid test failure on NetBSD 5.
19057         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19058         Reported by Eric Blake.
19059
19060 2010-10-21  Eric Blake  <eblake@redhat.com>
19061
19062         c-stack: work around libsigsegv 2.8 bug
19063         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19064         overflow on at least PowerPC64.
19065
19066 2010-10-17  Bruno Haible  <bruno@clisp.org>
19067
19068         userspec: Drop redundant file.
19069         * modules/userspec (Files): Remove lib/inttostr.h.
19070
19071 2010-10-17  Bruno Haible  <bruno@clisp.org>
19072
19073         nl_langinfo tests: Silence some warnings.
19074         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19075         Reported by Jim Meyering.
19076
19077 2010-10-17  Bruno Haible  <bruno@clisp.org>
19078
19079         Make use of GCC's attribute __alloc_size__.
19080         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19081         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19082         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19083         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19084         __alloc_size__.
19085         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19086         Suggested by Jim Meyering.
19087
19088 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19089
19090         bootstrap: anchor .gitignore entries.
19091         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19092         with...
19093         (insert_vc_ignore): ... this new function, which prepends `/' to
19094         all .gitignore entries before passing them to
19095         insert_sorted_if_absent.
19096
19097 2010-10-16  Bruno Haible  <bruno@clisp.org>
19098
19099         nextafter: Fix configure check.
19100         * modules/nextafter (configure.ac): Correct expected prototype.
19101
19102 2010-10-16  Bruno Haible  <bruno@clisp.org>
19103
19104         termios: Update documentation.
19105         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19106
19107 2010-10-16  Bruno Haible  <bruno@clisp.org>
19108
19109         tests: Make them compile with TinyCC.
19110         * tests/test-strstr.c (main): Remove parentheses around array
19111         initializer.
19112
19113 2010-10-15  Eric Blake  <eblake@redhat.com>
19114
19115         ignore-value: make header idempotent
19116         * lib/ignore-value.h: Add double-inclusion guards.
19117         Reported by Stefan Berger.
19118
19119 2010-10-15  Jim Meyering  <meyering@redhat.com>
19120
19121         GNUmakefile: handle "stable" target, not "major"
19122         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19123         lists in maint.mk and announce-gen.  Without this, "make stable"
19124         would fail to ensure that $(VERSION) is up to date.
19125
19126 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19127
19128         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19129         & co.
19130
19131 2010-10-14  Bruno Haible  <bruno@clisp.org>
19132
19133         vasnprintf: Don't set errno to 0.
19134         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19135         block that sets it to 0.
19136         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19137
19138 2010-10-14  Bruno Haible  <bruno@clisp.org>
19139
19140         socketlib: Fix.
19141         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19142         gl_PREREQ_SYS_H_WINSOCK2.
19143         Reported by Ian Beckwith <ianb@erislabs.net>.
19144
19145 2010-10-13  Jim Meyering  <meyering@redhat.com>
19146
19147         test-select-stdin.c: avoid warn_unused_result warnings
19148         * tests/test-select-stdin.c: Include "macros.h".
19149         ASSERT that read and fflush succeed.
19150
19151 2010-10-13  Jim Meyering  <meyering@redhat.com>
19152
19153         git-version-gen: do require git-VC'd files in cwd
19154         * build-aux/git-version-gen: Reject a git version string
19155         if there are no commits associated with the current directory.
19156         This avoids an unlikely false-positive (unrelated dir whose parent
19157         repository also contains a tag matching v*), as pointed out
19158         by Giuseppe Scrivano in
19159         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19160
19161 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19162
19163         argv-iter: omit nonconforming declaration
19164         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19165         enum arg_iter_err declaration, which doesn't conform to C99.
19166         Solaris 10 cc warns about this.
19167
19168 2010-10-13  Eric Blake  <eblake@redhat.com>
19169
19170         termios: fix compilation on mingw
19171         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19172         (gl_TERMIOS_H): Adjust it on mingw.
19173         * modules/termios (Makefile.am): Substitute new key.
19174         * lib/termios.in.h (includes): Make include_next conditional.
19175         * doc/posix-headers/termios.texi (termios.h): Update
19176         documentation.
19177         Reported by Daniel P. Berrange.
19178
19179 2010-10-13  Jim Meyering  <meyering@redhat.com>
19180
19181         git-version-gen: don't require that .git/ be in the current dir
19182         * build-aux/git-version-gen: Adjust this script so that it works
19183         when run from any working directory beneath the top-level .git/-
19184         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19185         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19186
19187         test-select: avoid warn_unused_result warnings
19188         * tests/test-select.c: Include "macros.h".
19189         ASSERT that each call to read, write, and pipe succeeds.
19190         While not technically required, also check each "close".
19191         * modules/select-tests (Files): Add tests/macros.h.
19192
19193         test-symlinkat: remove declaration of unused local
19194         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19195
19196         test-inttostr: avoid shadowing warnings
19197         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19198         and use malloc rather than the stack for the same reason as
19199         mentioned in the comment justifying the other allocation.
19200
19201 2010-10-11  Bruno Haible  <bruno@clisp.org>
19202
19203         stdlib: Allow multiple gnulib generated replacements to coexist.
19204         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19205         Reported by Sam Steingold <sds@gnu.org>.
19206
19207 2010-10-11  Jim Meyering  <meyering@redhat.com>
19208
19209         fix a documentation typo
19210         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19211
19212 2010-10-11  Eric Blake  <eblake@redhat.com>
19213
19214         futimens: work around Solaris 11 bug
19215         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19216         * tests/test-futimens.h (test_futimens): Enhance, rather than
19217         weaken test.
19218         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19219
19220 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19221
19222         Indentation.
19223         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19224         higher-level operators more to the left.
19225
19226 2010-10-11  Jim Meyering  <meyering@redhat.com>
19227
19228         test-futimens: avoid unwarranted test failure on Solaris 5.11
19229         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19230         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19231         because it tries to dereference the NULL name argument.
19232
19233 2010-10-11  Bruno Haible  <bruno@clisp.org>
19234
19235         Indentation.
19236         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19237         indentation.
19238
19239 2010-10-11  Jim Meyering  <meyering@redhat.com>
19240
19241         spawn.in.h: make indentation consistent with parentheses
19242         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19243         Make indentation consistent with parentheses.
19244
19245 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19246
19247         Fix mismatched parens in previous commit
19248         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19249         parens.
19250
19251 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19252
19253         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19254
19255         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19256         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19257         * lib/malloca.c: Include "verify.h".
19258         (verify1): Remove, replacing with a verify call.
19259         * lib/relocwrapper.c (verify1): Likewise.
19260         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19261         Likewise.
19262         * modules/malloca (Depends-on): Add 'verify'.
19263         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19264         * modules/vasnprintf (Depends-on): Add 'verify'.
19265         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19266         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19267         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19268         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19269         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19270         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19271         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19272
19273         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19274
19275         Formerly the style was sometimes 2*X - 1, because the C standard
19276         was wrongly thought to disallow ?: in integral constant expressions.
19277         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19278         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19279         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19280         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19281         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19282         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19283         verify that time_t cannot be floating.
19284
19285 2010-10-08  Eric Blake  <eblake@redhat.com>
19286
19287         time: enforce recent POSIX ruling that time_t is integral
19288         * lib/time.in.h (__time_t_must_be_integral): Detect any
19289         problematic systems, allowing the rest of gnulib to assume POSIX.
19290
19291 2010-10-08  Jim Meyering  <meyering@redhat.com>
19292
19293         fdopendir: fix a bug on systems lacking openat and /proc support
19294         OpenBSD 4.7 is one such system.  The most noticeable effect was
19295         failure of any application making nontrivial use of fts: rm, du,
19296         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19297           ./rm: traversal failed: `a': Bad file descriptor
19298         Debugging that, you see that even though FD 6 was closed just
19299         prior to the opendir call in fd_clone_opendir, its resulting
19300         dir->dd_fd was 8, rather than the expected value of 6:
19301
19302         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19303         93                close (fd);
19304         (gdb) n
19305         94                dir = fd_clone_opendir (dupfd);
19306         (gdb) n
19307         95                saved_errno = errno;
19308         (gdb) p dir->dd_fd
19309         $11 = 8
19310
19311         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19312         The problem is that on OpenBSD, fd_clone_opendir has to resort
19313         to using the old-style save/restore CWD mechanism, due to its
19314         lack of openat/proc support, and *that* would steal the FD (6)
19315         that opendir was supposed to use.
19316
19317         The fix is to squirrel away the desired FD so that save_cwd uses a
19318         different one, and then free the dest FD right before calling opendir.
19319         That guarantees opendir will use the required file descriptor.
19320
19321         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19322
19323 2010-10-08  Bruno Haible  <bruno@clisp.org>
19324
19325         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19326         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19327
19328 2010-10-08  Bruno Haible  <bruno@clisp.org>
19329
19330         nanosleep: Make replacement POSIX compliant.
19331         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19332         is out of range.
19333         Reported by Jim Meyering.
19334
19335 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19336
19337         bootstrap: add hook for altering gnulib.mk, for Bison
19338         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19339         the Bison bootstrapping process can rewrite file names and variables
19340         in this file before later parts of 'bootstrap' use the file.
19341         Bison wants to include lib/gnulib.mk from the top-level makefile,
19342         so it needs the file names in this file to be relative to the top
19343         level, not relative to lib; plus it needs variable names to be
19344         rewritten.
19345         (slurp): Use the new function.
19346
19347         bootstrap: reformat for readability
19348         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19349
19350 2010-10-08  Eric Blake  <eblake@redhat.com>
19351
19352         docs: update cygwin progress
19353         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19354         1.7.7.
19355         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19356         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19357         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19358         * doc/posix-functions/carg.texi (carg): Likewise.
19359         * doc/posix-functions/cargf.texi (cargf): Likewise.
19360         * doc/posix-functions/casin.texi (casin): Likewise.
19361         * doc/posix-functions/casinf.texi (casinf): Likewise.
19362         * doc/posix-functions/casinh.texi (casinh): Likewise.
19363         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19364         * doc/posix-functions/catan.texi (catan): Likewise.
19365         * doc/posix-functions/catanf.texi (catanf): Likewise.
19366         * doc/posix-functions/catanh.texi (catanh): Likewise.
19367         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19368         * doc/posix-functions/ccos.texi (ccos): Likewise.
19369         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19370         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19371         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19372         * doc/posix-functions/cexp.texi (cexp): Likewise.
19373         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19374         * doc/posix-functions/cimag.texi (cimag): Likewise.
19375         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19376         * doc/posix-functions/clog.texi (clog): Likewise.
19377         * doc/posix-functions/clogf.texi (clogf): Likewise.
19378         * doc/posix-functions/conj.texi (conj): Likewise.
19379         * doc/posix-functions/conjf.texi (conjf): Likewise.
19380         * doc/posix-functions/cpow.texi (cpow): Likewise.
19381         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19382         * doc/posix-functions/cproj.texi (cproj): Likewise.
19383         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19384         * doc/posix-functions/creal.texi (creal): Likewise.
19385         * doc/posix-functions/crealf.texi (crealf): Likewise.
19386         * doc/posix-functions/csin.texi (csin): Likewise.
19387         * doc/posix-functions/csinf.texi (csinf): Likewise.
19388         * doc/posix-functions/csinh.texi (csinh): Likewise.
19389         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19390         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19391         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19392         * doc/posix-functions/ctan.texi (ctan): Likewise.
19393         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19394         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19395         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19396         * doc/posix-headers/complex.texi (complex.h): Likewise.
19397
19398 2010-10-07  Jim Meyering  <meyering@redhat.com>
19399
19400         parse-datetime: avoid compilation failure on OpenBSD 4.7
19401         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19402         This works around a compilation failure on OpenBSD 4.7:
19403         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19404
19405 2010-10-07  Eric Blake  <eblake@redhat.com>
19406
19407         docs: update cygwin progress
19408         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19409         1.7.6.
19410         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19411         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19412         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19413         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19414         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19415         Likewise.
19416         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19417         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19418         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19419         Likewise.
19420         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19421         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19422         Likewise.
19423         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19424         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19425         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19426         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19427         Likewise.
19428         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19429         Likewise.
19430         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19431
19432         docs: update parse-datetime history
19433         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19434         documentation of this function's history and alternatives.
19435
19436         cygwin: use more robust version check
19437         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19438         exclude an eventual cygwin 1.9.1.
19439         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19440         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19441         (gl_FUNC_STRCASESTR): Likewise.
19442         Reported by Bruno Haible.
19443
19444 2010-10-06  Bruno Haible  <bruno@clisp.org>
19445
19446         string, sys_select: Avoid #including large headers unless necessary.
19447         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19448         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19449         OSF/1, BeOS, Haiku.
19450         Reported by Jim Meyering.
19451
19452 2010-10-05  Eric Blake  <eblake@redhat.com>
19453
19454         memmem, strstr, strcasestr: fix bug with long periodic needle
19455         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19456         periodic needle having false positive.
19457         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19458         and cygwin 1.7.7.
19459         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19460         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19461         (gl_FUNC_STRCASESTR): Likewise.
19462         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19463         * tests/test-memmem.c (main): Expose the bug.
19464         * tests/test-strcasestr.c (main): Likewise.
19465         * tests/test-strstr.c (main): Likewise.
19466         * tests/test-c-strcasestr.c (main): Likewise.
19467         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19468         * doc/posix-functions/strstr.texi (strstr): Likewise.
19469         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19470         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19471
19472 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19473
19474         parse-datetime: do some more renaming
19475         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19476         parse_datetime, not get_date.  Mention the renaming.
19477         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19478         in comments.
19479         * m4/bison.m4: Likewise.
19480
19481 2010-10-05  Eric Blake  <eblake@redhat.com>
19482
19483         parse-datetime: better name than get_date
19484         * NEWS: Reword the deprecation notice.
19485         * modules/get_date: Rename to modules/parse-datetime.
19486         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19487         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19488         * lib/get_date.y: Rename to lib/parse-datetime.y.
19489         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19490         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19491         * doc/getdate.texi: Provide fallback wrapper.
19492         * lib/getdate.h: Move guts, and wrap...
19493         * lib/parse-datetime.h: ...new file.
19494         * lib/parse-datetime.y (get_date): Rename...
19495         (parse_datetime): ...to this.
19496         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19497         (gl_PARSE_DATETIME): ...to this.
19498         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19499         documentation.
19500         * modules/getdate (Files): Provide fallback docs and header.
19501         (Notice, Depends-on): Update references.
19502         * tests/test-parse-datetime.c: Likewise.
19503         * DEPENDENCIES: Likewise.
19504         * MODULES.html.sh (Date and time <time.h>): Likewise.
19505         * doc/parse-datetime.texi (Date input formats)
19506         (Authors of parse_datetime): Likewise.
19507         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19508         (Include): Likewise.
19509         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19510         * gnulib-tool: Likewise.
19511         * m4/bison.m4 (gl_BISON): Likewise.
19512         Suggested by Bruno Haible.
19513
19514 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19515
19516         more ports to Solaris tr, which needs [] around ranges
19517         * gnulib-tool: Solaris tr needs [] around ranges.
19518         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19519         * tests/test-pipe-filter-gi1.c (main): Likewise.
19520         * tests/test-pipe-filter-ii1.c (main): Likewise.
19521
19522 2010-10-05  Eric Blake  <eblake@redhat.com>
19523
19524         bootstrap: fix Solaris regression
19525         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19526         around ranges.
19527         Reported by Pádraig Brady.
19528
19529         bootstrap: work with pkg-config
19530         * build-aux/bootstrap (check_versions): Also transliterate - in
19531         prerequisite name.
19532         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19533         prerequisites that were already found, to avoid confusion.
19534         Reported by Justin Clift.
19535
19536         faccessat: remove unused wrappers
19537         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19538         presence of these wrappers dragged in -lgen on Solaris.
19539         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19540
19541 2010-10-05  Jim Meyering  <meyering@redhat.com>
19542
19543         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19544         * Makefile (sc_pragma_columns): New syntax-check rule.
19545
19546 2010-10-04  Bruno Haible  <bruno@clisp.org>
19547
19548         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19549         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19550         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19551         Reported by Bruce Korb and Eric Blake.
19552
19553 2010-10-04  Bruno Haible  <bruno@clisp.org>
19554
19555         threadlib: Make option --with-libpth-prefix work.
19556         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19557         use $LIBPTH, not just -lpth.
19558
19559 2010-10-04  Bruno Haible  <bruno@clisp.org>
19560
19561         Avoid line length limitation from HP NonStop system header files.
19562         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19563         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19564         * lib/ctype.in.h: Likewise.
19565         * lib/dirent.in.h: Likewise.
19566         * lib/errno.in.h: Likewise.
19567         * lib/fcntl.in.h: Likewise.
19568         * lib/float.in.h: Likewise.
19569         * lib/getopt.in.h: Likewise.
19570         * lib/iconv.in.h: Likewise.
19571         * lib/inttypes.in.h: Likewise.
19572         * lib/langinfo.in.h: Likewise.
19573         * lib/locale.in.h: Likewise.
19574         * lib/math.in.h: Likewise.
19575         * lib/netdb.in.h: Likewise.
19576         * lib/netinet_in.in.h: Likewise.
19577         * lib/poll.in.h: Likewise.
19578         * lib/pthread.in.h: Likewise.
19579         * lib/pty.in.h: Likewise.
19580         * lib/sched.in.h: Likewise.
19581         * lib/se-selinux.in.h: Likewise.
19582         * lib/search.in.h: Likewise.
19583         * lib/signal.in.h: Likewise.
19584         * lib/spawn.in.h: Likewise.
19585         * lib/stdarg.in.h: Likewise.
19586         * lib/stddef.in.h: Likewise.
19587         * lib/stdint.in.h: Likewise.
19588         * lib/stdio.in.h: Likewise.
19589         * lib/stdlib.in.h: Likewise.
19590         * lib/string.in.h: Likewise.
19591         * lib/strings.in.h: Likewise.
19592         * lib/sys_file.in.h: Likewise.
19593         * lib/sys_ioctl.in.h: Likewise.
19594         * lib/sys_select.in.h: Likewise.
19595         * lib/sys_socket.in.h: Likewise.
19596         * lib/sys_stat.in.h: Likewise.
19597         * lib/sys_time.in.h: Likewise.
19598         * lib/sys_times.in.h: Likewise.
19599         * lib/sys_utsname.in.h: Likewise.
19600         * lib/sys_wait.in.h: Likewise.
19601         * lib/sysexits.in.h: Likewise.
19602         * lib/termios.in.h: Likewise.
19603         * lib/time.in.h: Likewise.
19604         * lib/unistd.in.h: Likewise.
19605         * lib/wchar.in.h: Likewise.
19606         * lib/wctype.in.h: Likewise.
19607         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19608         * modules/ctype (Makefile.am): Likewise.
19609         * modules/dirent (Makefile.am): Likewise.
19610         * modules/errno (Makefile.am): Likewise.
19611         * modules/fcntl-h (Makefile.am): Likewise.
19612         * modules/float (Makefile.am): Likewise.
19613         * modules/getopt-posix (Makefile.am): Likewise.
19614         * modules/iconv-h (Makefile.am): Likewise.
19615         * modules/inttypes (Makefile.am): Likewise.
19616         * modules/langinfo (Makefile.am): Likewise.
19617         * modules/locale (Makefile.am): Likewise.
19618         * modules/math (Makefile.am): Likewise.
19619         * modules/netdb (Makefile.am): Likewise.
19620         * modules/netinet_in (Makefile.am): Likewise.
19621         * modules/poll-h (Makefile.am): Likewise.
19622         * modules/pthread (Makefile.am): Likewise.
19623         * modules/pty (Makefile.am): Likewise.
19624         * modules/sched (Makefile.am): Likewise.
19625         * modules/search (Makefile.am): Likewise.
19626         * modules/selinux-h (Makefile.am): Likewise.
19627         * modules/signal (Makefile.am): Likewise.
19628         * modules/spawn (Makefile.am): Likewise.
19629         * modules/stdarg (Makefile.am): Likewise.
19630         * modules/stddef (Makefile.am): Likewise.
19631         * modules/stdint (Makefile.am): Likewise.
19632         * modules/stdio (Makefile.am): Likewise.
19633         * modules/stdlib (Makefile.am): Likewise.
19634         * modules/string (Makefile.am): Likewise.
19635         * modules/strings (Makefile.am): Likewise.
19636         * modules/sys_file (Makefile.am): Likewise.
19637         * modules/sys_ioctl (Makefile.am): Likewise.
19638         * modules/sys_select (Makefile.am): Likewise.
19639         * modules/sys_socket (Makefile.am): Likewise.
19640         * modules/sys_stat (Makefile.am): Likewise.
19641         * modules/sys_time (Makefile.am): Likewise.
19642         * modules/sys_times (Makefile.am): Likewise.
19643         * modules/sys_utsname (Makefile.am): Likewise.
19644         * modules/sys_wait (Makefile.am): Likewise.
19645         * modules/sysexits (Makefile.am): Likewise.
19646         * modules/termios (Makefile.am): Likewise.
19647         * modules/time (Makefile.am): Likewise.
19648         * modules/unistd (Makefile.am): Likewise.
19649         * modules/wchar (Makefile.am): Likewise.
19650         * modules/wctype (Makefile.am): Likewise.
19651
19652 2010-10-04  Bruno Haible  <bruno@clisp.org>
19653
19654         read-file tests: Avoid a test failure on NonStop Kernel.
19655         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19656         a regular file.
19657         Reported by Joachim Schmitz <schmitz@hp.com>.
19658
19659 2010-10-03  Bruno Haible  <bruno@clisp.org>
19660
19661         gnulib-tool: Fixes for --create-testdir with --libtool.
19662         * gnulib-tool (func_get_automake_snippet): Don't augment
19663         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19664         an executable.
19665         (func_create_testdir): Handle module 'alloca' like func_import.
19666         Reported by Bruce Korb <bruce.korb@gmail.com>.
19667
19668 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19669
19670         Avoid some lines longer than 80 characters.
19671         * lib/stdint.in.h: Break long comment lines.
19672         * lib/math.in.h: Likewise.
19673         (_GL_NUM_UINT_WORDS): New macro, for readability.
19674         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19675         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19676         * lib/stdlib.in.h: Likewise.
19677         * lib/spawn.in.h: Likewise.
19678         * lib/sys_socket.in.h: Update an URL.
19679         * lib/sys_stat.in.h: Break long line.
19680
19681 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19682
19683         Improve pmccabe2html.
19684         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19685         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19686         when the sources change. Remove the line in the HTML about "Used
19687         ranges" (which implied that there might be other unused ranges),
19688         rename "Resume" to "Summary" (easier to understand for more users).
19689         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19690         styles, and some unnecessary blank lines.
19691
19692 2010-10-03  Bruno Haible  <bruno@clisp.org>
19693             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19694
19695         acl: Add support for ACLs on NonStop Kernel.
19696         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19697         Check whether the function aclsort() exists.
19698         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19699         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19700         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19701         (acl_nontrivial [HAVE_ACLSORT]: New function.
19702         (file_has_acl): Implement for NonStop Kernel.
19703         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19704         (qset_acl): Implement for NonStop Kernel.
19705         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19706         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19707         (main): Implement for NonStop Kernel.
19708         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19709         Kernel. Handle this flavor.
19710         * tests/test-set-mode-acl.sh: Likewise.
19711         * tests/test-copy-acl.sh: Likewise.
19712         * tests/test-copy-file.sh: Likewise.
19713
19714 2010-10-03  Bruno Haible  <bruno@clisp.org>
19715
19716         Info about ACLs on NonStop Kernel.
19717         * doc/acl-resources.txt: Add info about NonStop Kernel.
19718         References by Joachim Schmitz <schmitz@hp.com>.
19719
19720 2010-10-02  Bruno Haible  <bruno@clisp.org>
19721
19722         Define missing EDQUOT on NonStop Kernel.
19723         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19724         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19725         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19726         missing.
19727         * doc/posix-headers/errno.texi: Mention the NSK bug.
19728         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19729         Reported by Joachim Schmitz <schmitz@hp.com>.
19730
19731 2010-10-02  Bruno Haible  <bruno@clisp.org>
19732
19733         Update doc for POSIX:2008.
19734         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19735         Update URL of POSIX specification.
19736
19737 2010-10-02  Bruno Haible  <bruno@clisp.org>
19738
19739         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19740         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19741         from gnulib, not from Automake.
19742
19743 2010-10-02  Bruno Haible  <bruno@clisp.org>
19744
19745         New module 'system-posix'.
19746         * modules/system-posix: New file.
19747         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19748         module is present.
19749         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19750         GNULIB_SYSTEM_POSIX.
19751         * modules/stdlib (Depends-on): Remove sys_wait.
19752         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19753         * doc/posix-functions/system.texi: Mention the new module.
19754         * doc/posix-headers/stdlib.texi: Likewise.
19755         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19756         define test_sys_wait_macros to a no-op.
19757         Reported by Sam Steingold <sds@gnu.org>.
19758
19759 2010-09-30  Bruno Haible  <bruno@clisp.org>
19760
19761         More renaming from 'getdate' to 'get_date'.
19762         * doc/get_date.texi: Renamed from doc/getdate.texi.
19763         * modules/get_date (Files): Update.
19764         * MODULES.html.sh (Date and time <time.h>): Update.
19765         * DEPENDENCIES: Update.
19766         * gnulib-tool: Update comment.
19767         * m4/bison.m4 (gl_BISON): Likewise.
19768         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19769
19770 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19771
19772         bootstrap: support ACLOCAL_FLAGS during aclocal
19773         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19774         can add additional -I dir for third-party .m4 files.
19775
19776 2010-09-30  Eric Blake  <eblake@redhat.com>
19777
19778         bootstrap: use glibtoolize on MacOS
19779         * build-aux/bootstrap (check_versions): Convert libtool into
19780         libtoolize.
19781         (tool search): Move libtool check earlier, and look for
19782         glibtoolize for MacOS.
19783         (gnulib_tool_options): Auto-add --libtool when appropriate.
19784         Reported by Justin Clift.
19785
19786         poll: fix typo that broke test on MacOS
19787         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19788         Reported by Justin Clift.
19789
19790         getdate: rename to get_date
19791         Note: getdate.h is not renamed, to minimize client impact.
19792         * modules/getdate: Mark obsolete.  Move old contents...
19793         * modules/get_date: ...to new module name.
19794         * modules/getdate-tests: Move...
19795         * modules/get_date-tests: ...here.
19796         * m4/getdate.m4: Move...
19797         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19798         * lib/getdate.y: Move...
19799         * lib/get_date.y: ...here.
19800         * tests/test-getdate.c: Move...
19801         * tests/test-get_date.c: ...here.
19802         * doc/posix-functions/getdate.texi (getdate): Update name.
19803         * NEWS: Mention the change.
19804
19805 2010-09-29  Bruno Haible  <bruno@clisp.org>
19806
19807         Separate the module 'waitpid' from the module 'sys_wait'.
19808         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19809         present.
19810         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19811         gl_MODULE_INDICATOR_FOR_TESTS.
19812         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19813         * modules/sys_wait (Depends-on): Remove waitpid.
19814         (Makefile.am): Substitute GNULIB_WAITPID.
19815         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19816         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19817         signature only if the 'waitpid' module is present.
19818         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19819         * NEWS: Mention the change.
19820         * modules/grantpt (Depends-on): Add waitpid.
19821         * modules/wait-process (Depends-on): Likewise.
19822
19823 2010-09-29  Bruno Haible  <bruno@clisp.org>
19824
19825         More tests for module 'sys_wait'.
19826         * modules/sys_wait-c++-tests: New file.
19827         * tests/test-sys_wait-c++.cc: New file.
19828         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19829         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19830
19831 2010-09-29  Bruno Haible  <bruno@clisp.org>
19832
19833         New module 'waitpid'.
19834         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19835         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19836         Don't include <process.h>.
19837         (waitpid): Declare only, using modern idiom.
19838         * m4/waitpid.m4: New file.
19839         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19840         * modules/waitpid: New file.
19841         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19842         (Makefile.am): Update.
19843         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19844
19845 2010-09-28  Bruno Haible  <bruno@clisp.org>
19846
19847         poll: Assume ANSI C.
19848         * lib/poll.c (poll): Use an ANSI C declaration.
19849
19850 2010-09-28  Bruno Haible  <bruno@clisp.org>
19851
19852         poll-h: Create poll.h on all platforms.
19853         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19854         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19855         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19856         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19857         (gl_REPLACE_POLL_H): Don't set POLL_H.
19858         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19859         * modules/poll-h (Depends-on): Add include_next.
19860         (Makefile.am): Create poll.h unconditionally. Substitute also
19861         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19862
19863 2010-09-28  Bruno Haible  <bruno@clisp.org>
19864
19865         Tests for module 'poll-h'.
19866         * modules/poll-h-c++-tests: New file.
19867         * tests/test-poll-h-c++.cc: New file.
19868
19869         Tests for module 'poll-h'.
19870         * modules/poll-h-tests: New file.
19871         * tests/test-poll-h.c: New file.
19872
19873 2010-09-28  Bruno Haible  <bruno@clisp.org>
19874
19875         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19876         * modules/poll-h (Depends-on): Add 'extensions'.
19877
19878 2010-09-28  Bruno Haible  <bruno@clisp.org>
19879
19880         New module 'poll-h'.
19881         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19882         (poll): Use modern idiom.
19883         * modules/poll-h: New file.
19884         * modules/poll (Files): Remove lib/poll.in.h.
19885         (Depends-on): Add poll-h.
19886         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19887         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19888         * m4/poll_h.m4: New file.
19889         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19890         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19891         and invoke gl_REPLACE_POLL_H.
19892         * lib/poll.c: Use common idiom.
19893         * tests/test-poll.c: Likewise.
19894         * doc/posix-headers/poll.texi: Mention the poll-h module.
19895         Suggested by Eric Blake.
19896
19897 2010-09-26  Bruno Haible  <bruno@clisp.org>
19898
19899         sys_wait: Implement WSTOPSIG.
19900         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19901         Reported by Simon Josefsson.
19902
19903 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19904
19905         stdlib, sys_wait: Avoid compilation error on mingw.
19906         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19907
19908 2010-09-26  Bruno Haible  <bruno@clisp.org>
19909
19910         stdlib tests: Avoid code duplication.
19911         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19912         * modules/sys_wait-tests (Files): Likewise.
19913         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19914         * tests/test-stdlib.c: Include test-sys_wait.h.
19915         (main): Invoke test_sys_wait_macros.
19916         * tests/test-sys_wait.c: Include test-sys_wait.h.
19917         (main): Invoke test_sys_wait_macros.
19918
19919 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19920
19921         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19922         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19923         sure Windows sockets are working before calling getaddrinfo.
19924         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19925         * doc/gnulib.texi (Windows sockets): Fix typo.
19926
19927 2010-09-25  Bruno Haible  <bruno@clisp.org>
19928
19929         Tests for module 'regex-quote'.
19930         * modules/regex-quote-tests: New file.
19931         * tests/test-regex-quote.c: New file.
19932
19933         New module 'regex-quote'.
19934         * lib/regex-quote.h: New file.
19935         * lib/regex-quote.c: New file.
19936         * modules/regex-quote: New file.
19937         Suggested by Reuben Thomas <rrt@sc3d.org>.
19938
19939 2010-09-24  Bruno Haible  <bruno@clisp.org>
19940
19941         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19942         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19943
19944 2010-09-23  Bruno Haible  <bruno@clisp.org>
19945
19946         setenv: Relax license.
19947         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19948         Blake.
19949         Requested by Eric Blake.
19950
19951 2010-09-22  Bruno Haible  <bruno@clisp.org>
19952
19953         termios: Relax license.
19954         * modules/termios (License): Change to LGPLv2+.
19955         Requested by Eric Blake.
19956
19957 2010-09-22  Bruno Haible  <bruno@clisp.org>
19958
19959         threadlib: Allow the package to change the default to 'no'.
19960         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19961         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19962         Reported by Paul Eggert.
19963
19964 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19965             Bruno Haible  <bruno@clisp.org>
19966
19967         Fix endless loop in mbmemcasecoll.
19968         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19969         byte.
19970         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19971
19972 2010-09-22  Bruno Haible  <bruno@clisp.org>
19973
19974         Tests for module 'memcoll'.
19975         * modules/memcoll-tests: New file.
19976         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19977
19978         memcoll, xmemcoll: Clarify size vs. length.
19979         * modules/memcoll.c (memcoll0): Clarify specification.
19980         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19981         passed to collate_error.
19982
19983 2010-09-22  Bruno Haible  <bruno@clisp.org>
19984
19985         Tests for module 'memcasecmp'.
19986         * modules/memcasecmp-tests: New file.
19987         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19988
19989 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19990
19991         * lib/pthread.in.h: Add split double-inclusion guard, and include
19992         system <pthread.h> if there is one.  Use @@-style as in other
19993         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19994         pthread.h doesn't.
19995         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19996         (pthread_mutexattr_settype, pthread_mutex_trylock):
19997         New static inline functions, if there's no system <pthread.h>.
19998         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19999         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20000         Approximate with mutexes if the system lacks spinlocks, as in
20001         MacOS.
20002         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20003         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20004         @@-style.  Check for spinlocks separately.
20005         (gl_PTHREAD_DEFAULTS): New macro.
20006         * modules/pthread: Redo to use a more typical style for in.h files.
20007
20008 2010-09-21  Eric Blake  <eblake@redhat.com>
20009
20010         net_if: enhance tests
20011         * tests/test-net_if.c (main): Move signature checks earlier.
20012         Print failures to stderr.
20013         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20014         Document the bug that we do not yet fix.
20015
20016 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20017
20018         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20019         about gnulib, not GSS.
20020
20021 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20022
20023         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20024         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20025         for Emacs.
20026         * build-aux/pmccabe2html: Make Makefile.am example code more
20027         cut-and-paste friendly.
20028
20029 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20030
20031         * tests/test-net_if.c: New file.
20032         * modules/net_if-tests: New file.
20033
20034 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20035
20036         pthread: add pthread_spin_destroy
20037         * lib/pthread.in.h (pthread_spin_destroy): New function.
20038
20039 2010-09-19  Bruno Haible  <bruno@clisp.org>
20040
20041         gnulib-tool: Fix --help output.
20042         * gnulib-tool (func_usage): Fix help message.
20043         Reported by Reuben Thomas <rrt@sc3d.org>.
20044
20045 2010-09-18  Jim Meyering  <meyering@redhat.com>
20046
20047         maint.mk: avoid unexpanded \n in two diagnostics
20048         * top/maint.mk (sc_prohibit_always_true_header_tests):
20049         Don't use a literal \n in a halt=... assignment.  It would not be
20050         expanded, and the two \n bytes would appear in the diagnostic output
20051         rather than the desired newline.  Use halt=$$(printf ... instead.
20052         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20053
20054 2010-09-18  Bruno Haible  <bruno@clisp.org>
20055
20056         netinet_in: Doc tweak.
20057         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20058         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20059
20060 2010-09-18  Jim Meyering  <meyering@redhat.com>
20061
20062         init.sh: correct an outdated comment
20063         * tests/init.sh (create_exe_shims_):  s/function/alias/
20064
20065         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20066         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20067         a file named "*.exe" is removed between the glob expansion and the
20068         processing of that oddly named file.
20069
20070 2010-09-17  Eric Blake  <eblake@redhat.com>
20071
20072         mirbsd: add some more support
20073         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20074         in BSD family.
20075         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20076         devices as OpenBSD.
20077         * m4/host-os.m4 (mirbsd): Add MirBSD.
20078
20079         tests: fix unportable assumption on sys/wait.h
20080         * tests/test-sys_wait.c (main): Relax test.
20081         * tests/test-stdlib.c (main): Likewise.
20082
20083         init.sh: accomodate directory with no .exes
20084         * tests/init.sh: Accomodate directory containing only scripts.
20085
20086         tests: avoid compiler warning
20087         * tests/test-stdlib.c (main): Use the variable.
20088
20089         fdutimens, fdutimensat: update signature, again
20090         * lib/utimens.h (gl_futimens): Delete, and move signature...
20091         (fdutimens): ...here.
20092         (fdutimensat): Rearrange signature.
20093         (lutimensat): Rename variable for clarity.
20094         * lib/fdutimensat.c (fdutimensat): Update signature.
20095         * lib/utimens.c (fdutimens): Likewise.
20096         (gl_futimens): Delete.
20097         (utimens, lutimens): Update callers.
20098         * lib/futimens.c (futimens): Likewise.
20099         * tests/test-fdutimensat.c: Likewise.
20100         * tests/test-utimens.c: Likewise.
20101         * tests/test-futimens.h: Update comment.
20102         * NEWS: Mention this.
20103         Suggested by Paul Eggert.
20104
20105 2010-09-17  Bruno Haible  <bruno@clisp.org>
20106
20107         Take over the maintenance of some older macros from Autoconf.
20108         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20109         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20110         GNU Autoconf.
20111         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20112         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20113
20114 2010-09-17  Eric Blake  <eblake@redhat.com>
20115
20116         fdutimensat: drop atflag validation
20117         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20118         with valid fd, to close a race scenario where futimens is
20119         unsupported and FILE was replaced by a symlink.
20120         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20121         accordingly.
20122         Suggested by Paul Eggert.
20123
20124 2010-09-16  Bruno Haible  <bruno@clisp.org>
20125
20126         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20127         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20128
20129 2010-09-16  Bruno Haible  <bruno@clisp.org>
20130
20131         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20132         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20133         login_tty exists.
20134         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20135
20136 2010-09-16  Bruno Haible  <bruno@clisp.org>
20137
20138         login_tty: Make the replacement code work on BSD systems.
20139         * lib/login_tty.c: Include <sys/ioctl.h>.
20140         (login_tty): Use ioctl TIOCSCTTY when available.
20141         * modules/login_tty (Depends-on): Add sys_ioctl.
20142         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20143
20144 2010-09-16  Bruno Haible  <bruno@clisp.org>
20145
20146         login_tty: Stricter unit test.
20147         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20148         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20149         and tcgetsid() after login_tty.
20150         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20151
20152 2010-09-16  Bruno Haible  <bruno@clisp.org>
20153
20154         New module 'tcgetsid'.
20155         * lib/tcgetsid.c: New file.
20156         * m4/tcgetsid.m4: New file.
20157         * modules/tcgetsid: New file.
20158         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20159         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20160         GNULIB_TCGETSID, HAVE_TCGETSID.
20161         * lib/termios.in.h: Include <sys/types.h>.
20162         (tcgetsid): New declaration.
20163         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20164         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20165         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20166         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20167
20168 2010-09-16  Bruno Haible  <bruno@clisp.org>
20169
20170         Tests for module 'termios'.
20171         * modules/termios-c++-tests: New file.
20172         * modules/termios-tests: New file.
20173         * tests/test-termios-c++.cc: New file.
20174         * tests/test-termios.c: New file.
20175
20176         New module 'termios'.
20177         * modules/termios: New file.
20178         * lib/termios.in.h: New file.
20179         * m4/termios_h.m4: New file.
20180         * doc/posix-headers/termios.texi: Mention the new module.
20181
20182 2010-09-16  Eric Blake  <eblake@redhat.com>
20183
20184         fdutimensat: add an atflag parameter
20185         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20186         * lib/utimens.h (fdutimensat): Update prototype.
20187         * tests/test-fdutimensat.c: Adjust test to match.
20188         * NEWS: Document the change.
20189         Suggested by Paul Eggert.
20190
20191 2010-09-16  Bruno Haible  <bruno@clisp.org>
20192
20193         Fix typos in comments.
20194         * lib/striconveh.h: Fix typo in comment.
20195         * lib/login_tty.c (login_tty): Likewise.
20196
20197 2010-09-15  Bruno Haible  <bruno@clisp.org>
20198
20199         stdlib: clarify MirBSD WEXITSTATUS bug
20200         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20201         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20202
20203 2010-09-15  Eric Blake  <eblake@redhat.com>
20204
20205         stdlib: work around MirBSD WEXITSTATUS bug
20206         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20207         * modules/stdlib (Depends-on): Add sys_wait.
20208         * tests/test-sys_wait.c (main): Enhance test.
20209         * tests/test-stdlib.c (main): Likewise.
20210         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20211
20212         docs: mention MacOS issue with WEXITSTATUS(constant)
20213         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20214         issue.
20215         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20216
20217         strnlen: add tests
20218         * modules/strnlen-tests: New file.
20219         * tests/test-strnlen.c: Likewise.
20220
20221 2010-09-14  Bruno Haible  <bruno@clisp.org>
20222
20223         unistr/base: Avoid link errors when module 'libunistring' is also used.
20224         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20225         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20226         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20227         Declare also when HAVE_LIBUNISTRING is set.
20228         Reported by Pádraig Brady <P@draigbrady.com>.
20229
20230 2010-09-14  Eric Blake  <eblake@redhat.com>
20231
20232         test-rawmemchr: make more robust
20233         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20234         (Depends-on, configure.ac): Add needed prerequisites to use it.
20235         * modules/memchr-tests (Files, Depends-on, configure.ac):
20236         Likewise, to avoid implicit reliance on memchr module prereqs.
20237         * tests/test-memchr.c (main): Ensure proper masking.
20238         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20239         reads.
20240
20241         memchr: detect glibc Alpha bug
20242         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20243         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20244         Alpha.
20245         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20246         * tests/test-memchr.c (main): Enhance test.
20247         Reported by Nelson H. F. Beebe.
20248
20249 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20250
20251         fts, getcwd, glob: audit for dirfd returning -1
20252         * lib/fts.c (opendir): Remove #define; no longer used.
20253         (opendirat): New arg PDIR_FD.  All callers changed.
20254         (fts_build, _opendir2): Use new opendirat to avoid the need for
20255         dirfd, or for checking whether dirfd returns a negative value.
20256         Don't use opendir; always use openat followed by fdopendir.
20257         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20258         it.
20259         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20260         returns -1 here.
20261         * modules/fts (Depends-on): Remove dirfd.
20262         * modules/getcwd (Depends-on): Likewise.
20263
20264 2010-09-13  Eric Blake  <eblake@redhat.com>
20265
20266         float: fix broken MirBSD header
20267         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20268         * doc/posix-headers/float.texi (float.h): Document it.
20269
20270 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20271
20272         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20273         * lib/fts.c (opendirat): New arg extra_flags.
20274         (__opendir2): Use it to avoid following symlinks when opening
20275         a directory, if symlinks are not supposed to be followed.  See
20276         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20277
20278         fdopendir: preserve argument fd before returning
20279         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20280         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20281         (fdopendir): Use them, arranging for FD to be open to the same
20282         directory that it was when it started.  (It might be temporarily
20283         closed while fdopendir is running, so this not thread- or
20284         signal-safe.)  Be careful to do the right thing even when file
20285         descriptors are scarce and dup fails with errno == EMFILE.  See
20286         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20287
20288 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20289
20290         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20291         * NEWS: Document change.
20292         * m4/regex.m4: Disable test for regoff_t size.
20293
20294 2010-09-13  Jim Meyering  <meyering@redhat.com>
20295
20296         fts: don't operate on an invalid file descriptor after failed dup
20297         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20298         negative file descriptor.
20299
20300 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20301
20302         savedir: add streamsavedir, deprecate fdsavedir
20303         * NEWS: Mention deprecation of fdsavedir.
20304         * lib/savedir.c (streamsavedir): New extern function, whose name
20305         ends in "savedir" to be consistent with the others.  This differs
20306         from savedirstream in that it doesn't close its argument.  The
20307         next version of GNU tar will use this instead of fdsavedir, to
20308         avoid some race conditions and conserve file descriptors.
20309         (savedirstream): Reimplement as a wrapper around streamsavedir.
20310         (fdsavedir): Add a comment deprecating this function.  As far as
20311         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20312         * lib/savedir.h (streamsavedir): New decl.
20313         (fdsavedir): Add a comment deprecating this.
20314
20315 2010-09-10  Bruno Haible  <bruno@clisp.org>
20316
20317         langinfo: Fix last commit.
20318         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20319         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20320         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20321
20322 2010-09-10  Bruno Haible  <bruno@clisp.org>
20323
20324         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20325         * lib/progreloc.c (O_EXEC): Define fallback.
20326
20327 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20328
20329         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20330         * NEWS: Document recent changes to fcntl-h.
20331         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20332         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20333         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20334         Similarly for O_SEARCH; this last was already true, but not documented.
20335         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20336         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20337         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20338         Likewise.
20339         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20340         is zero, not whether it is defined.
20341         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20342         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20343         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20344
20345 2010-09-10  Bruno Haible  <bruno@clisp.org>
20346
20347         langinfo, nl_langinfo: Fix for IRIX 5.3.
20348         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20349         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20350         HAVE_LANGINFO_YESEXPR.
20351         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20352         HAVE_LANGINFO_YESEXPR.
20353         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20354         HAVE_LANGINFO_T_FMT_AMPM is 0.
20355         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20356         HAVE_LANGINFO_YESEXPR is 0.
20357         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20358         NOEXPR.
20359         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20360         * doc/posix-functions/nl_langinfo.texi: Likewise.
20361         Reported by Eric Blake.
20362
20363 2010-09-10  Bruno Haible  <bruno@clisp.org>
20364
20365         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20366         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20367         on FreeBSD 8.0 and OpenBSD 4.6.
20368         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20369         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20370         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20371         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20372         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20373         ac_includes_default.
20374         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20375
20376 2010-09-09  Eric Blake  <eblake@redhat.com>
20377
20378         strsignal: work around NetBSD bug
20379         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20380         * lib/string.in.h (includes): Likewise.
20381         * doc/posix-functions/strsignal.texi (strsignal): Document the
20382         bug.
20383         Reported by Nelson H. F. Beebe.
20384
20385         gnulib-tool: work with NetBSD /bin/sh
20386         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20387         (func_get_description, func_get_comment, func_get_status)
20388         (func_get_notice, func_get_applicability, func_get_filelist)
20389         (func_get_dependencies, func_get_autoconf_early_snippet)
20390         (func_get_autoconf_snippet, func_get_automake_snippet)
20391         (func_get_include_directive, func_get_link_directive)
20392         (func_get_license, func_get_maintainer, func_import): Avoid
20393         shell syntax errors from parsing syntax extensions.
20394
20395 2010-09-09  Bruno Haible  <bruno@clisp.org>
20396
20397         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20398         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20399         a reliable way to determine whether the 'alias' command works.
20400
20401 2010-09-08  Jim Meyering  <meyering@redhat.com>
20402
20403         init.sh: penalize a set-x-impaired shell; don't disqualify it
20404         * tests/init.sh: Too many shells corrupt application stderr when
20405         you set -x, so we can't afford to disqualify them, since at least
20406         on Irix-6.5, that would disqualify all bourne shells.
20407         Instead, use a two-pass approach.
20408         On the first pass, try to find a shell that meets the stricter
20409         condition that set -x does not corrupt stderr.
20410         If no shell meets the stricter condition, retest each candidate
20411         shell, but without that extra condition.  Finally, when
20412         VERBOSE=yes is requested and set -x might cause trouble, simply
20413         issue a warning and refrain from enabling debug output.
20414
20415 2010-09-08  Eric Blake  <eblake@redhat.com>
20416
20417         unsetenv: fix OpenBSD bug
20418         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20419         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20420         documentation.
20421         Reported by Jim Meyering.
20422
20423         strtod: work around IRIX 6.5 bug
20424         * lib/strtod.c (strtod): Reparse number on shorter string if
20425         exponent parse was invalid.
20426         * tests/test-strtod.c (main): Add check for "0x1p 2".
20427         Reported by Tom G. Christensen.
20428
20429         getopt: optimize previous patch
20430         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20431         empty variable.  Speed up awk script.
20432         Reported by Paolo Bonzini.
20433
20434 2010-09-08  Jim Meyering  <meyering@redhat.com>
20435
20436         test.sh: disqualify shells for which set -x corrupts stderr
20437         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20438         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20439         appear in stderr output.  For example, this command:
20440             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20441         prints "P=1" on those two systems:
20442
20443 2010-09-08  Bruno Haible  <bruno@clisp.org>
20444
20445         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20446         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20447         commands, because some shells ignore redirections when there is an
20448         error in the command lookup.
20449         Reported by Eric Blake.
20450
20451 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20452
20453         * lib/regex.h: Fix a mention of `regex_compile' (should be
20454         `re_compile_pattern').
20455         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20456         (re_set_registers): Correct name of parameter in comment.
20457
20458         * doc/regex.texi: Add documentation for missing syntax flags.
20459         Remove commented-out documentation of defunct syntax option
20460         RE_NO_EMPTY_ALTS.
20461         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20462         Add documentation of re_set_registers.
20463         Document trick to re-use a pattern buffer by setting fastmap manually.
20464         Update documentation of struct re_pattern_buffer per public members.
20465         Uncomment documentation of equivalence class operators and
20466         collating symbol operators, since they are now implemented,
20467         Explain leftmost-longest matching in relation to alternatives.
20468         Tidy documentation of substring matching.
20469         Remove POSIX documentation, which is done better in
20470         glibc, and refer the reader there. Keep BSD API documentation, as
20471         that is not readily available elsewhere.
20472
20473 2010-09-07  Eric Blake  <eblake@redhat.com>
20474
20475         getopt: handle POSIXLY_CORRECT set but not exported
20476         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20477         export state of POSIXLY_CORRECT, due to bash set -o posix.
20478         Reported by Dustin J. Mitchell.
20479
20480 2010-09-05  Bruno Haible  <bruno@clisp.org>
20481
20482         gnulib-tool: Highlight the changed options.
20483         * gnulib-tool (func_usage): Display the --import, --add-import,
20484         --remove-import explanations in bold font.
20485
20486 2010-09-06  Karl Berry  <karl@gnu.org>
20487
20488         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20489
20490 2010-09-05  Bruno Haible  <bruno@clisp.org>
20491
20492         uniwidth/width: Update comment.
20493         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20494         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20495
20496 2010-09-05  Bruno Haible  <bruno@clisp.org>
20497
20498         isinf, isnan: Relax license.
20499         * modules/isinf (License): Change from GPL to LGPL, with consent from
20500         Ben Pfaff.
20501         * modules/isnan (License): Likewise.
20502         Requested by Ludovic Courtès.
20503
20504 2010-09-04  Bruno Haible  <bruno@clisp.org>
20505
20506         gnulib-tool: Help migration from --import to --add-import or --update.
20507         * gnulib-tool: Emit a verbose error message when --import is used
20508         without any module name.
20509
20510 2010-09-04  Bruno Haible  <bruno@clisp.org>
20511
20512         Update doc about gnulib-tool.
20513         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20514         'gnulib-tool --update' in more detail.
20515         Reported by Eric Blake.
20516
20517 2010-09-04  Bruno Haible  <bruno@clisp.org>
20518
20519         gnulib-tool: Change --import. New options --add/remove-import.
20520         * gnulib-tool: New options --add-import, --remove-import.
20521         (func_usage): Document them.
20522         (have_associative): Define always.
20523         (func_import): In import mode, don't merge the specified settings with
20524         the cached settings. Implement remove-import mode.
20525         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20526         Explain when to use them versus --import.
20527         (Simple update): Use --add-import instead of --import.
20528         * NEWS: Mention the change.
20529
20530 2010-09-04  Bruno Haible  <bruno@clisp.org>
20531
20532         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20533         separate gnulib.mk.
20534
20535 2010-09-04  Bruno Haible  <bruno@clisp.org>
20536
20537         gnulib-tool: Don't talk about CVS any more.
20538         * gnulib-tool (func_usage, func_import): Write "version control"
20539         instead of CVS.
20540
20541 2010-09-04  Jim Meyering  <meyering@redhat.com>
20542
20543         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20544         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20545         false positives (whose names may be ill-chosen) when searching
20546         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20547         would cause a false-positive.
20548
20549         avoid coreutils "make distcheck" failure
20550         Coreutils tests with an absolute build directory name that contains
20551         a space.  Not quoting this directory name caused a failure.
20552         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20553         * tests/test-vc-list-files-cvs.sh: Likewise.
20554
20555 2010-09-04  Bruno Haible  <bruno@clisp.org>
20556
20557         gnulib-tool: Avoid error when run in a package without Makefile.am.
20558         * gnulib-tool: When collecting the m4dirs in a package that does not
20559         have a Makefile.am, eliminate those directories that contain no
20560         gnulib-cache.m4. Fix expression that counts these directories.
20561
20562 2010-09-04  Bruno Haible  <bruno@clisp.org>
20563
20564         update-copyright test: Improve output when perl is missing or too old.
20565         * tests/test-update-copyright.sh: Move test of Perl version down after
20566         the test whether Perl exists. Provide an explanation relating Perl's
20567         error message to Automake's SKIP: message.
20568
20569 2010-09-04  Bruno Haible  <bruno@clisp.org>
20570
20571         Don't augment PATH in TESTS_ENVIRONMENT.
20572         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20573         set abs_aux_dir instead of augmenting PATH.
20574         * modules/vc-list-files-tests (Makefile.am): Likewise.
20575         * tests/test-update-copyright.sh: Augment PATH here.
20576         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20577         path_prepend_.
20578         * tests/test-vc-list-files-git.sh: Likewise.
20579
20580 2010-09-04  Jim Meyering  <meyering@redhat.com>
20581
20582         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20583         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20584
20585 2010-09-04  Bruno Haible  <bruno@clisp.org>
20586
20587         strdup: Fix compilation error in C++ mode.
20588         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20589         the macro.
20590
20591 2010-09-04  Bruno Haible  <bruno@clisp.org>
20592
20593         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20594         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20595         macro into a function.
20596         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20597
20598 2010-09-04  Bruno Haible  <bruno@clisp.org>
20599
20600         Set PATH_SEPARATOR the same way autoconf does.
20601         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20602         the value of PATH_SEPARATOR the same way autoconf-generated configure
20603         scripts do.
20604         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20605         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20606
20607 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20608
20609         Set PATH_SEPARATOR the same way autoconf does.
20610         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20611         the same way autoconf-generated configure scripts do.
20612         * posix-modules: Likewise.
20613
20614 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20615
20616         hash: fix safe_hasher const typo
20617         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20618         const; otherwise, there is a type error later.
20619
20620 2010-09-02  Jim Meyering  <meyering@redhat.com>
20621
20622         test-update-copyright.sh: require perl 5.8.0
20623         * tests/test-update-copyright.sh: Require 5.8.0,
20624         which Tom G. Christensen has confirmed is adequate,
20625         while 5.6.1 is not.
20626
20627 2010-09-02  Eric Blake  <eblake@redhat.com>
20628
20629         tests: init.sh improvements for re-exec'ing with zsh
20630         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20631         -vx through shell re-exec.
20632         Reported by Tom G. Christensen.
20633
20634         wctype: fix typo in previous commit
20635         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20636         Reported by Ludovic Courtès.
20637
20638 2010-09-02  Jim Meyering  <meyering@redhat.com>
20639
20640         test-update-copyright.sh: skip test if Perl is too old
20641         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20642         Reported by Tom G. Christensen.
20643
20644 2010-09-02  Bruno Haible  <bruno@clisp.org>
20645
20646         wctype: Avoid compilation error on IRIX 6.5.30.
20647         * lib/wctype.in.h (iswblank): Declare with a replacement if
20648         REPLACE_ISWBLANK is set.
20649         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20650         declared. Set REPLACE_ISWBLANK.
20651         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20652         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20653         * doc/posix-headers/wctype.texi: Likewise.
20654         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20655
20656 2010-09-01  Bruno Haible  <bruno@clisp.org>
20657
20658         New module 'socketlib'.
20659         * modules/socketlib: New file.
20660         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20661         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20662         * modules/sockets (Depends-on): Add socketlib.
20663         Suggested by Sam Steingold <sds@gnu.org>.
20664
20665 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20666
20667         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20668
20669         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20670         when one needs search access to a directory but not read access.
20671         On systems where it is available, it works in some cases where
20672         O_RDONLY does not, namely on directories that are searchable but
20673         not readable, and which need only to be searchable.  If O_SEARCH
20674         is not available, fall back to the traditional method of using
20675         O_RDONLY.
20676
20677         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20678         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20679         when opening a directory that needs only to be searchable.
20680         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20681         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20682         * lib/openat-proc.c (openat_proc_name): Likewise.
20683         * lib/openat.c (openat_needs_fchdir): Likewise.
20684         * lib/save-cwd.c (save_cwd): Likewise.
20685         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20686
20687 2010-08-28  Bruno Haible  <bruno@clisp.org>
20688
20689         New module 'host-cpu-c-abi'.
20690         * modules/host-cpu-c-abi: New file.
20691         * m4/host-cpu-c-abi.m4: New file, based on part of
20692         clisp/src/m4/general.m4.
20693         Requested by Sam Steingold <sds@gnu.org>.
20694
20695 2010-08-31  Eric Blake  <eblake@redhat.com>
20696         and Jim Meyering  <meyering@redhat.com>
20697
20698         hash: factor, and guard against misbehaving hasher function
20699         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20700         of table->hasher's return value.  Also protect against a hash value
20701         so large that adding it to table->bucket results in a NULL pointer.
20702         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20703         Use it in place of open-coded check-and-abort.
20704
20705 2010-08-30  Bruno Haible  <bruno@clisp.org>
20706
20707         hash: silence spurious clang warning
20708         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20709         Reported by Eric Blake.
20710
20711 2010-08-30  Eric Blake  <eblake@redhat.com>
20712
20713         strstr, memmem, strcasestr: avoid leaked shell message
20714         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20715         FreeBSD.
20716         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20717         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20718
20719         tests: silence clang warning
20720         * tests/test-malloca.c (do_allocation): Avoid dead store.
20721
20722 2010-08-29  Bruno Haible  <bruno@clisp.org>
20723
20724         gettext: Fix recent mistake.
20725         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20726
20727 2010-08-29  Bruno Haible  <bruno@clisp.org>
20728
20729         selinux-h: Offer a --without-selinux option.
20730         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20731         --without-selinux was specified, skip all tests and define
20732         HAVE_SELINUX_SELINUX_H to 0.
20733         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20734         set LIB_SELINUX to empty.
20735         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20736         gl_LIBSELINUX. If --without-selinux was specified, replace
20737         selinux/context.h.
20738         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20739
20740 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20741             Bruno Haible  <bruno@clisp.org>
20742
20743         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20744         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20745         of HAVE_REALLOC.
20746         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20747         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20748         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20749         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20750
20751 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20752             Bruno Haible  <bruno@clisp.org>
20753
20754         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20755         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20756         HAVE_CALLOC.
20757         * lib/xmalloc.c: Update accordingly.
20758         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20759         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20760         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20761
20762 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20763             Bruno Haible  <bruno@clisp.org>
20764
20765         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20766         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20767         HAVE_MALLOC.
20768         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20769         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20770         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20771
20772 2010-08-29  Bruno Haible  <bruno@clisp.org>
20773
20774         Update modules list.
20775         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20776         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20777         (String handling <string.h>): Add astrxfrm.
20778         (File system functions): Add readlinkat.
20779
20780 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20781
20782         Tests for module 'realloc-gnu'.
20783         * modules/realloc-gnu-tests: New file.
20784         * tests/test-realloc-gnu.c: New file.
20785
20786         Tests for module 'calloc-gnu'.
20787         * modules/calloc-gnu-tests: New file.
20788         * tests/test-calloc-gnu.c: New file.
20789
20790         Tests for module 'malloc-gnu'.
20791         * modules/malloc-gnu-tests: New file.
20792         * tests/test-malloc-gnu.c: New file.
20793
20794 2010-08-28  Bruno Haible  <bruno@clisp.org>
20795
20796         Rename module 'realloc' -> 'realloc-gnu'.
20797         * modules/realloc-gnu: New file, copied from modules/realloc.
20798         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20799         obsolete.
20800         * modules/mgetgroups (Depends-on): Update.
20801         * doc/posix-functions/realloc.texi: Update.
20802         * NEWS: Mention the change.
20803
20804         Rename module 'calloc' -> 'calloc-gnu'.
20805         * modules/calloc-gnu: New file, copied from modules/calloc.
20806         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20807         obsolete.
20808         * doc/posix-functions/calloc.texi: Update.
20809         * NEWS: Mention the change.
20810
20811         Rename module 'malloc' -> 'malloc-gnu'.
20812         * modules/malloc-gnu: New file, copied from modules/malloc.
20813         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20814         obsolete.
20815         * modules/argp (Depends-on): Update.
20816         * modules/regex (Depends-on): Update.
20817         * doc/posix-functions/malloc.texi: Update.
20818         * NEWS: Mention the change.
20819
20820 2010-08-28  Eric Blake  <eblake@redhat.com>
20821
20822         pread, pwrite: add missing dependency
20823         * modules/pread (Depends-on): Add extensions.
20824         * modules/pwrite (Depends-on): Likewise.
20825
20826 2010-08-28  Bruno Haible  <bruno@clisp.org>
20827
20828         unistr/u*-strchr: Fix tests dependencies.
20829         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20830         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20831         Reported by Ian Beckwith <ianb@erislabs.net>.
20832
20833 2010-08-28  Bruno Haible  <bruno@clisp.org>
20834
20835         read-file: Don't occupy too much unused memory.
20836         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20837
20838 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20839             Eric Blake  <eblake@redhat.com>
20840             Bruno Haible  <bruno@clisp.org>
20841
20842         read-file: Avoid memory reallocations with regular files.
20843         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20844         (fread_file): With regular files, use the remaining length as the
20845         initial buffer size.  Check against overflow.
20846         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20847         sys_stat.
20848
20849 2010-08-28  Bruno Haible  <bruno@clisp.org>
20850
20851         ftello: Relax license.
20852         * modules/ftello (License): Relax to LGPLv2+.
20853         Reported by Eric Blake.
20854
20855 2010-08-28  Bruno Haible  <bruno@clisp.org>
20856
20857         Avoid relocwrapper link errors due to gnulib replacement functions.
20858         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20859         function.
20860         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20861
20862 2010-08-28  Bruno Haible  <bruno@clisp.org>
20863
20864         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20865         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20866         defined.
20867         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20868         Suggested by Eric Blake.
20869
20870 2010-08-28  Bruno Haible  <bruno@clisp.org>
20871
20872         sys_socket, netdb: Ensure socklen_t gets defined.
20873         * modules/sys_socket (Depends-on): Add socklen.
20874         * modules/netdb (Depends-on): Likewise.
20875         * modules/getaddrinfo (Depends-on): Remove socklen.
20876         * modules/getsockopt (Depends-on): Likewise.
20877         * modules/setsockopt (Depends-on): Likewise.
20878         * tests/test-sys_socket.c: Check that socklen_t is defined.
20879         * tests/test-netdb.c: Likewise.
20880         * m4/socklen.m4: Update comments.
20881         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20882
20883 2010-08-27  Eric Blake  <eblake@redhat.com>
20884
20885         login_tty: add missing dependency
20886         * modules/login_tty (Depends-on): Add pty.
20887
20888 2010-08-26  Eric Blake  <eblake@redhat.com>
20889
20890         lib-symbol-versions: fix m4 quoting
20891         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20892         format for AC_LINK_IFELSE.
20893
20894         glob: fix compile test
20895         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20896
20897         btowc: fix missing file
20898         * modules/btowc (Files): Also ship locale-fr.m4.
20899
20900         lseek: fix link test
20901         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20902         AC_LINK_IFELSE.
20903
20904         include_next: silence autoconf 2.68 warning
20905         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20906         AC_COMPILE_IFELSE as special.
20907         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20908         autoconf < 2.68.
20909
20910         acl: fix compilation test
20911         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20912         AC_COMPILE_IFELSE.
20913
20914 2010-08-26  Bruno Haible  <bruno@clisp.org>
20915
20916         Modernize AC_TRY_RUN invocations.
20917         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20918         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20919         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20920         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20921         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20922         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20923         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20924         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20925         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20926         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20927         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20928         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20929         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20930         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20931         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20932         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20933         gl_MBRLEN_NUL_RETVAL): Likewise.
20934         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20935         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20936         Likewise.
20937         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20938         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20939         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20940         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20941         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20942         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20943         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20944         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20945         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20946         Likewise.
20947         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20948         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20949         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20950         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20951         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20952         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20953         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20954         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20955         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20956         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20957
20958 2010-08-26  Bruno Haible  <bruno@clisp.org>
20959
20960         Modernize AC_TRY_LINK invocations.
20961         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20962         AC_TRY_LINK.
20963         * m4/argp.m4 (gl_ARGP): Likewise.
20964         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20965         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20966         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20967         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20968         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20969         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20970         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20971         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20972         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20973         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20974         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20975         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20976         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20977         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20978         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20979         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20980         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20981         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20982         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20983         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20984         Likewise.
20985         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20986         Likewise.
20987         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20988         Likewise.
20989         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20990         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20991         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20992         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20993         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20994         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20995         * m4/servent.m4 (gl_SERVENT): Likewise.
20996         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20997         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20998         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20999         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21000         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21001         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21002         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21003         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21004         * modules/tsearch-tests (configure.ac): Likewise.
21005
21006 2010-08-26  Bruno Haible  <bruno@clisp.org>
21007
21008         Modernize AC_TRY_COMPILE invocations.
21009         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21010         AC_TRY_COMPILE.
21011         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21012         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21013         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21014         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21015         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21016         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21017         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21018         * m4/lock.m4 (gl_LOCK): Likewise.
21019         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21020         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21021         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21022         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21023         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21024         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21025         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21026         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21027         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21028         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21029         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21030         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21031         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21032         extraneous semicolon.
21033
21034 2010-08-26  Jim Meyering  <meyering@redhat.com>
21035
21036         stat-time: relax license LGPL
21037         * modules/stat-time (License): Change from GPL to LGPL,
21038         with consent from all contributors, for use in libguile.
21039         Requested by Ludovic Courtès.
21040
21041 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21042
21043         poll: return immediately on POLLHUP.
21044         * lib/poll.c (poll): Always set timeout before wait_timeout is
21045         computed.
21046
21047 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21048
21049         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21050         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21051         rmdir ("dir/.//"), unlinkat.
21052
21053 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21054
21055         stdbool: avoid spurious failure with modern xlc
21056         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21057
21058 2010-08-24  Bruno Haible  <bruno@clisp.org>
21059
21060         getloadavg: simplify code
21061         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21062         gl_have_func. Update comments.
21063
21064 2010-08-24  Eric Blake  <eblake@redhat.com>
21065
21066         getloadavg: don't define SVR4 on cygwin
21067         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21068         only define SVR4 when -lkvm is required.
21069         Reported by Yaakov Selkowitz.
21070
21071 2010-08-24  Bruno Haible  <bruno@clisp.org>
21072
21073         priv-set: fix comment
21074         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21075
21076 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21077
21078         priv-set: fix comments
21079         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21080         to match code, as suggested by David Bartley in:
21081         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21082
21083 2010-08-23  Eric Blake  <eblake@redhat.com>
21084
21085         stdbool: avoid rejecting clang
21086         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21087         * tests/test-stdbool.c: Enable more tests if using the system
21088         <stdbool.h> instead of the gnulib replacement.
21089         (main): Move xlc bug test to a runtime test for all compilers.
21090         Reported by Anders Kaseorg.
21091
21092         argz: fix shell quoting issue
21093         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21094         Reported by Charles Wilson.
21095
21096 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21097             Erik Faye-Lund <kusmabite@gmail.com>
21098
21099         poll, select: handle ERROR_BROKEN_PIPE.
21100         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21101         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21102         * lib/select.c (win32_compute_revents): Do not mark a pipe
21103         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21104
21105 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21106
21107         fts: allow compilation with C++
21108         * lib/fts_.h: Specify extern "C" linkage with C++.
21109
21110 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21111
21112         Fix gnulib-tool sed script de-commentation for AIX sed.
21113         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21114         sed.
21115
21116 2010-08-17  Eric Blake  <eblake@redhat.com>
21117
21118         test-stddef: test for (some) offsetof bugs
21119         * tests/test-stddef.c: Enhance test to ensure correct type of
21120         offsetof.
21121         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21122         that we are not fixing at this time.
21123
21124 2010-08-15  Bruno Haible  <bruno@clisp.org>
21125
21126         stpncpy: Allow stpncpy to be defined as a macro.
21127         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21128         if it's already correctly declared.
21129         * lib/string.in.h (stpncpy): Undefine before redefining.
21130         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21131
21132 2010-08-14  Bruno Haible  <bruno@clisp.org>
21133
21134         Rename module 'memxfrm' to 'amemxfrm'.
21135         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21136         (amemxfrm): Renamed from memxfrm.
21137         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21138         (amemxfrm): Renamed from memxfrm.
21139         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21140         * NEWS: Mention the change.
21141         * MODULES.html.sh (String handling <string.h>): Update.
21142         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21143         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21144         * lib/unicase/u16-casexfrm.c: Likewise.
21145         * lib/unicase/u32-casexfrm.c: Likewise.
21146         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21147         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21148         * lib/uninorm/u16-normxfrm.c: Likewise.
21149         * lib/uninorm/u32-normxfrm.c: Likewise.
21150         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21151         memxfrm.
21152         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21153         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21154         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21155         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21156         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21157         Suggested by Paul Eggert.
21158
21159 2010-08-14  Bruno Haible  <bruno@clisp.org>
21160
21161         Tests for module 'astrxfrm'.
21162         * modules/astrxfrm-tests: New file.
21163         * tests/test-astrxfrm.c: New file.
21164
21165         New module 'astrxfrm'.
21166         * lib/astrxfrm.h: New file.
21167         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21168         * modules/astrxfrm: New file.
21169
21170 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21171
21172         regex: Tweak doc.
21173         * doc/regex.texi (Overview): Don't mention regex.c.
21174         (GNU Regular Expression Compiling): Likewise.
21175         (Match-end-of-line Operator): Mention 'not_eol'.
21176
21177 2010-08-14  Brian Gough  <bjg@gnu.org>
21178             Bruno Haible  <bruno@clisp.org>
21179
21180         git-merge-changelog: add doc relating to use with bzr and hg.
21181         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21182
21183 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21184
21185         pthread: fix pthread.h creation for srcdir != builddir
21186         * modules/pthread (Makefile.am): Fix the rule to work also in a
21187         non-srcdir build.
21188
21189 2010-08-13  Karl Berry  <karl@gnu.org>
21190
21191         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21192         * doc/posix-*/*: force line break before @url of POSIX
21193         specifications.
21194         Suggested by Werner Lemberg.
21195
21196 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21197
21198         strtod: fix const diagnostic
21199         * lib/strtod.c (strtod): Don't assign const char * to char *,
21200         as this elicits a warning from GCC when warnings are enabled.
21201
21202 2010-08-10  Pádraig Brady <P@draigbrady.com>
21203         and Eric Blake  <eblake@redhat.com>
21204
21205         copy-acl: ignore ENOTSUP on HP-UX
21206         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21207         so that it is available for HP-UX.
21208         * lib/copy-acl.c (qcopy_acl): Use it.
21209         Reported by Patrick M. Callahan.
21210
21211 2010-08-10  Eric Blake  <eblake@redhat.com>
21212
21213         open, chown: relax license
21214         * modules/open (License): Change to LGPLv2+, with consent by all
21215         authors, for use in augeas.
21216         * modules/chown (License): Likewise.
21217         * modules/lchown (Likewise): Likewise.
21218         Requested by Adam Stokes.
21219
21220 2010-08-09  Karl Berry  <karl@gnu.org>
21221
21222         * build-aux/ar-lib: new file, import from Automake.
21223         * config/srclist.txt: autocheck for updates.
21224
21225 2010-08-09  Eric Blake  <eblake@redhat.com>
21226
21227         readlinkat: adjust client modules
21228         * modules/areadlinkat (Depends-on): Use readlinkat, not
21229         symlinkat.
21230         * modules/areadlinkat-with-size (Depends-on): Likewise.
21231
21232         mknod: be more vocal about danger of running tests as root
21233         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21234         root, since that is just asking for problems.
21235         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21236
21237         readlinkat: split into its own module
21238         * modules/symlinkat: Split readlinkat...
21239         * modules/readlinkat: ...into separate module.
21240         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21241         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21242         * lib/symlinkat.c (readlinkat): Move...
21243         * lib/readlinkat.c: ...into new file.
21244         * modules/symlinkat-tests: Split readlinkat test...
21245         * modules/readlinkat-tests: ...into separate module.
21246         * tests/test-symlinkat.c: Split...
21247         * tests/test-readlinkat.c: ...into new file.
21248         * NEWS: Document the split.
21249         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21250         * lib/unistd.in.h (readlinkat): Likewise.
21251         Suggested by Bruno Haible.
21252
21253 2010-08-08  Bruno Haible  <bruno@clisp.org>
21254
21255         memxfrm: Speed up.
21256         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21257         that usually only one call to strxfrm is necessary for each string
21258         part.
21259         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21260
21261 2010-08-07  Karl Berry  <karl@gnu.org>
21262
21263         * doc/posix-headers/limits.texi,
21264         * doc/posix-functions/malloc.texi,
21265         * doc/posix-functions/strsignal.texi: missing @item.
21266         * doc/ld-version-script.texi: spurious leading i.
21267         * doc/regex.texi (Interval Operators): no commas inside @var.
21268
21269 2010-08-01  Bruno Haible  <bruno@clisp.org>
21270
21271         Integrate the regex documentation.
21272         * doc/gnulib.texi: Define 'cn' index.
21273         (Regular expressions): New a chapter that includes regex.texi and
21274         regexprops-generic.texi.
21275         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21276         syntax.
21277
21278         Whitespace cleanup.
21279         * doc/regex.texi: Remove trailing spaces.
21280
21281         Add regex documentation.
21282         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21283         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21284         Written by Kathy A. Hargreaves and Karl Berry.
21285
21286 2010-08-01  Bruno Haible  <bruno@clisp.org>
21287
21288         link: Update documentation.
21289         * doc/posix-functions/link.texi: Update regarding Solaris.
21290
21291 2010-07-31  Bruno Haible  <bruno@clisp.org>
21292
21293         Update modules list.
21294         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21295         (String handling <string.h>): Add memcmp2, memxfrm.
21296         (Container data structures): Add xlist, xsublist, xoset.
21297         (Core language properties): Add alignof, unused-parameter.
21298         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21299         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21300         (Unibyte characters <ctype.h>): New section.
21301         (String handling <string.h>): New section.
21302         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21303         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21304         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21305         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21306         tan, tanh, tanl, y0, y1, yn.
21307         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21308         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21309         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21310         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21311         unlockpt, vdprintf, vdprintf-posix.
21312         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21313         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21314         xconcat-filename.
21315         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21316         getdtablesize, pipe2, pipe2-safer.
21317         (Security): New section.
21318         (Networking functions): Add accept4.
21319         (Signal handling): Add sigpipe.
21320         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21321         mbmemcasecoll.
21322         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21323         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21324         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21325         pipe-filter-ii.
21326         (Misc): Add argp-version-etc, login_tty, parse-duration.
21327
21328 2010-07-31  Bruno Haible  <bruno@clisp.org>
21329
21330         Improve doc in MODULES.html.
21331         * modules/linkat (Description): Add the word "function".
21332         * modules/mkfifo (Description): Likewise.
21333         * modules/mknod (Description): Likewise.
21334         * modules/remove (Description): Likewise.
21335         * modules/renameat (Description): Likewise.
21336         * modules/stat (Description): Likewise.
21337         * modules/symlink (Description): Likewise.
21338         * modules/unlink (Description): Likewise.
21339
21340 2010-07-31  Bruno Haible  <bruno@clisp.org>
21341
21342         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21343         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21344         option --enable/disable-c++ instead of --enable/disable-cxx.
21345         * NEWS: Mention the change.
21346
21347 2010-07-31  Bruno Haible  <bruno@clisp.org>
21348
21349         readlink, areadlink: Relax test a bit.
21350         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21351         alternative to ENOTDIR.
21352         * tests/test-areadlink.h (test_areadlink): Likewise.
21353         Reported by Rainer Tammer.
21354
21355 2010-07-31  Bruno Haible  <bruno@clisp.org>
21356
21357         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21358         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21359         character, perform the search using U_STRCHR.
21360         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21361         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21362         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21363         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21364         Suggested by Paolo Bonzini.
21365
21366 2010-07-31  Bruno Haible  <bruno@clisp.org>
21367
21368         unistr/u*-strstr: Fix dependencies.
21369         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21370         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21371         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21372
21373 2010-07-31  Bruno Haible  <bruno@clisp.org>
21374
21375         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21376         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21377         the beginning of the loop.
21378         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21379         cases in 'switch' statement.
21380
21381         unistr/u8-strchr: Fix several bugs.
21382         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21383         the string. When not found, return NULL, not a pointer near the end.
21384
21385         More tests for unistr/u8-strchr.
21386         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21387         that the function does not read past the first occurrence of the byte
21388         being searched.
21389         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21390         * tests/unistr/test-u16-strchr.c (main): New function.
21391         * tests/unistr/test-u32-strchr.c (main): New function.
21392
21393 2010-07-31  Bruno Haible  <bruno@clisp.org>
21394
21395         posix-modules: Ignore backup files of documentation files.
21396         * posix-modules: grep only through files named *.texi.
21397
21398 2010-07-31  Bruno Haible  <bruno@clisp.org>
21399
21400         symlinkat: Fix documentation.
21401         * doc/posix-functions/readlinkat.texi: Fix module name.
21402
21403 2010-07-31  Bruno Haible  <bruno@clisp.org>
21404
21405         fchownat: Replace also when chown has the trailing slash bug.
21406         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21407         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21408         introduced on 2010-04-10.
21409         Reported by Rainer Tammer.
21410
21411 2010-07-31  Bruno Haible  <bruno@clisp.org>
21412
21413         linkat: Work around AIX 7.1 bug.
21414         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21415         whether linkat handles trailing slash correctly. If not, replace linkat
21416         and define LINKAT_TRAILING_SLASH_BUG.
21417         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21418         check whether (fd1,file1) points to a directory if file1 or file2 ends
21419         in a slash. Code taken from lib/link.c.
21420         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21421         Reported by Rainer Tammer.
21422
21423 2010-07-31  Bruno Haible  <bruno@clisp.org>
21424
21425         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21426         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21427         This disables an xlc optimization that was causing wrong test results.
21428         Reported by Rainer Tammer.
21429
21430 2010-07-31  Bruno Haible  <bruno@clisp.org>
21431
21432         iconv: Work around AIX 6.1..7.1 bug.
21433         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21434         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21435         cross-compiling, guess no on all versions of AIX.
21436         Reported by Rainer Tammer.
21437
21438 2010-07-31  Bruno Haible  <bruno@clisp.org>
21439
21440         readlink: Relax test a bit.
21441         * tests/test-readlink.h (test_readlink): Allow different errno value
21442         when readlink is called with a file name that ends in / and refers to
21443         a file.
21444         Suggested by Eric Blake.
21445         Reported by Rainer Tammer.
21446
21447 2010-07-31  Bruno Haible  <bruno@clisp.org>
21448
21449         copysign: Does not require -lm on glibc systems.
21450         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21451         gl_COMMON_DOUBLE_MATHFUNC.
21452         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21453
21454 2010-07-31  Bruno Haible  <bruno@clisp.org>
21455
21456         duplocale: Work around AIX 7.1 bug.
21457         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21458         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21459         * lib/duplocale.c (rpl_duplocale): Update comment.
21460         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21461         Reported by Rainer Tammer.
21462
21463 2010-07-30  Bruno Haible  <bruno@clisp.org>
21464
21465         dirfd: Avoid link error on AIX 7.1.
21466         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21467         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21468         exist, set REPLACE_DIRFD.
21469         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21470         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21471         * doc/posix-functions/dirfd.texi: Update.
21472         Reported by Rainer Tammer.
21473
21474 2010-07-30  Eric Blake  <eblake@redhat.com>
21475
21476         strtod: next round of AIX fixes
21477         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21478         exponent.
21479         * tests/test-strtod.c (main): Enhance tests.
21480         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21481         Reported by Rainer Tammer.
21482
21483         futimens: fix configure check
21484         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21485         Reported by Bruno Haible.
21486
21487 2010-07-30  Bruno Haible  <bruno@clisp.org>
21488
21489         getline: Update regarding AIX.
21490         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21491         Reported by Rainer Tammer.
21492
21493 2010-07-30  Bruno Haible  <bruno@clisp.org>
21494
21495         wcwidth: Drop replacement on AIX 7.
21496         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21497         AIX 7.
21498         Reported by Rainer Tammer.
21499
21500 2010-07-30  Bruno Haible  <bruno@clisp.org>
21501
21502         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21503         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21504         a 'char *'.
21505         Reported by Rainer Tammer.
21506
21507 2010-07-30  Bruno Haible  <bruno@clisp.org>
21508
21509         unlink: Update regarding AIX.
21510         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21511         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21512         Reported by Rainer Tammer.
21513
21514 2010-07-30  Bruno Haible  <bruno@clisp.org>
21515
21516         symlink: Update regarding AIX.
21517         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21518         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21519         Reported by Rainer Tammer.
21520
21521 2010-07-30  Bruno Haible  <bruno@clisp.org>
21522
21523         strndup: Update regarding AIX.
21524         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21525         AIX 7.
21526         Reported by Rainer Tammer.
21527
21528 2010-07-30  Bruno Haible  <bruno@clisp.org>
21529
21530         stat: Update regarding AIX.
21531         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21532         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21533         Reported by Rainer Tammer.
21534
21535 2010-07-30  Bruno Haible  <bruno@clisp.org>
21536
21537         truncl: Fix autoconf test.
21538         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21539         whether truncl works.
21540         Reported by Rainer Tammer.
21541
21542 2010-07-30  Bruno Haible  <bruno@clisp.org>
21543
21544         round: Update regarding AIX.
21545         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21546         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21547         Reported by Rainer Tammer.
21548
21549 2010-07-30  Bruno Haible  <bruno@clisp.org>
21550
21551         rename: Update regarding AIX.
21552         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21553         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21554         Reported by Rainer Tammer.
21555
21556 2010-07-30  Bruno Haible  <bruno@clisp.org>
21557
21558         printf.m4: Update regarding AIX.
21559         * m4/printf.m4: Update comments regarding AIX.
21560         Reported by Rainer Tammer.
21561
21562 2010-07-30  Bruno Haible  <bruno@clisp.org>
21563
21564         iconv: Update regarding AIX.
21565         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21566         AIX 7.
21567         Reported by Rainer Tammer.
21568
21569 2010-07-30  Bruno Haible  <bruno@clisp.org>
21570
21571         getopt: Update regarding AIX.
21572         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21573         no on AIX.
21574         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21575         Reported by Rainer Tammer.
21576
21577 2010-07-30  Bruno Haible  <bruno@clisp.org>
21578
21579         ldexpl; Update regarding AIX.
21580         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21581         on AIX 7.
21582         Reported by Rainer Tammer.
21583
21584 2010-07-30  Bruno Haible  <bruno@clisp.org>
21585
21586         frexpl: Update regarding AIX.
21587         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21588         on AIX 7.
21589         Reported by Rainer Tammer.
21590
21591 2010-07-30  Bruno Haible  <bruno@clisp.org>
21592
21593         open, fopen: Update regarding AIX.
21594         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21595         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21596         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21597         * doc/posix-functions/fopen.texi: Likewise.
21598         Reported by Rainer Tammer.
21599
21600 2010-07-30  Bruno Haible  <bruno@clisp.org>
21601
21602         chown: Update doc regarding AIX.
21603         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21604         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21605         Reported by Rainer Tammer.
21606
21607 2010-07-30  Eric Blake  <eblake@redhat.com>
21608
21609         strtod: fix bug in replacement function on AIX
21610         * lib/strtod.c (strtod): Special case broken "0x" parse in
21611         underlying strtod.
21612         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21613         * doc/posix-functions/strtod.texi (strtod): Likewise.
21614         Reported by Rainer Tammer.
21615
21616 2010-07-30  Bruno Haible  <bruno@clisp.org>
21617
21618         mbrlen: Fix cross-compilation guess for AIX.
21619         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21620         guess. Leftover from 2008-12-22.
21621
21622 2010-07-30  Bruno Haible  <bruno@clisp.org>
21623
21624         mbrtowc: Fix cross-compilation guess for AIX.
21625         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21626         guess. Leftover from 2008-12-21.
21627
21628 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21629
21630         init.sh: work around trap limitation of some shells
21631         * tests/init.sh (setup_): Move exit trap outside of shell function.
21632
21633 2010-07-29  Eric Blake  <eblake@redhat.com>
21634
21635         strtod: aid debugging
21636         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21637         understanding why strtod is rejected.
21638
21639 2010-07-28  Bruno Haible  <bruno@clisp.org>
21640
21641         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21642         * lib/unistr/u8-chr.c: Include <string.h>.
21643         * tests/unistr/test-u8-chr.c: Likewise.
21644         * tests/unistr/test-u16-chr.c: Likewise.
21645         * tests/unistr/test-u32-chr.c: Likewise.
21646         * tests/unistr/test-u8-strchr.c: Likewise.
21647         * tests/unistr/test-u16-strchr.c: Likewise.
21648         * tests/unistr/test-u32-strchr.c: Likewise.
21649         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21650         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21651         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21652         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21653
21654 2010-07-28  Bruno Haible  <bruno@clisp.org>
21655
21656         Use spaces for indentation, not tabs.
21657         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21658
21659 2010-07-27  Bruno Haible  <bruno@clisp.org>
21660
21661         mbspcasecmp: Fix function specification.
21662         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21663         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21664         Reported by Eric Blake <eblake@redhat.com>.
21665
21666 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21667
21668         timespec: use cast and not conditional, as truncation isn't possible
21669         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21670         instead of a conditional.  Comment about the situation in more detail.
21671         This undoes most of the 2009-10-29 patch.
21672
21673 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21674
21675         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21676         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21677         * lib/unistr/u8-strchr.c: Likewise.
21678         * modules/unistr/u8-chr: Depend on memchr.
21679
21680         unistr/u*-strchr: add tests
21681         * modules/unistr/u8-strchr-tests: New file.
21682         * modules/unistr/u16-strchr-tests: New file.
21683         * modules/unistr/u32-strchr-tests: New file.
21684         * tests/unistr/test-strchr.h: New file.
21685         * tests/unistr/test-u8-strchr.c: New file.
21686         * tests/unistr/test-u16-strchr.c: New file.
21687         * tests/unistr/test-u32-strchr.c: New file.
21688
21689         unistr/u*-chr: test multibyte sequences more
21690         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21691         test vector.
21692         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21693         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21694         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21695
21696         unistr/u*-chr: test multibyte sequences
21697         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21698
21699         unistr/u*-chr: prepare for multibyte tests
21700         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21701         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21702         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21703         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21704         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21705         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21706
21707 2010-07-18  Bruno Haible  <bruno@clisp.org>
21708
21709         unistr/u8-strchr: Optimize non-ASCII argument case.
21710         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21711         because the first byte often matches anyway.
21712         Reported by Pádraig Brady <P@draigbrady.com>.
21713
21714 2010-07-15  Karl Berry  <karl@gnu.org>
21715
21716         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21717
21718 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21719
21720         getcwd: on Solaris, work better if ancestors are inaccessible
21721         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21722         buffer and size, try again with a large buffer.  This works better
21723         on Solaris, since its getcwd succeeds even if the path to the root
21724         is inaccessible, and this is helpful in common cases such as .zfs
21725         hidden directories.  Problem reported by J Chapman Flack in
21726         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21727         Use system getcwd if it's declared, not merely if it's partly
21728         working; use the partly-working test only to avoid needless effort
21729         if the system getcwd fails.
21730         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21731         comment that was already obsolete and is now even more obsolete.
21732         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21733         now might call strdup.
21734
21735 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21736
21737         pthread: Add enough so that coreutils/src/sort.c compiles.
21738         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21739         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21740         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21741         Include <sys/types.h>, in case it defines pthread_t.
21742         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21743         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21744         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21745         (pthread_rwlockattr_t, pthread_spinlock_t):
21746         New typedefs, if HAVE_PTHREAD_T is not defined.
21747         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21748         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21749         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21750         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21751         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21752         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21753         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21754         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21755         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21756         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21757         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21758         New macros.
21759         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21760         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21761         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21762         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21763         (pthread_spin_unlock): New dummy functions.
21764         (pthread_create): Return EAGAIN; don't set errno.
21765         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21766         require AC_C_INLINE.
21767         * modules/pthread (Depends-on): Add sched, time.
21768         (pthread.h): Use AM_V_GEN.
21769
21770 2010-07-13  Bruno Haible  <bruno@clisp.org>
21771
21772         striconveh: Don't malloc memory if the result buffer is sufficient.
21773         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21774         buffer if its size is sufficient.
21775         Reported by Ludovic Courtès <ludo@gnu.org>.
21776
21777 2010-07-13  Bruno Haible  <bruno@clisp.org>
21778
21779         strtod: Add safety check.
21780         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21781
21782 2010-07-12  Bruno Haible  <bruno@clisp.org>
21783
21784         Unify tests that set gl_cv_func_ldexpl_no_libm.
21785         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21786         gl_FUNC_LDEXPL.
21787         (gl_FUNC_LDEXPL): Invoke it.
21788         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21789
21790 2010-07-12  Bruno Haible  <bruno@clisp.org>
21791
21792         Unify tests that set gl_cv_func_ldexp_no_libm.
21793         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21794         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21795         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21796         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21797         * modules/strtod (Files): Add m4/ldexp.m4.
21798
21799 2010-07-12  Bruno Haible  <bruno@clisp.org>
21800
21801         Unify tests that set gl_cv_func_frexpl_no_libm.
21802         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21803         gl_FUNC_FREXPL_NO_LIBM.
21804         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21805         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21806
21807 2010-07-12  Bruno Haible  <bruno@clisp.org>
21808
21809         Unify tests that set gl_cv_func_frexp_no_libm.
21810         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21811         gl_FUNC_FREXP_NO_LIBM.
21812         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21813         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21814
21815 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21816
21817         memcoll: clarify sizes versus lengths, document better, and tweak perf
21818         * lib/memcoll.c (strcoll_loop, memcoll0):
21819         Improve quality of descriptive comments.  Name variables
21820         consistently as to whether they are lengths (which do not include
21821         terminating null) versus sizes (which do).
21822         * lib/xmemcoll.c (xmemcoll0): Likewise.
21823         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21824         returned when s1size == 0; this is easier to compile and saves
21825         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21826
21827 2010-07-12  Bruno Haible  <bruno@clisp.org>
21828
21829         Tests for module '_Exit'.
21830         * modules/_Exit-tests: New file.
21831         * tests/test-_Exit.sh: New file.
21832         * tests/test-_Exit.c: New file.
21833
21834         New module '_Exit'.
21835         * lib/stdlib.in.h (__attribute__): New macro.
21836         (_Exit): New declaration.
21837         * lib/_Exit.c: New file.
21838         * m4/_Exit.m4: New file.
21839         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21840         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21841         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21842         * modules/_Exit: New file.
21843         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21844         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21845
21846 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21847
21848         strtod: make it more-accurate typically, and don't require libm
21849         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21850         Include limits.h.  Don't include string.h.
21851         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21852         (locale_isspace): New function, so that no casts are needed to
21853         check whether *s is a space.
21854         (ldexp): Provide an unused dummy if not available.
21855         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21856         (strtod): Use them.  This implementation prefers to use the
21857         underlying strtod if available, falling back on our own code
21858         only to fix known bugs.  This is more likely to produce an
21859         accurate result.  Also, it avoids the use of libm functions.
21860         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21861         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21862         was absent, but it caused a test failure with coreutils.
21863         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21864         with libm.
21865         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21866         * modules/strtod-tests (Makefile.am): Likewise.
21867
21868 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21869             Bruno Haible  <bruno@clisp.org>
21870
21871         unistr/u8-strchr: Optimize ASCII argument case.
21872         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21873
21874 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21875
21876         (x)memcoll: minor tweaks
21877         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21878         is after the type that it qualifies.
21879         (memcoll0): Likewise.
21880         * lib/memcoll.h (memcoll0): Likewise.
21881         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21882         * lib/xmemcoll.h (xmemcoll0): Likewise.
21883         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21884         differs from memcoll in that the NUL byte is part of the argument.
21885         Omit the abort-checks, as performance is a real issue here.  Plus,
21886         the checks were wrong anyway (an off-by-one error).  Omit local
21887         variable 'diff', as it's a bit clearer that way.
21888         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21889         no longer needed.
21890
21891 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21892
21893         (x)memcoll: speedup when input is known to be NUL delimited
21894         * lib/memcoll.c: Include stdlib.
21895         (memcoll0): New function.
21896         (strcoll_loop): New function, refactored for use in both memcoll
21897         and memcoll0.
21898         * lib/memcoll.h (memcoll0): Add prototype.
21899         * lib/xmemcoll.c (xmemcoll0): New function.
21900         (collate_error): New function, refactored for use in both xmemcoll
21901         and xmemcoll0.
21902         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21903         * m4/memcoll.m4: add inline invocation.
21904
21905 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21906
21907         * build-aux/bootstrap: Remove any local translations
21908         from the translation project synchronization directory,
21909         so that local only translations are not distributed.
21910
21911 2010-07-04  Bruno Haible  <bruno@clisp.org>
21912
21913         fsusage: Clarify which code applies to which platforms.
21914         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21915         platform.
21916         * lib/fsusage.c (get_fs_usage): Likewise.
21917
21918 2010-07-04  Bruno Haible  <bruno@clisp.org>
21919
21920         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21921         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21922         Reported by Martin Lambers <marlam@marlam.de>.
21923
21924 2010-07-04  Jim Meyering  <meyering@redhat.com>
21925
21926         hash: once again explicitly disallow insertion of NULL
21927         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21928         inserting a NULL pointer cannot work with these functions.
21929         Add a comment with details.
21930         This reverts part of the 2010-07-01 commit, 5bef1a35
21931         "hash: extend module to deal with non-pointer keys".
21932
21933 2010-07-01  Bruno Haible  <bruno@clisp.org>
21934
21935         stdbool: Update doc.
21936         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21937         Info from Christian Weisgerber <naddy@mips.inka.de>.
21938
21939 2010-07-01  Jim Meyering  <meyering@redhat.com>
21940
21941         hash: extend module to deal with non-pointer keys
21942         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21943         but that allows insertion of non-pointer entries.
21944         Do not disallow an ENTRY value of NULL.
21945         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21946         * lib/hash.h (hash_insert0): Declare.
21947
21948 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21949
21950         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21951         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21952         not present (i.e. with autoconf 2.59 and when using gettextize, not
21953         gnulib), require AC_GNU_SOURCE instead.
21954
21955 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21956
21957         idpriv-drop: Fix tests.
21958         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21959         not to the test-idpriv-droptemp program.
21960
21961 2010-06-29  Bruno Haible  <bruno@clisp.org>
21962
21963         string: Fix syntax error with g++ 2.96.
21964         * lib/string.in.h (__pure__): Remove definition.
21965         (_GL_ATTRIBUTE_PURE): New macro.
21966         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21967         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21968         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21969
21970 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21971
21972         unitypes: Fix bug introduced on 2010-05-18.
21973         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21974
21975 2010-06-22  Eric Blake  <eblake@redhat.com>
21976
21977         memmem: slight optimization
21978         * lib/str-two-way.h (critical_factorization): Update comments.
21979         Reduce work during factorization phase.
21980         Reported by Carlos Bueno <carlos@bueno.org>.
21981
21982 2010-06-21  Bruno Haible  <bruno@clisp.org>
21983
21984         Fix HAVE_CALLOC_POSIX misnomer.
21985         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21986         !HAVE_CALLOC_POSIX.
21987         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21988         HAVE_CALLOC_POSIX.
21989         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21990         instead of HAVE_CALLOC_POSIX.
21991         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21992         HAVE_CALLOC_POSIX.
21993
21994         Use modern idiom for calloc() replacement.
21995         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21996         AC_FUNC_CALLOC.
21997         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21998         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21999         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22000         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22001         (gl_REPLACE_CALLOC): New macro.
22002
22003 2010-06-21  Bruno Haible  <bruno@clisp.org>
22004
22005         Fix HAVE_REALLOC_POSIX misnomer.
22006         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22007         !HAVE_REALLOC_POSIX.
22008         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22009         HAVE_REALLOC_POSIX.
22010         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22011         instead of HAVE_REALLOC_POSIX.
22012         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22013         HAVE_REALLOC_POSIX.
22014
22015         Use modern idiom for realloc() replacement.
22016         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22017         AC_FUNC_REALLOC.
22018         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22019         Autoconf's AC_FUNC_REALLOC.
22020         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22021         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22022         (gl_REPLACE_REALLOC): New macro.
22023         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22024
22025 2010-06-21  Bruno Haible  <bruno@clisp.org>
22026
22027         Fix HAVE_MALLOC_POSIX misnomer.
22028         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22029         !HAVE_MALLOC_POSIX.
22030         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22031         HAVE_MALLOC_POSIX.
22032         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22033         instead of HAVE_MALLOC_POSIX.
22034         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22035         HAVE_MALLOC_POSIX.
22036
22037         Use modern idiom for malloc() replacement.
22038         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22039         AC_FUNC_MALLOC.
22040         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22041         Autoconf's AC_FUNC_MALLOC.
22042         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22043         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22044         (gl_REPLACE_MALLOC): New macro.
22045         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22046
22047 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22048
22049         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22050         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22051         This macro takes 3 arguments, not 4.
22052
22053 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22054
22055         ipv6: fix detection under mingw
22056         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22057         in6_addr.
22058
22059 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22060
22061         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22062         that strtod() works when cross-compiling to a glibc version known
22063         to work.
22064
22065 2010-06-15  Bruno Haible  <bruno@clisp.org>
22066
22067         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22068
22069 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22070
22071         select: Correct timeout.
22072         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22073
22074 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22075
22076         git-version-gen: init shell var to avoid env var influence
22077         * build-aux/git-version-gen (v): Init shell var to empty.
22078
22079 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22080
22081         priv-set: Don't assume that priv.h exists merely because getppriv does.
22082         See Jan Andersen's bug report about AIX 5L in
22083         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22084         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22085         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22086         * lib/priv-set.h: Likewise.
22087         * tests/test-priv-set.c: Likewise.
22088
22089 2010-06-13  Bruno Haible  <bruno@clisp.org>
22090
22091         relocatable: Make it easier to test whether to install wrappers.
22092         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22093         RELOCATABLE_VIA_WRAPPER.
22094
22095 2010-06-13  Bruno Haible  <bruno@clisp.org>
22096
22097         gnulib-tool: Display specified modules and dependencies differently.
22098         * gnulib-tool (func_show_module_list): New function.
22099         (func_import, func_create_testdir): Invoke it.
22100         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22101
22102 2010-06-13  Bruno Haible  <bruno@clisp.org>
22103
22104         gnulib-tool: Align code of func_import and func_create_testdir.
22105         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22106         specified_modules.
22107
22108 2010-06-12  Jim Meyering  <meyering@redhat.com>
22109
22110         test-inttostr: avoid spurious failure on Solaris 9
22111         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22112         to accept "%ju".  Reported by Bruno Haible.
22113
22114 2010-06-11  Jim Meyering  <meyering@redhat.com>
22115
22116         test-sys_socket: mark variables as used more readably
22117         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22118         as "used" explicitly via (void) statement casts.  This is more
22119         readable than using them in an artificial return expression.
22120         Suggestion from Bruno Haible.
22121
22122 2010-06-11  Bruno Haible  <bruno@clisp.org>
22123
22124         Avoid some more warnings from "gcc -Wwrite-strings".
22125         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22126         to 'const char *'.
22127         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22128         * tests/test-c-strcasestr.c (main): Likewise.
22129         * tests/test-mbscasestr1.c (main): Likewise.
22130         * tests/test-mbscasestr2.c (main): Likewise.
22131         * tests/test-memmem.c (main): Likewise.
22132         * tests/test-strstr.c (main): Likewise.
22133         * tests/test-strcasestr.c (main): Likewise.
22134
22135 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22136
22137         init.sh: change framework_failure_ to fail with status 99, not 1
22138         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22139         automake's parallel-tests rule that this is an unexpected failure,
22140         even if the test is listed in XFAIL_TESTS.
22141
22142 2010-06-11  Jim Meyering  <meyering@redhat.com>
22143
22144         test-inttostr: avoid warnings about 4-6KB literal strings
22145         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22146         Include "macros.h", for its definition of ASSERT.
22147         (CK): s/assert/ASSERT/
22148         * modules/inttostr-tests (Files): Add macros.h.
22149
22150         init.sh: don't use $ME_ or skip_ before they are defined
22151         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22152         their first uses.  Also hoist their companions: warn_, fail_,
22153         framework_failure_, $stderr_fileno.  Prompted by a patch from
22154         Stefano Lattarini.
22155
22156         test-sys_socket: avoid set-but-not-used warnings from gcc
22157         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22158         avoid warning about set-but-not-used variables.
22159
22160         test-xvasprintf: avoid 'const' discard warnings
22161         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22162         "const" when assigning from literal strings.
22163         (test_xasprintf): Add "void" in function argument list to placate
22164         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22165
22166         tests: avoid compilation warnings in argmatch and exclude tests...
22167         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22168         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22169         Since it always exits, declare with the "noreturn" attribute.
22170         * tests/test-argmatch.c: Likewise.
22171
22172         tests: avoid 'const' discard warnings in mbsstr tests
22173         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22174         * tests/test-mbsstr2.c (main): Likewise.
22175
22176         test-verify: avoid warning from gcc's -Wmissing-declarations
22177         * tests/test-verify.c (function): Declare to be static.
22178
22179         test-inttostr.c: include <string.h> for use of strcmp
22180         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22181
22182         test-linkat: avoid failed assertion on "other" architectures
22183         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22184         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22185         sparc: https://bugs.launchpad.net/bugs/591968
22186
22187 2010-06-11  Jim Meyering  <meyering@redhat.com>
22188
22189         printf.m4: avoid autoconf's "Expanded Before Required" warning
22190         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22191         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22192         autoconf warning.
22193
22194 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22195
22196         Replacement header templates are now named with ".in", not "_".
22197         * doc/gnulib-intro.texi: Correct.
22198
22199 2010-06-10  Jim Meyering  <meyering@redhat.com>
22200
22201         inttostr-tests: depend on snprintf, not snprintf-posix
22202         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22203         snprintf-posix, to avoid this aclocal failure:
22204           missing file gnulib-tests/vasnprintf.c
22205           configure.ac:45: error: expected source file, required through \
22206           AC_LIBSOURCES, not found
22207
22208 2010-06-10  Jim Meyering  <meyering@redhat.com>
22209
22210         inttostr: add a new function, inttostr, and tests
22211         The namesake function was not available.  The existence of the
22212         template file, inttostr.c makes its addition nontrivial.
22213         * lib/anytostr.c: Rename from inttostr.c.
22214         (anytostr): Rename from inttostr.
22215         * lib/inttostr.c: New file.
22216         * modules/inttostr (Files): Add anytostr.c.
22217         (Makefile.am): Set lib_SOURCES instead of ...
22218         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22219         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22220         * lib/offtostr.c: Likewise.
22221         * lib/uinttostr.c: Likewise.
22222         * lib/umaxtostr.c: Likewise.
22223         * modules/inttostr-tests: New file.
22224         * tests/test-inttostr.c: New file.  Test these functions.
22225
22226 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22227             Bruno Haible  <bruno@clisp.org>
22228
22229         Add "Extending Gnulib" chapter to manual.
22230         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22231         chapter.
22232         (Extending Gnulib): New chapter.
22233         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22234         chapter.
22235
22236 2010-06-09  Bruno Haible  <bruno@clisp.org>
22237
22238         Avoid relocwrapper link errors due to gnulib replacement functions.
22239         * lib/areadlink.c: Use the system's malloc, realloc functions.
22240         (areadlink): Set errno to ENOMEM explicitly.
22241         * modules/areadlink (Depends-on): Remove malloc-posix.
22242         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22243
22244 2010-06-09  Bruno Haible  <bruno@clisp.org>
22245
22246         Avoid relocwrapper link errors due to gnulib replacement functions.
22247         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22248         * lib/malloca.c: Likewise.
22249         * lib/relocatable.c: Likewise.
22250         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22251         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22252         * lib/setenv.c: Use the system's malloc, realloc functions.
22253         * lib/strerror.c: Use the system's sprintf function.
22254         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22255
22256 2010-06-04  Bruno Haible  <bruno@clisp.org>
22257
22258         Prefer documented low-level autoconf macro names.
22259         * m4/lib-link.m4: Use m4_translit instead of translit.
22260         * m4/environ.m4: Likewise.
22261         * m4/mathfunc.m4: Likewise.
22262         * m4/onceonly.m4: Likewise.
22263         * m4/stdint.m4: Likewise.
22264         Suggested by Eric Blake.
22265
22266 2010-06-04  Martin Lambers  <marlam@marlam.de>
22267             Bruno Haible  <bruno@clisp.org>
22268
22269         havelib: Allow library names with '+' characters.
22270         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22271         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22272
22273 2010-06-09  Bruno Haible  <bruno@clisp.org>
22274
22275         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22276         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22277         realloc failed.
22278
22279 2010-06-08  Peter Simons  <simons@cryp.to>
22280
22281         maint.mk: make the news-check rule more configurable
22282         * top/maint.mk (news-check-lines-spec): New variable.
22283         (news-check): Use "sed -n 1,10p" in place of "head".
22284
22285 2010-06-07  Jim Meyering  <meyering@redhat.com>
22286
22287         do-release-commit-and-tag: fix typo in --help
22288         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22289
22290         regex: avoid new dead-code warning with gcc-4.6.0
22291         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22292         if-block containing a while-loop.  It's been unused for at least
22293         5 years.
22294
22295 2010-06-05  Bruno Haible  <bruno@clisp.org>
22296
22297         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22298         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22299
22300 2010-06-04  Bruno Haible  <bruno@clisp.org>
22301
22302         Update to GNU gettext 0.18.1.
22303         * modules/gettext (configure.ac): Require gettext infrastructure from
22304         version 0.18.1.
22305
22306 2010-06-03  Bruno Haible  <bruno@clisp.org>
22307
22308         Don't use AC_LIBOBJ with file names in subdirectories.
22309         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22310         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22311         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22312         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22313         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22314         gl_LIBUNISTRING_LIBSOURCE.
22315         (Makefile.am): Augment lib_SOURCES here, conditionally.
22316         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22317
22318 2010-06-03  Bruno Haible  <bruno@clisp.org>
22319
22320         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22321         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22322         expansion does not end with a newline.
22323         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22324         unnecessary newline.
22325
22326 2010-06-03  Bruno Haible  <bruno@clisp.org>
22327
22328         Reduce dependencies.
22329         * tests/test-quotearg.h: New file, extracted from
22330         tests/test-quotearg.c.
22331         * tests/test-quotearg-simple.c: New file, extracted from
22332         tests/test-quotearg.c.
22333         * tests/test-quotearg.c: Don't include <ctype.h>.
22334         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22335         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22336         use_quote_double_quotes, use_quotearg_colon): Moved to
22337         tests/test-quotearg.h.
22338         (results_g, flag_results, custom_quotes, custom_results): Moved
22339         to tests/test-quotearg-simple.c.
22340         (main): Moved the part that does not depend on gettext to
22341         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22342         performed.
22343         * modules/quotearg-simple: New file.
22344         * modules/quotearg-simple-tests: New file.
22345         * modules/quotearg (Depends-on): Add quotearg-simple.
22346         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22347         (Files): Add tests/test-quotearg.h.
22348         Reported by Paolo Bonzini.
22349
22350 2010-06-03  Bruno Haible  <bruno@clisp.org>
22351
22352         Reduce dependencies.
22353         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22354
22355 2010-06-03  Bruno Haible  <bruno@clisp.org>
22356
22357         time: Undefine more broken macros.
22358         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22359         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22360         Reported by Eric Blake.
22361
22362 2010-06-03  Bruno Haible  <bruno@clisp.org>
22363
22364         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22365         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22366         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22367         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22368         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22369         Reported by Ludovic Courtès <ludo@gnu.org>.
22370
22371 2010-06-02  Eric Blake  <eblake@redhat.com>
22372
22373         time: work with mingw + pthreads-win32 library
22374         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22375         if timespec is defined only in pthread.h.
22376         * modules/time (Makefile.am): Substitute it.
22377         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22378         <pthread.h>, when needed.
22379         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22380         from the library.
22381
22382 2010-05-31  Bruno Haible  <bruno@clisp.org>
22383
22384         Avoid expanding two macros in the wrong order.
22385         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22386         gl_LIBUNISTRING if it is defined.
22387         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22388         autoconf >= 2.64.
22389         Reported by Ludovic Courtès <ludo@gnu.org>.
22390
22391 2010-05-27  Jim Meyering  <meyering@redhat.com>
22392
22393         maint.mk: also prohibit "#undef" of always-defined symbols
22394         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22395         Allow more than one space before the symbol name.
22396         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22397         the regexp uses alternation.
22398
22399 2010-05-26  Eric Blake  <eblake@redhat.com>
22400
22401         maint.mk: avoid echo -e
22402         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22403         Convert all uses of echo -* to printf.
22404         Reported by Matthias Bolte.
22405
22406 2010-05-25  Bruno Haible  <bruno@clisp.org>
22407
22408         Update to GNU gettext 0.18, part 2.
22409         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22410         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22411
22412 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22413
22414         Add missing include in test-pwrite.c.
22415         * tests/test-pwrite.c: Include string.h, for strcmp.
22416
22417 2010-05-24  Bruno Haible  <bruno@clisp.org>
22418
22419         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22420
22421 2010-05-24  Bruno Haible  <bruno@clisp.org>
22422
22423         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22424         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22425         iconveh_error argument.
22426         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22427         U_STRCONV_TO_LOCALE.
22428         * lib/unistr/u16-strcoll.c: Likewise.
22429         * lib/unistr/u32-strcoll.c: Likewise.
22430         * modules/unistr/u8-strcoll (Depends-on): Add
22431         uniconv/u8-strconv-to-enc, localcharset. Remove
22432         uniconv/u8-strconv-to-locale.
22433         (configure.ac): Bump version number.
22434         * modules/unistr/u16-strcoll (Depends-on): Add
22435         uniconv/u16-strconv-to-enc, localcharset. Remove
22436         uniconv/u16-strconv-to-locale.
22437         (configure.ac): Bump version number.
22438         * modules/unistr/u32-strcoll (Depends-on): Add
22439         uniconv/u32-strconv-to-enc, localcharset. Remove
22440         uniconv/u32-strconv-to-locale.
22441         (configure.ac): Bump version number.
22442
22443 2010-05-24  Bruno Haible  <bruno@clisp.org>
22444
22445         Avoid a test failure on NetBSD 5.0.
22446         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22447         an iconv() bug.
22448
22449 2010-05-24  Bruno Haible  <bruno@clisp.org>
22450
22451         Adjust #include directive style.
22452         * modules/regex (Includes): Recommend to write <regex.h>.
22453
22454 2010-05-24  Bruno Haible  <bruno@clisp.org>
22455
22456         regex: Don't require alloca.
22457         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22458         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22459         only inside if (0).
22460
22461 2010-05-23  Jim Meyering  <meyering@redhat.com>
22462
22463         test-renameat.c: include <sys/stat.h>
22464         * tests/test-renameat.c: Include <sys/stat.h>; required for
22465         definition of S_IS* macros.
22466
22467 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22468
22469         Update maintainer documentation for 'relocatable-prog' module.
22470         * doc/relocatable-maint.texi: Update.
22471         Comments by Bruno Haible.
22472
22473 2010-05-23  Bruno Haible  <bruno@clisp.org>
22474
22475         git-merge-changelog: Enable --split-merged-entry by default.
22476         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22477         (usage): Don't mention this option any more.
22478         Reported by Ralf Wildenhues.
22479
22480 2010-05-23  Jim Meyering  <meyering@redhat.com>
22481
22482         test-pwrite: do not leave behind a test file named "out"
22483         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22484         The trivial-looking use of init.sh is really necessary.
22485         It ensures that the temporary file, "out", is created in
22486         a temporary directory, and removed upon termination.
22487         * tests/test-pwrite.sh: Re-add file.
22488         * modules/pwrite-tests: Reference it.
22489
22490 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22491
22492         Fix output redirection buglet in init.sh.
22493         * tests/init.sh: Fix redirection of stderr.
22494
22495 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22496
22497         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22498
22499 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22500
22501         * modules/valgrind-tests: New file.
22502         * m4/valgrind-tests.m4: New file.
22503         * doc/valgrind-tests.texi: New file.
22504         * doc/gnulib.texi (Running self-tests under valgrind): New
22505         section.
22506
22507 2010-05-19  Bruno Haible  <bruno@clisp.org>
22508
22509         Clean up dead code in recent commit.
22510         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22511         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22512         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22513         Suggested by Paolo Bonzini.
22514
22515 2010-05-19  Bruno Haible  <bruno@clisp.org>
22516
22517         Avoid valgrind error reports from libunistring.
22518         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22519         * modules/libunistring (Files): Add it.
22520         * modules/libunistring-optional (Files): Likewise.
22521
22522 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22523             Bruno Haible  <bruno@clisp.org>
22524
22525         New module 'libunistring-optional'.
22526         * modules/libunistring-optional: New file.
22527         * m4/libunistring-base.m4: New file.
22528         * m4/libunistring-optional.m4: New file.
22529         * lib/unicase.in.h: Renamed from lib/unicase.h.
22530         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22531         * lib/unictype.in.h: Renamed from lib/unictype.h.
22532         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22533         * lib/uniname.in.h: Renamed from lib/uniname.h.
22534         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22535         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22536         * lib/unistr.in.h: Renamed from lib/unistr.h.
22537         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22538         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22539         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22540         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22541         gl_LIBUNISTRING. If the library was found, determine the installed
22542         version and set LIBUNISTRING_VERSION.
22543         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22544         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22545         handle a configuration option --with-included-libunistring.
22546         * modules/libunistring (Files): Add m4/absolute-header.m4.
22547         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22548         Add m4/libunistring-base.m4.
22549         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22550         (Makefile.am): Build unicase.h from unicase.in.h.
22551         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22552         Add m4/libunistring-base.m4.
22553         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22554         (Makefile.am): Build uniconv.h from uniconv.in.h.
22555         * modules/unictype/base (Files): Use unictype.in.h instead of
22556         unictype.h. Add m4/libunistring-base.m4.
22557         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22558         (Makefile.am): Build unictype.h from unictype.in.h.
22559         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22560         Add m4/libunistring-base.m4.
22561         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22562         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22563         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22564         Add m4/libunistring-base.m4.
22565         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22566         (Makefile.am): Build uniname.h from uniname.in.h.
22567         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22568         Add m4/libunistring-base.m4.
22569         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22570         (Makefile.am): Build uninorm.h from uninorm.in.h.
22571         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22572         unistdio.h. Add m4/libunistring-base.m4.
22573         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22574         (Makefile.am): Build unistdio.h from unistdio.in.h.
22575         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22576         Add m4/libunistring-base.m4.
22577         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22578         (Makefile.am): Build unistr.h from unistr.in.h.
22579         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22580         Add m4/libunistring-base.m4.
22581         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22582         (Makefile.am): Build unitypes.h from unitypes.in.h.
22583         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22584         Add m4/libunistring-base.m4.
22585         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22586         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22587         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22588         uniwidth.h. Add m4/libunistring-base.m4.
22589         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22590         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22591         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22592         instead of augmenting lib_SOURCES.
22593         * modules/unicase/empty-suffix-context: Likewise.
22594         * modules/unicase/locale-language: Likewise.
22595         * modules/unicase/tolower: Likewise.
22596         * modules/unicase/totitle: Likewise.
22597         * modules/unicase/toupper: Likewise.
22598         * modules/unicase/u8-casecmp: Likewise.
22599         * modules/unicase/u8-casecoll: Likewise.
22600         * modules/unicase/u8-casefold: Likewise.
22601         * modules/unicase/u8-casexfrm: Likewise.
22602         * modules/unicase/u8-ct-casefold: Likewise.
22603         * modules/unicase/u8-ct-tolower: Likewise.
22604         * modules/unicase/u8-ct-totitle: Likewise.
22605         * modules/unicase/u8-ct-toupper: Likewise.
22606         * modules/unicase/u8-is-cased: Likewise.
22607         * modules/unicase/u8-is-casefolded: Likewise.
22608         * modules/unicase/u8-is-lowercase: Likewise.
22609         * modules/unicase/u8-is-titlecase: Likewise.
22610         * modules/unicase/u8-is-uppercase: Likewise.
22611         * modules/unicase/u8-prefix-context: Likewise.
22612         * modules/unicase/u8-suffix-context: Likewise.
22613         * modules/unicase/u8-tolower: Likewise.
22614         * modules/unicase/u8-totitle: Likewise.
22615         * modules/unicase/u8-toupper: Likewise.
22616         * modules/unicase/u16-casecmp: Likewise.
22617         * modules/unicase/u16-casecoll: Likewise.
22618         * modules/unicase/u16-casefold: Likewise.
22619         * modules/unicase/u16-casexfrm: Likewise.
22620         * modules/unicase/u16-ct-casefold: Likewise.
22621         * modules/unicase/u16-ct-tolower: Likewise.
22622         * modules/unicase/u16-ct-totitle: Likewise.
22623         * modules/unicase/u16-ct-toupper: Likewise.
22624         * modules/unicase/u16-is-cased: Likewise.
22625         * modules/unicase/u16-is-casefolded: Likewise.
22626         * modules/unicase/u16-is-lowercase: Likewise.
22627         * modules/unicase/u16-is-titlecase: Likewise.
22628         * modules/unicase/u16-is-uppercase: Likewise.
22629         * modules/unicase/u16-prefix-context: Likewise.
22630         * modules/unicase/u16-suffix-context: Likewise.
22631         * modules/unicase/u16-tolower: Likewise.
22632         * modules/unicase/u16-totitle: Likewise.
22633         * modules/unicase/u16-toupper: Likewise.
22634         * modules/unicase/u32-casecmp: Likewise.
22635         * modules/unicase/u32-casecoll: Likewise.
22636         * modules/unicase/u32-casefold: Likewise.
22637         * modules/unicase/u32-casexfrm: Likewise.
22638         * modules/unicase/u32-ct-casefold: Likewise.
22639         * modules/unicase/u32-ct-tolower: Likewise.
22640         * modules/unicase/u32-ct-totitle: Likewise.
22641         * modules/unicase/u32-ct-toupper: Likewise.
22642         * modules/unicase/u32-is-cased: Likewise.
22643         * modules/unicase/u32-is-casefolded: Likewise.
22644         * modules/unicase/u32-is-lowercase: Likewise.
22645         * modules/unicase/u32-is-titlecase: Likewise.
22646         * modules/unicase/u32-is-uppercase: Likewise.
22647         * modules/unicase/u32-prefix-context: Likewise.
22648         * modules/unicase/u32-suffix-context: Likewise.
22649         * modules/unicase/u32-tolower: Likewise.
22650         * modules/unicase/u32-totitle: Likewise.
22651         * modules/unicase/u32-toupper: Likewise.
22652         * modules/unicase/ulc-casecmp: Likewise.
22653         * modules/unicase/ulc-casecoll: Likewise.
22654         * modules/unicase/ulc-casexfrm: Likewise.
22655         * modules/uniconv/u8-conv-from-enc: Likewise.
22656         * modules/uniconv/u8-conv-to-enc: Likewise.
22657         * modules/uniconv/u8-strconv-from-enc: Likewise.
22658         * modules/uniconv/u8-strconv-from-locale: Likewise.
22659         * modules/uniconv/u8-strconv-to-enc: Likewise.
22660         * modules/uniconv/u8-strconv-to-locale: Likewise.
22661         * modules/uniconv/u16-conv-from-enc: Likewise.
22662         * modules/uniconv/u16-conv-to-enc: Likewise.
22663         * modules/uniconv/u16-strconv-from-enc: Likewise.
22664         * modules/uniconv/u16-strconv-from-locale: Likewise.
22665         * modules/uniconv/u16-strconv-to-enc: Likewise.
22666         * modules/uniconv/u16-strconv-to-locale: Likewise.
22667         * modules/uniconv/u32-conv-from-enc: Likewise.
22668         * modules/uniconv/u32-conv-to-enc: Likewise.
22669         * modules/uniconv/u32-strconv-from-enc: Likewise.
22670         * modules/uniconv/u32-strconv-from-locale: Likewise.
22671         * modules/uniconv/u32-strconv-to-enc: Likewise.
22672         * modules/uniconv/u32-strconv-to-locale: Likewise.
22673         * modules/unictype/bidicategory-byname: Likewise.
22674         * modules/unictype/bidicategory-name: Likewise.
22675         * modules/unictype/bidicategory-of: Likewise.
22676         * modules/unictype/bidicategory-test: Likewise.
22677         * modules/unictype/block-list: Likewise.
22678         * modules/unictype/block-test: Likewise.
22679         * modules/unictype/category-C: Likewise.
22680         * modules/unictype/category-Cc: Likewise.
22681         * modules/unictype/category-Cf: Likewise.
22682         * modules/unictype/category-Cn: Likewise.
22683         * modules/unictype/category-Co: Likewise.
22684         * modules/unictype/category-Cs: Likewise.
22685         * modules/unictype/category-L: Likewise.
22686         * modules/unictype/category-Ll: Likewise.
22687         * modules/unictype/category-Lm: Likewise.
22688         * modules/unictype/category-Lo: Likewise.
22689         * modules/unictype/category-Lt: Likewise.
22690         * modules/unictype/category-Lu: Likewise.
22691         * modules/unictype/category-M: Likewise.
22692         * modules/unictype/category-Mc: Likewise.
22693         * modules/unictype/category-Me: Likewise.
22694         * modules/unictype/category-Mn: Likewise.
22695         * modules/unictype/category-N: Likewise.
22696         * modules/unictype/category-Nd: Likewise.
22697         * modules/unictype/category-Nl: Likewise.
22698         * modules/unictype/category-No: Likewise.
22699         * modules/unictype/category-P: Likewise.
22700         * modules/unictype/category-Pc: Likewise.
22701         * modules/unictype/category-Pd: Likewise.
22702         * modules/unictype/category-Pe: Likewise.
22703         * modules/unictype/category-Pf: Likewise.
22704         * modules/unictype/category-Pi: Likewise.
22705         * modules/unictype/category-Po: Likewise.
22706         * modules/unictype/category-Ps: Likewise.
22707         * modules/unictype/category-S: Likewise.
22708         * modules/unictype/category-Sc: Likewise.
22709         * modules/unictype/category-Sk: Likewise.
22710         * modules/unictype/category-Sm: Likewise.
22711         * modules/unictype/category-So: Likewise.
22712         * modules/unictype/category-Z: Likewise.
22713         * modules/unictype/category-Zl: Likewise.
22714         * modules/unictype/category-Zp: Likewise.
22715         * modules/unictype/category-Zs: Likewise.
22716         * modules/unictype/category-and: Likewise.
22717         * modules/unictype/category-and-not: Likewise.
22718         * modules/unictype/category-byname: Likewise.
22719         * modules/unictype/category-name: Likewise.
22720         * modules/unictype/category-none: Likewise.
22721         * modules/unictype/category-of: Likewise.
22722         * modules/unictype/category-or: Likewise.
22723         * modules/unictype/category-test: Likewise.
22724         * modules/unictype/combining-class: Likewise.
22725         * modules/unictype/ctype-alnum: Likewise.
22726         * modules/unictype/ctype-alpha: Likewise.
22727         * modules/unictype/ctype-blank: Likewise.
22728         * modules/unictype/ctype-cntrl: Likewise.
22729         * modules/unictype/ctype-digit: Likewise.
22730         * modules/unictype/ctype-graph: Likewise.
22731         * modules/unictype/ctype-lower: Likewise.
22732         * modules/unictype/ctype-print: Likewise.
22733         * modules/unictype/ctype-punct: Likewise.
22734         * modules/unictype/ctype-space: Likewise.
22735         * modules/unictype/ctype-upper: Likewise.
22736         * modules/unictype/ctype-xdigit: Likewise.
22737         * modules/unictype/decimal-digit: Likewise.
22738         * modules/unictype/digit: Likewise.
22739         * modules/unictype/mirror: Likewise.
22740         * modules/unictype/numeric: Likewise.
22741         * modules/unictype/property-alphabetic: Likewise.
22742         * modules/unictype/property-ascii-hex-digit: Likewise.
22743         * modules/unictype/property-bidi-arabic-digit: Likewise.
22744         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22745         * modules/unictype/property-bidi-block-separator: Likewise.
22746         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22747         * modules/unictype/property-bidi-common-separator: Likewise.
22748         * modules/unictype/property-bidi-control: Likewise.
22749         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22750         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22751         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22752         * modules/unictype/property-bidi-european-digit: Likewise.
22753         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22754         * modules/unictype/property-bidi-left-to-right: Likewise.
22755         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22756         * modules/unictype/property-bidi-other-neutral: Likewise.
22757         * modules/unictype/property-bidi-pdf: Likewise.
22758         * modules/unictype/property-bidi-segment-separator: Likewise.
22759         * modules/unictype/property-bidi-whitespace: Likewise.
22760         * modules/unictype/property-byname: Likewise.
22761         * modules/unictype/property-combining: Likewise.
22762         * modules/unictype/property-composite: Likewise.
22763         * modules/unictype/property-currency-symbol: Likewise.
22764         * modules/unictype/property-dash: Likewise.
22765         * modules/unictype/property-decimal-digit: Likewise.
22766         * modules/unictype/property-default-ignorable-code-point: Likewise.
22767         * modules/unictype/property-deprecated: Likewise.
22768         * modules/unictype/property-diacritic: Likewise.
22769         * modules/unictype/property-extender: Likewise.
22770         * modules/unictype/property-format-control: Likewise.
22771         * modules/unictype/property-grapheme-base: Likewise.
22772         * modules/unictype/property-grapheme-extend: Likewise.
22773         * modules/unictype/property-grapheme-link: Likewise.
22774         * modules/unictype/property-hex-digit: Likewise.
22775         * modules/unictype/property-hyphen: Likewise.
22776         * modules/unictype/property-id-continue: Likewise.
22777         * modules/unictype/property-id-start: Likewise.
22778         * modules/unictype/property-ideographic: Likewise.
22779         * modules/unictype/property-ids-binary-operator: Likewise.
22780         * modules/unictype/property-ids-trinary-operator: Likewise.
22781         * modules/unictype/property-ignorable-control: Likewise.
22782         * modules/unictype/property-iso-control: Likewise.
22783         * modules/unictype/property-join-control: Likewise.
22784         * modules/unictype/property-left-of-pair: Likewise.
22785         * modules/unictype/property-line-separator: Likewise.
22786         * modules/unictype/property-logical-order-exception: Likewise.
22787         * modules/unictype/property-lowercase: Likewise.
22788         * modules/unictype/property-math: Likewise.
22789         * modules/unictype/property-non-break: Likewise.
22790         * modules/unictype/property-not-a-character: Likewise.
22791         * modules/unictype/property-numeric: Likewise.
22792         * modules/unictype/property-other-alphabetic: Likewise.
22793         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22794         * modules/unictype/property-other-grapheme-extend: Likewise.
22795         * modules/unictype/property-other-id-continue: Likewise.
22796         * modules/unictype/property-other-id-start: Likewise.
22797         * modules/unictype/property-other-lowercase: Likewise.
22798         * modules/unictype/property-other-math: Likewise.
22799         * modules/unictype/property-other-uppercase: Likewise.
22800         * modules/unictype/property-paired-punctuation: Likewise.
22801         * modules/unictype/property-paragraph-separator: Likewise.
22802         * modules/unictype/property-pattern-syntax: Likewise.
22803         * modules/unictype/property-pattern-white-space: Likewise.
22804         * modules/unictype/property-private-use: Likewise.
22805         * modules/unictype/property-punctuation: Likewise.
22806         * modules/unictype/property-quotation-mark: Likewise.
22807         * modules/unictype/property-radical: Likewise.
22808         * modules/unictype/property-sentence-terminal: Likewise.
22809         * modules/unictype/property-soft-dotted: Likewise.
22810         * modules/unictype/property-space: Likewise.
22811         * modules/unictype/property-terminal-punctuation: Likewise.
22812         * modules/unictype/property-test: Likewise.
22813         * modules/unictype/property-titlecase: Likewise.
22814         * modules/unictype/property-unassigned-code-value: Likewise.
22815         * modules/unictype/property-unified-ideograph: Likewise.
22816         * modules/unictype/property-uppercase: Likewise.
22817         * modules/unictype/property-variation-selector: Likewise.
22818         * modules/unictype/property-white-space: Likewise.
22819         * modules/unictype/property-xid-continue: Likewise.
22820         * modules/unictype/property-xid-start: Likewise.
22821         * modules/unictype/property-zero-width: Likewise.
22822         * modules/unictype/scripts: Likewise.
22823         * modules/unictype/syntax-c-ident: Likewise.
22824         * modules/unictype/syntax-c-whitespace: Likewise.
22825         * modules/unictype/syntax-java-ident: Likewise.
22826         * modules/unictype/syntax-java-whitespace: Likewise.
22827         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22828         * modules/unilbrk/u8-width-linebreaks: Likewise.
22829         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22830         * modules/unilbrk/u16-width-linebreaks: Likewise.
22831         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22832         * modules/unilbrk/u32-width-linebreaks: Likewise.
22833         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22834         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22835         * modules/uniname/uniname: Likewise.
22836         * modules/uninorm/canonical-decomposition: Likewise.
22837         * modules/uninorm/composition: Likewise.
22838         * modules/uninorm/decomposing-form: Likewise.
22839         * modules/uninorm/decomposition: Likewise.
22840         * modules/uninorm/filter: Likewise.
22841         * modules/uninorm/nfc: Likewise.
22842         * modules/uninorm/nfd: Likewise.
22843         * modules/uninorm/nfkc: Likewise.
22844         * modules/uninorm/nfkd: Likewise.
22845         * modules/uninorm/u8-normalize: Likewise.
22846         * modules/uninorm/u8-normcmp: Likewise.
22847         * modules/uninorm/u8-normcoll: Likewise.
22848         * modules/uninorm/u8-normxfrm: Likewise.
22849         * modules/uninorm/u16-normalize: Likewise.
22850         * modules/uninorm/u16-normcmp: Likewise.
22851         * modules/uninorm/u16-normcoll: Likewise.
22852         * modules/uninorm/u16-normxfrm: Likewise.
22853         * modules/uninorm/u32-normalize: Likewise.
22854         * modules/uninorm/u32-normcmp: Likewise.
22855         * modules/uninorm/u32-normcoll: Likewise.
22856         * modules/uninorm/u32-normxfrm: Likewise.
22857         * modules/unistdio/u8-asnprintf: Likewise.
22858         * modules/unistdio/u8-asprintf: Likewise.
22859         * modules/unistdio/u8-snprintf: Likewise.
22860         * modules/unistdio/u8-sprintf: Likewise.
22861         * modules/unistdio/u8-u8-asnprintf: Likewise.
22862         * modules/unistdio/u8-u8-asprintf: Likewise.
22863         * modules/unistdio/u8-u8-snprintf: Likewise.
22864         * modules/unistdio/u8-u8-sprintf: Likewise.
22865         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22866         * modules/unistdio/u8-u8-vasprintf: Likewise.
22867         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22868         * modules/unistdio/u8-u8-vsprintf: Likewise.
22869         * modules/unistdio/u8-vasnprintf: Likewise.
22870         * modules/unistdio/u8-vasprintf: Likewise.
22871         * modules/unistdio/u8-vsnprintf: Likewise.
22872         * modules/unistdio/u8-vsprintf: Likewise.
22873         * modules/unistdio/u16-asnprintf: Likewise.
22874         * modules/unistdio/u16-asprintf: Likewise.
22875         * modules/unistdio/u16-snprintf: Likewise.
22876         * modules/unistdio/u16-sprintf: Likewise.
22877         * modules/unistdio/u16-u16-asnprintf: Likewise.
22878         * modules/unistdio/u16-u16-asprintf: Likewise.
22879         * modules/unistdio/u16-u16-snprintf: Likewise.
22880         * modules/unistdio/u16-u16-sprintf: Likewise.
22881         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22882         * modules/unistdio/u16-u16-vasprintf: Likewise.
22883         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22884         * modules/unistdio/u16-u16-vsprintf: Likewise.
22885         * modules/unistdio/u16-vasnprintf: Likewise.
22886         * modules/unistdio/u16-vasprintf: Likewise.
22887         * modules/unistdio/u16-vsnprintf: Likewise.
22888         * modules/unistdio/u16-vsprintf: Likewise.
22889         * modules/unistdio/u32-asnprintf: Likewise.
22890         * modules/unistdio/u32-asprintf: Likewise.
22891         * modules/unistdio/u32-snprintf: Likewise.
22892         * modules/unistdio/u32-sprintf: Likewise.
22893         * modules/unistdio/u32-u32-asnprintf: Likewise.
22894         * modules/unistdio/u32-u32-asprintf: Likewise.
22895         * modules/unistdio/u32-u32-snprintf: Likewise.
22896         * modules/unistdio/u32-u32-sprintf: Likewise.
22897         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22898         * modules/unistdio/u32-u32-vasprintf: Likewise.
22899         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22900         * modules/unistdio/u32-u32-vsprintf: Likewise.
22901         * modules/unistdio/u32-vasnprintf: Likewise.
22902         * modules/unistdio/u32-vasprintf: Likewise.
22903         * modules/unistdio/u32-vsnprintf: Likewise.
22904         * modules/unistdio/u32-vsprintf: Likewise.
22905         * modules/unistdio/ulc-asnprintf: Likewise.
22906         * modules/unistdio/ulc-asprintf: Likewise.
22907         * modules/unistdio/ulc-fprintf: Likewise.
22908         * modules/unistdio/ulc-snprintf: Likewise.
22909         * modules/unistdio/ulc-sprintf: Likewise.
22910         * modules/unistdio/ulc-vasnprintf: Likewise.
22911         * modules/unistdio/ulc-vasprintf: Likewise.
22912         * modules/unistdio/ulc-vfprintf: Likewise.
22913         * modules/unistdio/ulc-vsnprintf: Likewise.
22914         * modules/unistdio/ulc-vsprintf: Likewise.
22915         * modules/unistr/u8-check: Likewise.
22916         * modules/unistr/u8-chr: Likewise.
22917         * modules/unistr/u8-cmp: Likewise.
22918         * modules/unistr/u8-cmp2: Likewise.
22919         * modules/unistr/u8-cpy: Likewise.
22920         * modules/unistr/u8-cpy-alloc: Likewise.
22921         * modules/unistr/u8-endswith: Likewise.
22922         * modules/unistr/u8-mblen: Likewise.
22923         * modules/unistr/u8-mbsnlen: Likewise.
22924         * modules/unistr/u8-mbtouc: Likewise.
22925         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22926         * modules/unistr/u8-mbtoucr: Likewise.
22927         * modules/unistr/u8-move: Likewise.
22928         * modules/unistr/u8-next: Likewise.
22929         * modules/unistr/u8-prev: Likewise.
22930         * modules/unistr/u8-set: Likewise.
22931         * modules/unistr/u8-startswith: Likewise.
22932         * modules/unistr/u8-stpcpy: Likewise.
22933         * modules/unistr/u8-stpncpy: Likewise.
22934         * modules/unistr/u8-strcat: Likewise.
22935         * modules/unistr/u8-strchr: Likewise.
22936         * modules/unistr/u8-strcmp: Likewise.
22937         * modules/unistr/u8-strcoll: Likewise.
22938         * modules/unistr/u8-strcpy: Likewise.
22939         * modules/unistr/u8-strcspn: Likewise.
22940         * modules/unistr/u8-strdup: Likewise.
22941         * modules/unistr/u8-strlen: Likewise.
22942         * modules/unistr/u8-strmblen: Likewise.
22943         * modules/unistr/u8-strmbtouc: Likewise.
22944         * modules/unistr/u8-strncat: Likewise.
22945         * modules/unistr/u8-strncmp: Likewise.
22946         * modules/unistr/u8-strncpy: Likewise.
22947         * modules/unistr/u8-strnlen: Likewise.
22948         * modules/unistr/u8-strpbrk: Likewise.
22949         * modules/unistr/u8-strrchr: Likewise.
22950         * modules/unistr/u8-strspn: Likewise.
22951         * modules/unistr/u8-strstr: Likewise.
22952         * modules/unistr/u8-strtok: Likewise.
22953         * modules/unistr/u8-to-u16: Likewise.
22954         * modules/unistr/u8-to-u32: Likewise.
22955         * modules/unistr/u8-uctomb: Likewise.
22956         * modules/unistr/u16-check: Likewise.
22957         * modules/unistr/u16-chr: Likewise.
22958         * modules/unistr/u16-cmp: Likewise.
22959         * modules/unistr/u16-cmp2: Likewise.
22960         * modules/unistr/u16-cpy: Likewise.
22961         * modules/unistr/u16-cpy-alloc: Likewise.
22962         * modules/unistr/u16-endswith: Likewise.
22963         * modules/unistr/u16-mblen: Likewise.
22964         * modules/unistr/u16-mbsnlen: Likewise.
22965         * modules/unistr/u16-mbtouc: Likewise.
22966         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22967         * modules/unistr/u16-mbtoucr: Likewise.
22968         * modules/unistr/u16-move: Likewise.
22969         * modules/unistr/u16-next: Likewise.
22970         * modules/unistr/u16-prev: Likewise.
22971         * modules/unistr/u16-set: Likewise.
22972         * modules/unistr/u16-startswith: Likewise.
22973         * modules/unistr/u16-stpcpy: Likewise.
22974         * modules/unistr/u16-stpncpy: Likewise.
22975         * modules/unistr/u16-strcat: Likewise.
22976         * modules/unistr/u16-strchr: Likewise.
22977         * modules/unistr/u16-strcmp: Likewise.
22978         * modules/unistr/u16-strcoll: Likewise.
22979         * modules/unistr/u16-strcpy: Likewise.
22980         * modules/unistr/u16-strcspn: Likewise.
22981         * modules/unistr/u16-strdup: Likewise.
22982         * modules/unistr/u16-strlen: Likewise.
22983         * modules/unistr/u16-strmblen: Likewise.
22984         * modules/unistr/u16-strmbtouc: Likewise.
22985         * modules/unistr/u16-strncat: Likewise.
22986         * modules/unistr/u16-strncmp: Likewise.
22987         * modules/unistr/u16-strncpy: Likewise.
22988         * modules/unistr/u16-strnlen: Likewise.
22989         * modules/unistr/u16-strpbrk: Likewise.
22990         * modules/unistr/u16-strrchr: Likewise.
22991         * modules/unistr/u16-strspn: Likewise.
22992         * modules/unistr/u16-strstr: Likewise.
22993         * modules/unistr/u16-strtok: Likewise.
22994         * modules/unistr/u16-to-u32: Likewise.
22995         * modules/unistr/u16-to-u8: Likewise.
22996         * modules/unistr/u16-uctomb: Likewise.
22997         * modules/unistr/u32-check: Likewise.
22998         * modules/unistr/u32-chr: Likewise.
22999         * modules/unistr/u32-cmp: Likewise.
23000         * modules/unistr/u32-cmp2: Likewise.
23001         * modules/unistr/u32-cpy: Likewise.
23002         * modules/unistr/u32-cpy-alloc: Likewise.
23003         * modules/unistr/u32-endswith: Likewise.
23004         * modules/unistr/u32-mblen: Likewise.
23005         * modules/unistr/u32-mbsnlen: Likewise.
23006         * modules/unistr/u32-mbtouc: Likewise.
23007         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23008         * modules/unistr/u32-mbtoucr: Likewise.
23009         * modules/unistr/u32-move: Likewise.
23010         * modules/unistr/u32-next: Likewise.
23011         * modules/unistr/u32-prev: Likewise.
23012         * modules/unistr/u32-set: Likewise.
23013         * modules/unistr/u32-startswith: Likewise.
23014         * modules/unistr/u32-stpcpy: Likewise.
23015         * modules/unistr/u32-stpncpy: Likewise.
23016         * modules/unistr/u32-strcat: Likewise.
23017         * modules/unistr/u32-strchr: Likewise.
23018         * modules/unistr/u32-strcmp: Likewise.
23019         * modules/unistr/u32-strcoll: Likewise.
23020         * modules/unistr/u32-strcpy: Likewise.
23021         * modules/unistr/u32-strcspn: Likewise.
23022         * modules/unistr/u32-strdup: Likewise.
23023         * modules/unistr/u32-strlen: Likewise.
23024         * modules/unistr/u32-strmblen: Likewise.
23025         * modules/unistr/u32-strmbtouc: Likewise.
23026         * modules/unistr/u32-strncat: Likewise.
23027         * modules/unistr/u32-strncmp: Likewise.
23028         * modules/unistr/u32-strncpy: Likewise.
23029         * modules/unistr/u32-strnlen: Likewise.
23030         * modules/unistr/u32-strpbrk: Likewise.
23031         * modules/unistr/u32-strrchr: Likewise.
23032         * modules/unistr/u32-strspn: Likewise.
23033         * modules/unistr/u32-strstr: Likewise.
23034         * modules/unistr/u32-strtok: Likewise.
23035         * modules/unistr/u32-to-u16: Likewise.
23036         * modules/unistr/u32-to-u8: Likewise.
23037         * modules/unistr/u32-uctomb: Likewise.
23038         * modules/uniwbrk/u8-wordbreaks: Likewise.
23039         * modules/uniwbrk/u16-wordbreaks: Likewise.
23040         * modules/uniwbrk/u32-wordbreaks: Likewise.
23041         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23042         * modules/uniwbrk/wordbreak-property: Likewise.
23043         * modules/uniwidth/u8-strwidth: Likewise.
23044         * modules/uniwidth/u8-width: Likewise.
23045         * modules/uniwidth/u16-strwidth: Likewise.
23046         * modules/uniwidth/u16-width: Likewise.
23047         * modules/uniwidth/u32-strwidth: Likewise.
23048         * modules/uniwidth/u32-width: Likewise.
23049         * modules/uniwidth/width: Likewise.
23050         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23051         with $(LIBUNISTRING).
23052         * modules/unicase/ignorable-tests: Likewise.
23053         * modules/unicase/locale-language-tests: Likewise.
23054         * modules/unicase/tolower-tests: Likewise.
23055         * modules/unicase/totitle-tests: Likewise.
23056         * modules/unicase/toupper-tests: Likewise.
23057         * modules/unicase/u8-casecmp-tests: Likewise.
23058         * modules/unicase/u8-casecoll-tests: Likewise.
23059         * modules/unicase/u8-casefold-tests: Likewise.
23060         * modules/unicase/u8-is-cased-tests: Likewise.
23061         * modules/unicase/u8-is-casefolded-tests: Likewise.
23062         * modules/unicase/u8-is-lowercase-tests: Likewise.
23063         * modules/unicase/u8-is-titlecase-tests: Likewise.
23064         * modules/unicase/u8-is-uppercase-tests: Likewise.
23065         * modules/unicase/u8-tolower-tests: Likewise.
23066         * modules/unicase/u8-totitle-tests: Likewise.
23067         * modules/unicase/u8-toupper-tests: Likewise.
23068         * modules/unicase/u16-casecmp-tests: Likewise.
23069         * modules/unicase/u16-casecoll-tests: Likewise.
23070         * modules/unicase/u16-casefold-tests: Likewise.
23071         * modules/unicase/u16-is-cased-tests: Likewise.
23072         * modules/unicase/u16-is-casefolded-tests: Likewise.
23073         * modules/unicase/u16-is-lowercase-tests: Likewise.
23074         * modules/unicase/u16-is-titlecase-tests: Likewise.
23075         * modules/unicase/u16-is-uppercase-tests: Likewise.
23076         * modules/unicase/u16-tolower-tests: Likewise.
23077         * modules/unicase/u16-totitle-tests: Likewise.
23078         * modules/unicase/u16-toupper-tests: Likewise.
23079         * modules/unicase/u32-casecmp-tests: Likewise.
23080         * modules/unicase/u32-casecoll-tests: Likewise.
23081         * modules/unicase/u32-casefold-tests: Likewise.
23082         * modules/unicase/u32-is-cased-tests: Likewise.
23083         * modules/unicase/u32-is-casefolded-tests: Likewise.
23084         * modules/unicase/u32-is-lowercase-tests: Likewise.
23085         * modules/unicase/u32-is-titlecase-tests: Likewise.
23086         * modules/unicase/u32-is-uppercase-tests: Likewise.
23087         * modules/unicase/u32-tolower-tests: Likewise.
23088         * modules/unicase/u32-totitle-tests: Likewise.
23089         * modules/unicase/u32-toupper-tests: Likewise.
23090         * modules/unicase/ulc-casecmp-tests: Likewise.
23091         * modules/unicase/ulc-casecoll-tests: Likewise.
23092         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23093         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23094         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23095         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23096         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23097         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23098         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23099         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23100         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23101         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23102         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23103         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23104         * modules/unictype/bidicategory-byname-tests: Likewise.
23105         * modules/unictype/bidicategory-name-tests: Likewise.
23106         * modules/unictype/bidicategory-of-tests: Likewise.
23107         * modules/unictype/bidicategory-test-tests: Likewise.
23108         * modules/unictype/block-list-tests: Likewise.
23109         * modules/unictype/block-of-tests: Likewise.
23110         * modules/unictype/block-test-tests: Likewise.
23111         * modules/unictype/category-C-tests: Likewise.
23112         * modules/unictype/category-Cc-tests: Likewise.
23113         * modules/unictype/category-Cf-tests: Likewise.
23114         * modules/unictype/category-Cn-tests: Likewise.
23115         * modules/unictype/category-Co-tests: Likewise.
23116         * modules/unictype/category-Cs-tests: Likewise.
23117         * modules/unictype/category-L-tests: Likewise.
23118         * modules/unictype/category-Ll-tests: Likewise.
23119         * modules/unictype/category-Lm-tests: Likewise.
23120         * modules/unictype/category-Lo-tests: Likewise.
23121         * modules/unictype/category-Lt-tests: Likewise.
23122         * modules/unictype/category-Lu-tests: Likewise.
23123         * modules/unictype/category-M-tests: Likewise.
23124         * modules/unictype/category-Mc-tests: Likewise.
23125         * modules/unictype/category-Me-tests: Likewise.
23126         * modules/unictype/category-Mn-tests: Likewise.
23127         * modules/unictype/category-N-tests: Likewise.
23128         * modules/unictype/category-Nd-tests: Likewise.
23129         * modules/unictype/category-Nl-tests: Likewise.
23130         * modules/unictype/category-No-tests: Likewise.
23131         * modules/unictype/category-P-tests: Likewise.
23132         * modules/unictype/category-Pc-tests: Likewise.
23133         * modules/unictype/category-Pd-tests: Likewise.
23134         * modules/unictype/category-Pe-tests: Likewise.
23135         * modules/unictype/category-Pf-tests: Likewise.
23136         * modules/unictype/category-Pi-tests: Likewise.
23137         * modules/unictype/category-Po-tests: Likewise.
23138         * modules/unictype/category-Ps-tests: Likewise.
23139         * modules/unictype/category-S-tests: Likewise.
23140         * modules/unictype/category-Sc-tests: Likewise.
23141         * modules/unictype/category-Sk-tests: Likewise.
23142         * modules/unictype/category-Sm-tests: Likewise.
23143         * modules/unictype/category-So-tests: Likewise.
23144         * modules/unictype/category-Z-tests: Likewise.
23145         * modules/unictype/category-Zl-tests: Likewise.
23146         * modules/unictype/category-Zp-tests: Likewise.
23147         * modules/unictype/category-Zs-tests: Likewise.
23148         * modules/unictype/category-and-not-tests: Likewise.
23149         * modules/unictype/category-and-tests: Likewise.
23150         * modules/unictype/category-byname-tests: Likewise.
23151         * modules/unictype/category-name-tests: Likewise.
23152         * modules/unictype/category-none-tests: Likewise.
23153         * modules/unictype/category-of-tests: Likewise.
23154         * modules/unictype/category-or-tests: Likewise.
23155         * modules/unictype/category-test-withtable-tests: Likewise.
23156         * modules/unictype/combining-class-tests: Likewise.
23157         * modules/unictype/ctype-alnum-tests: Likewise.
23158         * modules/unictype/ctype-alpha-tests: Likewise.
23159         * modules/unictype/ctype-blank-tests: Likewise.
23160         * modules/unictype/ctype-cntrl-tests: Likewise.
23161         * modules/unictype/ctype-digit-tests: Likewise.
23162         * modules/unictype/ctype-graph-tests: Likewise.
23163         * modules/unictype/ctype-lower-tests: Likewise.
23164         * modules/unictype/ctype-print-tests: Likewise.
23165         * modules/unictype/ctype-punct-tests: Likewise.
23166         * modules/unictype/ctype-space-tests: Likewise.
23167         * modules/unictype/ctype-upper-tests: Likewise.
23168         * modules/unictype/ctype-xdigit-tests: Likewise.
23169         * modules/unictype/decimal-digit-tests: Likewise.
23170         * modules/unictype/digit-tests: Likewise.
23171         * modules/unictype/mirror-tests: Likewise.
23172         * modules/unictype/numeric-tests: Likewise.
23173         * modules/unictype/property-alphabetic-tests: Likewise.
23174         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23175         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23176         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23177         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23178         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23179         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23180         * modules/unictype/property-bidi-control-tests: Likewise.
23181         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23182         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23183         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23184         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23185         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23186         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23187         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23188         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23189         * modules/unictype/property-bidi-pdf-tests: Likewise.
23190         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23191         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23192         * modules/unictype/property-byname-tests: Likewise.
23193         * modules/unictype/property-combining-tests: Likewise.
23194         * modules/unictype/property-composite-tests: Likewise.
23195         * modules/unictype/property-currency-symbol-tests: Likewise.
23196         * modules/unictype/property-dash-tests: Likewise.
23197         * modules/unictype/property-decimal-digit-tests: Likewise.
23198         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23199         * modules/unictype/property-deprecated-tests: Likewise.
23200         * modules/unictype/property-diacritic-tests: Likewise.
23201         * modules/unictype/property-extender-tests: Likewise.
23202         * modules/unictype/property-format-control-tests: Likewise.
23203         * modules/unictype/property-grapheme-base-tests: Likewise.
23204         * modules/unictype/property-grapheme-extend-tests: Likewise.
23205         * modules/unictype/property-grapheme-link-tests: Likewise.
23206         * modules/unictype/property-hex-digit-tests: Likewise.
23207         * modules/unictype/property-hyphen-tests: Likewise.
23208         * modules/unictype/property-id-continue-tests: Likewise.
23209         * modules/unictype/property-id-start-tests: Likewise.
23210         * modules/unictype/property-ideographic-tests: Likewise.
23211         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23212         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23213         * modules/unictype/property-ignorable-control-tests: Likewise.
23214         * modules/unictype/property-iso-control-tests: Likewise.
23215         * modules/unictype/property-join-control-tests: Likewise.
23216         * modules/unictype/property-left-of-pair-tests: Likewise.
23217         * modules/unictype/property-line-separator-tests: Likewise.
23218         * modules/unictype/property-logical-order-exception-tests: Likewise.
23219         * modules/unictype/property-lowercase-tests: Likewise.
23220         * modules/unictype/property-math-tests: Likewise.
23221         * modules/unictype/property-non-break-tests: Likewise.
23222         * modules/unictype/property-not-a-character-tests: Likewise.
23223         * modules/unictype/property-numeric-tests: Likewise.
23224         * modules/unictype/property-other-alphabetic-tests: Likewise.
23225         * modules/unictype/property-other-default-ignorable-code-point-tests:
23226         Likewise.
23227         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23228         * modules/unictype/property-other-id-continue-tests: Likewise.
23229         * modules/unictype/property-other-id-start-tests: Likewise.
23230         * modules/unictype/property-other-lowercase-tests: Likewise.
23231         * modules/unictype/property-other-math-tests: Likewise.
23232         * modules/unictype/property-other-uppercase-tests: Likewise.
23233         * modules/unictype/property-paired-punctuation-tests: Likewise.
23234         * modules/unictype/property-paragraph-separator-tests: Likewise.
23235         * modules/unictype/property-pattern-syntax-tests: Likewise.
23236         * modules/unictype/property-pattern-white-space-tests: Likewise.
23237         * modules/unictype/property-private-use-tests: Likewise.
23238         * modules/unictype/property-punctuation-tests: Likewise.
23239         * modules/unictype/property-quotation-mark-tests: Likewise.
23240         * modules/unictype/property-radical-tests: Likewise.
23241         * modules/unictype/property-sentence-terminal-tests: Likewise.
23242         * modules/unictype/property-soft-dotted-tests: Likewise.
23243         * modules/unictype/property-space-tests: Likewise.
23244         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23245         * modules/unictype/property-test-tests: Likewise.
23246         * modules/unictype/property-titlecase-tests: Likewise.
23247         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23248         * modules/unictype/property-unified-ideograph-tests: Likewise.
23249         * modules/unictype/property-uppercase-tests: Likewise.
23250         * modules/unictype/property-variation-selector-tests: Likewise.
23251         * modules/unictype/property-white-space-tests: Likewise.
23252         * modules/unictype/property-xid-continue-tests: Likewise.
23253         * modules/unictype/property-xid-start-tests: Likewise.
23254         * modules/unictype/property-zero-width-tests: Likewise.
23255         * modules/unictype/scripts-tests: Likewise.
23256         * modules/unictype/syntax-c-ident-tests: Likewise.
23257         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23258         * modules/unictype/syntax-java-ident-tests: Likewise.
23259         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23260         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23261         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23262         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23263         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23264         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23265         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23266         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23267         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23268         * modules/uniname/uniname-tests: Likewise.
23269         * modules/uninorm/canonical-decomposition-tests: Likewise.
23270         * modules/uninorm/compat-decomposition-tests: Likewise.
23271         * modules/uninorm/composition-tests: Likewise.
23272         * modules/uninorm/decomposing-form-tests: Likewise.
23273         * modules/uninorm/decomposition-tests: Likewise.
23274         * modules/uninorm/filter-tests: Likewise.
23275         * modules/uninorm/nfc-tests: Likewise.
23276         * modules/uninorm/nfd-tests: Likewise.
23277         * modules/uninorm/nfkc-tests: Likewise.
23278         * modules/uninorm/nfkd-tests: Likewise.
23279         * modules/uninorm/u8-normcmp-tests: Likewise.
23280         * modules/uninorm/u8-normcoll-tests: Likewise.
23281         * modules/uninorm/u16-normcmp-tests: Likewise.
23282         * modules/uninorm/u16-normcoll-tests: Likewise.
23283         * modules/uninorm/u32-normcmp-tests: Likewise.
23284         * modules/uninorm/u32-normcoll-tests: Likewise.
23285         * modules/unistdio/u8-asnprintf-tests: Likewise.
23286         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23287         * modules/unistdio/u8-vasprintf-tests: Likewise.
23288         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23289         * modules/unistdio/u8-vsprintf-tests: Likewise.
23290         * modules/unistdio/u16-asnprintf-tests: Likewise.
23291         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23292         * modules/unistdio/u16-vasprintf-tests: Likewise.
23293         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23294         * modules/unistdio/u16-vsprintf-tests: Likewise.
23295         * modules/unistdio/u32-asnprintf-tests: Likewise.
23296         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23297         * modules/unistdio/u32-vasprintf-tests: Likewise.
23298         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23299         * modules/unistdio/u32-vsprintf-tests: Likewise.
23300         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23301         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23302         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23303         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23304         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23305         * modules/unistr/u8-check-tests: Likewise.
23306         * modules/unistr/u8-chr-tests: Likewise.
23307         * modules/unistr/u8-cmp-tests: Likewise.
23308         * modules/unistr/u8-cmp2-tests: Likewise.
23309         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23310         * modules/unistr/u8-cpy-tests: Likewise.
23311         * modules/unistr/u8-mblen-tests: Likewise.
23312         * modules/unistr/u8-mbsnlen-tests: Likewise.
23313         * modules/unistr/u8-mbtouc-tests: Likewise.
23314         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23315         * modules/unistr/u8-mbtoucr-tests: Likewise.
23316         * modules/unistr/u8-move-tests: Likewise.
23317         * modules/unistr/u8-next-tests: Likewise.
23318         * modules/unistr/u8-prev-tests: Likewise.
23319         * modules/unistr/u8-set-tests: Likewise.
23320         * modules/unistr/u8-stpcpy-tests: Likewise.
23321         * modules/unistr/u8-stpncpy-tests: Likewise.
23322         * modules/unistr/u8-strcat-tests: Likewise.
23323         * modules/unistr/u8-strcmp-tests: Likewise.
23324         * modules/unistr/u8-strcoll-tests: Likewise.
23325         * modules/unistr/u8-strcpy-tests: Likewise.
23326         * modules/unistr/u8-strdup-tests: Likewise.
23327         * modules/unistr/u8-strlen-tests: Likewise.
23328         * modules/unistr/u8-strmblen-tests: Likewise.
23329         * modules/unistr/u8-strmbtouc-tests: Likewise.
23330         * modules/unistr/u8-strncat-tests: Likewise.
23331         * modules/unistr/u8-strncmp-tests: Likewise.
23332         * modules/unistr/u8-strncpy-tests: Likewise.
23333         * modules/unistr/u8-strnlen-tests: Likewise.
23334         * modules/unistr/u8-to-u16-tests: Likewise.
23335         * modules/unistr/u8-to-u32-tests: Likewise.
23336         * modules/unistr/u8-uctomb-tests: Likewise.
23337         * modules/unistr/u16-check-tests: Likewise.
23338         * modules/unistr/u16-chr-tests: Likewise.
23339         * modules/unistr/u16-cmp-tests: Likewise.
23340         * modules/unistr/u16-cmp2-tests: Likewise.
23341         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23342         * modules/unistr/u16-cpy-tests: Likewise.
23343         * modules/unistr/u16-mblen-tests: Likewise.
23344         * modules/unistr/u16-mbsnlen-tests: Likewise.
23345         * modules/unistr/u16-mbtouc-tests: Likewise.
23346         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23347         * modules/unistr/u16-mbtoucr-tests: Likewise.
23348         * modules/unistr/u16-move-tests: Likewise.
23349         * modules/unistr/u16-next-tests: Likewise.
23350         * modules/unistr/u16-prev-tests: Likewise.
23351         * modules/unistr/u16-set-tests: Likewise.
23352         * modules/unistr/u16-stpcpy-tests: Likewise.
23353         * modules/unistr/u16-stpncpy-tests: Likewise.
23354         * modules/unistr/u16-strcat-tests: Likewise.
23355         * modules/unistr/u16-strcmp-tests: Likewise.
23356         * modules/unistr/u16-strcoll-tests: Likewise.
23357         * modules/unistr/u16-strcpy-tests: Likewise.
23358         * modules/unistr/u16-strdup-tests: Likewise.
23359         * modules/unistr/u16-strlen-tests: Likewise.
23360         * modules/unistr/u16-strmblen-tests: Likewise.
23361         * modules/unistr/u16-strmbtouc-tests: Likewise.
23362         * modules/unistr/u16-strncat-tests: Likewise.
23363         * modules/unistr/u16-strncmp-tests: Likewise.
23364         * modules/unistr/u16-strncpy-tests: Likewise.
23365         * modules/unistr/u16-strnlen-tests: Likewise.
23366         * modules/unistr/u16-to-u32-tests: Likewise.
23367         * modules/unistr/u16-to-u8-tests: Likewise.
23368         * modules/unistr/u16-uctomb-tests: Likewise.
23369         * modules/unistr/u32-check-tests: Likewise.
23370         * modules/unistr/u32-chr-tests: Likewise.
23371         * modules/unistr/u32-cmp-tests: Likewise.
23372         * modules/unistr/u32-cmp2-tests: Likewise.
23373         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23374         * modules/unistr/u32-cpy-tests: Likewise.
23375         * modules/unistr/u32-mblen-tests: Likewise.
23376         * modules/unistr/u32-mbsnlen-tests: Likewise.
23377         * modules/unistr/u32-mbtouc-tests: Likewise.
23378         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23379         * modules/unistr/u32-mbtoucr-tests: Likewise.
23380         * modules/unistr/u32-move-tests: Likewise.
23381         * modules/unistr/u32-next-tests: Likewise.
23382         * modules/unistr/u32-prev-tests: Likewise.
23383         * modules/unistr/u32-set-tests: Likewise.
23384         * modules/unistr/u32-stpcpy-tests: Likewise.
23385         * modules/unistr/u32-stpncpy-tests: Likewise.
23386         * modules/unistr/u32-strcat-tests: Likewise.
23387         * modules/unistr/u32-strcmp-tests: Likewise.
23388         * modules/unistr/u32-strcoll-tests: Likewise.
23389         * modules/unistr/u32-strcpy-tests: Likewise.
23390         * modules/unistr/u32-strdup-tests: Likewise.
23391         * modules/unistr/u32-strlen-tests: Likewise.
23392         * modules/unistr/u32-strmblen-tests: Likewise.
23393         * modules/unistr/u32-strmbtouc-tests: Likewise.
23394         * modules/unistr/u32-strncat-tests: Likewise.
23395         * modules/unistr/u32-strncmp-tests: Likewise.
23396         * modules/unistr/u32-strncpy-tests: Likewise.
23397         * modules/unistr/u32-strnlen-tests: Likewise.
23398         * modules/unistr/u32-to-u16-tests: Likewise.
23399         * modules/unistr/u32-to-u8-tests: Likewise.
23400         * modules/unistr/u32-uctomb-tests: Likewise.
23401         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23402         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23403         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23404         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23405         * modules/uniwidth/u8-strwidth-tests: Likewise.
23406         * modules/uniwidth/u8-width-tests: Likewise.
23407         * modules/uniwidth/u16-strwidth-tests: Likewise.
23408         * modules/uniwidth/u16-width-tests: Likewise.
23409         * modules/uniwidth/u32-strwidth-tests: Likewise.
23410         * modules/uniwidth/u32-width-tests: Likewise.
23411         * modules/uniwidth/width-tests: Likewise.
23412
23413 2010-05-18  Richard Jones  <rjones@redhat.com>
23414
23415         doc: users.txt: list hivex
23416         * users.txt: Add hivex.
23417
23418 2010-05-18  Richard Jones  <rjones@redhat.com>
23419
23420         doc: users.txt: list febootstrap
23421         * users.txt: Add febootstrap.
23422
23423 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23424
23425         bootstrap: fix an error when gnulib is not used as a git submodule
23426         * build-aux/bootstrap (gnulib_path): If its length is zero then
23427         assign "gnulib" to it.
23428         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23429
23430 2010-05-16  Bruno Haible  <bruno@clisp.org>
23431
23432         Avoid autoconf warnings about AM_ICONV.
23433         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23434         2.64.
23435
23436 2010-05-16  Bruno Haible  <bruno@clisp.org>
23437
23438         absolute-header: Make the macro usable in more situations.
23439         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23440         from gl_ABSOLUTE_HEADER.
23441         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23442
23443 2010-05-16  James Youngman  <jay@gnu.org>
23444
23445         doc: update users.txt
23446         * users.txt: Add CSSC.
23447
23448 2010-05-16  Jim Meyering  <meyering@redhat.com>
23449
23450         init.sh: fix an error in the previous change; add more comments
23451         * tests/init.sh: Compare exit code in loop against 9, not 2.
23452         Patch by Bruno Haible.
23453         Make the two tests more similar by adding an empty "then" clause.
23454         Add comments.
23455
23456         init.sh: avoid unnecessary shell re-exec
23457         * tests/init.sh: Improve the re-exec-required check to first test the
23458         current shell.  If it passes the test, do not search for a shell that
23459         does pass, and do not re-exec.  This test is particularly contorted to
23460         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23461         of $(...) evokes a syntax error and causes immediate shell exit with
23462         status 2.  Bruno Haible reported that the re-exec made it impossible
23463         to single-step through any init.sh-using script.
23464
23465 2010-05-16  Bruno Haible  <bruno@clisp.org>
23466
23467         Fix collision between gnulib's and libintl's printf replacements.
23468         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23469         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23470         (printf): When using GNU C, map the __printf__ function to rpl_printf
23471         via __asm__. When not using GNU C, define rpl_printf instead of
23472         __printf__.
23473         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23474         commit.
23475         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23476         commit.
23477         * m4/asm-underscore.m4: New file.
23478         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23479         * modules/stdio (Files): Add m4/asm-underscore.m4.
23480         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23481         Reported by Ben Pfaff.
23482
23483 2010-05-16  Bruno Haible  <bruno@clisp.org>
23484
23485         verify: Avoid skipping the test on openSUSE 11.0.
23486         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23487
23488 2010-05-13  Bruno Haible  <bruno@clisp.org>
23489
23490         Avoid useless warnings from G++.
23491         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23492         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23493         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23494
23495 2010-05-11  Jim Meyering  <meyering@redhat.com>
23496
23497         maint.mk: tweak preceding change
23498         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23499         regexps tighter by anchoring at EOL, and make the new group "shy"
23500         for slightly decreased overhead.
23501
23502 2010-05-11  Eric Blake  <eblake@redhat.com>
23503
23504         maint.mk: gnulib doesn't guarantee NSIG
23505         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23506
23507 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23508
23509         test-pwrite.c: Remove unused variable declaration.
23510         * tests/test-pwrite.c (main): Remove read_buf declaration.
23511
23512         Remove useless test-pwrite.sh file.
23513         * tests/test-pwrite.sh: Delete file.
23514         * modules/pwrite-tests: Remove references.
23515         Reported by Bruno Haible.
23516
23517 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23518
23519         init.sh: fix a typo
23520         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23521
23522 2010-05-10  Jim Meyering  <meyering@redhat.com>
23523
23524         maint.mk: avoid using a temporary file in the always-defined-macros check
23525         * top/maint.mk (.re-defmac): Remove rule.
23526         (gl_trap_): Remove definition.
23527         (sc_prohibit_always-defined_macros): Rewrite not to create and
23528         depend on a temporary file.  Instead, depend on GNU grep's ability
23529         to read a list of regular expressions from stdin when given "-f -".
23530
23531 2010-05-09  Bruno Haible  <bruno@clisp.org>
23532
23533         Update to GNU gettext 0.18, part 1.
23534         * m4/gettext.m4: Update to GNU gettext 0.18.
23535         * m4/intl.m4: Likewise.
23536         * m4/po.m4: Likewise.
23537         * modules/gettext (Files): Add m4/fcntl-o.m4.
23538         (configure.ac): Require gettext infrastructure from version 0.18.
23539
23540 2010-05-09  Jim Meyering  <meyering@redhat.com>
23541
23542         init.sh: enable MALLOC_PERTURB_
23543         * tests/init.sh: Enable glibc's malloc-perturbing option.
23544
23545         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23546         With my recent change in init.sh from the two-line form:
23547             -#   : ${srcdir=.}
23548             -#   . "$srcdir/init.sh"; path_prepend_ .
23549             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23550         I noticed that using the one-line form would cause this test
23551         to fail with a false-positive, or to stop working altogether,
23552         depending on whether help-version changed or all the tests did.
23553         * top/maint.mk (_hv_regex): Remove this definition.
23554         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23555         (_hv_regex_strong): Use a stronger regex to check for conformance.
23556         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23557         Give a separate diagnostic for lack of conforming use.
23558
23559         maint.mk: prohibit definition of symbols defined by gnulib
23560         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23561         definition of symbols defined by gnulib.
23562
23563 2010-05-09  Bruno Haible  <bruno@clisp.org>
23564
23565         acl: Avoid test failure on Cygwin-hosted mingw.
23566         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23567
23568 2010-05-09  Bruno Haible  <bruno@clisp.org>
23569
23570         error: Use system's fcntl function.
23571         * lib/error.c (fcntl): Undefine.
23572
23573 2010-05-09  Jim Meyering  <meyering@redhat.com>
23574
23575         verify: adjust formatting to be more consistent
23576         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23577         argument-list '('s, and after one comma.
23578
23579 2010-05-09  Bruno Haible  <bruno@clisp.org>
23580
23581         error: More reliable output on mingw.
23582         * lib/error.c: Include <windows.h>.
23583         (is_open): New function.
23584         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23585         defined.
23586
23587 2010-05-09  Bruno Haible  <bruno@clisp.org>
23588
23589         vasnprintf: Fix syntax errors in libintl build on mingw.
23590         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23591         pad_ourselves and prec_ourselves after use.
23592
23593 2010-05-08  Bruno Haible  <bruno@clisp.org>
23594
23595         * lib/config.charset: Update comments for Cygwin 1.7.
23596         * lib/localcharset.c: Likewise.
23597
23598 2010-05-07  Jim Meyering  <meyering@redhat.com>
23599
23600         init.sh: improve comments
23601         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23602         . "${srcdir=.}/init.sh"; path_prepend_ .
23603         Add a note about path_prepend_ and the alternative of using
23604         TESTS_ENVIRONMENT.
23605
23606 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23607
23608         exclude: Unescape hashed patterns in wildcard mode.
23609         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23610         to the hash list.
23611         * tests/test-exclude8.sh: New test case.
23612         * modules/exclude-tests: Add new test.
23613
23614 2010-05-05  Eric Blake  <eblake@redhat.com>
23615
23616         verify: automate tests
23617         * modules/verify-tests: New module.
23618         * tests/test-verify.sh: New file.
23619         * tests/test-verify.c: Guard each negative test with a unique id.
23620         Also avoid warning about unused left hand of comma expressions.
23621
23622 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23623
23624         Further improvements to verify.h, suggested by Eric Blake.
23625         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23626         the GL_* versions, to avoid collision with OpenGL.
23627         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23628         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23629         than testing merely whether it's defined.
23630
23631         Modify verify.h to pacify gcc -Wredundant_decls.
23632         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23633         These use the prefix "GL_" since they're likely to be useful elsewhere.
23634         We may need to break them out into a different .h file.
23635         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23636         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23637         of verify_function__.
23638
23639 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23640
23641         Tests for module pwrite.
23642         * modules/pwrite-tests: New file.
23643         * tests/test-pwrite.sh: New file.
23644         * tests/test-pwrite.c: New file.
23645
23646         New module pwrite.
23647         * lib/unistd.in.h (pwrite): New declaration.
23648         * lib/pwrite.c: New file, from glibc with modifications.
23649         * m4/pwrite.m4: New file.
23650         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23651         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23652         REPLACE_PWRITE.
23653         * modules/pwrite: New file.
23654         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23655         REPLACE_PWRITE.
23656         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23657         * doc/posix-functions/pwrite.texi: Mention the new module.
23658
23659 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23660
23661         pread: Update documentation.
23662         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23663
23664 2010-05-04  Eric Blake  <eblake@redhat.com>
23665
23666         docs: update cygwin progress
23667         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23668         this bug.
23669         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23670         Added in cygwin 1.7.2.
23671         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23672         Likewise.
23673         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23674         Likewise.
23675         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23676         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23677         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23678         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23679         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23680         Mention nproc module.
23681         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23682         bug in cygwin 1.7.5 addition.
23683         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23684         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23685         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23686         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23687         1.7.5.
23688         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23689         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23690         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23691         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23692         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23693         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23694         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23695         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23696         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23697         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23698         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23699         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23700         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23701         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23702         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23703         Likewise.
23704         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23705         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23706         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23707         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23708         Likewise.
23709         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23710         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23711         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23712         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23713         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23714         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23715         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23716         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23717         Likewise.
23718         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23719         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23720         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23721         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23722         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23723         Likewise.
23724         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23725         Likewise.
23726         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23727         Likewise.
23728         * doc/glibc-functions/xdrrec_endofrecord.texi
23729         (xdrrec_endofrecord): Likewise.
23730         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23731         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23732         Likewise.
23733         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23734         Likewise.
23735
23736 2010-05-04  Jim Meyering  <meyering@redhat.com>
23737
23738         gendocs.sh: make its "-s FILE" option more useful
23739         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23740         $PACKAGE to reflect the probably-different basename of "FILE".
23741
23742 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23743
23744         bootstrap: don't ignore download_po_files failure
23745         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23746         failure.
23747
23748 2010-05-03  Jim Meyering  <meyering@redhat.com>
23749
23750         maint.mk: allow to pass options to gendocs.sh
23751         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23752         (gendocs_options_): New overridable variable.
23753
23754         gnu-web-doc-update: don't ignore configure or build failure
23755         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23756
23757         announce-gen: backslash-escape '@'s in --help output
23758         * build-aux/announce-gen: Fix syntax errors.
23759
23760         maint.mk, announce-gen: allow project-specific announcement mail headers
23761         * top/maint.mk (translation_project_): Define default.
23762         (announcement_Cc_, announcement_mail_headers_): Likewise.
23763         (announcement): Invoke announce-gen with new --mail-headers option.
23764         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23765
23766         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23767         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23768         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23769         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23770         line in the "err2" output file when running "make check" in verbose
23771         mode (i.e., with set -x enabled).
23772
23773 2010-05-03  Bruno Haible  <bruno@clisp.org>
23774
23775         wctob: Fix for weird platforms.
23776         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23777         argument value.
23778
23779 2010-05-03  Jim Meyering  <meyering@redhat.com>
23780
23781         maint.mk: prohibit unwarranted use of <strings.h>
23782         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23783         strings.h in a file that does not also use strcasecmp, strncasecmp,
23784         ffs or ffsll.
23785
23786         maint.mk: remove obsolete comments
23787         * top/maint.mk: Remove stale, commented-out rules.
23788
23789 2010-05-02  Bruno Haible  <bruno@clisp.org>
23790
23791         wcwidth: Declare also when it's aliased.
23792         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23793         macro.
23794
23795 2010-05-02  Bruno Haible  <bruno@clisp.org>
23796
23797         Fix regression from 2010-04-25.
23798         * gnulib-tool (func_modules_transitive_closure): Check the status of
23799         all modules, not only of the tests that are of the form foo-tests where
23800         foo is a module.
23801
23802 2010-05-02  Bruno Haible  <bruno@clisp.org>
23803
23804         wctob: Work around nasty Cygwin 1.7.2 bug.
23805         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23806         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23807
23808 2010-05-01  Bruno Haible  <bruno@clisp.org>
23809
23810         fpurge: Sharper test.
23811         * tests/test-fpurge.c (main): Add one more ftell check.
23812         * modules/fpurge-tests (Depends-on): Add ftell.
23813         Suggested by Eric Blake.
23814
23815 2010-05-01  Bruno Haible  <bruno@clisp.org>
23816
23817         ftello: Another test.
23818         * tests/test-ftello3.c: New file.
23819         * modules/ftello-tests (Files): Add it.
23820         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23821         MOSTLYCLEANFILES.
23822
23823         ftell: Another test.
23824         * tests/test-ftell3.c: New file.
23825         * modules/ftell-tests (Files): Add it.
23826         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23827         MOSTLYCLEANFILES.
23828
23829 2010-05-01  Bruno Haible  <bruno@clisp.org>
23830
23831         ftell, ftello: Work around Solaris bug.
23832         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23833         * lib/ftello.c: Include stdio-impl.h.
23834         (ftello): On Solaris, when _IOWRT is set, compute the result without
23835         looking at _IOREAD.
23836         * modules/ftello (Files): Add lib/stdio-impl.h.
23837         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23838         * doc/posix-functions/ftello.texi: Likewise.
23839         Reported by Eric Blake.
23840
23841 2010-05-01  Bruno Haible  <bruno@clisp.org>
23842
23843         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23844         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23845         the _IOWRT flag is also set.
23846
23847 2010-05-01  Bruno Haible  <bruno@clisp.org>
23848
23849         Fix doc about a HP-UX stdio bug.
23850         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23851         * doc/posix-functions/ftello.texi: Likewise.
23852
23853 2010-05-01  Bruno Haible  <bruno@clisp.org>
23854
23855         lseek test: Fix failure on Solaris.
23856         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23857         output.
23858
23859 2010-04-30  Jim Meyering  <meyering@redhat.com>
23860
23861         bootstrap: don't ignore failure to generate po*/Makevars
23862         * build-aux/bootstrap (with_gettext): Don't ignore failure
23863         to create po/Makevars or runtime-po/Makevars.
23864
23865 2010-04-29  Eric Blake  <eblake@redhat.com>
23866
23867         headers: relax license to LGPLv2+
23868         * modules/fcntl-h (License): Relax license.
23869         * modules/getopt-posix (License): Likewise.
23870         * modules/locale (License): Likewise.
23871         * modules/math (License): Likewise.
23872         * modules/pty (License): Likewise.
23873         * modules/sched (License): Likewise.
23874         * modules/search (License): Likewise.
23875         * modules/spawn (License): Likewise.
23876         * modules/stdarg (License): Likewise.
23877         * modules/sysexits (License): Likewise.
23878
23879 2010-04-29  Jim Meyering  <meyering@redhat.com>
23880
23881         inttypes: relax license to LGPLv2+
23882         * modules/inttypes (License): Relax license.
23883
23884 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23885
23886         * top/maint.mk (indent): Run twice to produce idempotent results.
23887
23888 2010-04-28  Bruno Haible  <bruno@clisp.org>
23889
23890         getdate: Generate getdate.c in the source directory.
23891         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23892         MOSTLYCLEANFILES.
23893         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23894
23895 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23896
23897         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23898         is not declared as a const *; avoid warnings in that case.
23899
23900 2010-04-28  Eric Blake  <eblake@redhat.com>
23901
23902         canonicalize-lgpl: avoid compiler warning
23903         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23904         declaration' / 'extraneous semicolon' warning with some compilers.
23905         Reported by Andreas Gruenbacher.
23906
23907 2010-04-28  Jim Meyering  <meyering@redhat.com>
23908
23909         init.sh: ensure a more reliable exit status when exiting via trap
23910         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23911         Inspired by patches from Dmitry V. Levin.
23912         Also trap on signal 3 (SIGQUIT).
23913
23914 2010-04-27  Bruno Haible  <bruno@clisp.org>
23915
23916         Update doc about utimes().
23917         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23918         'utimens' module.
23919         Reported by Andreas Gruenbacher <agruen@suse.de>.
23920
23921 2010-04-27  Eric Blake  <eblake@redhat.com>
23922
23923         full-read, full-write: relax license
23924         * modules/full-read (License): Drop to LGPLv2+.
23925         * modules/full-write (License): Likewise.
23926         * modules/safe-read (License): Likewise.
23927         * modules/safe-write (License): Likewise.
23928
23929         pthread: mention library for linking
23930         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23931
23932 2010-04-27  Jim Meyering  <meyering@redhat.com>
23933
23934         maint.mk: fix a bug introduced in last change
23935         * top/maint.mk (gl_assured_headers_): Now that all names are on
23936         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23937         is not anchored to end of word, it should be adequate.
23938
23939         maint.mk: avoid side-effect in latest syntax-check
23940         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23941         to run commands via $(shell...), and hence to incur cost only when
23942         the new rule is actually run.
23943
23944         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23945         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23946         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23947         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23948         (gl_assured_headers_, az_, AZ_): Define.
23949         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23950
23951 2010-04-26  Jim Meyering  <jim@meyering.net>
23952             Bruno Haible  <bruno@clisp.org>
23953
23954         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23955         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23956         Prompted by an exchange with Gilles Espinasse.
23957
23958 2010-04-26  Jim Meyering  <meyering@redhat.com>
23959
23960         git-version-gen: aesthetic tweak
23961         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23962         so that the command remains on a single line.
23963
23964 2010-04-26  Eric Blake  <eblake@redhat.com>
23965
23966         git-version-gen: allow use on EBCDIC hosts
23967         * build-aux/git-version-gen (dirty): Use literal rather than tying
23968         ourselves to ascii.
23969         Reported by Steve Goetze.
23970
23971 2010-04-25  Bruno Haible  <bruno@clisp.org>
23972
23973         netdb: Add support for GNULIB_POSIXCHECK.
23974         * lib/netdb.in.h: Include warn-on-use.h.
23975         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23976         functions are used when GNULIB_POSIXCHECK is defined and the
23977         getaddrinfo module is not in use.
23978         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23979         freeaddrinfo, gai_strerror, getnameinfo are declared.
23980         * modules/netdb (Depends-on): Add warn-on-use.
23981         (Makefile.am): Include warn-on-use.h in netdb.h.
23982
23983 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23984
23985         build: avoid "make check" failure without .git/ directory
23986         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23987         there is no .git/ directory.
23988
23989 2010-04-25  Bruno Haible  <bruno@clisp.org>
23990
23991         ptsname: Fix misuse of ttyname_r.
23992         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23993         of errno.
23994
23995 2010-04-25  Bruno Haible  <bruno@clisp.org>
23996
23997         ttyname_r: Make it work on Solaris 10.
23998         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23999         if the system function has the POSIX declaration. Test whether the
24000         function fails if the buffer is less than 128 bytes large.
24001         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24002         system's ttyname_r function. Provide a reasonably large buffer.
24003         * modules/ttyname_r (Depends-on): Add extensions.
24004         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24005
24006 2010-04-25  Bruno Haible  <bruno@clisp.org>
24007
24008         Use the 'extensions' module for some more functions on Solaris.
24009         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24010         module.
24011         * doc/posix-functions/ctime_r.texi: Likewise.
24012         * doc/posix-functions/getgrgid_r.texi: Likewise.
24013         * doc/posix-functions/getgrnam_r.texi: Likewise.
24014         * doc/posix-functions/getpwnam_r.texi: Likewise.
24015         * doc/posix-functions/getpwuid_r.texi: Likewise.
24016         * doc/posix-functions/readdir_r.texi: Likewise.
24017         * doc/posix-functions/sigwait.texi: Likewise.
24018         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24019         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24020
24021 2010-04-25  Bruno Haible  <bruno@clisp.org>
24022
24023         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24024         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24025         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24026         * lib/ttyname_r.c: Include <limits.h>.
24027         (ttyname_r): Define using the system's ttyname_r function, if it exists
24028         and not on Solaris.
24029         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24030         set.
24031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24032         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24033         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24034         Reported by Simon Josefsson.
24035
24036 2010-04-25  Bruno Haible  <bruno@clisp.org>
24037
24038         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24039         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24040         * doc/posix-functions/ctime_r.texi: Likewise.
24041         * doc/posix-functions/getgrgid_r.texi: Likewise.
24042         * doc/posix-functions/getgrnam_r.texi: Likewise.
24043         * doc/posix-functions/getlogin_r.texi: Likewise.
24044         * doc/posix-functions/getpwnam_r.texi: Likewise.
24045         * doc/posix-functions/getpwuid_r.texi: Likewise.
24046         * doc/posix-functions/readdir_r.texi: Likewise.
24047         * doc/posix-functions/sigwait.texi: Likewise.
24048         * doc/posix-functions/ttyname_r.texi: Likewise.
24049         Reported by Simon Josefsson.
24050
24051 2010-04-25  Bruno Haible  <bruno@clisp.org>
24052
24053         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24054         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24055         also to --create-testdir.
24056         (func_acceptable): Don't consider the status of *-tests modules here.
24057         (func_modules_transitive_closure): Consider it here, before including a
24058         test module.
24059         (func_import, func_create_testdir): Set inc_all_direct_tests,
24060         inc_all_indirect_tests.
24061         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24062         --create-testdir and --create-megatestdir.
24063
24064 2010-04-25  Bruno Haible  <bruno@clisp.org>
24065
24066         gnulib-tool: Add --without-*-tests options.
24067         * gnulib-tool (func_usage): Document the --without-*-tests options.
24068         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24069         excl_unportable_tests): New variables.
24070         Fail if they are specified with --import or --update.
24071         (func_acceptable): Respect the excl_*_tests variables.
24072         (func_import): Set the excl_*_tests variables to empty.
24073
24074 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24075             Bruno Haible  <bruno@clisp.org>
24076
24077         Work around a MacOS X 10.4 bug with openpty.
24078         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24079         * tests/test-openpty.c (main): Close the master side explicitly.
24080
24081 2010-04-25  Bruno Haible  <bruno@clisp.org>
24082
24083         strnlen: Fix a C++ test error on MacOS X and Solaris.
24084         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24085         the function is not declared.
24086         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24087         Simon Josefsson.
24088
24089 2010-04-24  Bruno Haible  <bruno@clisp.org>
24090
24091         Avoid a gcc warning.
24092         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24093         of correct type for %08lx directive.
24094         Reported by Eric Blake.
24095
24096 2010-04-24  Bruno Haible  <bruno@clisp.org>
24097
24098         vasnprintf: Correct errno value in case of out-of-memory.
24099         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24100         or sprintf. Use the errno value from SNPRINTF or sprintf.
24101         Reported by Ian Beckwith <ianb@erislabs.net>.
24102
24103 2010-04-24  Bruno Haible  <bruno@clisp.org>
24104
24105         ansi-c++-opt: Find correct compiler when cross-compiling.
24106         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24107         AC_CHECK_PROGS.
24108         Reported by Simon Josefsson.
24109
24110 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24111
24112         vc-list-files: Add support for subversion
24113         * build-aux/vc-list-files: Use "svn list" to generate the list of
24114         files controlled by subversion.
24115
24116 2010-04-23  Jim Meyering  <meyering@redhat.com>
24117
24118         vc-list-files tests: convert to use init.sh
24119         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24120         path_prepend_.
24121         Use Exit, not exit.
24122         Use skip_ rather than open coding it.
24123         Remove trap set-up and compare definitions.
24124         * tests/test-vc-list-files-git.sh: Likewise.
24125         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24126
24127 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24128
24129         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24130         backup files.
24131
24132 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24133
24134         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24135
24136 2010-04-20  Eric Blake  <eblake@redhat.com>
24137
24138         tests: be robust to ignored SIGPIPE
24139         * tests/test-select-in.sh: Consume all output.
24140         * tests/test-lseek.sh: Check correct exit status, while avoiding
24141         EPIPE.
24142
24143 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24144             Bruno Haible  <bruno@clisp.org>
24145
24146         visibility: Don't use -fvisibility if it leads to a warning.
24147         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24148         yes, don't pretend that visibility works if it leads to a warning.
24149         Reported by Mike Gran <spk121@yahoo.com>.
24150
24151 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24152
24153         * build-aux/bootstrap: Use "git -h" for testing for supported options
24154         instead of "git --help".  The short-form option only shows a summary,
24155         and doesn't layout the full man page.  Grep for the full option name
24156         in the summary, too.
24157
24158 2010-04-19  Bruno Haible  <bruno@clisp.org>
24159
24160         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24161         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24162         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24163         mention of RELOCATABLE_STRIP.
24164         Reported by Sylvain Beucler <beuc@beuc.net>.
24165
24166 2010-04-19  Bruno Haible  <bruno@clisp.org>
24167
24168         * lib/diffseq.h: Fix typo in comment.
24169         Reported by Eric Blake.
24170
24171 2010-04-19  Bruno Haible  <bruno@clisp.org>
24172
24173         ioctl: Move autoconf macro to a .m4 file.
24174         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24175         * modules/ioctl (Files): Add it.
24176         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24177         Reported by Ian Beckwith <ianb@erislabs.net>.
24178
24179 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24180             Bruno Haible  <bruno@clisp.org>
24181
24182         diffseq: Accommodate use-case with abstract arrays.
24183         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24184         is not defined.
24185         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24186         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24187
24188 2010-04-18  Bruno Haible  <bruno@clisp.org>
24189
24190         * doc/posix-headers/stdbool.texi: More precise wording.
24191
24192 2010-04-17  Jim Meyering  <meyering@redhat.com>
24193
24194         maint.mk: use gnu-style indentation in an embedded perl script
24195         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24196         Rename variable: s/two/last_two_bytes/
24197
24198 2010-04-16  Eric Blake  <eblake@redhat.com>
24199
24200         test-stdbool: skip test that fails with Solaris CC
24201         * tests/test-stdbool.c (f): Skip test that causes compilation
24202         error under buggy C++ compiler.
24203         * lib/stdbool.in.h: Document the limitation.
24204         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24205
24206         setenv: allow compilation with C++
24207         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24208         register keyword.
24209
24210         stdint: allow test to pass with C++
24211         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24212
24213         getopt: allow compilation with C++
24214         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24215         struct.
24216         * lib/getopt.c (_getopt_internal_r): Use correct type.
24217         Reported by Dagobert Michelson, via Joel E. Denny.
24218
24219 2010-04-16  Bruno Haible  <bruno@clisp.org>
24220
24221         Override netdb.h always.
24222         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24223         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24224         Reported by Ludovic Courtès <ludo@gnu.org>.
24225
24226 2010-04-15  Bruno Haible  <bruno@clisp.org>
24227
24228         openpty: Fix mistake from 2010-03-21.
24229         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24230         Reported by Simon Josefsson.
24231
24232 2010-04-15  Eric Blake  <eblake@redhat.com>
24233
24234         test-forkpty: fix expected signature
24235         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24236         Reported by Simon Josefsson.
24237
24238 2010-04-15  Jim Meyering  <meyering@redhat.com>
24239
24240         maint.mk: texinfo_suffix_re_: correct the default regexp
24241         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24242
24243         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24244         make it configurable via texinfo_suffix_re_.
24245
24246 2010-04-14  Eric Blake  <eblake@redhat.com>
24247
24248         strtok_r: relax license to LGPLv2+
24249         * modules/strtok_r (License): Relax license.
24250         Reported by Matthias Bolte.
24251
24252 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24253
24254         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24255         version 1.4.4 by default instead of requiring the libgcrypt
24256         version used during build.  This makes it possible to use the
24257         application with older but still binary compatible libgcrypt
24258         versions.
24259
24260 2010-04-13  Eric Blake  <eblake@redhat.com>
24261
24262         getopt-gnu: match recent glibc fixes and posix ruling
24263         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24264         '+' handling, when requesting extensions.
24265         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24266         'W;' handling.
24267         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24268         * doc/posix-functions/getopt.texi (getopt): Document this.
24269         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24270         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24271         Likewise.
24272
24273         getopt: merge bug fixes from glibc
24274         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24275         diagnostics.  Honor '+:' correctly.  Reject ';'.
24276
24277         getopt-posix: detect MacOS bug
24278         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24279         optind when missing a required argument.
24280         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24281         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24282         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24283         Likewise.
24284
24285         getopt-posix: avoid spurious failure on Solaris
24286         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24287         an indicator that setting optind=1 is sufficient for reset.
24288
24289         getopt-posix: avoid spurious failure on FreeBSD
24290         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24291         in POSIX mode, since the m4 test uses it.
24292
24293         gnulib-tool: silence warning on BSD sh
24294         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24295
24296 2010-04-13  Jim Meyering  <meyering@redhat.com>
24297
24298         doc: users.txt: GNU patch now uses gnulib
24299         * users.txt: Add patch.
24300
24301 2010-04-12  Jim Meyering  <meyering@redhat.com>
24302
24303         maint.mk: generate more concise timing data for syntax-check rules
24304         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24305         " done" from each line that reports a syntax-check test duration.
24306
24307 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24308
24309         git-version-gen: use "git update-index..." rather than "git status"
24310         * build-aux/git-version-gen: Use git update-index --refresh, not
24311         "git status".  With some versions of git, "git status" would fail
24312         to update the index and result in an unwarranted "-dirty" suffix.
24313
24314 2010-04-11  Jim Meyering  <meyering@redhat.com>
24315
24316         openat: correct formatting (no semantic change)
24317         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24318         Suggested by Bruno Haible.
24319
24320 2010-04-11  Bruno Haible  <bruno@clisp.org>
24321
24322         Stricter declaration checking in testdirs.
24323         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24324         If for_tests is true, augment AM_CPPFLAGS to define
24325         GNULIB_STRICT_CHECKING.
24326         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24327         GNULIB_STRICT_CHECKING is defined, verify that the function is
24328         declared.
24329
24330 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24331             Bruno Haible  <bruno@clisp.org>
24332
24333         libunistring: Improve configure output.
24334         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24335         Don't say "consider installing GNU libunistring" when checking again
24336         with libiconv.
24337
24338 2010-04-11  Bruno Haible  <bruno@clisp.org>
24339
24340         libunistring: Correct value of $LTLIBUNISTRING.
24341         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24342         correct the value of $LTLIBUNISTRING.
24343
24344 2010-04-11  Bruno Haible  <bruno@clisp.org>
24345
24346         havelib: Add static libraries to LIBS in the right order.
24347         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24348         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24349
24350 2010-04-11  Bruno Haible  <bruno@clisp.org>
24351
24352         libunistring: Detect libunistring also when it depends on libiconv.
24353         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24354         the second AC_LIB_HAVE_LINKFLAGS invocation.
24355
24356 2010-04-11  James Youngman  <jay@gnu.org>
24357
24358         close-stream: declare local scalars to be "const"
24359         * lib/close-stream.c (close_stream): Make boolean variables const
24360         to document the fact that we set but do not change them.
24361
24362 2010-04-11  Bruno Haible  <bruno@clisp.org>
24363
24364         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24365
24366 2010-04-11  Jim Meyering  <meyering@redhat.com>
24367
24368         maint.mk: don't include dist-check.mk
24369         * top/maint.mk: Remove bogus include directive.
24370
24371         maint.mk: improve empty-line-at-EOF check
24372         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24373         solution, rather than tail+Perl-based one.  The latter would read
24374         a few kilobytes from the end of each file, and did not handle empty
24375         files properly.
24376
24377         maint.mk: print the elapsed time for each syntax-check rule
24378         * top/maint.mk (sc_m_rules_): Save start time in a file.
24379         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24380         (local-check): Interpose the .z rules
24381
24382 2010-04-11  Jim Meyering  <meyering@redhat.com>
24383
24384         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24385         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24386         empty file with one that ends in an empty line.
24387
24388 2010-04-10  Bruno Haible  <bruno@clisp.org>
24389
24390         mkdir: Make it work on mingw64.
24391         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24392         * lib/mkdir.c: Update comment.
24393         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
24394
24395 2010-04-10  Bruno Haible  <bruno@clisp.org>
24396
24397         Don't override improved macro from newer autoconf.
24398         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24399         autoconf >= 2.62.
24400         Reported by Joel E. Denny <jdenny@clemson.edu>.
24401
24402 2010-04-10  Jim Meyering  <meyering@redhat.com>
24403
24404         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24405         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24406
24407         maint.mk: correct a diagnostic
24408         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24409         in diagnostic; now use $prohibit.
24410
24411 2010-04-10  Bruno Haible  <address@hidden>
24412
24413         fchownat: Fix a C++ test error on Solaris 8.
24414         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24415         the function does not exist.
24416
24417 2010-04-10  Bruno Haible  <bruno@clisp.org>
24418
24419         vasnprintf: Add more tests.
24420         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24421         (test_function): Test converting an invalid wide string.
24422
24423         vasnprintf: Correct handling of unconvertible wide string arguments.
24424         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24425         VASNPRINTF.
24426         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24427         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24428         smaller than the expected maximum need for the directive. Set errno to
24429         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24430         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24431         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24432         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24433         * modules/vasnprintf (Files): Add m4/printf.m4.
24434         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24435
24436 2010-04-10  Bruno Haible  <bruno@clisp.org>
24437
24438         vasnprintf: Fix crash in %ls directive.
24439         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24440         string is passed as argument to %ls, with no precision and no width.
24441         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24442
24443 2010-04-10  Bruno Haible  <bruno@clisp.org>
24444
24445         vasnprintf: Fix multiple test failures on mingw.
24446         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24447         _snprintf, or snwprintf, not _snwprintf.
24448
24449 2010-04-10  Bruno Haible  <bruno@clisp.org>
24450
24451         write: Fix a C++ test error on mingw.
24452         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24453
24454 2010-04-10  Bruno Haible  <bruno@clisp.org>
24455
24456         vasnprintf test: Reduce code duplication.
24457         * tests/test-vasnprintf.c (test_function): New function, extracted from
24458         test_vasnprintf.
24459         (test_vasnprintf, test_asnprintf): Invoke it.
24460
24461 2010-04-10  Bruno Haible  <bruno@clisp.org>
24462
24463         strnlen: Fix warning in C++ mode on MacOS X.
24464         * lib/string.in.h (strnlen): Use the modern idiom.
24465         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24466         defining strnlen as a macro already in <config.h>.
24467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24468         REPLACE_STRNLEN.
24469         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24470         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24471
24472 2010-04-08  James Youngman  <jay@gnu.org>
24473
24474         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24475         the example.
24476
24477 2010-04-09  Jim Meyering  <meyering@redhat.com>
24478
24479         maint.mk: print better diagnostic when there is no $(_hv_file)
24480         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24481         announce that when $(_hv_file) (aka help-version) does not exist.
24482
24483         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24484         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24485         not try to interpret its random input bytes.  Jarno Rajahalme reported
24486         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24487         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24488         (mktempd_): Likewise, just in case.
24489
24490         ftruncate: add two years to projected module removal date: 2012
24491         * m4/ftruncate.m4: Adjust comments.
24492
24493         ftruncate: mark module as obsolete; even MinGW provides it, now
24494         * modules/ftruncate (Status): Obsolete.
24495         (Notice): Say that.
24496         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24497         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24498
24499 2010-04-08  Bruno Haible  <bruno@clisp.org>
24500
24501         Fix side effects from tests-related modules.
24502         * modules/dprintf-posix (Comment): New section.
24503         * modules/fprintf-posix (Comment): Likewise.
24504         * modules/obstack-printf-posix (Comment): Likewise.
24505         * modules/printf-posix (Comment): Likewise.
24506         * modules/snprintf-posix (Comment): Likewise.
24507         * modules/sprintf-posix (Comment): Likewise.
24508         * modules/vasnprintf-posix (Comment): Likewise.
24509         * modules/vasprintf-posix (Comment): Likewise.
24510         * modules/vdprintf-posix (Comment): Likewise.
24511         * modules/vfprintf-posix (Comment): Likewise.
24512         * modules/vprintf-posix (Comment): Likewise.
24513         * modules/vsnprintf-posix (Comment): Likewise.
24514         * modules/vsprintf-posix (Comment): Likewise.
24515         * modules/xprintf-posix (Comment): Likewise.
24516         * modules/xvasprintf-posix (Comment): Likewise.
24517         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24518         * modules/floorf-tests (Depends-on): Likewise.
24519         * modules/round-tests (Depends-on): Likewise.
24520         * modules/roundf-tests (Depends-on): Likewise.
24521         * modules/trunc-tests (Depends-on): Likewise.
24522         * modules/truncf-tests (Depends-on): Likewise.
24523         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24524         'fprintf-posix' module is not present.
24525         * tests/test-floorf2.c (check): Likewise.
24526         * tests/test-trunc2.c (check): Likewise.
24527         * tests/test-truncf2.c (check): Likewise.
24528         * tests/test-round2.c (equal): Likewise.
24529         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24530
24531 2010-04-07  Karl Berry  <karl@gnu.org>
24532
24533         * config/srclist.txt,
24534         * config/srclistvars.sh,
24535         * config/srclist-update: doc fixes.
24536
24537 2010-04-07  Jim Meyering  <meyering@redhat.com>
24538
24539         maint.mk: add a PATH crosschecking syntax-check rule
24540         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24541         Useful if you use a test like the one in help-version (coreutils,
24542         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24543         printed by prog --version.
24544
24545 2010-04-06  Bruno Haible  <bruno@clisp.org>
24546
24547         Fix link error on mingw.
24548         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24549         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24550
24551 2010-04-06  Bruno Haible  <bruno@clisp.org>
24552
24553         Assume rmdir exists.
24554         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24555
24556 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24557
24558         doc: update users.txt
24559         * users.txt: Add gcal.
24560
24561 2010-04-06  Jim Meyering  <meyering@redhat.com>
24562
24563         init.sh: simply unset TMPDIR rather than risking env -i
24564         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24565         although it probably works fine on all Unix-based systems, some
24566         systems (Cygwin?) cannot tolerate a totally cleared environment.
24567         Suggestion from Eric Blake.
24568
24569 2010-04-06  Jim Meyering  <meyering@redhat.com>
24570
24571         init.sh: portability fix: use env's POSIX-specified -i option not -u
24572         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24573         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24574
24575 2010-04-05  Bruno Haible  <bruno@clisp.org>
24576
24577         btowc: Work around Cygwin 1.7.2 bug.
24578         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24579         does not map NUL to 0.
24580         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24581
24582 2010-04-05  Bruno Haible  <bruno@clisp.org>
24583
24584         Make the multithread modules work on Cygwin 1.7.2.
24585         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24586         imported symbols can be declared weak, so that it returns "no" on
24587         Cygwin 1.7.2.
24588
24589 2010-04-05  Bruno Haible  <bruno@clisp.org>
24590
24591         Use the module 'strncat'.
24592         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24593
24594         Tests for module 'strncat'.
24595         * modules/strncat-tests: New file.
24596         * tests/test-strncat.c: New file.
24597
24598         New module 'strncat'.
24599         * lib/string.in.h (strncat): New declaration.
24600         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24601         * m4/strncat.m4: New file, based on m4/memchr.m4.
24602         * modules/strncat: New file.
24603         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24604         is declared.
24605         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24606         REPLACE_STRNCAT.
24607         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24608         REPLACE_STRNCAT.
24609         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24610         module.
24611         * tests/test-string-c++.cc: Check signature of strncat.
24612
24613 2010-04-05  Jim Meyering  <meyering@redhat.com>
24614
24615         xstrtoumax-tests: convert to use init.sh
24616         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24617         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24618         Use Exit, not exit.
24619         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24620
24621         xstrtoimax-tests: convert to use init.sh
24622         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24623         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24624         Use Exit, not exit.
24625         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24626
24627 2010-04-05  Bruno Haible  <bruno@clisp.org>
24628
24629         sys_socket: Avoid #define replacements in C++ mode.
24630         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24631         warning to the function if possible, rather than #defining the symbol
24632         to a dysfunctional alias.
24633
24634 2010-04-05  Bruno Haible  <bruno@clisp.org>
24635
24636         fseeko: Fix C++ test error on mingw.
24637         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24638         gl_FUNC_FSEEKO.
24639         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24640         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24641         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24642         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24643
24644 2010-04-05  Bruno Haible  <bruno@clisp.org>
24645
24646         duplocale: Improve test output.
24647         * tests/test-duplocale.c (main): Print reason for skipped test.
24648
24649 2010-04-05  Bruno Haible  <bruno@clisp.org>
24650
24651         Assume rmdir exists.
24652         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24653         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24654
24655 2010-04-05  Bruno Haible  <bruno@clisp.org>
24656
24657         Fix link error on Solaris 8 with cc.
24658         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24659
24660 2010-04-05  Bruno Haible  <bruno@clisp.org>
24661
24662         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24663         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24664
24665 2010-04-05  Bruno Haible  <bruno@clisp.org>
24666
24667         vasprintf: Update documentation.
24668         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24669
24670 2010-04-05  Bruno Haible  <bruno@clisp.org>
24671
24672         ptsname: Improve test.
24673         * tests/test-ptsname.c (main): Also try the various master names of BSD
24674         systems.
24675
24676 2010-04-05  Bruno Haible  <bruno@clisp.org>
24677
24678         memchr: Avoid a possible C++ test error.
24679         * lib/string.in.h (memchr): Provide declaration if function is missing.
24680         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24681         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24682         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24683         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24684
24685 2010-04-05  Bruno Haible  <bruno@clisp.org>
24686
24687         strtok_r: Improve idiom.
24688         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24689         AC_LIBOBJ is used.
24690
24691 2010-04-05  Bruno Haible  <bruno@clisp.org>
24692
24693         strdup: Improve idiom.
24694         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24695         AC_LIBOBJ is used.
24696         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24697         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24698         when AC_LIBOBJ is used.
24699
24700 2010-04-05  Bruno Haible  <bruno@clisp.org>
24701
24702         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24703         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24704         don't set REPLACE_MBSINIT to 1.
24705         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24706         don't set REPLACE_MBRTOWC to 1.
24707         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24708         exist, don't set REPLACE_MBSRTOWCS to 1.
24709         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24710         exist, don't set REPLACE_MBSNRTOWCS to 1.
24711         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24712         don't set REPLACE_WCRTOMB to 1.
24713         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24714         exist, don't set REPLACE_WCSRTOMBS to 1.
24715         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24716         exist, don't set REPLACE_WCSNRTOMBS to 1.
24717
24718 2010-04-05  Bruno Haible  <bruno@clisp.org>
24719
24720         ldexpl: Improve idiom.
24721         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24722         make sure to set HAVE_DECL_LDEXPL to 0.
24723
24724 2010-04-05  Jim Meyering  <meyering@redhat.com>
24725
24726         xstrtol-tests: convert to use init.sh
24727         * modules/xstrtol-tests (Files): Add tests/init.sh.
24728         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24729         Use Exit, not exit.
24730         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24731
24732         atexit-tests: convert to use init.sh
24733         * modules/atexit-tests (Files): Add tests/init.sh.
24734         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24735         Use Exit, not exit.
24736         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24737
24738         init.sh: fix typo
24739         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24740
24741         init.sh: make it easier for a test script to write to the tty, ...
24742         when using automake's parallel-tests mode.
24743         * tests/init.sh (stderr_fileno_): Define overridable variable.
24744         (warn_): New function, to use it.
24745         (fail_, skip_, framework_failure_): Use warn_.
24746
24747 2010-04-04  Bruno Haible  <bruno@clisp.org>
24748
24749         btowc: Avoid warning.
24750         * lib/btowc.c: Include <stdlib.h>.
24751         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24752
24753 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24754             Bruno Haible  <bruno@clisp.org>
24755
24756         wchar: Port to NetBSD 1.5.
24757         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24758         * lib/wctype.in.h (WEOF): Likewise.
24759
24760 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24761             Bruno Haible  <bruno@clisp.org>
24762
24763         Port extended stdio to NetBSD 1.5.
24764         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24765         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24766         older.
24767
24768 2010-04-04  Bruno Haible  <bruno@clisp.org>
24769
24770         string: Remove unused substitution.
24771         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24772         HAVE_DECL_STRERROR.
24773         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24774
24775 2010-04-04  Bruno Haible  <bruno@clisp.org>
24776
24777         strtod: Avoid a possible C++ test error.
24778         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24779         set REPLACE_STRTOD.
24780
24781 2010-04-04  Bruno Haible  <bruno@clisp.org>
24782
24783         strerror: Update documentation.
24784         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24785
24786 2010-04-04  Bruno Haible  <bruno@clisp.org>
24787
24788         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24789         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24790         _GL_CXXALIAS_SYS_CAST.
24791
24792 2010-04-04  Bruno Haible  <bruno@clisp.org>
24793
24794         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24795         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24796         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24797         REPLACE_FREXPL to 1.
24798         * doc/posix-functions/frexpl.texi: Update documentation.
24799
24800 2010-04-04  Bruno Haible  <bruno@clisp.org>
24801
24802         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24803         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24804
24805 2010-04-04  Bruno Haible  <bruno@clisp.org>
24806
24807         Implement nanosleep for native Windows.
24808         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24809
24810 2010-04-04  Bruno Haible  <bruno@clisp.org>
24811
24812         math: Fix some C++ test errors on Solaris 8.
24813         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24814
24815 2010-04-04  Bruno Haible  <bruno@clisp.org>
24816
24817         math: Fix some C++ test errors on Cygwin.
24818         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24819         truncl): Provide declaration if the system does not have it.
24820         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24821         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24822         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24823         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24824         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24825         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24826         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24827         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24828         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24829         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24830         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24831         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24832         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24833         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24834         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24835         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24837         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24838         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24839         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24840         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24841         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24842
24843 2010-04-04  Bruno Haible  <bruno@clisp.org>
24844
24845         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24846         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24847         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24848         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24849         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24850         * m4/isinf.m4 (gl_ISINF): Likewise.
24851         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24852
24853 2010-04-04  Bruno Haible  <bruno@clisp.org>
24854
24855         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24856         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24857
24858 2010-04-04  Bruno Haible  <bruno@clisp.org>
24859
24860         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24861         * modules/tmpfile (configure.ac): Update.
24862
24863         tmpfile: Fix C++ test error on mingw.
24864         * lib/stdio.in.h (tmpfile): New declaration.
24865         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24866         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24867         * modules/tmpfile (Depends-on): Add stdio.
24868         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24869         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24870         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24871         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24872         REPLACE_TMPFILE.
24873         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24874
24875 2010-04-04  Bruno Haible  <bruno@clisp.org>
24876
24877         ioctl: Fix C++ test error on mingw.
24878         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24879         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24880         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24881
24882 2010-04-03  Bruno Haible  <bruno@clisp.org>
24883
24884         wcwidth: Fix C++ test error on mingw.
24885         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24886         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24887         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24888
24889 2010-04-03  Bruno Haible  <bruno@clisp.org>
24890
24891         nanosleep: Fix C++ test error on mingw.
24892         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24893         * lib/time.in.h (nanosleep): Use modern idiom.
24894         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24895         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24896         REPLACE_NANOSLEEP to 1.
24897         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24898         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24899
24900 2010-04-03  Bruno Haible  <bruno@clisp.org>
24901
24902         strptime: Fix C++ test error on mingw.
24903         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24904         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24905         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24906         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24907         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24908         not REPLACE_STRPTIME.
24909         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24910         REPLACE_STRPTIME.
24911
24912 2010-04-03  Bruno Haible  <bruno@clisp.org>
24913
24914         timegm: Fix C++ test error on mingw.
24915         * lib/time.in.h (timegm): Use modern idiom.
24916         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24917         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24918         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24919         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24920
24921 2010-04-03  Bruno Haible  <bruno@clisp.org>
24922
24923         timegm: Assume declaration if function exists.
24924         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24925         if it exists. Don't clobber ac_cv_func_timegm.
24926
24927 2010-04-03  Bruno Haible  <bruno@clisp.org>
24928
24929         time_r: Fix C++ test error on mingw.
24930         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24931         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24932         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24933         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24934         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24935
24936 2010-04-03  Bruno Haible  <bruno@clisp.org>
24937
24938         time_r: Minor updates.
24939         * modules/time_r (Description): Mention the provided functions.
24940         * lib/time_r.c: Don't include <string.h>.
24941         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24942         * doc/posix-functions/localtime_r.texi: Likewise.
24943
24944 2010-04-03  Bruno Haible  <bruno@clisp.org>
24945
24946         time: Fix regression introduced on 2010-03-08.
24947         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24948         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24949
24950 2010-04-03  Jim Meyering  <meyering@redhat.com>
24951
24952         maint.mk: don't silently disable project-specific syntax-check rules
24953         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24954         that they need to convert their project-specific syntax-check rules
24955         to use the new _sc_search_regexp.
24956
24957 2010-04-03  Bruno Haible  <bruno@clisp.org>
24958
24959         fchdir: Fix regression introduced on 2010-03-08.
24960         * lib/unistd.in.h (fchdir): Fix declaration.
24961         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24963         REPLACE_FCHDIR.
24964         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24965         REPLACE_FCHDIR.
24966
24967 2010-04-03  Bruno Haible  <bruno@clisp.org>
24968
24969         getpagesize: Fix C++ test error on mingw.
24970         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24971         system does not declare the function.
24972         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24973         declared.
24974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24975         HAVE_DECL_GETPAGESIZE.
24976         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24977
24978 2010-04-03  Bruno Haible  <bruno@clisp.org>
24979
24980         stdio: Make C++ tests work on mingw.
24981         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24982         does not declare the function.
24983
24984 2010-04-03  Bruno Haible  <bruno@clisp.org>
24985
24986         ftello: Fix C++ test error on mingw.
24987         * lib/stdio.in.h (ftello): Use modern idiom.
24988         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24989         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24990         is missing and that it needs to be replaced.
24991         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24992         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24993         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24994
24995 2010-04-03  Bruno Haible  <bruno@clisp.org>
24996
24997         fseeko: Fix C++ test error on mingw.
24998         * lib/stdio.in.h (fseeko): Use modern idiom.
24999         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25000         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25001         is missing and that it needs to be replaced.
25002         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25004         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25005
25006 2010-04-03  Bruno Haible  <bruno@clisp.org>
25007
25008         mkstemp: Fix C++ test error on mingw.
25009         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25010         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25011         function is missing and that it needs to be replaced.
25012         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25013         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25014
25015 2010-04-03  Bruno Haible  <bruno@clisp.org>
25016
25017         stpncpy: Fix C++ test error on mingw.
25018         * lib/string.in.h (stpncpy): Use modern idiom.
25019         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25020         function is missing and that it needs to be replaced.
25021         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25022         REPLACE_STPNCPY.
25023         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25024
25025 2010-04-03  Bruno Haible  <bruno@clisp.org>
25026
25027         sys_stat: Fix C++ test error on mingw.
25028         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25029         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25030
25031 2010-04-03  Bruno Haible  <bruno@clisp.org>
25032
25033         pty: Update doc.
25034         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25035
25036 2010-04-03  Bruno Haible  <bruno@clisp.org>
25037
25038         unistd: Fix C++ test error on mingw.
25039         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25040
25041 2010-04-03  Bruno Haible  <bruno@clisp.org>
25042
25043         Update doc regarding mingw.
25044         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25045         * doc/glibc-functions/login_tty.texi: Likewise.
25046         * doc/glibc-functions/forkpty.texi: Likewise.
25047
25048 2010-04-03  Bruno Haible  <bruno@clisp.org>
25049
25050         stdlib: Avoid compilation failure of c-strtold on mingw.
25051         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25052
25053 2010-04-03  Bruno Haible  <bruno@clisp.org>
25054
25055         locale: Make C++ tests work on Cygwin and mingw.
25056         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25057         cannot provide the function.
25058         Reported by Simon Josefsson.
25059
25060 2010-04-03  Bruno Haible  <bruno@clisp.org>
25061
25062         localename: Port to MacOS X 10.6.
25063         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25064         memory layout of the locales in MacOS X 10.6 as well.
25065         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25066
25067 2010-04-02  Bruno Haible  <bruno@clisp.org>
25068
25069         gnulib-tool: Ensure that long-running tests are executed last.
25070         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25071         running tests after the one for the other tests.
25072
25073 2010-04-02  Bruno Haible  <bruno@clisp.org>
25074
25075         gnulib-tool: Ensure the tests in the main directory are executed first.
25076         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25077         start with the current directory.
25078
25079 2010-04-02  Bruno Haible  <bruno@clisp.org>
25080
25081         Tests for module 'havelib', moved here from GNU gettext.
25082         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25083         modifications.
25084         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25085         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25086         with modifications.
25087         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25088         modifications.
25089         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25090         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25091         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25092         with modifications.
25093         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25094         with modifications.
25095         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25096         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25097         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25098         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25099         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25100         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25101         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25102         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25103         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25104         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25105         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25106         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25107         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25108         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25109         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25110         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25111         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25112         with modifications.
25113         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25114         with modifications.
25115         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25116         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25117         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25118         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25119         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25120         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25121         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25122         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25123         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25124         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25125         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25126         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25127         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25128         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25129         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25130         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25131         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25132         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25133         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25134         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25135         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25136         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25137         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25138         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25139         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25140         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25141         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25142         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25143         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25144         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25145         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25146         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25147         * tests/havelib/rpathx/rpathx.c: New file, from
25148         gettext/autoconf-lib-link.
25149         * tests/havelib/rpathx/Makefile.am: New file, from
25150         gettext/autoconf-lib-link.
25151         * tests/havelib/rpathx/configure.ac: New file, from
25152         gettext/autoconf-lib-link with modifications.
25153         * tests/havelib/rpathy/rpathy.c: New file, from
25154         gettext/autoconf-lib-link.
25155         * tests/havelib/rpathy/Makefile.am: New file, from
25156         gettext/autoconf-lib-link.
25157         * tests/havelib/rpathy/configure.ac: New file, from
25158         gettext/autoconf-lib-link with modifications.
25159         * tests/havelib/rpathz/rpathz.c: New file, from
25160         gettext/autoconf-lib-link.
25161         * tests/havelib/rpathz/Makefile.am: New file, from
25162         gettext/autoconf-lib-link.
25163         * tests/havelib/rpathz/configure.ac: New file, from
25164         gettext/autoconf-lib-link with modifications.
25165         * tests/havelib/rpathlx/usex.c: New file, from
25166         gettext/autoconf-lib-link.
25167         * tests/havelib/rpathlx/Makefile.am: New file, from
25168         gettext/autoconf-lib-link.
25169         * tests/havelib/rpathlx/configure.ac: New file, from
25170         gettext/autoconf-lib-link with modifications.
25171         * tests/havelib/rpathly/usey.c: New file, from
25172         gettext/autoconf-lib-link.
25173         * tests/havelib/rpathly/Makefile.am: New file, from
25174         gettext/autoconf-lib-link.
25175         * tests/havelib/rpathly/configure.ac: New file, from
25176         gettext/autoconf-lib-link with modifications.
25177         * tests/havelib/rpathlz/usez.c: New file, from
25178         gettext/autoconf-lib-link.
25179         * tests/havelib/rpathlz/Makefile.am: New file, from
25180         gettext/autoconf-lib-link.
25181         * tests/havelib/rpathlz/configure.ac: New file, from
25182         gettext/autoconf-lib-link with modifications.
25183         * tests/havelib/rpathlyx/usey.c: New file, from
25184         gettext/autoconf-lib-link.
25185         * tests/havelib/rpathlyx/Makefile.am: New file, from
25186         gettext/autoconf-lib-link.
25187         * tests/havelib/rpathlyx/configure.ac: New file, from
25188         gettext/autoconf-lib-link with modifications.
25189         * tests/havelib/rpathlzyx/usez.c: New file, from
25190         gettext/autoconf-lib-link.
25191         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25192         gettext/autoconf-lib-link.
25193         * tests/havelib/rpathlzyx/configure.ac: New file, from
25194         gettext/autoconf-lib-link with modifications.
25195         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25196         with modifications.
25197
25198 2010-04-02  Bruno Haible  <bruno@clisp.org>
25199
25200         gnulib-tool: Create distributed built sources also for the tests.
25201         * gnulib-tool (func_create_testdir): Also generate distributed built
25202         sources in the tests directory.
25203
25204 2010-04-02  Bruno Haible  <bruno@clisp.org>
25205
25206         gnulib-tool: Obey user's environment variables.
25207         * gnulib-tool (func_create_testdir): When creating built sources,
25208         respect the environment variables for autoconf, automake, etc. given by
25209         the user.
25210
25211 2010-04-02  Bruno Haible  <bruno@clisp.org>
25212
25213         gnulib-tool: Provide the value of --m4-base to modules.
25214         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25215         of gl_m4_base.
25216
25217 2010-04-02  Eric Blake  <eblake@redhat.com>
25218
25219         maint.mk: fix some fallout
25220         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25221         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25222
25223 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25224
25225         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25226         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25227         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25228         (sc_cast_of_x_alloc_return_value): Likewise.
25229         (sc_cast_of_alloca_return_value): Likewise.
25230         (sc_space_tab): Likewise.
25231         (sc_prohibit_atoi_atof): Likewise.
25232         (sc_prohibit_magic_number_exit): Likewise.
25233         (sc_error_exit_success): Likewise.
25234         (sc_file_system): Likewise.
25235         (sc_prohibit_have_config_h): Likewise.
25236         (sc_require_config_h): Likewise.
25237         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25238         (sc_obsolete_symbols): Likewise.
25239         (sc_changelog): Likewise.
25240         (sc_program_name): Likewise.
25241         (sc_the_the): Likewise.
25242         (sc_trailing_blank): Likewise.
25243         (sc_two_space_separator_in_usage): Likewise.
25244         (sc_useless_cpp_parens): Likewise.
25245         (sc_GPL_version): Likewise.
25246         (sc_GFDL_version): Likewise.
25247         (sc_texinfo_acronym): Likewise.
25248         (sc_prohibit_cvs_keyword): Likewise.
25249         (sc_prohibit_stat_st_blocks): Likewise.
25250         (sc_prohibit_S_IS_definition): Likewise.
25251         (sc_redundant_const): Likewise.
25252         (sc_makefile_TAB_only_indentation): Likewise.
25253         (sc_m4_quote_check): Likewise.
25254         (sc_makefile_path_separator_check): Likewise.
25255         (sc_copyright_check): Likewise.
25256         (sc_Wundef_boolean): Likewise.
25257         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25258
25259         maint.mk: match 0 or more whitespace-before-function-call '('
25260         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25261         that have zero or two-and-more spaces between the function name
25262         and the open parenthesis.
25263         (sc_error_message_warn_fatal): Likewise.
25264         (sc_error_message_uppercase): Likewise.
25265         (sc_error_message_period): Likewise.
25266
25267 2010-03-31  Eric Blake  <eblake@redhat.com>
25268
25269         maint.mk: check for [ as well as test
25270         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25271         Based on a libvirt report by Matthias Bolte.
25272
25273         gnumakefile: don't squelch _version output
25274         * top/GNUmakefile (_version): Create one-shot dependency rather
25275         than using $(shell) when version must be regenerated.
25276         (_autoreconf): Run verbosely, by default.
25277
25278         sys_time: avoid compiler warnings
25279         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25280         unconditional, fixing regression from 2010-03-29.
25281         Reported by Simon Josefsson.
25282
25283 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25284
25285         maint.mk: s/_header_without_use/_sc_header_without_use/
25286         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25287         (sc_prohibit_assert_without_use): Use the new name.
25288         (sc_prohibit_close_stream_without_use): Likewise.
25289         (sc_prohibit_getopt_without_use): Likewise.
25290         (sc_prohibit_quotearg_without_use): Likewise.
25291         (sc_prohibit_quote_without_use): Likewise.
25292         (sc_prohibit_long_options_without_use): Likewise.
25293         (sc_prohibit_inttostr_without_use): Likewise.
25294         (sc_prohibit_ignore_value_without_use): Likewise.
25295         (sc_prohibit_error_without_use): Likewise.
25296         (sc_prohibit_xalloc_without_use): Likewise.
25297         (sc_prohibit_hash_without_use): Likewise.
25298         (sc_prohibit_hash_pjw_without_use): Likewise.
25299         (sc_prohibit_safe_read_without_use): Likewise.
25300         (sc_prohibit_argmatch_without_use): Likewise.
25301         (sc_prohibit_canonicalize_without_use): Likewise.
25302         (sc_prohibit_root_dev_ino_without_use): Likewise.
25303         (sc_prohibit_openat_without_use): Likewise.
25304         (sc_prohibit_c_ctype_without_use): Likewise.
25305         (sc_prohibit_signal_without_use): Likewise.
25306         (sc_prohibit_intprops_without_use): Likewise.
25307
25308 2010-03-30  Eric Blake  <eblake@redhat.com>
25309
25310         maint: improve module indicators
25311         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25312         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25313         columns, and avoid extra macro expansion.
25314
25315         fdopendir: work around FreeBSD bug
25316         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25317         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25318         * modules/dirent (Makefile.am): Substitute it.
25319         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25320         declaration.
25321         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25322         fix.
25323         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25324
25325 2010-03-29  Bruno Haible  <bruno@clisp.org>
25326
25327         Emit #pragma system_header after the inclusion guard, not before.
25328         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25329         guard that spans the entire file, not before. This enables an
25330         optimization in GCC's preprocessor.
25331         * lib/ctype.in.h: Likewise.
25332         * lib/dirent.in.h: Likewise.
25333         * lib/errno.in.h: Likewise.
25334         * lib/float.in.h: Likewise.
25335         * lib/getopt.in.h: Likewise.
25336         * lib/iconv.in.h: Likewise.
25337         * lib/langinfo.in.h: Likewise.
25338         * lib/locale.in.h: Likewise.
25339         * lib/math.in.h: Likewise.
25340         * lib/netdb.in.h: Likewise.
25341         * lib/netinet_in.in.h: Likewise.
25342         * lib/pty.in.h: Likewise.
25343         * lib/sched.in.h: Likewise.
25344         * lib/se-selinux.in.h: Likewise.
25345         * lib/search.in.h: Likewise.
25346         * lib/spawn.in.h: Likewise.
25347         * lib/stdarg.in.h: Likewise.
25348         * lib/stdint.in.h: Likewise.
25349         * lib/string.in.h: Likewise.
25350         * lib/strings.in.h: Likewise.
25351         * lib/sys_file.in.h: Likewise.
25352         * lib/sys_ioctl.in.h: Likewise.
25353         * lib/sys_time.in.h: Likewise.
25354         * lib/sys_times.in.h: Likewise.
25355         * lib/sys_utsname.in.h: Likewise.
25356         * lib/sys_wait.in.h: Likewise.
25357         * lib/sysexits.in.h: Likewise.
25358         * lib/wctype.in.h: Likewise.
25359
25360 2010-03-28  James Youngman  <jay@gnu.org>
25361
25362         save-cwd: don't leak a file descriptor when the caller execs.
25363         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25364         saved file descriptor.
25365         * modules/save-cwd (Depends-on): Depend on cloexec.
25366
25367 2010-03-29  Bruno Haible  <bruno@clisp.org>
25368
25369         Remove vestiges of fts-lgpl module.
25370         * lib/fts_.h: Assume GNULIB_FTS is 1.
25371         * lib/fts.c: Likewise.
25372         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25373
25374 2010-03-28  Bruno Haible  <bruno@clisp.org>
25375
25376         Fix definition of tests witness macro.
25377         * gnulib-tool (func_import): Fix definition of witness macro.
25378
25379 2010-03-28  Bruno Haible  <bruno@clisp.org>
25380
25381         Fix ioctl's protoype on glibc systems.
25382         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25383         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25384         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25385         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25386         signature. If not, arrange to replace the ioctl function.
25387         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25388         REPLACE_IOCTL.
25389         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25390         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25391         Reported by Ludovic Courtès <ludo@gnu.org>.
25392
25393 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25394
25395         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25396         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25397         made it so grep -r --include=GLOB* ... did not work.
25398
25399 2010-03-26  Jim Meyering  <meyering@redhat.com>
25400             Eric Blake  <eblake@redhat.com>
25401
25402         maint.mk: prohibit use of test's -o and -a operators
25403         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25404
25405 2010-03-28  Bruno Haible  <bruno@clisp.org>
25406
25407         Remove unused GNULIB_XYZ macro definitions.
25408         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25409         invocation.
25410
25411 2010-03-28  Bruno Haible  <bruno@clisp.org>
25412
25413         Mark privileged tests modules.
25414         * modules/idpriv-drop-tests (Status): New section.
25415         * modules/idpriv-droptemp-tests (Status): New section.
25416
25417 2010-03-28  Bruno Haible  <bruno@clisp.org>
25418
25419         Split C++ tests into separate tests modules.
25420         * modules/dirent-c++-tests: New file, extracted from
25421         modules/dirent-tests.
25422         * modules/dirent-tests: Depend on it.
25423         * modules/fcntl-h-c++-tests: New file, extracted from
25424         modules/fcntl-h-tests.
25425         * modules/fcntl-h-tests: Depend on it.
25426         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25427         * modules/glob-tests: Depend on it.
25428         * modules/iconv-h-c++-tests: New file, extracted from
25429         modules/iconv-h-tests.
25430         * modules/iconv-h-tests: Depend on it.
25431         * modules/langinfo-c++-tests: New file, extracted from
25432         modules/langinfo-tests.
25433         * modules/langinfo-tests: Depend on it.
25434         * modules/locale-c++-tests: New file, extracted from
25435         modules/locale-tests.
25436         * modules/locale-tests: Depend on it.
25437         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25438         * modules/math-tests: Depend on it.
25439         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25440         * modules/pty-tests: Depend on it.
25441         * modules/search-c++-tests: New file, extracted from
25442         modules/search-tests.
25443         * modules/search-tests: Depend on it.
25444         * modules/signal-c++-tests: New file, extracted from
25445         modules/signal-tests.
25446         * modules/signal-tests: Depend on it.
25447         * modules/spawn-c++-tests: New file, extracted from
25448         modules/spawn-tests.
25449         * modules/spawn-tests: Depend on it.
25450         * modules/stdio-c++-tests: New file, extracted from
25451         modules/stdio-tests.
25452         * modules/stdio-tests: Depend on it.
25453         * modules/stdlib-c++-tests: New file, extracted from
25454         modules/stdlib-tests.
25455         * modules/stdlib-tests: Depend on it.
25456         * modules/string-c++-tests: New file, extracted from
25457         modules/string-tests.
25458         * modules/string-tests: Depend on it.
25459         * modules/sys_ioctl-c++-tests: New file, extracted from
25460         modules/sys_ioctl-tests.
25461         * modules/sys_ioctl-tests: Depend on it.
25462         * modules/sys_select-c++-tests: New file, extracted from
25463         modules/sys_select-tests.
25464         * modules/sys_select-tests: Depend on it.
25465         * modules/sys_socket-c++-tests: New file, extracted from
25466         modules/sys_socket-tests.
25467         * modules/sys_socket-tests: Depend on it.
25468         * modules/sys_stat-c++-tests: New file, extracted from
25469         modules/sys_stat-tests.
25470         * modules/sys_stat-tests: Depend on it.
25471         * modules/sys_time-c++-tests: New file, extracted from
25472         modules/sys_time-tests.
25473         * modules/sys_time-tests: Depend on it.
25474         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25475         * modules/time-tests: Depend on it.
25476         * modules/unistd-c++-tests: New file, extracted from
25477         modules/unistd-tests.
25478         * modules/unistd-tests: Depend on it.
25479         * modules/wchar-c++-tests: New file, extracted from
25480         modules/wchar-tests.
25481         * modules/wchar-tests: Depend on it.
25482         * modules/wctype-c++-tests: New file, extracted from
25483         modules/wctype-tests.
25484         * modules/wctype-tests: Depend on it.
25485         Reported by Simon Josefsson.
25486
25487 2010-03-28  Bruno Haible  <bruno@clisp.org>
25488
25489         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25490         * gnulib-tool (func_exists_module): New function, extracted from
25491         func_verify_module.
25492         (func_verify_module): Use it.
25493         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25494         'foo' only if 'foo' exists.
25495         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25496         module.
25497
25498 2010-03-28  Bruno Haible  <bruno@clisp.org>
25499
25500         gnulib-tool: Add support for special categories of tests.
25501         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25502         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25503         (func_usage): Document them.
25504         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25505         inc_unportable_tests, inc_all_tests): New variables.
25506         (func_acceptable): Consider these variables.
25507         (func_modules_transitive_closure): Make it work when the 'Status' field
25508         consists of multiple words.
25509         (func_import): Store and restore the values of inc_cxx_tests,
25510         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25511         inc_all_tests in gnulib-comp.m4.
25512         (func_create_testdir): Set inc_all_tests to true.
25513         * doc/gnulib.texi (Extra tests modules): New section.
25514         Suggested by Jim Meyering.
25515
25516 2010-03-28  Bruno Haible  <bruno@clisp.org>
25517
25518         ansi-c++-opt: Allow turning off the C++ build by default.
25519         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25520         gl_CXX_CHOICE_DEFAULT_NO is defined.
25521         Requested by Eric Blake.
25522
25523 2010-03-28  Bruno Haible  <bruno@clisp.org>
25524
25525         unistd: Avoid #define replacements in C++ mode.
25526         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25527         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25528         setsockopt, shutdown, select): In C++, attach a warning to the function
25529         if possible, rather than #defining the symbol to a dysfunctional alias.
25530         Reported by John W. Eaton <jwe@gnu.org>.
25531
25532 2010-03-28  Bruno Haible  <bruno@clisp.org>
25533
25534         Fix link errors on mingw.
25535         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25536         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25537         $(LIBSOCKET).
25538         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25539         $(LIBSOCKET).
25540
25541 2010-03-28  Bruno Haible  <bruno@clisp.org>
25542             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25543
25544         lib-ignore: Determine different options for different compilers.
25545         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25546         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25547         Add comments.
25548         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25549         * NEWS: Mention the change.
25550
25551 2010-03-27  Bruno Haible  <bruno@clisp.org>
25552
25553         Remove unused GNULIB_XYZ macro definitions.
25554         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25555         * modules/fseek (configure.ac): Likewise.
25556         * modules/ioctl (configure.ac): Likewise.
25557         * modules/open (configure.ac): Likewise.
25558         * modules/stdlib-safer (configure.ac): Likewise.
25559
25560 2010-03-27  Bruno Haible  <bruno@clisp.org>
25561
25562         Add a remark about certain modules.
25563         * modules/malloc (Comment): New section.
25564         * modules/realloc (Comment): Likewise.
25565         * modules/sigpipe (Comment): Likewise.
25566
25567 2010-03-27  Bruno Haible  <bruno@clisp.org>
25568
25569         Resolve conflict between the two kinds of module indicators.
25570         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25571         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25572         * modules/canonicalize (configure.ac): Invoke
25573         gl_MODULE_INDICATOR_FOR_TESTS.
25574         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25575         GNULIB_XYZ.
25576         * tests/test-dirent-c++.cc: Likewise.
25577         * tests/test-dirent-safer.c: Likewise.
25578         * tests/test-dup2.c: Likewise.
25579         * tests/test-fchdir.c: Likewise.
25580         * tests/test-fcntl-h-c++.cc: Likewise.
25581         * tests/test-getopt.c: Likewise.
25582         * tests/test-getopt.h: Likewise.
25583         * tests/test-langinfo-c++.cc: Likewise.
25584         * tests/test-locale-c++.cc: Likewise.
25585         * tests/test-math-c++.cc: Likewise.
25586         * tests/test-pty-c++.cc: Likewise.
25587         * tests/test-search-c++.cc: Likewise.
25588         * tests/test-signal-c++.cc: Likewise.
25589         * tests/test-spawn-c++.cc: Likewise.
25590         * tests/test-stdio-c++.cc: Likewise.
25591         * tests/test-stdlib-c++.cc: Likewise.
25592         * tests/test-string-c++.cc: Likewise.
25593         * tests/test-sys_ioctl-c++.cc: Likewise.
25594         * tests/test-sys_select-c++.cc: Likewise.
25595         * tests/test-sys_socket-c++.cc: Likewise.
25596         * tests/test-sys_stat-c++.cc: Likewise.
25597         * tests/test-sys_time-c++.cc: Likewise.
25598         * tests/test-time-c++.cc: Likewise.
25599         * tests/test-unistd-c++.cc: Likewise.
25600         * tests/test-wchar-c++.cc: Likewise.
25601         * tests/uninorm/test-u8-nfc.c: Likewise.
25602         * tests/uninorm/test-u8-nfd.c: Likewise.
25603         * tests/uninorm/test-u8-nfkc.c: Likewise.
25604         * tests/uninorm/test-u8-nfkd.c: Likewise.
25605         * tests/uninorm/test-u16-nfc.c: Likewise.
25606         * tests/uninorm/test-u16-nfd.c: Likewise.
25607         * tests/uninorm/test-u16-nfkc.c: Likewise.
25608         * tests/uninorm/test-u16-nfkd.c: Likewise.
25609         * tests/uninorm/test-u32-nfc.c: Likewise.
25610         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25611         * tests/uninorm/test-u32-nfd.c: Likewise.
25612         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25613         * tests/uninorm/test-u32-nfkc.c: Likewise.
25614         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25615         * tests/uninorm/test-u32-nfkd.c: Likewise.
25616         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25617         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25618
25619 2010-03-27  Bruno Haible  <bruno@clisp.org>
25620
25621         Distinguish two kinds of module indicators.
25622         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25623         gl_MODULE_INDICATOR.
25624         (gl_MODULE_INDICATOR): New macro.
25625         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25626         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25627         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25628         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25629         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25630         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25631         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25632         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25633         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25634         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25635         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25636         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25637         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25638         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25639         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25640         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25641         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25642         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25643         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25644         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25645         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25646         * modules/cloexec (configure.ac): Likewise.
25647         * modules/getopt-gnu (configure.ac): Likewise.
25648         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25649         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25650         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25651         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25652
25653 2010-03-27  Bruno Haible  <bruno@clisp.org>
25654
25655         New module description field 'Comment'.
25656         * gnulib-tool: New option --extract-comment.
25657         (func_usage): Document it.
25658         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25659         (func_get_comment): New function.
25660         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25661
25662 2010-03-27  Bruno Haible  <bruno@clisp.org>
25663
25664         Addendum to 2010-02-07 commit.
25665         * gnulib-tool (func_usage): Document --extract-applicability option.
25666
25667 2010-03-27  Bruno Haible  <bruno@clisp.org>
25668
25669         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25670         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25671         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25672         rather than link errors.
25673
25674 2010-03-27  Bruno Haible  <bruno@clisp.org>
25675
25676         Avoid side effects from tests-related modules on the compilation of lib.
25677         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25678         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25679         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25680         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25681         macro.
25682         (func_import): Define a witness macro. Assign it a value that depends
25683         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25684         tests-related modules.
25685         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25686         Reported by Jim Meyering.
25687
25688 2010-03-27  Bruno Haible  <bruno@clisp.org>
25689
25690         Factorize common .m4 code.
25691         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25692         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25693         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25694         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25695         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25696         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25697         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25698         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25699         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25700         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25701         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25702         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25703         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25704         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25705         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25706         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25707         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25708         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25709         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25710         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25711         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25712         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25713         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25714         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25715         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25716         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25717         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25718         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25719         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25720         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25721         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25722         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25723
25724 2010-03-27  Bruno Haible  <bruno@clisp.org>
25725
25726         Fix a compilation error on Cygwin with g++ >= 4.3.
25727         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25728         if it is undefined or if we alias it to chmod.
25729         (lstat): Don't warn about the use of this function if it is undefined
25730         or if we alias it to stat.
25731         Reported by Simon Josefsson.
25732
25733 2010-03-27  Bruno Haible  <bruno@clisp.org>
25734
25735         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25736         * modules/getlogin (configure.ac): Update.
25737
25738         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25739         * modules/getlogin_r (configure.ac): Update.
25740
25741         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25742         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25743         * modules/inet_ntop (configure.ac): Update.
25744
25745         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25746         * modules/inet_pton (configure.ac): Update.
25747
25748         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25749         * modules/mbslen (configure.ac): Update.
25750
25751         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25752         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25753         * modules/forkpty (configure.ac): Update.
25754         * modules/openpty (configure.ac): Update.
25755
25756 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25757
25758         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25759         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25760
25761 2010-03-25  Eric Blake  <eblake@redhat.com>
25762
25763         maint: use pragma consistently across replacement headers
25764         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25765         * lib/dirent.in.h (system_header): Likewise.
25766         * lib/errno.in.h (system_header): Likewise.
25767         * lib/float.in.h (system_header): Likewise.
25768         * lib/getopt.in.h (system_header): Likewise.
25769         * lib/iconv.in.h (system_header): Likewise.
25770         * lib/inttypes.in.h (system_header): Likewise.
25771         * lib/langinfo.in.h (system_header): Likewise.
25772         * lib/locale.in.h (system_header): Likewise.
25773         * lib/math.in.h (system_header): Likewise.
25774         * lib/netdb.in.h (system_header): Likewise.
25775         * lib/netinet_in.in.h (system_header): Likewise.
25776         * lib/pty.in.h (system_header): Likewise.
25777         * lib/sched.in.h (system_header): Likewise.
25778         * lib/se-selinux.in.h (system_header): Likewise.
25779         * lib/search.in.h (system_header): Likewise.
25780         * lib/spawn.in.h (system_header): Likewise.
25781         * lib/stdarg.in.h (system_header): Likewise.
25782         * lib/stdint.in.h (system_header): Likewise.
25783         * lib/string.in.h (system_header): Likewise.
25784         * lib/strings.in.h (system_header): Likewise.
25785         * lib/sys_file.in.h (system_header): Likewise.
25786         * lib/sys_ioctl.in.h (system_header): Likewise.
25787         * lib/sys_socket.in.h (system_header): Likewise.
25788         * lib/sys_times.in.h (system_header): Likewise.
25789         * lib/sys_utsname.in.h (system_header): Likewise.
25790         * lib/sys_wait.in.h (system_header): Likewise.
25791         * lib/sysexits.in.h (system_header): Likewise.
25792         * lib/unistd.in.h (system_header): Likewise.
25793         * lib/wctype.in.h (system_header): Likewise.
25794
25795         arpa/inet: fix mingw compilation warning
25796         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25797         Reported by Matthew Bolte.
25798
25799 2010-03-25  Bruno Haible  <bruno@clisp.org>
25800
25801         Avoid collision between gnulib wrapper and libintl wrapper.
25802         * lib/printf.c (printf): Don't define if a printf wrapper is already
25803         defined in intl/printf.c.
25804         Reported by Michel Boaventura <michel@michelboaventura.com>.
25805
25806 2010-03-25  Bruno Haible  <bruno@clisp.org>
25807
25808         Use ANSI C.
25809         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25810
25811 2010-03-25  Bruno Haible  <bruno@clisp.org>
25812
25813         Minor formatting changes.
25814         * lib/acosl.c: Insert space before function argument list.
25815         * lib/argz.c: Likewise.
25816         * lib/asinl.c: Likewise.
25817         * lib/expl.c: Likewise.
25818         * lib/gen-uni-tables.c: Likewise.
25819         * lib/gettext.h: Likewise.
25820         * lib/glthread/lock.h: Likewise.
25821         * lib/tanl.c: Likewise.
25822         * lib/uniname/uniname.c: Likewise.
25823         * tests/test-idpriv-drop.c: Likewise.
25824         * tests/test-idpriv-droptemp.c: Likewise.
25825         * tests/test-lock.c: Likewise.
25826         * tests/test-tls.c: Likewise.
25827         * lib/argp-help.c: Insert space before function-like macro argument
25828         list.
25829         * lib/memcmp.c: Likewise.
25830         * tests/test-base64.c: Likewise.
25831         * lib/localename.c: Insert space before sizeof's argument list.
25832         * lib/safe-alloc.h: Likewise.
25833         * lib/file-set.h: Insert space before macro argument list.
25834         * tests/test-argp.c: Likewise.
25835         * lib/argp-namefrob.h: Insert space before function parameter list.
25836         * lib/getaddrinfo.c: Likewise.
25837         * lib/netdb.in.h: Likewise.
25838         * lib/parse-duration.h: Likewise.
25839         * lib/parse-duration.c: Likewise.
25840         * lib/poll.c: Likewise.
25841         * lib/select.c: Likewise.
25842         * lib/trim.h: Likewise.
25843         * tests/test-usleep.c: Likewise.
25844         * lib/ldexpl.c: Insert space before function parameter list and before
25845         function argument list.
25846         * lib/logl.c: Likewise.
25847         * lib/sqrtl.c: Likewise.
25848         * lib/trim.c: Likewise.
25849         * lib/cosl.c: Use GNU style indentation. Insert space before function
25850         argument list.
25851         * lib/sinl.c: Likewise.
25852         * lib/tsearch.c: Insert space after 'for'.
25853         Reported by Jim Meyering.
25854
25855 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25856
25857         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25858         config header before grepping, as it's not present before
25859         autoreconf/configure are run.  Reported by Simon Josefsson.
25860
25861 2010-03-23  Bruno Haible  <bruno@clisp.org>
25862
25863         pt_chown: Make it work with automake < 1.11.
25864         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25865         Reported by Simon Josefsson.
25866
25867 2010-03-23  Bruno Haible  <bruno@clisp.org>
25868
25869         pt_chown: Don't depend on GPLed modules.
25870         * lib/pt_chown.c: Don't include idpriv.h.
25871         (main): Don't drop privileges.
25872         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25873         Reported by Simon Josefsson.
25874
25875 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25876
25877         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25878         suggestions from karl@freefriends.org (Karl Berry).
25879
25880 2010-03-22  Eric Blake  <eblake@redhat.com>
25881
25882         gethostname: further tweaks
25883         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25884         are overriding gethostname.
25885         Suggested by Bruno Haible.
25886
25887 2010-03-21  Bruno Haible  <bruno@clisp.org>
25888
25889         Fix comments.
25890         * lib/forkpty.c (rpl_forkpty): Fix comment.
25891         * lib/openpty.c (rpl_openpty): Likewise.
25892         Reported by Eric Blake.
25893
25894 2010-03-22  Eric Blake  <eblake@redhat.com>
25895
25896         gethostname: fix build on mingw
25897         * lib/unistd.in.h (includes): Work around fact that mingw
25898         <winsock2.h> re-includes <unistd.h>, by avoiding any
25899         redeclarations if we are being included by <winsock2.h>.
25900         Reported by Matthias Bolte.
25901
25902 2010-03-21  Bruno Haible  <bruno@clisp.org>
25903
25904         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25905         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25906         modifications.
25907         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25908         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25909         provide the replacement.
25910         * modules/forkpty (Depends-on): Add openpty, login_tty.
25911         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25912         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25913         * doc/glibc-functions/forkpty.texi: More supported platforms.
25914         * config/srclist.txt: Add forkpty.c (commented).
25915
25916 2010-03-21  Bruno Haible  <bruno@clisp.org>
25917
25918         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25919         (Makefile.am): Verify that PTY_LIB is defined.
25920
25921         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25922
25923 2010-03-21  Bruno Haible  <bruno@clisp.org>
25924
25925         Tests for module 'login_tty'.
25926         * modules/login_tty-tests: New file.
25927         * tests/test-login_tty.c: New file.
25928
25929         New module 'login_tty'.
25930         * lib/login_tty.c: New file.
25931         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25932         * modules/login_tty: New file.
25933         * doc/glibc-functions/login_tty.texi: Mention the new module.
25934
25935 2010-03-21  Bruno Haible  <bruno@clisp.org>
25936
25937         login_tty: Documentation.
25938         * doc/glibc-functions/login_tty.texi: New file.
25939         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25940
25941 2010-03-21  Bruno Haible  <bruno@clisp.org>
25942
25943         pty: Consistent macro naming.
25944         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25945         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25946         * modules/pty (configure.ac): Update.
25947
25948 2010-03-21  Bruno Haible  <bruno@clisp.org>
25949
25950         Tests for openpty: Make stricter.
25951         * tests/test-openpty.c (main): Add test of canonical processing and
25952         erase.
25953         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25954
25955         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25956         * lib/openpty.c (openpty): New replacement function.
25957         * lib/pty.in.h: Include <termios.h>.
25958         (openpty): Update declaration. Add comments.
25959         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25960         is not declared, arrange to provide the replacement. Check for _getpty
25961         and posix_openpt.
25962         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25963         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25964         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25965         * modules/pty-tests (test_pty_c___LDADD): New variable.
25966         * doc/glibc-functions/openpty.texi: More supported platforms.
25967
25968 2010-03-21  Bruno Haible  <bruno@clisp.org>
25969
25970         setenv: Tweaks.
25971         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25972         the test program.
25973         * doc/posix-functions/setenv.texi: Update platforms list.
25974
25975 2010-03-21  Bruno Haible  <bruno@clisp.org>
25976
25977         New module 'unlockpt'.
25978         * lib/unlockpt.c: New file, from glibc with modifications.
25979         * m4/unlockpt.m4: New file.
25980         * modules/unlockpt: New file.
25981         * lib/stdlib.in.h (unlockpt): New declaration.
25982         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25983         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25984         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25985         HAVE_UNLOCKPT.
25986         * doc/posix-functions/unlockpt.texi: Mention the new module.
25987         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25988         * config/srclist.txt: Add unlockpt.c (commented).
25989
25990 2010-03-21  Jim Meyering  <meyering@redhat.com>
25991
25992         maint.mk: prohibit inclusion of "intprops.h" without use
25993         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25994
25995 2010-03-21  Bruno Haible  <bruno@clisp.org>
25996
25997         New module 'grantpt'.
25998         * lib/grantpt.c: New file, from glibc with modifications.
25999         * m4/grantpt.m4: New file.
26000         * modules/grantpt: New file.
26001         * lib/stdlib.in.h (grantpt): New declaration.
26002         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26003         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26004         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26005         HAVE_GRANTPT.
26006         * doc/posix-functions/grantpt.texi: Mention the new module.
26007         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26008         * config/srclist.txt: Add grantpt.c (commented).
26009
26010 2010-03-21  Bruno Haible  <bruno@clisp.org>
26011
26012         New module 'pt_chown'.
26013         * lib/pt_chown.c: New file, from glibc with modifications.
26014         * lib/pty-private.h: New file, from glibc with modifications.
26015         * modules/pt_chown: New file.
26016         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26017
26018 2010-03-21  Bruno Haible  <bruno@clisp.org>
26019
26020         Tests for module 'ptsname'.
26021         * modules/ptsname-tests: New file.
26022         * tests/test-ptsname.c: New file.
26023
26024         New module 'ptsname'.
26025         * lib/ptsname.c: New file, from glibc with modifications.
26026         * m4/ptsname.m4: New file.
26027         * modules/ptsname: New file.
26028         * lib/stdlib.in.h (ptsname): New declaration.
26029         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26030         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26031         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26032         HAVE_PTSNAME.
26033         * doc/posix-functions/ptsname.texi: Mention the new module.
26034         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26035         * config/srclist.txt: Add ptsname.c (commented).
26036
26037 2010-03-21  Bruno Haible  <bruno@clisp.org>
26038
26039         Tests for module 'ttyname_r'.
26040         * modules/ttyname_r-tests: New file.
26041         * tests/test-ttyname_r.c: New file.
26042
26043         New module 'ttyname_r'.
26044         * lib/ttyname_r.c: New file.
26045         * m4/ttyname_r.m4: New file.
26046         * modules/ttyname_r: New file.
26047         * lib/unistd.in.h (ttyname_r): New declaration.
26048         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26049         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26050         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26051         HAVE_TTYNAME_R.
26052         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26053         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26054
26055 2010-03-20  Bruno Haible  <bruno@clisp.org>
26056
26057         signal: Undefine macro definitions in C++ mode.
26058         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26059         sigfillset): Undefine macro definitions from the system header in C++
26060         mode.
26061         Reported by John W. Eaton <jwe@gnu.org>.
26062
26063 2010-03-20  Bruno Haible  <bruno@clisp.org>
26064
26065         Ensure no #include statements inside extern "C" { ... }.
26066         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26067         contain #include statements.
26068         * lib/time.in.h: Likewise.
26069
26070 2010-03-20  Bruno Haible  <bruno@clisp.org>
26071
26072         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26073         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26074         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26075         Reported by John W. Eaton <jwe@gnu.org>.
26076
26077 2010-03-20  Bruno Haible  <bruno@clisp.org>
26078
26079         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26080         Reported by Jim Meyering.
26081
26082 2010-03-20  Bruno Haible  <bruno@clisp.org>
26083
26084         pipe: Set errno upon failure.
26085         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26086         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26087         errno value in error message.
26088
26089 2010-03-20  Bruno Haible  <bruno@clisp.org>
26090             Jim Meyering  <meyering@redhat.com>
26091
26092         lchown: Avoid "unused variable" warning.
26093         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26094
26095 2010-03-20  Bruno Haible  <bruno@clisp.org>
26096
26097         Work around unlink() bug on MacOS X 10.5.6.
26098         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26099         attempting to unlink a parent directory.
26100         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26101         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26102         activate for the replacement function.
26103         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26104
26105 2010-03-20  Bruno Haible  <bruno@clisp.org>
26106
26107         Fix link errors on Solaris 8.
26108         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26109         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26110
26111 2010-03-19  Jim Meyering  <meyering@redhat.com>
26112
26113         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26114         The _LIBC implementation of build_range_exp correctly honors the
26115         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26116         However, the non-_LIBC implementation would ignore that syntax-bit
26117         flag and return REG_ERANGE unconditionally.
26118         This change makes it honor that flag.
26119         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26120         Make two pointer parameters "const".
26121         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26122         (parse_bracket_exp): Update caller.
26123
26124         regex.m4: correct the reversed range endpoint ([b-a]) test
26125         * m4/regex.m4: When requiring that [b-a] evoke failure,
26126         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26127         test pass once again for x86-based systems.
26128
26129 2010-03-19  Bruno Haible  <bruno@clisp.org>
26130
26131         scandir: Fix link error on Solaris 8.
26132         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26133         macros.
26134
26135 2010-03-19  Bruno Haible  <bruno@clisp.org>
26136
26137         getusershell: Fix documentation.
26138         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26139         module.
26140         * doc/glibc-functions/setusershell.texi: Likewise.
26141
26142         getusershell: Provide declaration, missing on Solaris 9.
26143         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26144         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26145         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26146         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26148         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26149         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26150         HAVE_GETUSERSHELL.
26151         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26152
26153 2010-03-19  Bruno Haible  <bruno@clisp.org>
26154
26155         wctype: Provide iswblank function.
26156         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26157         exists and is fine.
26158         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26159         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26160         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26161         * doc/posix-functions/iswblank.texi: Update.
26162
26163 2010-03-19  Bruno Haible  <bruno@clisp.org>
26164
26165         Tests of module 'pty' in C++ mode.
26166         * modules/pty-tests: New file.
26167         * tests/test-pty-c++.cc: New file.
26168         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26169
26170 2010-03-19  Eric Blake  <eblake@redhat.com>
26171
26172         logb: fix documentation
26173         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26174         1.5 declaration bug.
26175
26176         forkpty, openpty: prefer glibc's const-safe prototype
26177         * lib/forkpty.c (rpl_forkpty): New file.
26178         * lib/openpty.c (rpl_openpty): Likewise.
26179         * modules/forkpty (Files): Distribute it.
26180         * modules/openpty (Files): Likewise.
26181         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26182         check...
26183         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26184         replacement for for non-const BSD signature.
26185         * modules/pty (Makefile.am): Substitute witnesses.
26186         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26187         * tests/test-forkpty.c: Update signature check.
26188         * tests/test-openpty.c: Likewise.
26189         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26190         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26191
26192         forkpty, openpty: split functions into new modules
26193         * modules/pty (Makefile.am): Substitute new witnesses.
26194         (Libraries): Move library detection...
26195         * modules/forkpty: ...into new module.
26196         * modules/openpty: Another new module.
26197         * modules/pty-tests: Rename and split...
26198         * modules/forkpty-tests: ...to this...
26199         * modules/openpty-tests: ...and this.
26200         * tests/test-pty.c: Rename and split...
26201         * tests/test-forkpty.c: ...to this...
26202         * tests/test-openpty.c: ...and this.
26203         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26204         (gl_PTY): Split library searching...
26205         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26206         (gl_FORKPTY, gl_OPENPTY): New macros.
26207         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26208         * NEWS: Mention the split.
26209         * MODULES.html.sh (Misc): Document the modules.
26210         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26211         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26212
26213         pty: improve replacement header
26214         * lib/pty.in.h: New file.
26215         * modules/pty (Files): Ship it.
26216         (Makefile.am): Always build replacement.
26217         * m4/pty.m4: Rename...
26218         * m4/pty_h.m4: ...to this.
26219         (gl_PTY): Modernize setting of witness macros; update check of
26220         forkpty to take proper advantage of cache.
26221         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26222
26223         getopt: avoid compiler warning
26224         * lib/getopt.c (attribute_hidden): Remove unused macro.
26225
26226 2010-03-18  Bruno Haible  <bruno@clisp.org>
26227
26228         Fix link errors on Solaris 8.
26229         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26230         * modules/search-tests (test_search_c___LDADD): Likewise.
26231         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26232         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26233         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26234         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26235         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26236         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26237         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26238
26239 2010-03-18  Bruno Haible  <bruno@clisp.org>
26240
26241         Fix bug introduced on 2010-03-14.
26242         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26243         (gl_SPAWN_H): Require it.
26244         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26245         Reported by Simon Josefsson.
26246
26247 2010-03-18  Bruno Haible  <bruno@clisp.org>
26248
26249         Fix typo introduced on 2009-12-31.
26250         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26251         posix_spawn_file_actions_adddup2.
26252
26253 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26254         and Eric Blake  <eblake@redhat.com>
26255
26256         test-vc-list-files-git: make more robust
26257         * tests/test-vc-list-files-git.sh: Unset problematic environment
26258         variables.  Chain commands together.
26259
26260 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26261
26262         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26263         `AC_CHECK_DECL' invocation.
26264
26265 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26266
26267         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26268         appears before executable statements. Suggested by Petr Sumbera
26269         <Petr.Sumbera@Sun.COM>.
26270
26271 2010-03-14  Bruno Haible  <bruno@clisp.org>
26272
26273         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26274         portability problems. Instead use a simpler test.
26275         (main): Check that invalid arguments are rejected only on Linux.
26276
26277 2010-03-14  Bruno Haible  <bruno@clisp.org>
26278
26279         Fix bug introduced on 2009-12-31.
26280         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26281         gl_PREREQ_SYS_H_WINSOCK2 always.
26282         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26283         SYS_SOCKET_H variable.
26284         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26285         Update comments.
26286         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26287         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26288         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26289         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26290         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26291
26292 2010-03-14  Bruno Haible  <bruno@clisp.org>
26293
26294         Fix values returned by sinl, cosl.
26295         * lib/trigl.h: Add specification comments.
26296         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26297         that combines the values from the precomputed table with the values of
26298         the Chebyshev polynomials.
26299
26300 2010-03-14  Bruno Haible  <bruno@clisp.org>
26301
26302         Fix compilation error when modules 'posix_spawn[p]' are not used.
26303         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26304         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26305
26306 2010-03-14  Bruno Haible  <bruno@clisp.org>
26307
26308         Fix compilation error on mingw when module 'time_r' is not used.
26309         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26310         is 1.
26311         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26312         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26313         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26314         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26315
26316 2010-03-14  Bruno Haible  <bruno@clisp.org>
26317
26318         Fix compilation error with Sun C.
26319         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26320         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26321         instead of GCC specific ULONG_LONG_MAX.
26322         * lib/xstrtoll.c: Likewise.
26323         * lib/xstrtoull.c: Likewise.
26324
26325 2010-03-13  Bruno Haible  <bruno@clisp.org>
26326
26327         Allow the user to disable C++ code and tests.
26328         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26329         (gl_PROG_ANSI_CXX): Require it.
26330
26331 2010-03-13  Bruno Haible  <bruno@clisp.org>
26332
26333         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26334         cases.
26335
26336 2010-03-13  Bruno Haible  <bruno@clisp.org>
26337
26338         Test that gnulib does not break the standard C++ headers.
26339         * tests/test-locale-c++2.cc: New file.
26340         * modules/locale-tests (Files): Add it.
26341         (Makefile.am): Compile it for test-locale-c++.
26342         * tests/test-math-c++2.cc: New file.
26343         * modules/math-tests (Files): Add it.
26344         (Makefile.am): Compile it for test-math-c++.
26345         * tests/test-signal-c++2.cc: New file.
26346         * modules/signal-tests (Files): Add it.
26347         (Makefile.am): Compile it for test-signal-c++.
26348         * tests/test-stdio-c++2.cc: New file.
26349         * modules/stdio-tests (Files): Add it.
26350         (Makefile.am): Compile it for test-stdio-c++.
26351         * tests/test-stdlib-c++2.cc: New file.
26352         * modules/stdlib-tests (Files): Add it.
26353         (Makefile.am): Compile it for test-stdlib-c++.
26354         * tests/test-string-c++2.cc: New file.
26355         * modules/string-tests (Files): Add it.
26356         (Makefile.am): Compile it for test-string-c++.
26357         * tests/test-time-c++2.cc: New file.
26358         * modules/time-tests (Files): Add it.
26359         (Makefile.am): Compile it for test-time-c++.
26360         Reported by John W. Eaton <jwe@gnu.org>.
26361
26362 2010-03-13  Bruno Haible  <bruno@clisp.org>
26363
26364         * gnulib-tool (func_usage): Clarify which options are available for
26365         --create-testdir and --create-megatestdir.
26366
26367 2010-03-13  Bruno Haible  <bruno@clisp.org>
26368
26369         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26370         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26371         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26372         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26373         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26374         when appropriate.
26375         Reported by Jim Meyering.
26376
26377 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26378
26379         * gnulib-tool (func_import): Explain origin of code.
26380
26381 2010-03-12  Bruno Haible  <bruno@clisp.org>
26382
26383         Fix problem with automake's definition of CXXLINK.
26384         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26385         Reported by Simon Josefsson and Ludovic Courtès.
26386
26387 2010-03-12  Bruno Haible  <bruno@clisp.org>
26388
26389         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26390         stable releases.
26391
26392 2010-03-11  Bruno Haible  <bruno@clisp.org>
26393
26394         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26395         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26396         whether the system provides one variant or multiple variants of the
26397         function.
26398         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26399         C++ compilers.
26400         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26401         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26402         Reported by Jim Meyering.
26403
26404 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26405
26406         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26407
26408 2010-03-08  Bruno Haible  <bruno@clisp.org>
26409
26410         gnulib-tool: Add support for --libtool in --create-testdir.
26411         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26412         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26413
26414 2010-03-08  Eric Blake  <eblake@redhat.com>
26415
26416         gnulib-tool.texi: mention possibility of git submodule
26417         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26418         submodules.
26419         * doc/.gitignore: Ignore another generated file.
26420
26421 2010-03-08  Karl Berry  <karl@gnu.org>
26422
26423         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26424         of committing gnulib files while skipping others.
26425
26426 2010-03-07  Bruno Haible  <bruno@clisp.org>
26427
26428         Tests of module 'wctype' in C++ mode.
26429         * tests/test-wctype-c++.cc: New file.
26430         * modules/wctype-tests (Files): Add it and tests/signature.h.
26431         (Depends-on): Add ansi-c++-opt.
26432         (Makefile.am): Arrange to compile and run test-wctype-c++.
26433
26434         Tests of module 'wchar' in C++ mode.
26435         * tests/test-wchar-c++.cc: New file.
26436         * modules/wchar-tests (Files): Add it and tests/signature.h.
26437         (Depends-on): Add ansi-c++-opt.
26438         (Makefile.am): Arrange to compile and run test-wchar-c++.
26439         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26440         gl_MODULE_INDICATOR.
26441
26442         Tests of module 'unistd' in C++ mode.
26443         * tests/test-unistd-c++.cc: New file.
26444         * modules/unistd-tests (Files): Add it and tests/signature.h.
26445         (Depends-on): Add ansi-c++-opt.
26446         (Makefile.am): Arrange to compile and run test-unistd-c++.
26447         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26448         gl_MODULE_INDICATOR.
26449
26450         Tests of module 'time' in C++ mode.
26451         * tests/test-time-c++.cc: New file.
26452         * modules/time-tests (Files): Add it and tests/signature.h.
26453         (Depends-on): Add ansi-c++-opt.
26454         (Makefile.am): Arrange to compile and run test-time-c++.
26455         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26456
26457         Tests of module 'sys_time' in C++ mode.
26458         * tests/test-sys_time-c++.cc: New file.
26459         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26460         (Depends-on): Add ansi-c++-opt.
26461         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26462         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26463         gl_MODULE_INDICATOR.
26464
26465         Tests of module 'sys_stat' in C++ mode.
26466         * tests/test-sys_stat-c++.cc: New file.
26467         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26468         (Depends-on): Add ansi-c++-opt.
26469         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26470         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26471         gl_MODULE_INDICATOR.
26472
26473         Tests of module 'sys_socket' in C++ mode.
26474         * tests/test-sys_socket-c++.cc: New file.
26475         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26476         (Depends-on): Add ansi-c++-opt.
26477         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26478         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26479         gl_MODULE_INDICATOR.
26480
26481         Tests of module 'sys_select' in C++ mode.
26482         * tests/test-sys_select-c++.cc: New file.
26483         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26484         (Depends-on): Add ansi-c++-opt.
26485         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26486         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26487         gl_MODULE_INDICATOR.
26488
26489         Tests of module 'sys_ioctl' in C++ mode.
26490         * tests/test-sys_ioctl-c++.cc: New file.
26491         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26492         (Depends-on): Add ansi-c++-opt.
26493         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26494         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26495         gl_MODULE_INDICATOR.
26496
26497         Tests of module 'string' in C++ mode.
26498         * tests/test-string-c++.cc: New file.
26499         * modules/string-tests (Files): Add it and tests/signature.h.
26500         (Depends-on): Add ansi-c++-opt.
26501         (Makefile.am): Arrange to compile and run test-string-c++.
26502         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26503         gl_MODULE_INDICATOR.
26504
26505         Tests of module 'stdlib' in C++ mode.
26506         * tests/test-stdlib-c++.cc: New file.
26507         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26508         (Depends-on): Add ansi-c++-opt.
26509         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26510         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26511         gl_MODULE_INDICATOR.
26512
26513         Tests of module 'stdio' in C++ mode.
26514         * tests/test-stdio-c++.cc: New file.
26515         * modules/stdio-tests (Files): Add it and tests/signature.h.
26516         (Depends-on): Add ansi-c++-opt.
26517         (Makefile.am): Arrange to compile and run test-stdio-c++.
26518         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26519         gl_MODULE_INDICATOR.
26520
26521         Tests of module 'spawn' in C++ mode.
26522         * tests/test-spawn-c++.cc: New file.
26523         * modules/spawn-tests (Files): Add it and tests/signature.h.
26524         (Depends-on): Add ansi-c++-opt.
26525         (Makefile.am): Arrange to compile and run test-spawn-c++.
26526         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26527         gl_MODULE_INDICATOR.
26528
26529         Tests of module 'signal' in C++ mode.
26530         * tests/test-signal-c++.cc: New file.
26531         * modules/signal-tests (Files): Add it and tests/signature.h.
26532         (Depends-on): Add ansi-c++-opt.
26533         (Makefile.am): Arrange to compile and run test-signal-c++.
26534         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26535         gl_MODULE_INDICATOR.
26536
26537         Tests of module 'search' in C++ mode.
26538         * tests/test-search-c++.cc: New file.
26539         * modules/search-tests (Files): Add it and tests/signature.h.
26540         (Depends-on): Add ansi-c++-opt.
26541         (Makefile.am): Arrange to compile and run test-search-c++.
26542         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26543         gl_MODULE_INDICATOR.
26544
26545         Tests of module 'math' in C++ mode.
26546         * tests/test-math-c++.cc: New file.
26547         * modules/math-tests (Files): Add it and tests/signature.h.
26548         (Depends-on): Add ansi-c++-opt.
26549         (Makefile.am): Arrange to compile and run test-math-c++.
26550         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26551
26552         Tests of module 'locale' in C++ mode.
26553         * tests/test-locale-c++.cc: New file.
26554         * modules/locale-tests (Files): Add it and tests/signature.h.
26555         (Depends-on): Add ansi-c++-opt.
26556         (Makefile.am): Arrange to compile and run test-locale-c++.
26557         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26558         gl_MODULE_INDICATOR.
26559
26560         Tests of module 'langinfo' in C++ mode.
26561         * tests/test-langinfo-c++.cc: New file.
26562         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26563         (Depends-on): Add ansi-c++-opt.
26564         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26565         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26566         gl_MODULE_INDICATOR.
26567
26568         Tests of module 'iconv-h' in C++ mode.
26569         * tests/test-iconv-h-c++.cc: New file.
26570         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26571         (Depends-on): Add ansi-c++-opt.
26572         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26573
26574         Tests of module 'glob' in C++ mode.
26575         * tests/test-glob-c++.cc: New file.
26576         * modules/glob-tests (Files): Add it.
26577         (Depends-on): Add ansi-c++-opt.
26578         (Makefile.am): Arrange to compile and run test-glob-c++.
26579
26580         Tests of module 'fcntl-h' in C++ mode.
26581         * tests/test-fcntl-h-c++.cc: New file.
26582         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26583         (Depends-on): Add ansi-c++-opt.
26584         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26585         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26586         gl_MODULE_INDICATOR.
26587
26588         Tests of module 'dirent' in C++ mode.
26589         * tests/test-dirent-c++.cc: New file.
26590         * modules/dirent-tests (Files): Add it and tests/signature.h.
26591         (Depends-on): Add ansi-c++-opt.
26592         (Makefile.am): Arrange to compile and run test-dirent-c++.
26593         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26594         gl_MODULE_INDICATOR.
26595
26596         New module 'ansi-c++-opt'.
26597         * modules/ansi-c++-opt: New file.
26598         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26599
26600         Document C++ namespace mode.
26601         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26602
26603         wctype: Avoid #define replacements in C++ mode.
26604         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26605         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26606         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26607         In C++, define a namespaced alias symbol.
26608         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26609         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26610         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26611         rule.
26612
26613         wchar: Avoid #define replacements in C++ mode.
26614         * lib/wchar.in.h: Include c++defs.h.
26615         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26616         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26617         symbol.
26618         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26619         * modules/wchar (Depends-on): Add c++defs.
26620         (Makefile.am): Update wchar.h rule.
26621
26622         unistd: Avoid #define replacements in C++ mode.
26623         * lib/unistd.in.h: Include c++defs.h.
26624         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26625         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26626         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26627         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26628         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26629         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26630         symbol.
26631         (environ): Update.
26632         * modules/unistd (Depends-on): Add c++defs.
26633         (Makefile.am): Update unistd.h rule.
26634
26635         time: Avoid #define replacements in C++ mode.
26636         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26637         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26638         define a namespaced alias symbol.
26639         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26640         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26641         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26642         * modules/time (Depends-on): Add c++defs, warn-on-use.
26643         (Makefile.am): Update time.h rule.
26644         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26645         * modules/nanosleep (configure.ac): Likewise.
26646         * modules/strptime (configure.ac): Likewise.
26647         * modules/timegm (configure.ac): Likewise.
26648
26649         sys_time: Avoid #define replacements in C++ mode.
26650         * lib/sys_time.in.h: Include c++defs.h.
26651         (gettimeofday): In C++, define a namespaced alias symbol.
26652         * modules/sys_time (Depends-on): Add c++defs.
26653         (Makefile.am): Update sys/time.h rule.
26654
26655         sys_stat: Avoid #define replacements in C++ mode.
26656         * lib/sys_stat.in.h: Include c++defs.h.
26657         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26658         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26659         namespaced alias symbol.
26660         In C++, define a namespaced alias symbol.
26661         * modules/sys_stat (Depends-on): Add c++defs.
26662         (Makefile.am): Update sys/stat.h rule.
26663
26664         sys_socket: Avoid #define replacements in C++ mode.
26665         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26666         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26667         definitions also when the system has a <sys/socket.h>.
26668         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26669         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26670         In C++, define a namespaced alias symbol.
26671         * modules/sys_socket (Depends-on): Add c++defs.
26672         (Makefile.am): Update sys/socket.h rule.
26673
26674         sys_select: Avoid #define replacements in C++ mode.
26675         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26676         definitions also when the system has a <sys/select.h>.
26677         (select): In C++, define a namespaced alias symbol.
26678         * modules/sys_select (Depends-on): Add c++defs.
26679         (Makefile.am): Update sys/select.h rule.
26680
26681         sys_ioctl: Avoid #define replacements in C++ mode.
26682         * lib/sys_ioctl.in.h: Include c++defs.h.
26683         (ioctl): In C++, define a namespaced alias symbol.
26684         * modules/sys_ioctl (Depends-on): Add c++defs.
26685         (Makefile.am): Update sys/ioctl.h rule.
26686
26687         string: Avoid #define replacements in C++ mode.
26688         * lib/string.in.h: Include c++defs.h.
26689         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26690         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26691         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26692         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26693         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26694         * modules/string (Depends-on): Add c++defs.
26695         (Makefile.am): Update string.h rule.
26696
26697         stdlib: Avoid #define replacements in C++ mode.
26698         * lib/stdlib.in.h: Include c++defs.h.
26699         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26700         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26701         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26702         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26703         symbol.
26704         * modules/stdlib (Depends-on): Add c++defs.
26705         (Makefile.am): Update stdlib.h rule.
26706
26707         stdio: Avoid #define replacements in C++ mode.
26708         * lib/stdio.in.h: Include c++defs.h.
26709         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26710         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26711         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26712         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26713         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26714         namespaced alias symbol.
26715         * modules/stdio (Depends-on): Add c++defs.
26716         (Makefile.am): Update stdio.h rule.
26717
26718         spawn: Avoid #define replacements in C++ mode.
26719         * lib/spawn.in.h: Include c++defs.h.
26720         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26721         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26722         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26723         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26724         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26725         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26726         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26727         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26728         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26729         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26730         In C++, define a namespaced alias symbol.
26731         * modules/spawn (Depends-on): Add c++defs.
26732         (Makefile.am): Update spawn.h rule.
26733
26734         signal: Avoid #define replacements in C++ mode.
26735         * lib/signal.in.h: Include c++defs.h.
26736         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26737         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26738         namespaced alias symbol.
26739         * modules/signal (Depends-on): Add c++defs.
26740         (Makefile.am): Update signal.h rule.
26741
26742         search: Avoid #define replacements in C++ mode.
26743         * lib/search.in.h: Include c++defs.h.
26744         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26745         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26746         symbol.
26747         * modules/search (Depends-on): Add c++defs.
26748         (Makefile.am): Update search.h rule.
26749
26750         math: Avoid #define replacements in C++ mode.
26751         * lib/math.in.h: Include c++defs.h.
26752         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26753         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26754         trunc, truncl): In C++, define a namespaced alias symbol.
26755         * modules/math (Depends-on): Add c++defs.
26756         (Makefile.am): Update math.h rule.
26757
26758         locale: Avoid #define replacements in C++ mode.
26759         * lib/locale.in.h: Include c++defs.h.
26760         (duplocale): In C++, define a namespaced alias symbol.
26761         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26762         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26763         * modules/locale (Depends-on): Add c++defs.
26764         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26765
26766         langinfo: Avoid #define replacements in C++ mode.
26767         * lib/langinfo.in.h: Include c++defs.h.
26768         (nl_langinfo): In C++, define a namespaced alias symbol.
26769         * modules/langinfo (Depends-on): Add c++defs.
26770         (Makefile.am): Update langinfo.h rule.
26771
26772         iconv-h: Avoid #define replacements in C++ mode.
26773         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26774         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26775         symbol.
26776         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26777         whenever iconv is present.
26778         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26779         (Makefile.am): Update iconv.h rule.
26780
26781         glob: Avoid #define replacements in C++ mode.
26782         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26783         (_gl_glob_errfunc_fn): New type.
26784         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26785         symbol.
26786         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26787         (Makefile.am): Update glob.h rule.
26788
26789         fcntl-h: Avoid #define replacements in C++ mode.
26790         * lib/fcntl.in.h: Include c++defs.h.
26791         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26792         * modules/fcntl-h (Depends-on): Add c++defs.
26793         (Makefile.am): Update fcntl.h rule.
26794
26795         dirent: Avoid #define replacements in C++ mode.
26796         * lib/dirent.in.h: Include c++defs.h.
26797         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26798         namespaced alias symbol.
26799         (dirfd): Update declaration.
26800         * modules/dirent (Depends-on): Add c++defs.
26801         (Makefile.am): Update dirent.h rule.
26802
26803         ctype: Make it usable in C++ code.
26804         * lib/ctype.in.h: Include c++defs.h.
26805         (isblank): Declare as extern "C".
26806         * modules/ctype (Depends-on): Add c++defs.
26807         (Makefile.am): Update ctype.h rule.
26808
26809         New module 'c++defs'.
26810         * modules/c++defs: New file.
26811         * build-aux/c++defs.h: New file.
26812         Reported by John W. Eaton <jwe@gnu.org>.
26813
26814 2010-03-07  Bruno Haible  <bruno@clisp.org>
26815
26816         logb: Provide missing declaration for Cygwin.
26817         * lib/math.in.h (logb): New declaration.
26818         * m4/logb.m4: New file.
26819         * modules/logb (Files): Add m4/logb.m4.
26820         (Depends-on): Add math.
26821         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26822         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26824         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26825         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26826
26827 2010-03-07  Bruno Haible  <bruno@clisp.org>
26828
26829         Fix test-cond link error.
26830         * tests/test-cond.c: Include <stdio.h>.
26831
26832 2010-03-07  Bruno Haible  <bruno@clisp.org>
26833
26834         Fix test-dirent-safer link error.
26835         * modules/dirent-safer-tests (Makefile.am): Define
26836         test_dirent_safer_LDADD.
26837
26838 2010-03-07  Bruno Haible  <bruno@clisp.org>
26839
26840         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26841         among default module list.
26842
26843 2010-03-07  Bruno Haible  <bruno@clisp.org>
26844
26845         Fix link error on platforms with GNU libiconv.
26846         * modules/unistr/u8-strcoll-tests (Makefile): Define
26847         test_u8_strcoll_LDADD.
26848         * modules/unistr/u16-strcoll-tests (Makefile): Define
26849         test_u16_strcoll_LDADD.
26850         * modules/unistr/u32-strcoll-tests (Makefile): Define
26851         test_u32_strcoll_LDADD.
26852
26853 2010-03-07  Bruno Haible  <bruno@clisp.org>
26854
26855         Use POSIX declarations for socket functions.
26856         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26857         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26858         rpl_sendto): Change declaration to match POSIX.
26859         * lib/connect.c (rpl_connect): Likewise.
26860         * lib/accept.c (rpl_accept): Likewise.
26861         * lib/bind.c (rpl_bind): Likewise.
26862         * lib/getpeername.c (rpl_getpeername): Likewise.
26863         * lib/getsockname.c (rpl_getsockname): Likewise.
26864         * lib/recv.c (rpl_recv): Likewise.
26865         * lib/send.c (rpl_send): Likewise.
26866         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26867         * lib/sendto.c (rpl_sendto): Likewise.
26868
26869 2010-03-06  Bruno Haible  <bruno@clisp.org>
26870
26871         Clarify access, euidaccess, faccessat.
26872         * doc/posix-functions/faccessat.texi: Mention security problem under
26873         "Other problems", not "Portability problems".
26874         * doc/posix-functions/access.texi: Likewise. Mention a related security
26875         problem.
26876         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26877         * lib/euidaccess.c: Add comments about platforms.
26878         * lib/unistd.in.h (access, euidaccess): Add warnings.
26879
26880 2010-03-07  Bruno Haible  <bruno@clisp.org>
26881
26882         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26883         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26884         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26885         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26886         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26887         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26888         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26889         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26890         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26891         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26892         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26893         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26894         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26895         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26896         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26897         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26898         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26899         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26900         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26901         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26902         Likewise.
26903         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26904         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26905         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26906         Likewise.
26907         * tests/test-spawn.c (main): Make it work when
26908         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26909
26910 2010-03-07  Bruno Haible  <bruno@clisp.org>
26911
26912         Fix incorrect Makefile.am generation in German locale.
26913         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26914         Execute sed command with character range in C locale.
26915
26916 2010-03-06  Bruno Haible  <bruno@clisp.org>
26917
26918         Tests for module 'iconv-h'.
26919         * modules/iconv-h-tests: New file.
26920         * tests/test-iconv-h.c: New file.
26921
26922         New module 'iconv-h'.
26923         * modules/iconv-h: New file.
26924         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26925         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26926         (configure.ac): Remove gl_ICONV_H.
26927         (Makefile.am): Remove rule for iconv.h.
26928
26929 2010-03-06  Bruno Haible  <bruno@clisp.org>
26930
26931         More consistent naming of *.m4 files.
26932         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26933         * modules/wctype (Files): Update.
26934
26935         More consistent naming of *.m4 files.
26936         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26937         * modules/wchar (Files): Update.
26938
26939 2010-03-06  Jim Meyering  <meyering@redhat.com>
26940
26941         euidaccess: relax license to LGPLv2+
26942         * modules/euidaccess (License): Relax to LGPLv2+.
26943
26944 2010-03-06  Bruno Haible  <bruno@clisp.org>
26945
26946         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26947         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26948         (Makefile.am): Augment lib_SOURCES instead.
26949
26950 2010-03-04  Jim Meyering  <meyering@redhat.com>
26951
26952         utime: remove obsolete module
26953         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26954         unnecessary for years, and has been marked as obsolete for 10 months.
26955         * modules/utime: Remove file.
26956         * lib/utime.c: Remove file.
26957         * m4/utime.m4: Remove file.
26958         * m4/utimes-null.m4: Remove file.
26959         * doc/posix-functions/utime.texi (utime): Remove reference to
26960         the module.  Move the sole "fixed by gnulib" item into the
26961         "problems not fixed by Gnulib" list.
26962         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26963
26964 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26965
26966         * modules/exit (License): Relax license to LGPLv2+.
26967         (Status): Mark as obsolete.
26968         * NEWS: Mention deprecated 'exit' module.
26969         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26970         of now obsolete 'exit'.
26971
26972 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26973
26974         fts-lgpl: remove unused module
26975         * modules/fts-lgpl: Remove.
26976         * MODULES.html.sh (func_all_modules): Adjust.
26977         * check-module (find_included_lib_files): Adjust.
26978         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26979
26980 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26981
26982         copy-acl: enhance Solaris ACL error handling
26983         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26984         * lib/set-mode-acl.c (qset_acl): Likewise.
26985
26986 2010-03-02  Bruno Haible  <bruno@clisp.org>
26987
26988         spawn: Don't override the system defined values on FreeBSD 8.
26989         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26990         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26991         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26992         if HAVE_POSIX_SPAWN is 1.
26993         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26994
26995 2010-03-01  Bruno Haible  <bruno@clisp.org>
26996
26997         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26998         regarding Automake.
26999
27000 2010-02-25  Bruno Haible  <bruno@clisp.org>
27001
27002         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27003         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27004         setting, not afterwards.
27005         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27006
27007 2010-02-24  Eric Blake  <eblake@redhat.com>
27008
27009         bootstrap, git-version-gen: use timestamp
27010         * build-aux/git-version-gen (scriptversion): Force UTC.
27011         * build-aux/bootstrap (scriptversion): New variable.
27012
27013         bootstrap: allow older git
27014         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27015         older than 1.6.4.  Requested by the libvirt project.
27016
27017 2010-02-23  Eric Blake  <eblake@redhat.com>
27018
27019         warn-on-use: work with old autoconf
27020         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27021         AS_VAR semantics of autoconf 2.60.
27022         Reported by Bruno Haible.
27023
27024         bootstrap: improve some comments
27025         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27026         clarification comments.
27027
27028         gettimeofday: provide correct function
27029         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27030         when replacement is declared, otherwise provide gettimeofday.
27031         Reported by Michael Goffioul.
27032
27033 2010-02-23  Jim Meyering  <meyering@redhat.com>
27034
27035         lib-ignore: relax license to "unlimited", not LGPLv2+
27036         * modules/lib-ignore (License): Relax to "unlimited".
27037
27038 2010-02-23  Jim Meyering  <meyering@redhat.com>
27039
27040         lib-ignore: relax license to LGPLv2+
27041         * modules/lib-ignore (License): Relax to LGPLv2+.
27042
27043 2010-02-22  Eric Blake  <eblake@redhat.com>
27044
27045         lseek: avoid bash 3.2 broken pipe bug
27046         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27047         warning from bash 3.2.
27048         Reported by Ben Pfaff, with analysis from Bruno Haible.
27049
27050         bootstrap: support non-FSF copyright holder
27051         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27052         bootstrap.conf override of COPYRIGHT_HOLDER.
27053         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27054
27055         bootstrap: interoperate with gettext 0.14.1
27056         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27057
27058         bootstrap: allow for alternate submodule location
27059         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27060         hardcoding submodule location.
27061         (gnulib_mk): Allow direct use of Makefile.am.
27062
27063         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27064         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27065         rather than reconfiguring where the submodule points.
27066
27067         gettimeofday: restore support for platforms that lack function
27068         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27069         replacement if function is missing.
27070         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27071         * modules/sys_time (Makefile.am): Substitute it.
27072         * lib/sys_time.in.h (gettimeofday): Check it.
27073         Reported by Michael Goffioul.
27074
27075 2010-02-21  Bruno Haible  <bruno@clisp.org>
27076
27077         * lib/stdio.in.h (obstack_printf): Fix typo.
27078
27079 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27080
27081         vc-list-files: use bzr ls's -R option
27082         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27083         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27084
27085 2010-02-21  Jim Meyering  <meyering@redhat.com>
27086
27087         init.sh: fix EXEEXT shims to work also for names like test-prog
27088         * tests/init.sh: Re-exec a better shell, when needed.
27089         If the current shell lacks support for posix $(...), an init.sh-using
27090         test will now try to find a shell that supports that.  If EXEEXT is
27091         nonempty, we also require support for hyphen-in-alias-name and shell
27092         substitutions like ${var#glob}.  Failure to find such a shell results
27093         in a skipped test.
27094
27095 2010-02-21  Bruno Haible  <bruno@clisp.org>
27096
27097         Really work around around "broken pipe" error message from bash 3.2.
27098         * gnulib-tool (func_reset_sigpipe): Remove function.
27099         (echo): In bash 3.2, define to a function that uses printf.
27100         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27101
27102 2010-02-20  Bruno Haible  <bruno@clisp.org>
27103
27104         Restore support for automake 1.9.6 with autoconf 2.61.
27105         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27106         Reported by James Youngman <jay@gnu.org>.
27107
27108 2010-02-20  Bruno Haible  <bruno@clisp.org>
27109
27110         Improve *printf warning condition.
27111         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27112         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27113         and the function is overridden due to SIGPIPE emulation.
27114
27115 2010-02-20  Bruno Haible  <bruno@clisp.org>
27116
27117         * lib/stdio.in.h: Tweak comments.
27118
27119 2010-02-19  Bruno Haible  <bruno@clisp.org>
27120
27121         Make it easier to find modules. New gnulib-tool option '--find'.
27122         * gnulib-tool: New option --find.
27123         (func_usage): Document it.
27124         (func_sanitize_modulelist): New function, extracted from
27125         func_all_modules.
27126         (func_all_modules): Invoke it.
27127         * doc/gnulib-tool.texi (Which modules?): New node.
27128
27129 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27130
27131         * lib/sys_select.in.h: Provide select replacement even if
27132         sys/select.h exists on a system, for Interix.
27133
27134 2010-02-18  Jim Meyering  <meyering@redhat.com>
27135
27136         init.sh: don't use $(...) just yet
27137         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27138         to accommodate e.g., Solaris' /bin/sh.
27139
27140 2010-02-17  Bruno Haible  <bruno@clisp.org>
27141
27142         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27143         Reported by Ludovic Courtès <ludo@gnu.org>.
27144
27145 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27146
27147         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27148         linking with -lintl.
27149
27150 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27151
27152         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27153         if not provided by the system's netdb.h.  Reported by
27154         ludo@gnu.org (Ludovic Courtès).
27155
27156 2010-02-15  Jim Meyering  <meyering@redhat.com>
27157
27158         init.sh: improve portability and efficiency
27159         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27160         "dummy" in a for loop.
27161         Use '!', not '^' to select the complement of a character set used
27162         in a "case" statement.
27163         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27164         Suggestions from Eric Blake.
27165
27166         init.sh: automatically accommodate programs with the .exe suffix
27167         Automatically arrange for an invocation of "prog" to execute the
27168         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27169         may use the simpler "prog", yet still work when built on a system
27170         that requires specifying the added suffix.
27171         Do this by constructing a function named "prog" that invokes
27172         "prog.exe" for each .exe file in selected directories.
27173         * tests/init.sh (find_exe_basenames_): New function.
27174         (create_exe_shim_functions_): New function.
27175         (path_prepend_): Use it.
27176
27177         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27178         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27179         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27180
27181 2010-02-14  Jim Meyering  <meyering@redhat.com>
27182
27183         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27184         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27185         (sc_prohibit_hash_pjw_without_use): New rule.
27186
27187         maint.mk: allow the default upload destination dir to be overridden
27188         * top/maint.mk (upload_dest_dir_): Define with a default that
27189         preserves the status quo.
27190         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27191         Reported by Peter Simons.
27192
27193         maint.mk: prohibit inclusion of "hash.h" without_use
27194         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27195
27196 2010-02-10  Jim Meyering  <meyering@redhat.com>
27197
27198         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27199         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27200
27201 2010-02-09  Eric Blake  <ebb9@byu.net>
27202         and Bruno Haible  <bruno@clisp.org>
27203
27204         obstack-printf-posix: ensure declaration
27205         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27206         extracted from gl_FUNC_OBSTACK_PRINTF.
27207         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27208         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27209         Likewise.
27210         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27211         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27212         0.
27213
27214 2010-02-08  Bruno Haible  <bruno@clisp.org>
27215
27216         gnulib-tool: Fix typo in 2010-02-07 commit.
27217         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27218         Reported by Eric Blake.
27219
27220 2010-02-07  Bruno Haible  <bruno@clisp.org>
27221
27222         gnulib-tool: Fix up caching patches.
27223         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27224         option --no-cache. Use associative arrays when supported by the shell.
27225         (sed_comments): New variable.
27226         (modcache): Renamed from do_cache.
27227         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27228         abbreviate unnecessarily.
27229         (have_associative): New variable.
27230         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27231         way also for ksh and zsh.
27232         (func_init_sed_convert_to_cache_statements): New function, extracted
27233         from func_cache_lookup_module. Add support for associative arrays.
27234         Don't set the c_MODULE_cached variable here. Ignore all lines before
27235         the first field header. Remove only the final newline, not all trailing
27236         newlines. Support empty fields correctly. Limit the use of 'eval' to
27237         assignments.
27238         (func_get_description, func_get_status, func_get_notice,
27239         func_get_applicability, func_get_filelist, func_get_dependencies,
27240         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27241         func_get_automake_snippet, func_get_include_directive,
27242         func_get_link_directive, func_get_license, func_get_maintainer):
27243         Update documentation. List the unoptimized code first. Add support for
27244         associative arrays. Limit the use of 'eval' to assignments.
27245         (func_get_applicability): Undo stylistic pessimisations.
27246         (func_get_automake_snippet, func_get_include_directive): Reduce code
27247         duplication.
27248         (func_modules_transitive_closure, func_modules_add_dummy,
27249         func_modules_notice, func_modules_to_filelist, func_add_file,
27250         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27251         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27252         func_create_testdir, func_create_megatestdir): Update documentation.
27253
27254 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27255
27256         * gnulib-tool (func_cache_lookup_module): Store the module name
27257         belonging to the cache variable; error out if two different
27258         module names map to the same cache variable name.
27259
27260 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27261
27262         gnulib-tool: Make caching optional.
27263         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27264         Update matching short versions of --no-changelog.
27265         (func_usage): Update.
27266         (sed_extract_cache_prog): Renamed from ...
27267         (sed_extract_prog): ... this; revert to old extraction script.
27268         (func_get_description, func_get_status)
27269         (func_get_notice, func_get_applicability, func_get_filelist)
27270         (func_get_dependencies, func_get_autoconf_early_snippet)
27271         (func_get_autoconf_snippet, func_get_automake_snippet)
27272         (func_get_include_directive, func_get_link_directive)
27273         (func_get_license, func_get_maintainer): If $do_cache is false,
27274         use old, non-caching extraction scripts.
27275         Suggestion by Bruno Haible.
27276
27277 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27278
27279         gnulib-tool: cache module metainformation.
27280         * gnulib-tool (sed_extract_prog): Match newline before each
27281         header, and rewrite header to a shell variable suffix.
27282         (func_cache_var, func_cache_lookup_module): New functions,
27283         to turn a module name into a cache variable prefix, and to
27284         look up and cache module metainformation.
27285         (func_get_description, func_get_status)
27286         (func_get_notice, func_get_applicability, func_get_filelist)
27287         (func_get_dependencies, func_get_autoconf_early_snippet)
27288         (func_get_autoconf_snippet, func_get_automake_snippet)
27289         (func_get_include_directive, func_get_link_directive)
27290         (func_get_license, func_get_maintainer): Use
27291         func_cache_lookup_module.
27292
27293 2010-02-07  Bruno Haible  <bruno@clisp.org>
27294
27295         fnctl: Fix missing dependency.
27296         * modules/fcntl (Depends-on): Add getdtablesize.
27297         Reported by John W. Eaton <jwe@gnu.org>.
27298
27299 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27300
27301         Argp: fix recognition of short alias options.
27302
27303         * lib/argp-parse.c (convert_options): Fix improper use of
27304         `|' between character values.
27305         * tests/test-argp.c (group1_option): New alias option
27306         --read (-r).
27307         (group1_parser): Special handling for 'r'.
27308         (test15): New test case.
27309         (test_fun): Add test15.
27310         * tests/test-argp-2.sh: Update expected --help and --usage
27311         outputs.
27312
27313 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27314
27315         * tests/test-argp.c: Fix indentation.
27316
27317 2010-02-04  Eric Blake  <ebb9@byu.net>
27318
27319         gettimeofday: expose type of second argument
27320         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27321         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27322         * tests/test-gettimeofday.c: Use it to silence warning.
27323         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27324         the issue.
27325
27326 2010-02-03  Jim Meyering  <meyering@redhat.com>
27327
27328         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27329         * lib/regcomp.c (TYPE_SIGNED): Define.
27330         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27331
27332         regcomp.c: avoid a new -Wshadow warning
27333         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27334
27335 2010-02-01  Jim Meyering  <meyering@redhat.com>
27336
27337         removing useless parentheses in cpp #define directives
27338         For motivation, see commit c0221df4, "define STREQ(a,b)
27339         consistently, removing useless parentheses"
27340         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27341         * lib/mountlist.c (MNT_IGNORE): Likewise.
27342         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27343
27344 2010-02-01  Eric Blake  <ebb9@byu.net>
27345
27346         sys_time: use link-warning
27347         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27348         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27349         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27350         * modules/sys_time (Depends-on): Add warn-on-use.
27351         (Makefile.am): Always build replacement.
27352         (configure.ac): Update substitutions.
27353         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27354         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27355         bother with SYS_TIME_H.
27356         * modules/gettimeofday (configure.ac): Declare indicator.
27357         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27358         in use.
27359
27360         closein-tests: silence compiler warning
27361         * tests/test-closein.c (main): Ignore fread result.
27362         * modules/closein-tests (Depends-on): Add ignore-value.
27363
27364         tests: silence warning about system return
27365         * tests/test-areadlink-with-size.c (main): Ignore system result.
27366         * tests/test-areadlink.c (main): Likewise.
27367         * tests/test-areadlinkat-with-size.c (main): Likewise.
27368         * tests/test-areadlinkat.c (main): Likewise.
27369         * tests/test-canonicalize-lgpl.c (main): Likewise.
27370         * tests/test-canonicalize.c (main): Likewise.
27371         * tests/test-chown.c (main): Likewise.
27372         * tests/test-fchownat.c (main): Likewise.
27373         * tests/test-fdutimensat.c (main): Likewise.
27374         * tests/test-fstatat.c (main): Likewise.
27375         * tests/test-futimens.c (main): Likewise.
27376         * tests/test-lchown.c (main): Likewise.
27377         * tests/test-link.c (main): Likewise.
27378         * tests/test-linkat.c (main): Likewise.
27379         * tests/test-lstat.c (main): Likewise.
27380         * tests/test-mkdir.c (main): Likewise.
27381         * tests/test-mkdirat.c (main): Likewise.
27382         * tests/test-mkfifo.c (main): Likewise.
27383         * tests/test-mkfifoat.c (main): Likewise.
27384         * tests/test-mknod.c (main): Likewise.
27385         * tests/test-readlink.c (main): Likewise.
27386         * tests/test-remove.c (main): Likewise.
27387         * tests/test-rename.c (main): Likewise.
27388         * tests/test-renameat.c (main): Likewise.
27389         * tests/test-rmdir.c (main): Likewise.
27390         * tests/test-symlink.c (main): Likewise.
27391         * tests/test-symlinkat.c (main): Likewise.
27392         * tests/test-unlink.c (main): Likewise.
27393         * tests/test-unlinkat.c (main): Likewise.
27394         * tests/test-utimens.c (main): Likewise.
27395         * tests/test-utimensat.c (main): Likewise.
27396         * modules/areadlink-tests (Depends-on): Add ignore-value.
27397         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27398         * modules/areadlinkat-tests (Depends-on): Likewise.
27399         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27400         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27401         * modules/canonicalize-tests (Depends-on): Likewise.
27402         * modules/chown-tests (Depends-on): Likewise.
27403         * modules/fdutimensat-tests (Depends-on): Likewise.
27404         * modules/futimens-tests (Depends-on): Likewise.
27405         * modules/lchown-tests (Depends-on): Likewise.
27406         * modules/link-tests (Depends-on): Likewise.
27407         * modules/linkat-tests (Depends-on): Likewise.
27408         * modules/lstat-tests (Depends-on): Likewise.
27409         * modules/mkdir-tests (Depends-on): Likewise.
27410         * modules/mkfifo-tests (Depends-on): Likewise.
27411         * modules/mkfifoat-tests (Depends-on): Likewise.
27412         * modules/mknod-tests (Depends-on): Likewise.
27413         * modules/openat-tests (Depends-on): Likewise.
27414         * modules/readlink-tests (Depends-on): Likewise.
27415         * modules/remove-tests (Depends-on): Likewise.
27416         * modules/rename-tests (Depends-on): Likewise.
27417         * modules/renameat-tests (Depends-on): Likewise.
27418         * modules/rmdir-tests (Depends-on): Likewise.
27419         * modules/symlink-tests (Depends-on): Likewise.
27420         * modules/symlinkat-tests (Depends-on): Likewise.
27421         * modules/unlink-tests (Depends-on): Likewise.
27422         * modules/utimens-tests (Depends-on): Likewise.
27423         * modules/utimensat-tests (Depends-on): Likewise.
27424
27425 2010-01-31  Bruno Haible  <bruno@clisp.org>
27426
27427         Perform the same test for many <math.h> functions.
27428         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27429         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27430         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27431         of gl_MATHFUNC.
27432         * modules/acos (configure.ac): Likewise.
27433         * modules/asin (configure.ac): Likewise.
27434         * modules/atan (configure.ac): Likewise.
27435         * modules/atan2 (configure.ac): Likewise.
27436         * modules/cbrt (configure.ac): Likewise.
27437         * modules/copysign (configure.ac): Likewise.
27438         * modules/cos (configure.ac): Likewise.
27439         * modules/cosh (configure.ac): Likewise.
27440         * modules/erf (configure.ac): Likewise.
27441         * modules/erfc (configure.ac): Likewise.
27442         * modules/exp (configure.ac): Likewise.
27443         * modules/fmod (configure.ac): Likewise.
27444         * modules/hypot (configure.ac): Likewise.
27445         * modules/j0 (configure.ac): Likewise.
27446         * modules/j1 (configure.ac): Likewise.
27447         * modules/jn (configure.ac): Likewise.
27448         * modules/lgamma (configure.ac): Likewise.
27449         * modules/log (configure.ac): Likewise.
27450         * modules/log10 (configure.ac): Likewise.
27451         * modules/log1p (configure.ac): Likewise.
27452         * modules/pow (configure.ac): Likewise.
27453         * modules/remainder (configure.ac): Likewise.
27454         * modules/sin (configure.ac): Likewise.
27455         * modules/sinh (configure.ac): Likewise.
27456         * modules/tan (configure.ac): Likewise.
27457         * modules/tanh (configure.ac): Likewise.
27458         * modules/y0 (configure.ac): Likewise.
27459         * modules/y1 (configure.ac): Likewise.
27460         * modules/yn (configure.ac): Likewise.
27461         Suggested by Paolo Bonzini.
27462
27463 2010-01-31  Bruno Haible  <bruno@clisp.org>
27464
27465         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27466
27467 2010-01-31  Bruno Haible  <bruno@clisp.org>
27468
27469         Work around getdelim() bug on FreeBSD 8.0.
27470         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27471         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27472         not work.
27473         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27474         is 1.
27475         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27476         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27477         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27478         a non-zero size.
27479         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27480
27481 2010-01-31  Bruno Haible  <bruno@clisp.org>
27482
27483         Work around getline() bug on FreeBSD 8.0.
27484         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27485         and a non-zero size.
27486         * tests/test-getline.c (main): Likewise.
27487         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27488         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27489
27490 2010-01-28  Eric Blake  <ebb9@byu.net>
27491
27492         regex: fix build failure
27493         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27494         platforms.
27495
27496 2010-01-28  Jim Meyering  <meyering@redhat.com>
27497
27498         regex: do not ignore memory allocation failure
27499         * lib/regex_internal.c (create_cd_newstate): Detect
27500         re_node_set_init_copy failure.   Extracted from glibc commit
27501         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27502
27503         regex: sync more white-space changes from libc
27504         * lib/regex_internal.c: White-space only changes.
27505         * lib/regexec.c: Likewise.
27506
27507         regex: add many uses of __attribute_warn_unused_result__
27508         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27509         * lib/regexec.c: Likewise.
27510         Extracted from a messy glibc commit.
27511
27512         regcomp.c: spelling and merge-artifact from glibc
27513         * lib/regcomp.c: Merge remainder of glibc's
27514         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27515
27516         regcomp.c: sync white-space changes from glibc
27517         * lib/regcomp.c: Merge to accommodate white space
27518         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27519
27520         regcomp.c: do not ignore internal return values
27521         * lib/regcomp.c: Do not ignore internal return values.
27522         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27523         but without its white-space changes and spelling fixes.
27524
27525         regex_internal.h: define __attribute_warn_unused_result__
27526         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27527
27528         maint: add a syntax-check rule to check for vulnerable Makefile.in
27529         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27530
27531 2010-01-27  Jim Meyering  <meyering@redhat.com>
27532
27533         ncftpput-ftp: clean up spaces
27534         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27535         Remove trailing blanks.
27536
27537 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27538
27539         * build-aux/git-version-gen: Fix copyright statement.
27540         * build-aux/gnupload: Likewise.
27541         * tests/test-arcfour.c: Likewise.
27542         * tests/test-arctwo.c: Likewise.
27543         * tests/test-count-one-bits.c: Likewise.
27544         * tests/test-crc.c: Likewise.
27545         * tests/test-des.c: Likewise.
27546         * tests/test-gc-arcfour.c: Likewise.
27547         * tests/test-gc-arctwo.c: Likewise.
27548         * tests/test-gc-des.c: Likewise.
27549         * tests/test-gc-hmac-md5.c: Likewise.
27550         * tests/test-gc-hmac-sha1.c: Likewise.
27551         * tests/test-gc-md2.c: Likewise.
27552         * tests/test-gc-md4.c: Likewise.
27553         * tests/test-gc-md5.c: Likewise.
27554         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27555         * tests/test-gc-rijndael.c: Likewise.
27556         * tests/test-gc-sha1.c: Likewise.
27557         * tests/test-gc.c: Likewise.
27558         * tests/test-gethostname.c: Likewise.
27559         * tests/test-gettimeofday.c: Likewise.
27560         * tests/test-hash.c: Likewise.
27561         * tests/test-hmac-md5.c: Likewise.
27562         * tests/test-hmac-sha1.c: Likewise.
27563         * tests/test-md2.c: Likewise.
27564         * tests/test-md4.c: Likewise.
27565         * tests/test-md5.c: Likewise.
27566         * tests/test-memchr.c: Likewise.
27567         * tests/test-memchr2.c: Likewise.
27568         * tests/test-memcmp.c: Likewise.
27569         * tests/test-memmem.c: Likewise.
27570         * tests/test-memrchr.c: Likewise.
27571         * tests/test-rawmemchr.c: Likewise.
27572         * tests/test-read-file.c: Likewise.
27573         * tests/test-rijndael.c: Likewise.
27574         * tests/test-sockets.c: Likewise.
27575         * tests/test-strchrnul.c: Likewise.
27576         * tests/test-strstr.c: Likewise.
27577         * tests/test-strtod.c: Likewise.
27578         * build-aux/ncftpput-ftp: Likewise.
27579
27580 2010-01-26  Eric Blake  <ebb9@byu.net>
27581
27582         ignore-value: update recommended header name
27583         * modules/ignore-value (Include): Only use <> for headers that
27584         exist in glibc.
27585
27586 2010-01-26  Jim Meyering  <meyering@redhat.com>
27587
27588         test-userspec.c: avoid compiler warnings
27589         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27590         and "initialization discards qualifiers..." warnings.
27591         Put the first "uid" in its own scope, and make char* members "const".
27592
27593 2010-01-25  Bruno Haible  <bruno@clisp.org>
27594
27595         gnulib-tool: Make warning diagnostics consistent.
27596         * gnulib-tool (func_warning): New function.
27597         Use it everywhere where gnulib-tool produces output to stderr and it is
27598         not a fatal error.
27599
27600 2010-01-25  Bruno Haible  <bruno@clisp.org>
27601
27602         Fix test dependencies.
27603         * modules/xstrtol-tests (Depends-on): Add inttypes.
27604         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27605
27606 2010-01-25 Pádraig Brady <P@draigBrady.com>
27607
27608         syntax-check: detect incorrect boolean macro values in config.h
27609         * modules/maintainer-makefile (configure.ac): Parameterize the location
27610         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27611         The logic is from Eric Blake and the location indicated by Jim Meyering.
27612         Note the more natural CONFIG_HEADER name is prohibited by automake
27613         for backwards compatibility reasons.
27614         * top/maint.mk (sc_Wundef_boolean): New rule.
27615
27616 2010-01-25  Jim Meyering  <meyering@redhat.com>
27617
27618         bootstrap: detect MacOS 10.6's shasum, too
27619         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27620         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27621
27622 2010-01-23  Jim Meyering  <meyering@redhat.com>
27623
27624         xstrtoll: new module
27625         * modules/xstrtoll: New file.
27626         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27627         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27628         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27629         ./configure fails if you use this module and lack "long long".
27630         * modules/xstrtoll-tests: New module.
27631         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27632         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27633         new init.sh-based test framework.
27634
27635 2010-01-24  Bruno Haible  <bruno@clisp.org>
27636
27637         Tests for module 'yn'.
27638         * modules/yn-tests: New file.
27639         * tests/test-yn.c: New file.
27640
27641         Tests for module 'y1'.
27642         * modules/y1-tests: New file.
27643         * tests/test-y1.c: New file.
27644
27645         Tests for module 'y0'.
27646         * modules/y0-tests: New file.
27647         * tests/test-y0.c: New file.
27648
27649         Tests for module 'tanh'.
27650         * modules/tanh-tests: New file.
27651         * tests/test-tanh.c: New file.
27652
27653         Tests for module 'tan'.
27654         * modules/tan-tests: New file.
27655         * tests/test-tan.c: New file.
27656
27657         Tests for module 'sqrt'.
27658         * modules/sqrt-tests: New file.
27659         * tests/test-sqrt.c: New file.
27660
27661         Tests for module 'sinh'.
27662         * modules/sinh-tests: New file.
27663         * tests/test-sinh.c: New file.
27664
27665         Tests for module 'sin'.
27666         * modules/sin-tests: New file.
27667         * tests/test-sin.c: New file.
27668
27669         Tests for module 'rint'.
27670         * modules/rint-tests: New file.
27671         * tests/test-rint.c: New file.
27672
27673         Tests for module 'remainder'.
27674         * modules/remainder-tests: New file.
27675         * tests/test-remainder.c: New file.
27676
27677         Tests for module 'pow'.
27678         * modules/pow-tests: New file.
27679         * tests/test-pow.c: New file.
27680
27681         Tests for module 'nextafter'.
27682         * modules/nextafter-tests: New file.
27683         * tests/test-nextafter.c: New file.
27684
27685         Tests for module 'modf'.
27686         * modules/modf-tests: New file.
27687         * tests/test-modf.c: New file.
27688
27689         Tests for module 'logb'.
27690         * modules/logb-tests: New file.
27691         * tests/test-logb.c: New file.
27692
27693         Tests for module 'log1p'.
27694         * modules/log1p-tests: New file.
27695         * tests/test-log1p.c: New file.
27696
27697         Tests for module 'log10'.
27698         * modules/log10-tests: New file.
27699         * tests/test-log10.c: New file.
27700
27701         Tests for module 'log'.
27702         * modules/log-tests: New file.
27703         * tests/test-log.c: New file.
27704
27705         Tests for module 'lgamma'.
27706         * modules/lgamma-tests: New file.
27707         * tests/test-lgamma.c: New file.
27708
27709         Tests for module 'ldexp'.
27710         * modules/ldexp-tests: New file.
27711         * tests/test-ldexp.c: New file.
27712
27713         Tests for module 'jn'.
27714         * modules/jn-tests: New file.
27715         * tests/test-jn.c: New file.
27716
27717         Tests for module 'j1'.
27718         * modules/j1-tests: New file.
27719         * tests/test-j1.c: New file.
27720
27721         Tests for module 'j0'.
27722         * modules/j0-tests: New file.
27723         * tests/test-j0.c: New file.
27724
27725         Tests for module 'hypot'.
27726         * modules/hypot-tests: New file.
27727         * tests/test-hypot.c: New file.
27728
27729         Tests for module 'fmod'.
27730         * modules/fmod-tests: New file.
27731         * tests/test-fmod.c: New file.
27732
27733         Tests for module 'fabs'.
27734         * modules/fabs-tests: New file.
27735         * tests/test-fabs.c: New file.
27736
27737         Tests for module 'exp'.
27738         * modules/exp-tests: New file.
27739         * tests/test-exp.c: New file.
27740
27741         Tests for module 'erfc'.
27742         * modules/erfc-tests: New file.
27743         * tests/test-erfc.c: New file.
27744
27745         Tests for module 'erf'.
27746         * modules/erf-tests: New file.
27747         * tests/test-erf.c: New file.
27748
27749         Tests for module 'cosh'.
27750         * modules/cosh-tests: New file.
27751         * tests/test-cosh.c: New file.
27752
27753         Tests for module 'cos'.
27754         * modules/cos-tests: New file.
27755         * tests/test-cos.c: New file.
27756
27757         Tests for module 'copysign'.
27758         * modules/copysign-tests: New file.
27759         * tests/test-copysign.c: New file.
27760
27761         Tests for module 'cbrt'.
27762         * modules/cbrt-tests: New file.
27763         * tests/test-cbrt.c: New file.
27764
27765         Tests for module 'atan2'.
27766         * modules/atan2-tests: New file.
27767         * tests/test-atan2.c: New file.
27768
27769         Tests for module 'atan'.
27770         * modules/atan-tests: New file.
27771         * tests/test-atan.c: New file.
27772
27773         Tests for module 'asin'.
27774         * modules/asin-tests: New file.
27775         * tests/test-asin.c: New file.
27776
27777         Tests for module 'acos'.
27778         * modules/acos-tests: New file.
27779         * tests/test-acos.c: New file.
27780
27781 2010-01-24  Bruno Haible  <bruno@clisp.org>
27782
27783         Fix tests for common <math.h> functions.
27784         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27785         code snippet that references the function pointer, rather than merely
27786         calling the function. Substitute the FUNC_LIBM variable.
27787         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27788         * modules/acos (configure.ac): Likewise.
27789         * modules/asin (configure.ac): Likewise.
27790         * modules/atan (configure.ac): Likewise.
27791         * modules/atan2 (configure.ac): Likewise.
27792         * modules/cbrt (configure.ac): Likewise.
27793         * modules/copysign (configure.ac): Likewise.
27794         * modules/cos (configure.ac): Likewise.
27795         * modules/cosh (configure.ac): Likewise.
27796         * modules/erf (configure.ac): Likewise.
27797         * modules/erfc (configure.ac): Likewise.
27798         * modules/exp (configure.ac): Likewise.
27799         * modules/fabs (configure.ac): Likewise.
27800         * modules/fmod (configure.ac): Likewise.
27801         * modules/hypot (configure.ac): Likewise.
27802         * modules/j0 (configure.ac): Likewise.
27803         * modules/j1 (configure.ac): Likewise.
27804         * modules/jn (configure.ac): Likewise.
27805         * modules/ldexp (configure.ac): Likewise.
27806         * modules/lgamma (configure.ac): Likewise.
27807         * modules/log (configure.ac): Likewise.
27808         * modules/log10 (configure.ac): Likewise.
27809         * modules/log1p (configure.ac): Likewise.
27810         * modules/logb (configure.ac): Likewise.
27811         * modules/modf (configure.ac): Likewise.
27812         * modules/nextafter (configure.ac): Likewise.
27813         * modules/pow (configure.ac): Likewise.
27814         * modules/remainder (configure.ac): Likewise.
27815         * modules/rint (configure.ac): Likewise.
27816         * modules/sin (configure.ac): Likewise.
27817         * modules/sinh (configure.ac): Likewise.
27818         * modules/tan (configure.ac): Likewise.
27819         * modules/tanh (configure.ac): Likewise.
27820         * modules/y0 (configure.ac): Likewise.
27821         * modules/y1 (configure.ac): Likewise.
27822         * modules/yn (configure.ac): Likewise.
27823
27824 2010-01-24  Bruno Haible  <bruno@clisp.org>
27825
27826         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27827         * tests/test-acosl.c (x): New variable.
27828         (main): Store argument in x and fetch it from x.
27829         * tests/test-asinl.c (x): New variable.
27830         (main): Store argument in x and fetch it from x.
27831         * tests/test-atanl.c (x): New variable.
27832         (main): Store argument in x and fetch it from x.
27833         * tests/test-cosl.c (x): New variable.
27834         (main): Store argument in x and fetch it from x.
27835         * tests/test-expl.c (x): New variable.
27836         (main): Store argument in x and fetch it from x.
27837         * tests/test-logl.c (x): New variable.
27838         (main): Store argument in x and fetch it from x.
27839         * tests/test-sinl.c (x): New variable.
27840         (main): Store argument in x and fetch it from x.
27841         * tests/test-sqrtl.c (x): New variable.
27842         (main): Store argument in x and fetch it from x.
27843         * tests/test-tanl.c (x): New variable.
27844         (main): Store argument in x and fetch it from x.
27845
27846 2010-01-24  Bruno Haible  <bruno@clisp.org>
27847
27848         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27849         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27850         assignments to the initial TESTS_ENVIRONMENT.
27851         * doc/gnulib.texi (Unit test modules): Document it.
27852         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27853         TESTS_ENVIRONMENT.
27854         * modules/btowc-tests (Makefile.am): Likewise.
27855         * modules/c-stack-tests (Makefile.am): Likewise.
27856         * modules/c-strcase-tests (Makefile.am): Likewise.
27857         * modules/copy-file-tests (Makefile.am): Likewise.
27858         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27859         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27860         * modules/mbrtowc-tests (Makefile.am): Likewise.
27861         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27862         * modules/mbscasestr-tests (Makefile.am): Likewise.
27863         * modules/mbschr-tests (Makefile.am): Likewise.
27864         * modules/mbscspn-tests (Makefile.am): Likewise.
27865         * modules/mbsinit-tests (Makefile.am): Likewise.
27866         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27867         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27868         * modules/mbspbrk-tests (Makefile.am): Likewise.
27869         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27870         * modules/mbsrchr-tests (Makefile.am): Likewise.
27871         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27872         * modules/mbsspn-tests (Makefile.am): Likewise.
27873         * modules/mbsstr-tests (Makefile.am): Likewise.
27874         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27875         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27876         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27877         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27878         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27879         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27880         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27881         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27882         * modules/wcrtomb-tests (Makefile.am): Likewise.
27883         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27884         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27885         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27886         assignments from TESTS_ENVIRONMENT.
27887         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27888         augmentation.
27889         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27890         * modules/atexit-tests (Makefile.am): Likewise.
27891         * modules/binary-io-tests (Makefile.am): Likewise.
27892         * modules/closein-tests (Makefile.am): Likewise.
27893         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27894         * modules/exclude-tests (Makefile.am): Likewise.
27895         * modules/fflush-tests (Makefile.am): Likewise.
27896         * modules/fpending-tests (Makefile.am): Likewise.
27897         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27898         * modules/freadahead-tests (Makefile.am): Likewise.
27899         * modules/freadptr-tests (Makefile.am): Likewise.
27900         * modules/freadseek-tests (Makefile.am): Likewise.
27901         * modules/fseek-tests (Makefile.am): Likewise.
27902         * modules/fseeko-tests (Makefile.am): Likewise.
27903         * modules/ftell-tests (Makefile.am): Likewise.
27904         * modules/ftello-tests (Makefile.am): Likewise.
27905         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27906         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27907         * modules/lseek-tests (Makefile.am): Likewise.
27908         * modules/parse-duration-tests (Makefile.am): Likewise.
27909         * modules/perror-tests (Makefile.am): Likewise.
27910         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27911         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27912         * modules/pipe-tests (Makefile.am): Likewise.
27913         * modules/pread-tests (Makefile.am): Likewise.
27914         * modules/printf-posix-tests (Makefile.am): Likewise.
27915         * modules/select-tests (Makefile.am): Likewise.
27916         * modules/sigpipe-tests (Makefile.am): Likewise.
27917         * modules/tsearch-tests (Makefile.am): Likewise.
27918         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27919         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27920         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27921         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27922         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27923         * modules/version-etc-tests (Makefile.am): Likewise.
27924         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27925         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27926         * modules/xalloc-die-tests (Makefile.am): Likewise.
27927         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27928         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27929         * modules/xstrtol-tests (Makefile.am): Likewise.
27930         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27931         * modules/yesno-tests (Makefile.am): Likewise.
27932         Suggested by Jim Meyering.
27933
27934 2010-01-24  Bruno Haible  <bruno@clisp.org>
27935
27936         More documentation.
27937         * doc/gnulib.texi (Writing modules): New chapter.
27938         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27939         the new chapter.
27940
27941 2010-01-24  Jim Meyering  <meyering@redhat.com>
27942
27943         maint.mk: do not prepend "./" after filtering
27944         * top/maint.mk (_prepend_srcdir_prefix): New variable
27945         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27946         "./" when $(srcdir) is ".".
27947
27948         define STREQ(a,b) consistently, removing useless parentheses
27949         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27950         since the only risk is that "a" or "b" contains an unparenthesized
27951         comma, but if either did that, STREQ would have 3 or more arguments.
27952         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27953         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27954         * lib/hash-triple.c (STREQ): Likewise.
27955         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27956         * lib/getugroups.c (STREQ): Likewise.
27957
27958 2010-01-23  Jim Meyering  <meyering@redhat.com>
27959
27960         maint.mk: fix syntax-check in a non-srcdir build directory
27961         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27962         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27963
27964 2010-01-22  Jim Meyering  <meyering@redhat.com>
27965
27966         userspec: add unit tests
27967         * tests/test-userspec.c: New file.
27968         * modules/userspec-tests: Likewise.
27969
27970 2010-01-21  Jim Meyering  <meyering@redhat.com>
27971
27972         maint.mk: handle source file names containing "." robustly
27973         * top/maint.mk (_dot_escaped_srcdir): Define.
27974         (VC_LIST): Use it in LHS of sed substitution.
27975
27976 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27977
27978         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27979         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27980         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27981         from a non-srcdir build.
27982
27983 2010-01-20  Eric Blake  <ebb9@byu.net>
27984
27985         warn-on-use: use instead of link-warning
27986         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27987         * modules/unistd (Depends-on, Makefile.am): Likewise.
27988         * modules/arpa_inet (Depends-on): Replace link-warning with
27989         warn-on-use.
27990         (Makefile.am): Update rules accordingly.
27991         * modules/ctype (Depends-on, Makefile.am): Likewise.
27992         * modules/dirent (Depends-on, Makefile.am): Likewise.
27993         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27994         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27995         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27996         * modules/locale (Depends-on, Makefile.am): Likewise.
27997         * modules/math (Depends-on, Makefile.am): Likewise.
27998         * modules/search (Depends-on, Makefile.am): Likewise.
27999         * modules/signal (Depends-on, Makefile.am): Likewise.
28000         * modules/spawn (Depends-on, Makefile.am): Likewise.
28001         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28002         * modules/string (Depends-on, Makefile.am): Likewise.
28003         * modules/strings (Depends-on, Makefile.am): Likewise.
28004         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28005         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28006         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28007         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28008         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28009         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28010         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28011         * modules/wchar (Depends-on, Makefile.am): Likewise.
28012         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28013         should be poisoned.
28014         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28015         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28016         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28017         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28018         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28019         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28020         * m4/math_h.m4 (gl_MATH_H): Likewise.
28021         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28022         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28023         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28024         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28025         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28026         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28027         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28028         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28029         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28030         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28031         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28032         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28033         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28034         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28035         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28036         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28037         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28038         GL_LINK_WARNING.
28039         * lib/ctype.in.h: Likewise.
28040         * lib/dirent.in.h: Likewise.
28041         * lib/fcntl.in.h: Likewise.
28042         * lib/inttypes.in.h: Likewise.
28043         * lib/langinfo.in.h: Likewise.
28044         * lib/locale.in.h: Likewise.
28045         * lib/math.in.h: Likewise.
28046         * lib/search.in.h: Likewise.
28047         * lib/signal.in.h: Likewise.
28048         * lib/spawn.in.h: Likewise.
28049         * lib/stdio.in.h: Likewise.
28050         * lib/stdlib.in.h: Likewise.
28051         * lib/string.in.h: Likewise.
28052         * lib/strings.in.h: Likewise.
28053         * lib/sys_file.in.h: Likewise.
28054         * lib/sys_ioctl.in.h: Likewise.
28055         * lib/sys_select.in.h: Likewise.
28056         * lib/sys_socket.in.h: Likewise.
28057         * lib/sys_stat.in.h: Likewise.
28058         * lib/sys_times.in.h: Likewise.
28059         * lib/sys_utsname.in.h: Likewise.
28060         * lib/unistd.in.h: Likewise.
28061         * lib/wchar.in.h: Likewise.
28062
28063 2010-01-20  Bruno Haible  <bruno@clisp.org>
28064
28065         Avoid duplicate -lm.
28066         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28067         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28068         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28069         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28070         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28071         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28072         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28073         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28074         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28075         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28076         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28077         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28078         Reported by Paolo Bonzini.
28079
28080 2010-01-19  Bruno Haible  <bruno@clisp.org>
28081
28082         langinfo, nl_langinfo: Relicense under LGPLv2+.
28083         * modules/langinfo (License): Change to LGPLv2+.
28084         * modules/nl_langinfo (License): Likewise.
28085         Patch by David Lutterkort <lutter@redhat.com>.
28086
28087 2010-01-19  Bruno Haible  <bruno@clisp.org>
28088
28089         Avoid compilation error with cc on OSF/1 5.1.
28090         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28091         statement, not before.
28092         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28093
28094 2010-01-18  Bruno Haible  <bruno@clisp.org>
28095
28096         Avoid a link error due to the __printf__ symbol.
28097         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28098         and 2.6.x.
28099         (__format__, __printf__): Remove definitions.
28100         * lib/argp-fmtstream.h: Likewise.
28101         * lib/argp.h: Likewise.
28102         * lib/error.h: Likewise.
28103         * lib/vasnprintf.h: Likewise.
28104         * lib/xprintf.h: Likewise.
28105         * lib/xvasprintf.h: Likewise.
28106         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28107
28108 2010-01-18  Bruno Haible  <bruno@clisp.org>
28109
28110         Tests for module 'tanl'.
28111         * modules/tanl-tests: New file.
28112         * tests/test-tanl.c: New file.
28113
28114         Tests for module 'sqrtl'.
28115         * modules/sqrtl-tests: New file.
28116         * tests/test-sqrtl.c: New file.
28117
28118         Tests for module 'sinl'.
28119         * modules/sinl-tests: New file.
28120         * tests/test-sinl.c: New file.
28121
28122         Tests for module 'logl'.
28123         * modules/logl-tests: New file.
28124         * tests/test-logl.c: New file.
28125
28126         Tests for module 'expl'.
28127         * modules/expl-tests: New file.
28128         * tests/test-expl.c: New file.
28129
28130         Tests for module 'cosl'.
28131         * modules/cosl-tests: New file.
28132         * tests/test-cosl.c: New file.
28133
28134         Tests for module 'atanl'.
28135         * modules/atanl-tests: New file.
28136         * tests/test-atanl.c: New file.
28137
28138         Tests for module 'asinl'.
28139         * modules/asinl-tests: New file.
28140         * tests/test-asinl.c: New file.
28141
28142         Tests for module 'acosl'.
28143         * modules/acosl-tests: New file.
28144         * tests/test-acosl.c: New file.
28145
28146         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28147         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28148         tanl): Use the standard gnulib idiom.
28149         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28150         * lib/sinl.c: Likewise.
28151         * lib/tanl.c: Don't include trigl.c.
28152         (kernel_tanl): Make static.
28153         * lib/sincosl.c: Include trigl.h first.
28154         * lib/trigl.c: Likewise.
28155         * m4/acosl.m4: New file.
28156         * m4/asinl.m4: New file.
28157         * m4/atanl.m4: New file.
28158         * m4/cosl.m4: New file.
28159         * m4/expl.m4: New file.
28160         * m4/logl.m4: New file.
28161         * m4/sinl.m4: New file.
28162         * m4/sqrtl.m4: New file.
28163         * m4/tanl.m4: New file.
28164         * m4/mathl.m4: Remove file.
28165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28166         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28167         Don't initialize GNULIB_MATHL.
28168         * modules/acosl: New file.
28169         * modules/asinl: New file.
28170         * modules/atanl: New file.
28171         * modules/cosl: New file.
28172         * modules/expl: New file.
28173         * modules/logl: New file.
28174         * modules/sinl: New file.
28175         * modules/sqrtl: New file.
28176         * modules/tanl: New file.
28177         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28178         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28179         substitute GNULIB_MATHL.
28180         * modules/mathl: Rewritten.
28181         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28182         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28183         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28184         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28185         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28186         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28187         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28188         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28189         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28190
28191 2010-01-18  Bruno Haible  <bruno@clisp.org>
28192
28193         sqrt: Make gl_FUNC_SQRT requirable.
28194         * m4/sqrt.m4: New file.
28195         * modules/sqrt (Files): Add it.
28196         (configure.ac): Invoke gl_FUNC_SQRT.
28197
28198 2010-01-18  Bruno Haible  <bruno@clisp.org>
28199
28200         New modules for common <math.h> functions.
28201         * m4/mathfunc.m4: New file.
28202         * modules/acos: New file.
28203         * modules/asin: New file.
28204         * modules/atan: New file.
28205         * modules/atan2: New file.
28206         * modules/cbrt: New file.
28207         * modules/copysign: New file.
28208         * modules/cos: New file.
28209         * modules/cosh: New file.
28210         * modules/erf: New file.
28211         * modules/erfc: New file.
28212         * modules/exp: New file.
28213         * modules/fabs: New file.
28214         * modules/fmod: New file.
28215         * modules/hypot: New file.
28216         * modules/j0: New file.
28217         * modules/j1: New file.
28218         * modules/jn: New file.
28219         * modules/ldexp: New file.
28220         * modules/lgamma: New file.
28221         * modules/log: New file.
28222         * modules/log10: New file.
28223         * modules/log1p: New file.
28224         * modules/logb: New file.
28225         * modules/modf: New file.
28226         * modules/nextafter: New file.
28227         * modules/pow: New file.
28228         * modules/remainder: New file.
28229         * modules/rint: New file.
28230         * modules/sin: New file.
28231         * modules/sinh: New file.
28232         * modules/sqrt: New file.
28233         * modules/tan: New file.
28234         * modules/tanh: New file.
28235         * modules/y0: New file.
28236         * modules/y1: New file.
28237         * modules/yn: New file.
28238         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28239         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28240         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28241         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28242         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28243         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28244         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28245         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28246         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28247         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28248         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28249         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28250         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28251         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28252         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28253         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28254         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28255         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28256         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28257         * doc/posix-functions/log.texi: Mention the 'log' module.
28258         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28259         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28260         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28261         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28262         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28263         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28264         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28265         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28266         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28267         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28268         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28269         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28270         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28271         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28272         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28273         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28274
28275 2010-01-18  Jim Meyering  <meyering@redhat.com>
28276
28277         ignore-value: relax license to LGPLv2+
28278         * modules/ignore-value (License): Relax to LGPLv2+.
28279
28280         getdate: don't leak when TZ contains two or more '"'s
28281         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28282         double quote in TZ after the first one.
28283
28284         readtokens: do not leak internal token_lengths buffer
28285         * lib/readtokens.c (readtokens): Free the local, lengths,
28286         when the supplied "token_lengths" parameter is NULL.
28287
28288 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28289
28290         Fix a couple of missing LIBTHREAD link failures on AIX.
28291         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28292         $(LIBTHREAD).
28293         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28294
28295         Link test-poll against INET_PTON_LIB.
28296         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28297         for inet_pton on Solaris 10.
28298
28299 2010-01-17  Bruno Haible  <bruno@clisp.org>
28300
28301         unistdio/*-sprintf: Fix typo in module description.
28302         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28303         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28304         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28305         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28306         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28307         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28308         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28309         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28310
28311 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28312
28313         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28314         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28315         variables in shell case patterns, for AIX and HP-UX ksh.
28316
28317         Split large sed scripts, for HP-UX sed.
28318         * modules/stdio: Split sed scripts around 50 sed commands,
28319         to avoid HP-UX limit of 99 commands, in the near future.
28320         * modules/string: Likewise.
28321         * modules/unistd: Likewise.
28322
28323         gnulib-tool: avoid writing in the current directory.
28324         * gnulib-tool (func_emit_lib_Makefile_am)
28325         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28326         not in the current directory, so concurrent gnulib-tool
28327         instances do not interfere.
28328
28329 2010-01-16  Jim Meyering  <meyering@redhat.com>
28330
28331         doc: update users.txt
28332         * users.txt: Add grep.
28333         (diffutils, gzip): Update URLs.
28334
28335 2010-01-12  Bruno Haible  <bruno@clisp.org>
28336
28337         posix_spawn: Avoid test failure on Cygwin.
28338         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28339         characters.
28340         Reported by Simon Josefsson.
28341
28342 2010-01-12  Bruno Haible  <bruno@clisp.org>
28343
28344         * tests/test-cond.c (main): When skipping the test, show the reason.
28345
28346 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28347
28348         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28349
28350 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28351
28352         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28353         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28354
28355 2010-01-12  Eric Blake  <ebb9@byu.net>
28356
28357         build: guarantee AS_VAR_IF
28358         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28359         (gl_AS_VAR_IF): Move...
28360         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28361         Reported by Simon Josefsson.
28362
28363 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28364
28365         * lib/stdio.in.h: Fix typo.
28366
28367 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28368
28369         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28370         libgpg-error.
28371
28372 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28373
28374         * tests/test-xalloc-die.sh: Use $EXEEXT.
28375
28376 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28377             Bruno Haible  <bruno@clisp.org>
28378
28379         getlogin, getlogin_r: Avoid test failure.
28380         * tests/test-getlogin.c: Include <stdio.h>.
28381         (main): Skip the test when the function fails because stdin is not a
28382         tty.
28383         * tests/test-getlogin_r.c: Include <stdio.h>.
28384         (main): Skip the test when the function fails because stdin is not a
28385         tty.
28386
28387 2010-01-11  Eric Blake  <ebb9@byu.net>
28388
28389         tests: avoid more large file warnings
28390         * tests/test-fflush.c: Avoid warning about ftell use.
28391         * tests/test-fseek.c: Avoid warning about fseek use.
28392
28393 2010-01-10  Bruno Haible  <bruno@clisp.org>
28394
28395         nproc: Work better on Linux when /proc and /sys are not mounted.
28396         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28397         as lower bound when, on glibc/Linux systems,
28398         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28399         Suggested by Pádraig Brady <P@draigbrady.com>.
28400         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28401
28402         nproc: Refactor.
28403         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28404         extracted from num_processors.
28405         (num_processors): Call it.
28406
28407 2010-01-11  Jim Meyering  <meyering@redhat.com>
28408
28409         utimecmp: avoid new warning from upcoming gcc-4.5.0
28410         * lib/utimecmp.c (BILLION): Define using #define rather than an
28411         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28412
28413 2010-01-11  Eric Blake  <ebb9@byu.net>
28414
28415         math: add portability warnings for classification macros
28416         * modules/math (Depends-on): Add warn-on-use.
28417         (Makefile.am): Provide new substitutions.
28418         * m4/math_h.m4 (gl_MATH_H): Require inline.
28419         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28420         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28421         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28422         implement warnings.
28423
28424         unistd: warn on use of environ without module
28425         * modules/unistd (Depends-on): Add warn-on-use.
28426         (Makefile.am): Provide new substitutions.
28427         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28428         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28429
28430         stdio: warn on suspicious uses
28431         * modules/stdio (Depends-on): Add warn-on-use.
28432         (Makefile.am): Provide new substitutions.
28433         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28434         fseeko.
28435         * lib/stdio.in.h (gets): Always warn on use.
28436         (fseek, ftell): Adjust when warnings are issued, and honor
28437         _GL_NO_LARGE_FILES as a way to silence the warning.
28438         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28439         any warning about large file offsets.
28440         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28441         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28442         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28443         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28444         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28445         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28446         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28447         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28448
28449         warn-on-use: new module
28450         * modules/warn-on-use: New file.
28451         * build-aux/warn-on-use.h: Likewise.
28452         * m4/warn-on-use.m4: Likewise.
28453         * MODULES.html.sh (Support for building): Mention it.
28454
28455 2010-01-10  Bruno Haible  <bruno@clisp.org>
28456
28457         Tests for module 'unistr/u32-strdup'.
28458         * modules/unistr/u32-strdup-tests: New file.
28459         * tests/unistr/test-u32-strdup.c: New file.
28460
28461         Tests for module 'unistr/u16-strdup'.
28462         * modules/unistr/u16-strdup-tests: New file.
28463         * tests/unistr/test-u16-strdup.c: New file.
28464
28465         Tests for module 'unistr/u8-strdup'.
28466         * modules/unistr/u8-strdup-tests: New file.
28467         * tests/unistr/test-u8-strdup.c: New file.
28468         * tests/unistr/test-strdup.h: New file.
28469
28470         Tests for module 'unistr/u32-strncmp'.
28471         * modules/unistr/u32-strncmp-tests: New file.
28472         * tests/unistr/test-u32-strncmp.c: New file.
28473
28474         Tests for module 'unistr/u16-strncmp'.
28475         * modules/unistr/u16-strncmp-tests: New file.
28476         * tests/unistr/test-u16-strncmp.c: New file.
28477
28478         Tests for module 'unistr/u8-strncmp'.
28479         * modules/unistr/u8-strncmp-tests: New file.
28480         * tests/unistr/test-u8-strncmp.c: New file.
28481         * tests/unistr/test-strncmp.h: New file.
28482
28483         Tests for module 'unistr/u32-strcoll'.
28484         * modules/unistr/u32-strcoll-tests: New file.
28485         * tests/unistr/test-u32-strcoll.c: New file.
28486
28487         Tests for module 'unistr/u16-strcoll'.
28488         * modules/unistr/u16-strcoll-tests: New file.
28489         * tests/unistr/test-u16-strcoll.c: New file.
28490
28491         Tests for module 'unistr/u8-strcoll'.
28492         * modules/unistr/u8-strcoll-tests: New file.
28493         * tests/unistr/test-u8-strcoll.c: New file.
28494
28495         Tests for module 'unistr/u32-strcmp'.
28496         * modules/unistr/u32-strcmp-tests: New file.
28497         * tests/unistr/test-u32-strcmp.c: New file.
28498         * tests/unistr/test-u32-strcmp.h: New file.
28499
28500         Tests for module 'unistr/u16-strcmp'.
28501         * modules/unistr/u16-strcmp-tests: New file.
28502         * tests/unistr/test-u16-strcmp.c: New file.
28503         * tests/unistr/test-u16-strcmp.h: New file.
28504
28505         Tests for module 'unistr/u8-strcmp'.
28506         * modules/unistr/u8-strcmp-tests: New file.
28507         * tests/unistr/test-u8-strcmp.c: New file.
28508         * tests/unistr/test-u8-strcmp.h: New file.
28509         * tests/unistr/test-strcmp.h: New file.
28510
28511         Tests for module 'unistr/u32-strncat'.
28512         * modules/unistr/u32-strncat-tests: New file.
28513         * tests/unistr/test-u32-strncat.c: New file.
28514
28515         Tests for module 'unistr/u16-strncat'.
28516         * modules/unistr/u16-strncat-tests: New file.
28517         * tests/unistr/test-u16-strncat.c: New file.
28518
28519         Tests for module 'unistr/u8-strncat'.
28520         * modules/unistr/u8-strncat-tests: New file.
28521         * tests/unistr/test-u8-strncat.c: New file.
28522         * tests/unistr/test-strncat.h: New file.
28523
28524         Tests for module 'unistr/u32-strcat'.
28525         * modules/unistr/u32-strcat-tests: New file.
28526         * tests/unistr/test-u32-strcat.c: New file.
28527
28528         Tests for module 'unistr/u16-strcat'.
28529         * modules/unistr/u16-strcat-tests: New file.
28530         * tests/unistr/test-u16-strcat.c: New file.
28531
28532         Tests for module 'unistr/u8-strcat'.
28533         * modules/unistr/u8-strcat-tests: New file.
28534         * tests/unistr/test-u8-strcat.c: New file.
28535         * tests/unistr/test-strcat.h: New file.
28536
28537         Tests for module 'unistr/u32-stpncpy'.
28538         * modules/unistr/u32-stpncpy-tests: New file.
28539         * tests/unistr/test-u32-stpncpy.c: New file.
28540
28541         Tests for module 'unistr/u16-stpncpy'.
28542         * modules/unistr/u16-stpncpy-tests: New file.
28543         * tests/unistr/test-u16-stpncpy.c: New file.
28544
28545         Tests for module 'unistr/u8-stpncpy'.
28546         * modules/unistr/u8-stpncpy-tests: New file.
28547         * tests/unistr/test-u8-stpncpy.c: New file.
28548         * tests/unistr/test-stpncpy.h: New file.
28549
28550         Tests for module 'unistr/u32-strncpy'.
28551         * modules/unistr/u32-strncpy-tests: New file.
28552         * tests/unistr/test-u32-strncpy.c: New file.
28553
28554         Tests for module 'unistr/u16-strncpy'.
28555         * modules/unistr/u16-strncpy-tests: New file.
28556         * tests/unistr/test-u16-strncpy.c: New file.
28557
28558         Tests for module 'unistr/u8-strncpy'.
28559         * modules/unistr/u8-strncpy-tests: New file.
28560         * tests/unistr/test-u8-strncpy.c: New file.
28561         * tests/unistr/test-strncpy.h: New file.
28562
28563         Tests for module 'unistr/u32-stpcpy'.
28564         * modules/unistr/u32-stpcpy-tests: New file.
28565         * tests/unistr/test-u32-stpcpy.c: New file.
28566
28567         Tests for module 'unistr/u16-stpcpy'.
28568         * modules/unistr/u16-stpcpy-tests: New file.
28569         * tests/unistr/test-u16-stpcpy.c: New file.
28570
28571         Tests for module 'unistr/u8-stpcpy'.
28572         * modules/unistr/u8-stpcpy-tests: New file.
28573         * tests/unistr/test-u8-stpcpy.c: New file.
28574         * tests/unistr/test-stpcpy.h: New file.
28575
28576         Tests for module 'unistr/u32-strcpy'.
28577         * modules/unistr/u32-strcpy-tests: New file.
28578         * tests/unistr/test-u32-strcpy.c: New file.
28579
28580         Tests for module 'unistr/u16-strcpy'.
28581         * modules/unistr/u16-strcpy-tests: New file.
28582         * tests/unistr/test-u16-strcpy.c: New file.
28583
28584         Tests for module 'unistr/u8-strcpy'.
28585         * modules/unistr/u8-strcpy-tests: New file.
28586         * tests/unistr/test-u8-strcpy.c: New file.
28587         * tests/unistr/test-strcpy.h: New file.
28588
28589         Tests for module 'unistr/u32-strnlen'.
28590         * modules/unistr/u32-strnlen-tests: New file.
28591         * tests/unistr/test-u32-strnlen.c: New file.
28592
28593         Tests for module 'unistr/u16-strnlen'.
28594         * modules/unistr/u16-strnlen-tests: New file.
28595         * tests/unistr/test-u16-strnlen.c: New file.
28596
28597         Tests for module 'unistr/u8-strnlen'.
28598         * modules/unistr/u8-strnlen-tests: New file.
28599         * tests/unistr/test-u8-strnlen.c: New file.
28600         * tests/unistr/test-strnlen.h: New file.
28601
28602         Tests for module 'unistr/u32-strlen'.
28603         * modules/unistr/u32-strlen-tests: New file.
28604         * tests/unistr/test-u32-strlen.c: New file.
28605
28606         Tests for module 'unistr/u16-strlen'.
28607         * modules/unistr/u16-strlen-tests: New file.
28608         * tests/unistr/test-u16-strlen.c: New file.
28609
28610         Tests for module 'unistr/u8-strlen'.
28611         * modules/unistr/u8-strlen-tests: New file.
28612         * tests/unistr/test-u8-strlen.c: New file.
28613
28614         Tests for module 'unistr/u32-prev'.
28615         * modules/unistr/u32-prev-tests: New file.
28616         * tests/unistr/test-u32-prev.c: New file.
28617
28618         Tests for module 'unistr/u16-prev'.
28619         * modules/unistr/u16-prev-tests: New file.
28620         * tests/unistr/test-u16-prev.c: New file.
28621
28622         Tests for module 'unistr/u8-prev'.
28623         * modules/unistr/u8-prev-tests: New file.
28624         * tests/unistr/test-u8-prev.c: New file.
28625
28626         Tests for module 'unistr/u32-next'.
28627         * modules/unistr/u32-next-tests: New file.
28628         * tests/unistr/test-u32-next.c: New file.
28629
28630         Tests for module 'unistr/u16-next'.
28631         * modules/unistr/u16-next-tests: New file.
28632         * tests/unistr/test-u16-next.c: New file.
28633
28634         Tests for module 'unistr/u8-next'.
28635         * modules/unistr/u8-next-tests: New file.
28636         * tests/unistr/test-u8-next.c: New file.
28637
28638         Tests for module 'unistr/u32-strmbtouc'.
28639         * modules/unistr/u32-strmbtouc-tests: New file.
28640         * tests/unistr/test-u32-strmbtouc.c: New file.
28641
28642         Tests for module 'unistr/u16-strmbtouc'.
28643         * modules/unistr/u16-strmbtouc-tests: New file.
28644         * tests/unistr/test-u16-strmbtouc.c: New file.
28645
28646         Tests for module 'unistr/u8-strmbtouc'.
28647         * modules/unistr/u8-strmbtouc-tests: New file.
28648         * tests/unistr/test-u8-strmbtouc.c: New file.
28649
28650         Tests for module 'unistr/u32-strmblen'.
28651         * modules/unistr/u32-strmblen-tests: New file.
28652         * tests/unistr/test-u32-strmblen.c: New file.
28653
28654         Tests for module 'unistr/u16-strmblen'.
28655         * modules/unistr/u16-strmblen-tests: New file.
28656         * tests/unistr/test-u16-strmblen.c: New file.
28657
28658         Tests for module 'unistr/u8-strmblen'.
28659         * modules/unistr/u8-strmblen-tests: New file.
28660         * tests/unistr/test-u8-strmblen.c: New file.
28661
28662         Tests for module 'unistr/u32-cpy-alloc'.
28663         * modules/unistr/u32-cpy-alloc-tests: New file.
28664         * tests/unistr/test-u32-cpy-alloc.c: New file.
28665
28666         Tests for module 'unistr/u16-cpy-alloc'.
28667         * modules/unistr/u16-cpy-alloc-tests: New file.
28668         * tests/unistr/test-u16-cpy-alloc.c: New file.
28669
28670         Tests for module 'unistr/u8-cpy-alloc'.
28671         * modules/unistr/u8-cpy-alloc-tests: New file.
28672         * tests/unistr/test-u8-cpy-alloc.c: New file.
28673         * tests/unistr/test-cpy-alloc.h: New file.
28674
28675         Tests for module 'unistr/u32-mbsnlen'.
28676         * modules/unistr/u32-mbsnlen-tests: New file.
28677         * tests/unistr/test-u32-mbsnlen.c: New file.
28678
28679         Tests for module 'unistr/u16-mbsnlen'.
28680         * modules/unistr/u16-mbsnlen-tests: New file.
28681         * tests/unistr/test-u16-mbsnlen.c: New file.
28682
28683         Tests for module 'unistr/u8-mbsnlen'.
28684         * modules/unistr/u8-mbsnlen-tests: New file.
28685         * tests/unistr/test-u8-mbsnlen.c: New file.
28686
28687         Tests for module 'unistr/u32-chr'.
28688         * modules/unistr/u32-chr-tests: New file.
28689         * tests/unistr/test-u32-chr.c: New file.
28690
28691         Tests for module 'unistr/u16-chr'.
28692         * modules/unistr/u16-chr-tests: New file.
28693         * tests/unistr/test-u16-chr.c: New file.
28694
28695         Tests for module 'unistr/u8-chr'.
28696         * modules/unistr/u8-chr-tests: New file.
28697         * tests/unistr/test-u8-chr.c: New file.
28698         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28699
28700         Tests for module 'unistr/u32-cmp2'.
28701         * modules/unistr/u32-cmp2-tests: New file.
28702         * tests/unistr/test-u32-cmp2.c: New file.
28703
28704         Tests for module 'unistr/u16-cmp2'.
28705         * modules/unistr/u16-cmp2-tests: New file.
28706         * tests/unistr/test-u16-cmp2.c: New file.
28707
28708         Tests for module 'unistr/u8-cmp2'.
28709         * modules/unistr/u8-cmp2-tests: New file.
28710         * tests/unistr/test-u8-cmp2.c: New file.
28711         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28712
28713         Tests for module 'unistr/u32-cmp'.
28714         * modules/unistr/u32-cmp-tests: New file.
28715         * tests/unistr/test-u32-cmp.c: New file.
28716
28717         Tests for module 'unistr/u16-cmp'.
28718         * modules/unistr/u16-cmp-tests: New file.
28719         * tests/unistr/test-u16-cmp.c: New file.
28720
28721         Tests for module 'unistr/u8-cmp'.
28722         * modules/unistr/u8-cmp-tests: New file.
28723         * tests/unistr/test-u8-cmp.c: New file.
28724         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28725
28726         Tests for module 'unistr/u32-set'.
28727         * modules/unistr/u32-set-tests: New file.
28728         * tests/unistr/test-u32-set.c: New file.
28729
28730         Tests for module 'unistr/u16-set'.
28731         * modules/unistr/u16-set-tests: New file.
28732         * tests/unistr/test-u16-set.c: New file.
28733
28734         Tests for module 'unistr/u8-set'.
28735         * modules/unistr/u8-set-tests: New file.
28736         * tests/unistr/test-u8-set.c: New file.
28737         * tests/unistr/test-set.h: New file.
28738
28739         Tests for module 'unistr/u32-move'.
28740         * modules/unistr/u32-move-tests: New file.
28741         * tests/unistr/test-u32-move.c: New file.
28742
28743         Tests for module 'unistr/u16-move'.
28744         * modules/unistr/u16-move-tests: New file.
28745         * tests/unistr/test-u16-move.c: New file.
28746
28747         Tests for module 'unistr/u8-move'.
28748         * modules/unistr/u8-move-tests: New file.
28749         * tests/unistr/test-u8-move.c: New file.
28750         * tests/unistr/test-move.h: New file.
28751
28752         Tests for module 'unistr/u32-cpy'.
28753         * modules/unistr/u32-cpy-tests: New file.
28754         * tests/unistr/test-u32-cpy.c: New file.
28755
28756         Tests for module 'unistr/u16-cpy'.
28757         * modules/unistr/u16-cpy-tests: New file.
28758         * tests/unistr/test-u16-cpy.c: New file.
28759
28760         Tests for module 'unistr/u8-cpy'.
28761         * modules/unistr/u8-cpy-tests: New file.
28762         * tests/unistr/test-u8-cpy.c: New file.
28763         * tests/unistr/test-cpy.h: New file.
28764
28765 2010-01-09  Bruno Haible  <bruno@clisp.org>
28766
28767         Tests for module 'unistr/u32-uctomb'.
28768         * modules/unistr/u32-uctomb-tests: New file.
28769         * tests/unistr/test-u32-uctomb.c: New file.
28770
28771         Tests for module 'unistr/u16-uctomb'.
28772         * modules/unistr/u16-uctomb-tests: New file.
28773         * tests/unistr/test-u16-uctomb.c: New file.
28774
28775         Tests for module 'unistr/u8-uctomb'.
28776         * modules/unistr/u8-uctomb-tests: New file.
28777         * tests/unistr/test-u8-uctomb.c: New file.
28778
28779         Tests for module 'unistr/u32-mbtoucr'.
28780         * modules/unistr/u32-mbtoucr-tests: New file.
28781         * tests/unistr/test-u32-mbtoucr.c: New file.
28782
28783         Tests for module 'unistr/u16-mbtoucr'.
28784         * modules/unistr/u16-mbtoucr-tests: New file.
28785         * tests/unistr/test-u16-mbtoucr.c: New file.
28786
28787         Tests for module 'unistr/u8-mbtoucr'.
28788         * modules/unistr/u8-mbtoucr-tests: New file.
28789         * tests/unistr/test-u8-mbtoucr.c: New file.
28790
28791         Tests for module 'unistr/u32-mbtouc'.
28792         * modules/unistr/u32-mbtouc-tests: New file.
28793         * tests/unistr/test-u32-mbtouc.c: New file.
28794
28795         Tests for module 'unistr/u16-mbtouc'.
28796         * modules/unistr/u16-mbtouc-tests: New file.
28797         * tests/unistr/test-u16-mbtouc.c: New file.
28798
28799         Tests for module 'unistr/u8-mbtouc'.
28800         * modules/unistr/u8-mbtouc-tests: New file.
28801         * tests/unistr/test-u8-mbtouc.c: New file.
28802
28803         Tests for module 'unistr/u32-mbtouc-unsafe'.
28804         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28805         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28806         * tests/unistr/test-u32-mbtouc.h: New file.
28807
28808         Tests for module 'unistr/u16-mbtouc-unsafe'.
28809         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28810         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28811         * tests/unistr/test-u16-mbtouc.h: New file.
28812
28813         Tests for module 'unistr/u8-mbtouc-unsafe'.
28814         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28815         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28816         * tests/unistr/test-u8-mbtouc.h: New file.
28817
28818         Tests for module 'unistr/u32-mblen'.
28819         * modules/unistr/u32-mblen-tests: New file.
28820         * tests/unistr/test-u32-mblen.c: New file.
28821
28822         Tests for module 'unistr/u16-mblen'.
28823         * modules/unistr/u16-mblen-tests: New file.
28824         * tests/unistr/test-u16-mblen.c: New file.
28825
28826         Tests for module 'unistr/u8-mblen'.
28827         * modules/unistr/u8-mblen-tests: New file.
28828         * tests/unistr/test-u8-mblen.c: New file.
28829
28830         Tests for module 'unistr/u32-to-u16'.
28831         * modules/unistr/u32-to-u16-tests: New file.
28832         * tests/unistr/test-u32-to-u16.c: New file.
28833
28834         Tests for module 'unistr/u32-to-u8'.
28835         * modules/unistr/u32-to-u8-tests: New file.
28836         * tests/unistr/test-u32-to-u8.c: New file.
28837
28838         Tests for module 'unistr/u16-to-u32'.
28839         * modules/unistr/u16-to-u32-tests: New file.
28840         * tests/unistr/test-u16-to-u32.c: New file.
28841
28842         Tests for module 'unistr/u16-to-u8'.
28843         * modules/unistr/u16-to-u8-tests: New file.
28844         * tests/unistr/test-u16-to-u8.c: New file.
28845
28846         Tests for module 'unistr/u8-to-u32'.
28847         * modules/unistr/u8-to-u32-tests: New file.
28848         * tests/unistr/test-u8-to-u32.c: New file.
28849
28850         Tests for module 'unistr/u8-to-u16'.
28851         * modules/unistr/u8-to-u16-tests: New file.
28852         * tests/unistr/test-u8-to-u16.c: New file.
28853
28854         Tests for module 'unistr/u32-check'.
28855         * modules/unistr/u32-check-tests: New file.
28856         * tests/unistr/test-u32-check.c: New file.
28857
28858         Tests for module 'unistr/u16-check'.
28859         * modules/unistr/u16-check-tests: New file.
28860         * tests/unistr/test-u16-check.c: New file.
28861
28862         Tests for module 'unistr/u8-check'.
28863         * modules/unistr/u8-check-tests: New file.
28864         * tests/unistr/test-u8-check.c: New file.
28865
28866         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28867         (category_equals): New function.
28868         (main): Add more tests.
28869         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28870
28871         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28872
28873 2010-01-10  Bruno Haible  <bruno@clisp.org>
28874
28875         unistr/u*-strcoll: Try harder to distinguish different strings.
28876         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28877         compare s1 and s2 to see if they are different.
28878
28879 2010-01-10  Bruno Haible  <bruno@clisp.org>
28880
28881         unistr/u*-stpncpy: Fix the return value.
28882         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28883         description of the return value consistent with stpncpy in glibc.
28884         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28885         written non-NUL unit.
28886
28887 2010-01-10  Bruno Haible  <bruno@clisp.org>
28888
28889         unistr/u*-next: Add missing dependencies.
28890         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28891         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28892         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28893
28894 2010-01-10  Bruno Haible  <bruno@clisp.org>
28895
28896         unistr/u8-mbsnlen: Fix return value for incomplete character.
28897         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28898         u8_mblen.
28899         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28900         Remove unistr/u8-mblen.
28901         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28902         u16_mblen.
28903         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28904         Remove unistr/u16-mblen.
28905
28906 2010-01-10  Bruno Haible  <bruno@clisp.org>
28907
28908         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28909         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28910         Reported by Brian Gough <bjg@gnu.org> and
28911         Chris Clayton <chris2553@googlemail.com> via
28912         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28913
28914 2010-01-09  Bruno Haible  <bruno@clisp.org>
28915
28916         unistr/u16-to-u32: Reject invalid input.
28917         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28918         u16_mbtouc.
28919         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28920         Remove unistr/u16-mbtouc.
28921
28922         unistr/u16-to-u8: Reject invalid input.
28923         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28924         u16_mbtouc.
28925         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28926         Remove unistr/u16-mbtouc.
28927
28928         unistr/u8-to-u32: Reject invalid input.
28929         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28930         u8_mbtouc.
28931         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28932         Remove unistr/u8-mbtouc.
28933
28934         unistr/u8-to-u16: Reject invalid input.
28935         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28936         u8_mbtouc.
28937         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28938         Remove unistr/u8-mbtouc.
28939
28940 2010-01-09  Bruno Haible  <bruno@clisp.org>
28941
28942         Tests for module 'getlogin'.
28943         * modules/getlogin-tests: New file.
28944         * tests/test-getlogin.c: New file.
28945
28946         New module 'getlogin'.
28947         * lib/unistd.in.h (getlogin): New declaration.
28948         * lib/getlogin.c: New file.
28949         * m4/getlogin.m4: New file.
28950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28951         HAVE_GETLOGIN.
28952         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28953         HAVE_GETLOGIN.
28954         * modules/getlogin: New file.
28955         * doc/posix-functions/getlogin.texi: Mention the new module.
28956         Reported by John W. Eaton <jwe@gnu.org>.
28957
28958 2010-01-09  Bruno Haible  <bruno@clisp.org>
28959
28960         getlogin_r: Support for native Windows.
28961         * lib/getlogin_r.c: Include <windows.h>
28962         (getlogin_r): Implement for native Windows.
28963         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28964         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28965         via John W. Eaton <jwe@gnu.org>.
28966
28967 2010-01-09  Bruno Haible  <bruno@clisp.org>
28968
28969         getlogin_r: Small fixes.
28970         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28971         succeeds.
28972         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28973         before testing whether getlogin_r is declared. No need to set
28974         HAVE_DECL_GETLOGIN_R to 1.
28975         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28976
28977 2010-01-09  Bruno Haible  <bruno@clisp.org>
28978
28979         * lib/unistd.in.h (getlogin_r): Add comment.
28980
28981 2010-01-09  Bruno Haible  <bruno@clisp.org>
28982
28983         Tests for module 'getlogin_r'.
28984         * modules/getlogin_r-tests: New file.
28985         * tests/test-getlogin_r.c: New file.
28986
28987 2010-01-09  Jim Meyering  <meyering@redhat.com>
28988
28989         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28990         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28991         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28992
28993 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28994
28995         * lib/dup2.c (rpl_dup2): Improve comment.
28996
28997 2010-01-08  Eric Blake  <ebb9@byu.net>
28998
28999         maint.mk: allow packages to add makefile @@ exceptions
29000         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29001         (sc_makefile_check): Rename...
29002         (sc_makefile_at_at_check): ...to this, and use hook.
29003
29004         dup2: work around mingw bug
29005         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29006         Reported by Simon Josefsson.
29007
29008 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29009
29010         glob: Fix C++ compilation.
29011         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29012         C++.
29013
29014 2010-01-07  Bruno Haible  <bruno@clisp.org>
29015
29016         Fix indentation of wctype.in.h, broken since 2007-01-06.
29017         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29018
29019 2010-01-07  Bruno Haible  <bruno@clisp.org>
29020
29021         mbslen: Avoid collision with system function.
29022         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29023         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29024         * m4/mbslen.m4: New file.
29025         * modules/mbslen (Files): Add it.
29026         (configure.ac): Invoke gl_MBSLEN.
29027         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29028         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29029         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29030         via Ian Beckwith <ianb@erislabs.net>.
29031
29032 2010-01-07  Bruno Haible  <bruno@clisp.org>
29033
29034         dirent: Document the last fix.
29035         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29036
29037 2010-01-07  Bruno Haible  <bruno@clisp.org>
29038
29039         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29040         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29041         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29042         va_list are defined.
29043         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29044         Reported by Eric Blake.
29045
29046 2010-01-07  Bruno Haible  <bruno@clisp.org>
29047
29048         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29049         * modules/xlist (Depends-on): Add 'list',
29050         * modules/xoset (Depends-on): Add 'oset'.
29051         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29052
29053 2010-01-07  Bruno Haible  <bruno@clisp.org>
29054
29055         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29056         * doc/posix-functions/strncasecmp.texi: Likewise.
29057
29058 2010-01-07  Bruno Haible  <bruno@clisp.org>
29059
29060         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29061
29062 2010-01-07  John W. Eaton  <jwe@octave.org>
29063
29064         wctype: allow C++ use
29065         * lib/wctype.in.h: Add extern "C" block for C++.
29066
29067 2010-01-06  Eric Blake  <ebb9@byu.net>
29068
29069         maint.mk: detect incorrect GFDL usage
29070         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29071
29072 2010-01-06  Jim Meyering  <meyering@redhat.com>
29073         and Eric Blake  <ebb9@byu.net>
29074
29075         maint.mk: ignore multi-line copyright in NEWS
29076         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29077
29078 2010-01-06  Eric Blake  <ebb9@byu.net>
29079
29080         select: add missing dependency
29081         * modules/select-tests (Depends-on): Move sockets dependency...
29082         * modules/select (Depends-on): ...here.
29083         Reported by Ian Beckwith.
29084
29085         doc: regenerate INSTALL
29086         * doc/INSTALL: Reflect recent autoconf update.
29087         * doc/INSTALL.ISO: Likewise.
29088         * doc/INSTALL.UTF-8: Likewise.
29089
29090         pread: fix compilation on glibc
29091         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29092         Reported by Ralf Wildenhues.
29093
29094         dirent: fix test failure
29095         * lib/dirent.in.h (includes): Guarantee ino_t.
29096         Reported by Ralf Wildenhues.
29097
29098 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29099
29100         linkat, renameat: avoid bad free
29101         * lib/at-func2.c (at_func2): Fix typo.
29102         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29103
29104 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29105
29106         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29107         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29108         to avoid failure of symlink test later.
29109
29110 2010-01-06  Eric Blake  <ebb9@byu.net>
29111
29112         stdio, unistd: guarantee ssize_t
29113         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29114         2008 are exposed when needed.
29115         * lib/stdio.in.h (includes): Likewise.
29116         Reported by Ralf Wildenhues.
29117
29118 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29119
29120         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29121         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29122         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29123
29124 2010-01-06  Jim Meyering  <meyering@redhat.com>
29125
29126         readtokens: this module *does* require xalloc.h
29127         It uses only functions that were omitted by the old syntax-check rule.
29128         * lib/readtokens.c: Include "xalloc.h" once again.
29129         * modules/readtokens (Depends-on): Add xalloc.
29130         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29131
29132 2010-01-05  Eric Blake  <ebb9@byu.net>
29133
29134         maint: support 'make announcement' from a VPATH build
29135         * top/maint.mk (announcement): Look for correct NEWS file.
29136
29137 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29138
29139         utimens (fdutimens): ignore a negative FD, per contract
29140         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29141         when we have a valid file descriptor.  Otherwise, using a brand
29142         new glibc (with just-patched futimens that now fails with EBADF)
29143         would cause this function to fail with ENOSYS.
29144         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29145         See also http://bugzilla.redhat.com/552320.
29146
29147 2010-01-05  Eric Blake  <ebb9@byu.net>
29148
29149         strcase: document what it provides
29150         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29151         gnulib module.
29152         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29153         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29154
29155 2010-01-05  Jim Meyering  <meyering@redhat.com>
29156
29157         maint: remove useless inclusions of "xalloc.h"
29158         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29159         * lib/readtokens.c: Likewise.
29160         * lib/same.c: Likewise.
29161         * modules/getloadavg (Depends-on): Remove xalloc.
29162         * modules/readtokens: Likewise.
29163         * modules/same: Likewise.
29164
29165         maint.mk: include 4 more function names in alloca.h-checking regexp
29166         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29167         regexp.  Before, we would give a false-positive (saying alloca.h
29168         is included unnecessarily) when the only uses involved omitted symbols.
29169
29170         xalloc.h: use consistent formatting
29171         * lib/xalloc.h: Move declarations to start in the first column.
29172
29173 2010-01-05  Eric Blake  <ebb9@byu.net>
29174
29175         mkdir: avoid xalloc
29176         * lib/mkdir.c (includes): Drop unused header.
29177         Reported by John W. Eaton.
29178
29179 2010-01-04  Jim Meyering  <meyering@redhat.com>
29180
29181         nl_langinfo: avoid configure-time syntax error
29182         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29183         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29184         the empty string.  Don't let that provoke a shell syntax error.
29185
29186         regcomp, regexec, fnmatch: avoid array bounds read error
29187         * lib/regcomp.c (build_equiv_class): From glibc:
29188         Use only the low 24 bits of a findidx return value as an index
29189         into the weights array.  Patch by Ulrich Drepper:
29190         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29191         * lib/regexec.c (check_node_accept_bytes): Likewise.
29192         * lib/fnmatch_loop.c (FCT): Likewise.
29193
29194         regcomp: skip collseq lookup when there are no rules
29195         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29196         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29197
29198         regcomp: recognize ill-formed { } expressions
29199         * lib/regcomp.c (parse_dup_op): From glibc:
29200         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29201
29202         regcomp: fix typo in comment
29203         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29204         s/satisfy/satisfies/.
29205
29206         regcomp: sync from glibc: remove dead store
29207         * lib/regcomp.c (duplicate_node_closure): Remove useless
29208         search_duplicated_node call and dead store.
29209
29210         regcomp: sync from glibc; always use nl_langinfo
29211         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29212         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29213         * modules/regex (Depends-on): Add nl_langinfo.
29214
29215 2010-01-04  Eric Blake  <ebb9@byu.net>
29216
29217         fdopendir: fix configure test
29218         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29219
29220 2010-01-01  Bruno Haible  <bruno@clisp.org>
29221
29222         wchar: Remove unused configure check.
29223         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29224
29225 2010-01-01  Eric Blake  <ebb9@byu.net>
29226
29227         headers: make check of system header explicit
29228         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29229         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29230         ourselves.
29231         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29232         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29233         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29234         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29235         internals.
29236         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29237         missing.
29238         Suggested by Bruno Haible.
29239
29240 2010-01-01  Jim Meyering  <meyering@redhat.com>
29241
29242         ChangeLog: tweak to eliminate unnecessary copyright line
29243         * ChangeLog: Remove a copyright line that was mistakenly updated
29244         by today's update-copyright run.  Reported by Eric Blake.
29245
29246         test-update-copyright: don't let envvar setting cause test failure
29247         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29248
29249 2010-01-01  Bruno Haible  <bruno@clisp.org>
29250
29251         localename: Avoid gcc warning.
29252         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29253         function if it is not used.
29254
29255 2010-01-01  Jim Meyering  <meyering@redhat.com>
29256
29257         update nearly all FSF copyright year lists to include 2010
29258         Use the same procedure as for 2009, outlined in
29259         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29260
29261         version-etc: set COPYRIGHT_YEAR to 2010
29262         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29263
29264 2009-12-31  Eric Blake  <ebb9@byu.net>
29265
29266         doc: correct availability of cygwin 1.5.x getopt
29267         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29268         variables.
29269         * doc/posix-functions/opterr.texi (opterr): Likewise.
29270         * doc/posix-functions/optind.texi (optind): Likewise.
29271         * doc/posix-functions/optopt.texi (optopt): Likewise.
29272         * doc/posix-functions/tzname.texi (tzname): Likewise.
29273
29274         openat: update maintainer
29275         * modules/openat (Maintainer): Add myself.
29276
29277         utimens: avoid shadowing warning
29278         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29279         buffers into one, to avoid shadowing, as well as avoiding a
29280         redundant stat.
29281         Reported by Jim Meyering.
29282
29283         test-dup2: avoid compiler warning
29284         * tests/test-dup2.c (is_inheritable): Only define if used.
29285
29286 2010-01-01  Bruno Haible  <bruno@clisp.org>
29287
29288         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29289         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29290         defined, use wctomb instead of wcrtomb.
29291
29292 2010-01-01  Bruno Haible  <bruno@clisp.org>
29293
29294         iconv: Reject native Solaris iconv.
29295         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29296         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29297
29298 2009-12-31  Bruno Haible  <bruno@clisp.org>
29299
29300         * tests/test-signal.c (main): Remove test of 'SIG'.
29301
29302 2009-12-31  Bruno Haible  <bruno@clisp.org>
29303
29304         spawn: Fix incomplete fix.
29305         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29306         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29307         warnings for GNULIB_POSIXCHECK again.
29308         Reported by Eric Blake.
29309
29310 2009-12-31  Bruno Haible  <bruno@clisp.org>
29311
29312         Avoid namespace pollution on glibc systems.
29313         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29314         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29315         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29316         glibc systems.
29317
29318 2009-12-31  Bruno Haible  <bruno@clisp.org>
29319
29320         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29321         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29322         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29323         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29324         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29325         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29326         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29327
29328 2009-12-31  Bruno Haible  <bruno@clisp.org>
29329
29330         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29331         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29332         afterwards.
29333
29334 2009-12-31  Bruno Haible  <bruno@clisp.org>
29335
29336         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29337         SYS_UTSNAME_H.
29338
29339 2009-12-31  Bruno Haible  <bruno@clisp.org>
29340
29341         spawn: Fix misapplied patch.
29342         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29343         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29344         warnings for GNULIB_POSIXCHECK.
29345
29346 2009-12-31  Bruno Haible  <bruno@clisp.org>
29347
29348         times: Update after sys_times changed.
29349         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29350         * modules/times (Files): Add it.
29351         (configure.ac): Invoke gl_FUNC_TIMES.
29352
29353 2009-12-31  Bruno Haible  <bruno@clisp.org>
29354
29355         Use AC_C_INLINE where necessary.
29356         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29357         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29358         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29359         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29360         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29361         * m4/mbiter.m4 (gl_MBITER): Likewise.
29362         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29363         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29364         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29365         * modules/u64 (configure.ac): Likewise.
29366
29367 2009-12-31  Bruno Haible  <bruno@clisp.org>
29368
29369         Use AC_C_INLINE instead of module 'inline' where possible.
29370         * modules/inline (Description): Clarify purpose.
29371         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29372         * modules/count-one-bits (Depends-on): Remove inline.
29373         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29374         * modules/openat (Depends-on): Remove inline.
29375         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29376         instead of depending on module 'inline'.
29377         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29378         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29379         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29380         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29381         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29382         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29383         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29384         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29385         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29386         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29387         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29388         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29389         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29390         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29391         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29392         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29393         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29394         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29395         Likewise.
29396         * modules/unictype/property-ascii-hex-digit (Depends-on,
29397         configure.ac): Likewise.
29398         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29399         configure.ac): Likewise.
29400         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29401         configure.ac): Likewise.
29402         * modules/unictype/property-bidi-block-separator (Depends-on,
29403         configure.ac): Likewise.
29404         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29405         configure.ac): Likewise.
29406         * modules/unictype/property-bidi-common-separator (Depends-on,
29407         configure.ac): Likewise.
29408         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29409         Likewise.
29410         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29411         configure.ac): Likewise.
29412         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29413         configure.ac): Likewise.
29414         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29415         configure.ac): Likewise.
29416         * modules/unictype/property-bidi-european-digit (Depends-on,
29417         configure.ac): Likewise.
29418         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29419         configure.ac): Likewise.
29420         * modules/unictype/property-bidi-left-to-right (Depends-on,
29421         configure.ac): Likewise.
29422         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29423         configure.ac): Likewise.
29424         * modules/unictype/property-bidi-other-neutral (Depends-on,
29425         configure.ac): Likewise.
29426         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29427         Likewise.
29428         * modules/unictype/property-bidi-segment-separator (Depends-on,
29429         configure.ac): Likewise.
29430         * modules/unictype/property-bidi-whitespace (Depends-on,
29431         configure.ac): Likewise.
29432         * modules/unictype/property-combining (Depends-on, configure.ac):
29433         Likewise.
29434         * modules/unictype/property-composite (Depends-on, configure.ac):
29435         Likewise.
29436         * modules/unictype/property-currency-symbol (Depends-on,
29437         configure.ac): Likewise.
29438         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29439         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29440         Likewise.
29441         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29442         configure.ac): Likewise.
29443         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29444         Likewise.
29445         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29446         Likewise.
29447         * modules/unictype/property-extender (Depends-on, configure.ac):
29448         Likewise.
29449         * modules/unictype/property-format-control (Depends-on, configure.ac):
29450         Likewise.
29451         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29452         Likewise.
29453         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29454         Likewise.
29455         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29456         Likewise.
29457         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29458         Likewise.
29459         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29460         Likewise.
29461         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29462         Likewise.
29463         * modules/unictype/property-id-start (Depends-on, configure.ac):
29464         Likewise.
29465         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29466         Likewise.
29467         * modules/unictype/property-ids-binary-operator (Depends-on,
29468         configure.ac): Likewise.
29469         * modules/unictype/property-ids-trinary-operator (Depends-on,
29470         configure.ac): Likewise.
29471         * modules/unictype/property-ignorable-control (Depends-on,
29472         configure.ac): Likewise.
29473         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29474         Likewise.
29475         * modules/unictype/property-join-control (Depends-on, configure.ac):
29476         Likewise.
29477         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29478         Likewise.
29479         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29480         Likewise.
29481         * modules/unictype/property-logical-order-exception (Depends-on,
29482         configure.ac): Likewise.
29483         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29484         Likewise.
29485         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29486         * modules/unictype/property-non-break (Depends-on, configure.ac):
29487         Likewise.
29488         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29489         Likewise.
29490         * modules/unictype/property-numeric (Depends-on, configure.ac):
29491         Likewise.
29492         * modules/unictype/property-other-alphabetic (Depends-on,
29493         configure.ac): Likewise.
29494         * modules/unictype/property-other-default-ignorable-code-point
29495         (Depends-on, configure.ac): Likewise.
29496         * modules/unictype/property-other-grapheme-extend (Depends-on,
29497         configure.ac): Likewise.
29498         * modules/unictype/property-other-id-continue (Depends-on,
29499         configure.ac): Likewise.
29500         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29501         Likewise.
29502         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29503         Likewise.
29504         * modules/unictype/property-other-math (Depends-on, configure.ac):
29505         Likewise.
29506         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29507         Likewise.
29508         * modules/unictype/property-paired-punctuation (Depends-on,
29509         configure.ac): Likewise.
29510         * modules/unictype/property-paragraph-separator (Depends-on,
29511         configure.ac): Likewise.
29512         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29513         Likewise.
29514         * modules/unictype/property-pattern-white-space (Depends-on,
29515         configure.ac): Likewise.
29516         * modules/unictype/property-private-use (Depends-on, configure.ac):
29517         Likewise.
29518         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29519         Likewise.
29520         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29521         Likewise.
29522         * modules/unictype/property-radical (Depends-on, configure.ac):
29523         Likewise.
29524         * modules/unictype/property-sentence-terminal (Depends-on,
29525         configure.ac): Likewise.
29526         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29527         Likewise.
29528         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29529         * modules/unictype/property-terminal-punctuation (Depends-on,
29530         configure.ac): Likewise.
29531         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29532         Likewise.
29533         * modules/unictype/property-unassigned-code-value (Depends-on,
29534         configure.ac): Likewise.
29535         * modules/unictype/property-unified-ideograph (Depends-on,
29536         configure.ac): Likewise.
29537         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29538         Likewise.
29539         * modules/unictype/property-variation-selector (Depends-on,
29540         configure.ac): Likewise.
29541         * modules/unictype/property-white-space (Depends-on, configure.ac):
29542         Likewise.
29543         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29544         Likewise.
29545         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29546         Likewise.
29547         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29548         Likewise.
29549         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29550         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29551         Likewise.
29552
29553 2009-12-31  Bruno Haible  <bruno@clisp.org>
29554
29555         Remove unnecessary AC_C_INLINE invocation.
29556         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29557         since 2009-08-21.
29558
29559 2009-12-31  Jim Meyering  <meyering@redhat.com>
29560
29561         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29562         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29563         With this change, we can all remove the gpg_key_ID = ... definition
29564         from our respective cfg.mk files.
29565
29566         maint.mk: create announcement template in ~/, not in /tmp
29567         * top/maint.mk (emit_upload_commands): Adjust.
29568         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29569         Remove temporary file, .ci-msg.
29570
29571 2009-12-31  Eric Blake  <ebb9@byu.net>
29572
29573         link-warning: always build headers with link warnings
29574         * modules/arpa_inet (Makefile.am): Always build replacement
29575         header.
29576         * modules/ctype (Makefile.am): Likewise.
29577         * modules/dirent (Makefile.am): Likewise.
29578         * modules/inttypes (Makefile.am): Likewise.
29579         * modules/langinfo (Makefile.am): Likewise.
29580         * modules/locale (Makefile.am): Likewise.
29581         * modules/spawn (Makefile.am): Likewise.
29582         * modules/sys_file (Makefile.am): Likewise.
29583         * modules/sys_ioctl (Makefile.am): Likewise.
29584         * modules/sys_select (Makefile.am): Likewise.
29585         * modules/sys_socket (Makefile.am): Likewise.
29586         * modules/sys_times (Makefile.am): Likewise.
29587         * modules/sys_utsname (Makefile.am): Likewise.
29588         * modules/sys_wait (Makefile.am): Likewise.
29589         * modules/wchar (Makefile.am): Likewise.
29590         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29591         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29592         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29593         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29594         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29595         Likewise.
29596         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29597         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29598         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29599         Likewise.
29600         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29601         Likewise.
29602         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29603         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29604         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29605         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29606         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29607         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29608         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29609         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29610         (gl_WCHAR_H_DEFAULTS): Likewise.
29611
29612 2009-12-31  Eric Blake  <ebb9@byu.net>
29613
29614         signal, spawn: use link warnings
29615         * lib/signal.in.h (sigset_t): Make unconditional.
29616         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29617         (sigpending, sigprocmask, sigaction): Add link warnings.
29618         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29619         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29620         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29621         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29622         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29623         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29624         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29625         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29626         (posix_spawn_file_actions_destroy)
29627         (posix_spawn_file_actions_addopen)
29628         (posix_spawn_file_actions_addclose)
29629         (posix_spawn_file_actions_adddup2): Likewise.
29630         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29631         * tests/test-signal.c (main): Enhance test.
29632
29633         spawn: improve wrapper support
29634         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29635         (gl_SPAWN_H_DEFAULTS): New defaults.
29636         * modules/spawn (Makefile.am): Substitute them.
29637         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29638         Only declare if missing or broken.
29639
29640         sys_times, sys_utsname: use include_next
29641         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29642         header.
29643         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29644         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29645         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29646         * modules/sys_times (Depends-on): Add include_next.
29647         (Makefile.am): Substitute additional values.
29648         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29649         * lib/sys_times.in.h (includes): Include native header, if
29650         available.
29651         * lib/sys_utsname.in.h (includes): Likewise.
29652         * tests/test-sys_times.c (main): Enhance test.
29653
29654         fdutimensat: revert prior patch
29655         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29656         utimens.h.
29657         Reported by Bruno Haible.
29658
29659 2009-12-30  Eric Blake  <ebb9@byu.net>
29660
29661         sys_wait: drop link-warning dependency
29662         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29663         link-warning efforts.
29664         * lib/sys_wait.in.h: Likewise.
29665
29666         fdutimensat: remove bogus dependency
29667         * modules/fdutimensat (Depends-on): Drop inline.
29668
29669         unistd: fix typo
29670         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29671
29672 2009-12-30  Bruno Haible  <bruno@clisp.org>
29673
29674         Fix compilation error with Solaris cc.
29675         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29676         * lib/unicase/u16-is-invariant.c: Likewise.
29677         * lib/unicase/u32-is-invariant.c: Likewise.
29678         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29679
29680 2009-12-30  Bruno Haible  <bruno@clisp.org>
29681
29682         Fix test crash.
29683         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29684         locales.
29685         Reported by Simon Josefsson <simon@josefsson.org>.
29686
29687 2009-12-30  Bruno Haible  <bruno@clisp.org>
29688
29689         Fix compilation error on most platforms.
29690         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29691         Reported by Simon Josefsson <simon@josefsson.org>
29692         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29693
29694 2009-12-30  Eric Blake  <ebb9@byu.net>
29695
29696         futimens, utimensat: work around ntfs-3g bug
29697         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29698         a ctime bug is present, and expand workaround to cover ntfs-3g.
29699         * lib/utimens.c (fdutimens, lutimens): Likewise.
29700         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29701         (validate_timespec): Adjust return value.
29702         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29703         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29704         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29705
29706 2009-12-29  Eric Blake  <ebb9@byu.net>
29707
29708         link-warning: make usage consistent
29709         * modules/ctype (Depends-on): Add link-warning.
29710         (Makefile.am): Update rules accordingly.
29711         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29712         * modules/locale (Depends-on, Makefile.am): Likewise.
29713         * modules/sys_file (Makefile.am): Likewise.
29714         * modules/getopt-posix (Makefile.am): Delete unused link warning
29715         efforts.
29716         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29717         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29718         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29719         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29720
29721         stdio: remove unused variables
29722         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29723         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29724         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29725
29726         tests: test more substitute headers
29727         * modules/ctype-tests: New file.
29728         * modules/dirent-tests: Likewise.
29729         * modules/spawn-tests: Likewise.
29730         * modules/sys_file-tests: Likewise.
29731         * modules/sys_ioctl-tests: Likewise.
29732         * modules/sys_wait-tests: Likewise.
29733         * tests/test-ctype.c: Likewise.
29734         * tests/test-dirent.c: Likewise.
29735         * tests/test-spawn.c: Likewise.
29736         * tests/test-sys_file.c: Likewise.
29737         * tests/test-sys_ioctl.c: Likewise.
29738         * tests/test-sys_wait.c: Likewise.
29739         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29740         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29741         whether or not flock is in use.
29742
29743         tests: remove License section from module
29744         * modules/arpa_inet-tests: Remove unneeded section.
29745         * modules/byteswap-tests: Likewise.
29746         * modules/ceilf-tests: Likewise.
29747         * modules/ceill-tests: Likewise.
29748         * modules/crypto/des-tests: Likewise.
29749         * modules/crypto/gc-arcfour-tests: Likewise.
29750         * modules/crypto/gc-arctwo-tests: Likewise.
29751         * modules/crypto/gc-des-tests: Likewise.
29752         * modules/crypto/gc-hmac-md5-tests: Likewise.
29753         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29754         * modules/crypto/gc-md2-tests: Likewise.
29755         * modules/crypto/gc-md4-tests: Likewise.
29756         * modules/crypto/gc-md5-tests: Likewise.
29757         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29758         * modules/crypto/gc-rijndael-tests: Likewise.
29759         * modules/crypto/gc-sha1-tests: Likewise.
29760         * modules/crypto/gc-tests: Likewise.
29761         * modules/crypto/md2-tests: Likewise.
29762         * modules/crypto/md4-tests: Likewise.
29763         * modules/fcntl-h-tests: Likewise.
29764         * modules/floorf-tests: Likewise.
29765         * modules/floorl-tests: Likewise.
29766         * modules/frexp-nolibm-tests: Likewise.
29767         * modules/frexp-tests: Likewise.
29768         * modules/frexpl-nolibm-tests: Likewise.
29769         * modules/frexpl-tests: Likewise.
29770         * modules/getaddrinfo-tests: Likewise.
29771         * modules/inttypes-tests: Likewise.
29772         * modules/isfinite-tests: Likewise.
29773         * modules/isinf-tests: Likewise.
29774         * modules/ldexpl-tests: Likewise.
29775         * modules/locale-tests: Likewise.
29776         * modules/math-tests: Likewise.
29777         * modules/netdb-tests: Likewise.
29778         * modules/netinet_in-tests: Likewise.
29779         * modules/printf-frexp-tests: Likewise.
29780         * modules/printf-frexpl-tests: Likewise.
29781         * modules/priv-set-tests: Likewise.
29782         * modules/random_r-tests: Likewise.
29783         * modules/round-tests: Likewise.
29784         * modules/roundf-tests: Likewise.
29785         * modules/roundl-tests: Likewise.
29786         * modules/search-tests: Likewise.
29787         * modules/select-tests: Likewise.
29788         * modules/signal-tests: Likewise.
29789         * modules/stdbool-tests: Likewise.
29790         * modules/stddef-tests: Likewise.
29791         * modules/stdint-tests: Likewise.
29792         * modules/stdio-tests: Likewise.
29793         * modules/stdlib-tests: Likewise.
29794         * modules/string-tests: Likewise.
29795         * modules/strings-tests: Likewise.
29796         * modules/sys_select-tests: Likewise.
29797         * modules/sys_socket-tests: Likewise.
29798         * modules/sys_stat-tests: Likewise.
29799         * modules/sys_time-tests: Likewise.
29800         * modules/sys_utsname-tests: Likewise.
29801         * modules/sysexits-tests: Likewise.
29802         * modules/time-tests: Likewise.
29803         * modules/trunc-tests: Likewise.
29804         * modules/truncf-tests: Likewise.
29805         * modules/truncl-tests: Likewise.
29806         * modules/tsearch-tests: Likewise.
29807         * modules/unistd-tests: Likewise.
29808         * modules/wchar-tests: Likewise.
29809         * modules/wctype-tests: Likewise.
29810
29811         tests: fix license on several tests
29812         * tests/test-des.c: Update to GPLv3+.
29813         * tests/test-flock.c: Likewise.
29814         * tests/test-fsync.c: Likewise.
29815         * tests/test-futimens.h: Likewise.
29816         * tests/test-gc-arcfour.c: Likewise.
29817         * tests/test-gc-arctwo.c: Likewise.
29818         * tests/test-gc-des.c: Likewise.
29819         * tests/test-gc-hmac-md5.c: Likewise.
29820         * tests/test-gc-hmac-sha1.c: Likewise.
29821         * tests/test-gc-md2.c: Likewise.
29822         * tests/test-gc-md4.c: Likewise.
29823         * tests/test-gc-md5.c: Likewise.
29824         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29825         * tests/test-gc-rijndael.c: Likewise.
29826         * tests/test-gc-sha1.c: Likewise.
29827         * tests/test-gc.c: Likewise.
29828         * tests/test-getcwd.c: Likewise.
29829         * tests/test-link.c: Likewise.
29830         * tests/test-link.h: Likewise.
29831         * tests/test-lutimens.h: Likewise.
29832         * tests/test-md2.c: Likewise.
29833         * tests/test-md4.c: Likewise.
29834         * tests/test-mkdir.h: Likewise.
29835         * tests/test-rename.c: Likewise.
29836         * tests/test-rename.h: Likewise.
29837         * tests/test-safe-alloc.c: Likewise.
29838         * tests/test-utimens-common.h: Likewise.
29839         * tests/test-utimens.h: Likewise.
29840
29841         maint: sync license texts
29842         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29843         * doc/gpl-3.0.texi: Revert copyright year update.
29844         * doc/lgpl-3.0.texi: Likewise.
29845
29846 2009-12-29  Jim Meyering  <meyering@redhat.com>
29847
29848         update nearly all FSF copyright year lists to include 2009
29849         The files named by the following are exempted:
29850             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29851               test -f "$dst" && { echo "$dst"; continue; }
29852               test -d "$dst" || continue
29853               echo "$dst"/$(basename "$src")
29854             done > exempt
29855             git ls-files tests/unictype >> exempt
29856         In the remaining files, convert to all-interval notation if
29857         - there is already at least one year interval like 2000-2003
29858         - the file is maintained by me
29859         - the file is in lib/uni*/, where that style already prevails
29860         Otherwise, use update-copyright's default.
29861
29862 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29863         and Eric Blake  <ebb9@byu.net>
29864
29865         tests: don't require debug system() to pass
29866         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29867         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29868         * tests/test-unlink.h (test_unlink_func): Likewise.
29869         * tests/test-fstatat.c (main): ...into callers.
29870         * tests/test-lstat.c (main): Likewise.
29871         * tests/test-rmdir.c (main): Likewise.
29872         * tests/test-unlink.c (main): Likewise.
29873         * tests/test-unlinkat.c (main): Likewise.
29874         * tests/test-areadlink-with-size.c (main): Don't require a
29875         debug-only system call to pass, aiding cross-testing to mingw.
29876         * tests/test-areadlink.c (main): Likewise.
29877         * tests/test-areadlinkat-with-size.c (main): Likewise.
29878         * tests/test-areadlinkat.c (main): Likewise.
29879         * tests/test-canonicalize-lgpl.c (main): Likewise.
29880         * tests/test-canonicalize.c (main): Likewise.
29881         * tests/test-chown.c (main): Likewise.
29882         * tests/test-fchownat.c (main): Likewise.
29883         * tests/test-lchown.c (main): Likewise.
29884         * tests/test-fdutimensat.c (main): Likewise.
29885         * tests/test-futimens.c (main): Likewise.
29886         * tests/test-link.c (main): Likewise.
29887         * tests/test-linkat.c (main): Likewise.
29888         * tests/test-mkdir.c (main): Likewise.
29889         * tests/test-mkdirat.c (main): Likewise.
29890         * tests/test-mkfifo.c (main): Likewise.
29891         * tests/test-mkfifoat.c (main): Likewise.
29892         * tests/test-mknod.c (main): Likewise.
29893         * tests/test-readlink.c (main): Likewise.
29894         * tests/test-remove.c (main): Likewise.
29895         * tests/test-rename.c (main): Likewise.
29896         * tests/test-renameat.c (main): Likewise.
29897         * tests/test-symlink.c (main): Likewise.
29898         * tests/test-symlinkat.c (main): Likewise.
29899         * tests/test-utimens.c (main): Likewise.
29900         * tests/test-utimensat.c (main): Likewise.
29901
29902 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29903
29904         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29905         on $(UNUSED_PARAMETER_H) to avoid build failure.
29906
29907 2009-12-28  Jim Meyering  <meyering@redhat.com>
29908
29909         update-copyright: you may specify a max. line length other than 72
29910         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29911
29912         maint: use consistent FSF copyright line syntax
29913         * lib/posixtm.c: Add missing comma in FSF copyright line.
29914         * lib/posixtm.h: Likewise.
29915         * lib/getugroups.c: Add missing ", Inc.".
29916
29917         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29918         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29919         FSF copyright line.  Remove trailing blanks.
29920
29921 2009-12-28  Eric Blake  <ebb9@byu.net>
29922
29923         test-dup2: reduce dependencies
29924         * modules/cloexec (Configure.ac): Set witness.
29925         * modules/dup2-tests (Depends-on): Drop cloexec.
29926         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29927         not present.
29928         Suggested by Bruno Haible.
29929
29930 2009-12-26  Bruno Haible  <bruno@clisp.org>
29931
29932         Remove an unneeded dependency.
29933         * modules/fseterr (Depends-on): Remove dup2.
29934
29935 2009-12-26  Eric Blake  <ebb9@byu.net>
29936
29937         tests: use macros.h in more places
29938         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29939         (ASSERT_STREAM): Provide default of stderr.
29940         * tests/test-dirent-safer.c: Include macros.h, using alternate
29941         stream for assertions.
29942         * tests/test-dup-safer.c: Likewise.
29943         * tests/test-freopen-safer.c: Likewise.
29944         * tests/test-getopt.c: Likewise.
29945         * tests/test-openat-safer.c: Likewise.
29946         * tests/test-pipe.c: Likewise.
29947         * tests/test-popen-safer.c: Likewise.
29948         * modules/dirent-safer-tests (Files): Include macros.h.
29949         * modules/unistd-safer-tests (Files): Likewise.
29950         * modules/freopen-safer-tests (Files): Likewise.
29951         * modules/getopt-posix-tests (Files): Likewise.
29952         * modules/openat-safer-tests (Files): Likewise.
29953         * modules/pipe-tests (Files): Likewise.
29954
29955 2009-12-26  Bruno Haible  <bruno@clisp.org>
29956
29957         javacomp: Portability fix.
29958         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29959         that it also works on Solaris.
29960
29961 2009-12-26  Bruno Haible  <bruno@clisp.org>
29962
29963         localename: Fix storage allocation of gl_locale_name_thread's result.
29964         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29965         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29966         all platforms that have 'uselocale'.
29967         (gl_locale_name_thread_unsafe): New function, extracted from
29968         gl_locale_name_thread.
29969         (gl_locale_name_thread): Call struniq on all platforms that have
29970         'uselocale'.
29971         * tests/test-localename.c (test_locale_name_thread): Check that the
29972         resulting strings are permanently allocated.
29973         * modules/localename-tests (Depends-on): Add strdup.
29974
29975 2009-12-26  Bruno Haible  <bruno@clisp.org>
29976
29977         * tests/test-localename.c (categories): Fill in the strings.
29978
29979 2009-12-26  Jim Meyering  <meyering@redhat.com>
29980
29981         isdir: complete the removal of m4/isdir.m4
29982         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29983
29984         isdir: clean up, since at least grep still uses it
29985         * lib/isdir.c: Include "isdir.h".
29986         (S_ISDIR): Remove now-unneeded definition.
29987         * modules/isdir (Files): Add lib/isdir.h.
29988         * lib/isdir.h: New file, with declaration.
29989         * m4/isdir.m4: Remove file -- unneeded.
29990
29991 2009-12-25  Bruno Haible  <bruno@clisp.org>
29992
29993         selinux-h: Make generated .h files standalone.
29994         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29995         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29996         * lib/se-selinux.in.h: Likewise.
29997         * modules/selinux-h (Depends-on): Add unused-parameter.
29998         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29999         selinux/selinux.h and selinux/context.h.
30000         Suggested by Eric Blake.
30001
30002 2009-12-25  Bruno Haible  <bruno@clisp.org>
30003
30004         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30005         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30006         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30007         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30008         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30009
30010 2009-12-24  Bruno Haible  <bruno@clisp.org>
30011
30012         openat: Fix warning.
30013         * lib/openat-proc.c: Include <unistd.h>.
30014
30015 2009-12-24  Bruno Haible  <bruno@clisp.org>
30016
30017         New module 'unused-parameter'.
30018         * build-aux/unused-parameter.h: New file, extracted from earlier
30019         gnulib-common.m4.
30020         * modules/unused-parameter: New file.
30021         * lib/unistr.h: Include unused-parameter.h.
30022         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30023         _GL_UNUSED.
30024         * modules/unistr/base (Depends-on): Add unused-parameter.
30025
30026 2009-12-24  Bruno Haible  <bruno@clisp.org>
30027
30028         Add missing dependencies to 'extensions' module.
30029         * m4/extensions.m4: Add comment.
30030         * modules/accept4 (Depends-on): Add extensions.
30031         * modules/dup3 (Depends-on): Likewise.
30032         * modules/fcntl (Depends-on): Likewise.
30033         * modules/futimens (Depends-on): Likewise.
30034         * modules/mknod (Depends-on): Likewise.
30035         * modules/pipe2 (Depends-on): Likewise.
30036         * modules/stat-time (Depends-on): Likewise.
30037         * modules/strcasestr-simple (Depends-on): Likewise.
30038         * modules/strsignal (Depends-on): Likewise.
30039         * modules/utimensat (Depends-on): Likewise.
30040         * modules/localcharset (Depends-on): Likewise. Needed because of
30041         gl_FCNTL_O_FLAGS.
30042         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30043         AC_TYPE_MBSTATE_T.
30044         * modules/wcsnrtombs (Depends-on): Likewise.
30045         * modules/wcsrtombs (Depends-on): Likewise.
30046
30047 2009-12-24  Bruno Haible  <bruno@clisp.org>
30048
30049         binary-io: Avoid gcc warning due to SET_BINARY.
30050         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30051         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30052
30053 2009-12-24  Bruno Haible  <bruno@clisp.org>
30054
30055         Avoid future namespace pollution on glibc systems.
30056         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30057         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30058         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30059         glibc systems.
30060
30061 2009-12-24  Bruno Haible  <bruno@clisp.org>
30062
30063         Refactor common macros used in tests.
30064         * tests/macros.h: New file.
30065         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30066         and/or <stdlib.h>, if appropriate.
30067         (ASSERT, SIZEOF): Remove macros.
30068         * tests/test-areadlink-with-size.c: Likewise.
30069         * tests/test-areadlinkat.c: Likewise.
30070         * tests/test-areadlinkat-with-size.c: Likewise.
30071         * tests/test-argmatch.c: Likewise.
30072         * tests/test-argv-iter.c: Likewise.
30073         * tests/test-array-mergesort.c: Likewise.
30074         * tests/test-array_list.c: Likewise.
30075         * tests/test-array_oset.c: Likewise.
30076         * tests/test-avltree_list.c: Likewise.
30077         * tests/test-avltree_oset.c: Likewise.
30078         * tests/test-avltreehash_list.c: Likewise.
30079         * tests/test-base64.c: Likewise.
30080         * tests/test-binary-io.c: Likewise.
30081         * tests/test-bitrotate.c: Likewise.
30082         * tests/test-btowc.c: Likewise.
30083         * tests/test-byteswap.c: Likewise.
30084         * tests/test-c-ctype.c: Likewise.
30085         * tests/test-c-stack.c: Likewise.
30086         * tests/test-c-strcasecmp.c: Likewise.
30087         * tests/test-c-strcasestr.c: Likewise.
30088         * tests/test-c-strncasecmp.c: Likewise.
30089         * tests/test-c-strstr.c: Likewise.
30090         * tests/test-canonicalize-lgpl.c: Likewise.
30091         * tests/test-canonicalize.c: Likewise.
30092         * tests/test-carray_list.c: Likewise.
30093         * tests/test-ceilf1.c: Likewise.
30094         * tests/test-ceilf2.c: Likewise.
30095         * tests/test-ceill.c: Likewise.
30096         * tests/test-chown.c: Likewise.
30097         * tests/test-cloexec.c: Likewise.
30098         * tests/test-copy-acl.c: Likewise.
30099         * tests/test-copy-file.c: Likewise.
30100         * tests/test-count-one-bits.c: Likewise.
30101         * tests/test-dprintf-posix.c: Likewise.
30102         * tests/test-dup2.c: Likewise.
30103         * tests/test-dup3.c: Likewise.
30104         * tests/test-duplocale.c: Likewise.
30105         * tests/test-fbufmode.c: Likewise.
30106         * tests/test-fchdir.c: Likewise.
30107         * tests/test-fchownat.c: Likewise.
30108         * tests/test-fcntl-safer.c: Likewise.
30109         * tests/test-fcntl.c: Likewise.
30110         * tests/test-fdopendir.c: Likewise.
30111         * tests/test-fdutimensat.c: Likewise.
30112         * tests/test-fflush2.c: Likewise.
30113         * tests/test-file-has-acl.c: Likewise.
30114         * tests/test-filevercmp.c: Likewise.
30115         * tests/test-flock.c: Likewise.
30116         * tests/test-floorf1.c: Likewise.
30117         * tests/test-floorf2.c: Likewise.
30118         * tests/test-floorl.c: Likewise.
30119         * tests/test-fnmatch.c: Likewise.
30120         * tests/test-fopen.h: Likewise.
30121         * tests/test-fpending.c: Likewise.
30122         * tests/test-fprintf-posix.c: Likewise.
30123         * tests/test-fpurge.c: Likewise.
30124         * tests/test-freadable.c: Likewise.
30125         * tests/test-freadahead.c: Likewise.
30126         * tests/test-freading.c: Likewise.
30127         * tests/test-freadptr.c: Likewise.
30128         * tests/test-freadptr2.c: Likewise.
30129         * tests/test-freadseek.c: Likewise.
30130         * tests/test-freopen.c: Likewise.
30131         * tests/test-frexp.c: Likewise.
30132         * tests/test-frexpl.c: Likewise.
30133         * tests/test-fseek.c: Likewise.
30134         * tests/test-fseeko.c: Likewise.
30135         * tests/test-fstatat.c: Likewise.
30136         * tests/test-fstrcmp.c: Likewise.
30137         * tests/test-fsync.c: Likewise.
30138         * tests/test-ftell.c: Likewise.
30139         * tests/test-ftello.c: Likewise.
30140         * tests/test-func.c: Likewise.
30141         * tests/test-futimens.c: Likewise.
30142         * tests/test-fwritable.c: Likewise.
30143         * tests/test-fwriting.c: Likewise.
30144         * tests/test-getcwd.c: Likewise.
30145         * tests/test-getdate.c: Likewise.
30146         * tests/test-getdelim.c: Likewise.
30147         * tests/test-getdtablesize.c: Likewise.
30148         * tests/test-getgroups.c: Likewise.
30149         * tests/test-getline.c: Likewise.
30150         * tests/test-getndelim2.c: Likewise.
30151         * tests/test-glob.c: Likewise.
30152         * tests/test-hash.c: Likewise.
30153         * tests/test-i-ring.c: Likewise.
30154         * tests/test-iconv-utf.c: Likewise.
30155         * tests/test-iconv.c: Likewise.
30156         * tests/test-idpriv-drop.c: Likewise.
30157         * tests/test-idpriv-droptemp.c: Likewise.
30158         * tests/test-inet_ntop.c: Likewise.
30159         * tests/test-inet_pton.c: Likewise.
30160         * tests/test-isblank.c: Likewise.
30161         * tests/test-isfinite.c: Likewise.
30162         * tests/test-isinf.c: Likewise.
30163         * tests/test-isnan.c: Likewise.
30164         * tests/test-isnand.h: Likewise.
30165         * tests/test-isnanf.h: Likewise.
30166         * tests/test-isnanl.h: Likewise.
30167         * tests/test-lchown.c: Likewise.
30168         * tests/test-ldexpl.c: Likewise.
30169         * tests/test-link.c: Likewise.
30170         * tests/test-linkat.c: Likewise.
30171         * tests/test-linked_list.c: Likewise.
30172         * tests/test-linkedhash_list.c: Likewise.
30173         * tests/test-localename.c: Likewise.
30174         * tests/test-lseek.c: Likewise.
30175         * tests/test-lstat.c: Likewise.
30176         * tests/test-mbmemcasecmp.c: Likewise.
30177         * tests/test-mbmemcasecoll.c: Likewise.
30178         * tests/test-mbrtowc.c: Likewise.
30179         * tests/test-mbscasecmp.c: Likewise.
30180         * tests/test-mbscasestr1.c: Likewise.
30181         * tests/test-mbscasestr2.c: Likewise.
30182         * tests/test-mbscasestr3.c: Likewise.
30183         * tests/test-mbscasestr4.c: Likewise.
30184         * tests/test-mbschr.c: Likewise.
30185         * tests/test-mbscspn.c: Likewise.
30186         * tests/test-mbsinit.c: Likewise.
30187         * tests/test-mbsncasecmp.c: Likewise.
30188         * tests/test-mbsnrtowcs.c: Likewise.
30189         * tests/test-mbspbrk.c: Likewise.
30190         * tests/test-mbspcasecmp.c: Likewise.
30191         * tests/test-mbsrchr.c: Likewise.
30192         * tests/test-mbsrtowcs.c: Likewise.
30193         * tests/test-mbsspn.c: Likewise.
30194         * tests/test-mbsstr1.c: Likewise.
30195         * tests/test-mbsstr2.c: Likewise.
30196         * tests/test-mbsstr3.c: Likewise.
30197         * tests/test-memchr.c: Likewise.
30198         * tests/test-memchr2.c: Likewise.
30199         * tests/test-memcmp.c: Likewise.
30200         * tests/test-memmem.c: Likewise.
30201         * tests/test-memrchr.c: Likewise.
30202         * tests/test-mkdir.c: Likewise.
30203         * tests/test-mkdirat.c: Likewise.
30204         * tests/test-mkfifo.c: Likewise.
30205         * tests/test-mkfifoat.c: Likewise.
30206         * tests/test-mknod.c: Likewise.
30207         * tests/test-nanosleep.c: Likewise.
30208         * tests/test-nl_langinfo.c: Likewise.
30209         * tests/test-obstack-printf.c: Likewise.
30210         * tests/test-open.c: Likewise.
30211         * tests/test-openat.c: Likewise.
30212         * tests/test-pipe-filter-gi1.c: Likewise.
30213         * tests/test-pipe-filter-gi2-main.c: Likewise.
30214         * tests/test-pipe-filter-ii1.c: Likewise.
30215         * tests/test-pipe-filter-ii2-main.c: Likewise.
30216         * tests/test-pipe2.c: Likewise.
30217         * tests/test-popen.h: Likewise.
30218         * tests/test-posixtm.c: Likewise.
30219         * tests/test-pread.c: Likewise.
30220         * tests/test-printf-frexp.c: Likewise.
30221         * tests/test-printf-frexpl.c: Likewise.
30222         * tests/test-printf-posix.c: Likewise.
30223         * tests/test-priv-set.c: Likewise.
30224         * tests/test-quotearg.c: Likewise.
30225         * tests/test-random_r.c: Likewise.
30226         * tests/test-rawmemchr.c: Likewise.
30227         * tests/test-rbtree_list.c: Likewise.
30228         * tests/test-rbtree_oset.c: Likewise.
30229         * tests/test-rbtreehash_list.c: Likewise.
30230         * tests/test-readlink.c: Likewise.
30231         * tests/test-remove.c: Likewise.
30232         * tests/test-rename.c: Likewise.
30233         * tests/test-renameat.c: Likewise.
30234         * tests/test-rmdir.c: Likewise.
30235         * tests/test-round1.c: Likewise.
30236         * tests/test-roundf1.c: Likewise.
30237         * tests/test-roundl.c: Likewise.
30238         * tests/test-safe-alloc.c: Likewise.
30239         * tests/test-sameacls.c: Likewise.
30240         * tests/test-set-mode-acl.c: Likewise.
30241         * tests/test-setenv.c: Likewise.
30242         * tests/test-sigaction.c: Likewise.
30243         * tests/test-signbit.c: Likewise.
30244         * tests/test-sleep.c: Likewise.
30245         * tests/test-snprintf-posix.c: Likewise.
30246         * tests/test-snprintf.c: Likewise.
30247         * tests/test-sprintf-posix.c: Likewise.
30248         * tests/test-stat-time.c: Likewise.
30249         * tests/test-stat.c: Likewise.
30250         * tests/test-strcasestr.c: Likewise.
30251         * tests/test-strchrnul.c: Likewise.
30252         * tests/test-strerror.c: Likewise.
30253         * tests/test-striconv.c: Likewise.
30254         * tests/test-striconveh.c: Likewise.
30255         * tests/test-striconveha.c: Likewise.
30256         * tests/test-strsignal.c: Likewise.
30257         * tests/test-strstr.c: Likewise.
30258         * tests/test-strtod.c: Likewise.
30259         * tests/test-strverscmp.c: Likewise.
30260         * tests/test-symlink.c: Likewise.
30261         * tests/test-symlinkat.c: Likewise.
30262         * tests/test-trunc1.c: Likewise.
30263         * tests/test-trunc2.c: Likewise.
30264         * tests/test-truncf1.c: Likewise.
30265         * tests/test-truncf2.c: Likewise.
30266         * tests/test-truncl.c: Likewise.
30267         * tests/test-uname.c: Likewise.
30268         * tests/test-unlink.c: Likewise.
30269         * tests/test-unlinkat.c: Likewise.
30270         * tests/test-unsetenv.c: Likewise.
30271         * tests/test-usleep.c: Likewise.
30272         * tests/test-utimens.c: Likewise.
30273         * tests/test-utimensat.c: Likewise.
30274         * tests/test-vasnprintf-posix.c: Likewise.
30275         * tests/test-vasnprintf-posix2.c: Likewise.
30276         * tests/test-vasnprintf.c: Likewise.
30277         * tests/test-vasprintf-posix.c: Likewise.
30278         * tests/test-vasprintf.c: Likewise.
30279         * tests/test-vdprintf-posix.c: Likewise.
30280         * tests/test-vfprintf-posix.c: Likewise.
30281         * tests/test-vprintf-posix.c: Likewise.
30282         * tests/test-vsnprintf-posix.c: Likewise.
30283         * tests/test-vsnprintf.c: Likewise.
30284         * tests/test-vsprintf-posix.c: Likewise.
30285         * tests/test-wcrtomb.c: Likewise.
30286         * tests/test-wcsnrtombs.c: Likewise.
30287         * tests/test-wcsrtombs.c: Likewise.
30288         * tests/test-wctype.c: Likewise.
30289         * tests/test-wcwidth.c: Likewise.
30290         * tests/test-xfprintf-posix.c: Likewise.
30291         * tests/test-xmemdup0.c: Likewise.
30292         * tests/test-xprintf-posix.c: Likewise.
30293         * tests/test-xvasprintf.c: Likewise.
30294         * tests/unicase/test-locale-language.c: Likewise.
30295         * tests/unicase/test-mapping-part1.h: Likewise.
30296         * tests/unicase/test-predicate-part1.h: Likewise.
30297         * tests/unicase/test-u8-casecmp.c: Likewise.
30298         * tests/unicase/test-u8-casecoll.c: Likewise.
30299         * tests/unicase/test-u8-casefold.c: Likewise.
30300         * tests/unicase/test-u8-is-cased.c: Likewise.
30301         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30302         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30303         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30304         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30305         * tests/unicase/test-u8-tolower.c: Likewise.
30306         * tests/unicase/test-u8-totitle.c: Likewise.
30307         * tests/unicase/test-u8-toupper.c: Likewise.
30308         * tests/unicase/test-u16-casecmp.c: Likewise.
30309         * tests/unicase/test-u16-casecoll.c: Likewise.
30310         * tests/unicase/test-u16-casefold.c: Likewise.
30311         * tests/unicase/test-u16-is-cased.c: Likewise.
30312         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30313         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30314         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30315         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30316         * tests/unicase/test-u16-tolower.c: Likewise.
30317         * tests/unicase/test-u16-totitle.c: Likewise.
30318         * tests/unicase/test-u16-toupper.c: Likewise.
30319         * tests/unicase/test-u32-casecmp.c: Likewise.
30320         * tests/unicase/test-u32-casecoll.c: Likewise.
30321         * tests/unicase/test-u32-casefold.c: Likewise.
30322         * tests/unicase/test-u32-is-cased.c: Likewise.
30323         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30324         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30325         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30326         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30327         * tests/unicase/test-u32-tolower.c: Likewise.
30328         * tests/unicase/test-u32-totitle.c: Likewise.
30329         * tests/unicase/test-u32-toupper.c: Likewise.
30330         * tests/unicase/test-ulc-casecmp.c: Likewise.
30331         * tests/unicase/test-ulc-casecoll.c: Likewise.
30332         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30333         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30334         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30335         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30336         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30337         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30338         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30339         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30340         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30341         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30342         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30343         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30344         * tests/unictype/test-bidi_byname.c: Likewise.
30345         * tests/unictype/test-bidi_name.c: Likewise.
30346         * tests/unictype/test-bidi_of.c: Likewise.
30347         * tests/unictype/test-bidi_test.c: Likewise.
30348         * tests/unictype/test-block_list.c: Likewise.
30349         * tests/unictype/test-block_of.c: Likewise.
30350         * tests/unictype/test-block_test.c: Likewise.
30351         * tests/unictype/test-categ_and.c: Likewise.
30352         * tests/unictype/test-categ_and_not.c: Likewise.
30353         * tests/unictype/test-categ_byname.c: Likewise.
30354         * tests/unictype/test-categ_name.c: Likewise.
30355         * tests/unictype/test-categ_none.c: Likewise.
30356         * tests/unictype/test-categ_of.c: Likewise.
30357         * tests/unictype/test-categ_or.c: Likewise.
30358         * tests/unictype/test-categ_test_withtable.c: Likewise.
30359         * tests/unictype/test-combining.c: Likewise.
30360         * tests/unictype/test-decdigit.c: Likewise.
30361         * tests/unictype/test-digit.c: Likewise.
30362         * tests/unictype/test-mirror.c: Likewise.
30363         * tests/unictype/test-numeric.c: Likewise.
30364         * tests/unictype/test-pr_byname.c: Likewise.
30365         * tests/unictype/test-pr_test.c: Likewise.
30366         * tests/unictype/test-predicate-part1.h: Likewise.
30367         * tests/unictype/test-scripts.c: Likewise.
30368         * tests/unictype/test-sy_c_ident.c: Likewise.
30369         * tests/unictype/test-sy_java_ident.c: Likewise.
30370         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30371         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30372         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30373         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30374         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30375         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30376         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30377         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30378         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30379         * tests/uninorm/test-compat-decomposition.c: Likewise.
30380         * tests/uninorm/test-composition.c: Likewise.
30381         * tests/uninorm/test-decomposing-form.c: Likewise.
30382         * tests/uninorm/test-decomposition.c: Likewise.
30383         * tests/uninorm/test-u8-nfc.c: Likewise.
30384         * tests/uninorm/test-u8-nfd.c: Likewise.
30385         * tests/uninorm/test-u8-nfkc.c: Likewise.
30386         * tests/uninorm/test-u8-nfkd.c: Likewise.
30387         * tests/uninorm/test-u8-normcmp.c: Likewise.
30388         * tests/uninorm/test-u8-normcoll.c: Likewise.
30389         * tests/uninorm/test-u16-nfc.c: Likewise.
30390         * tests/uninorm/test-u16-nfd.c: Likewise.
30391         * tests/uninorm/test-u16-nfkc.c: Likewise.
30392         * tests/uninorm/test-u16-nfkd.c: Likewise.
30393         * tests/uninorm/test-u16-normcmp.c: Likewise.
30394         * tests/uninorm/test-u16-normcoll.c: Likewise.
30395         * tests/uninorm/test-u32-nfc.c: Likewise.
30396         * tests/uninorm/test-u32-nfd.c: Likewise.
30397         * tests/uninorm/test-u32-nfkc.c: Likewise.
30398         * tests/uninorm/test-u32-nfkd.c: Likewise.
30399         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30400         * tests/uninorm/test-u32-normcmp.c: Likewise.
30401         * tests/uninorm/test-u32-normcoll.c: Likewise.
30402         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30403         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30404         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30405         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30406         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30407         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30408         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30409         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30410         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30411         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30412         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30413         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30414         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30415         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30416         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30417         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30418         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30419         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30420         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30421         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30422         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30423         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30424         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30425         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30426         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30427         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30428         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30429         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30430         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30431         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30432         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30433         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30434         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30435         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30436         * tests/uniwidth/test-u8-width.c: Likewise.
30437         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30438         * tests/uniwidth/test-u16-width.c: Likewise.
30439         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30440         * tests/uniwidth/test-u32-width.c: Likewise.
30441         * tests/uniwidth/test-uc_width.c: Likewise.
30442         * tests/uniwidth/test-uc_width2.c: Likewise.
30443         * modules/acl-tests (Files): Add tests/macros.h.
30444         * modules/areadlink-tests (Files): Likewise.
30445         * modules/areadlink-with-size-tests (Files): Likewise.
30446         * modules/areadlinkat-tests (Files): Likewise.
30447         * modules/areadlinkat-with-size-tests (Files): Likewise.
30448         * modules/argmatch-tests (Files): Likewise.
30449         * modules/argv-iter-tests (Files): Likewise.
30450         * modules/array-list-tests (Files): Likewise.
30451         * modules/array-mergesort-tests (Files): Likewise.
30452         * modules/array-oset-tests (Files): Likewise.
30453         * modules/avltree-list-tests (Files): Likewise.
30454         * modules/avltree-oset-tests (Files): Likewise.
30455         * modules/avltreehash-list-tests (Files): Likewise.
30456         * modules/base64-tests (Files): Likewise.
30457         * modules/binary-io-tests (Files): Likewise.
30458         * modules/bitrotate-tests (Files): Likewise.
30459         * modules/btowc-tests (Files): Likewise.
30460         * modules/byteswap-tests (Files): Likewise.
30461         * modules/c-ctype-tests (Files): Likewise.
30462         * modules/c-stack-tests (Files): Likewise.
30463         * modules/c-strcase-tests (Files): Likewise.
30464         * modules/c-strcasestr-tests (Files): Likewise.
30465         * modules/c-strstr-tests (Files): Likewise.
30466         * modules/canonicalize-lgpl-tests (Files): Likewise.
30467         * modules/canonicalize-tests (Files): Likewise.
30468         * modules/carray-list-tests (Files): Likewise.
30469         * modules/ceilf-tests (Files): Likewise.
30470         * modules/ceill-tests (Files): Likewise.
30471         * modules/chown-tests (Files): Likewise.
30472         * modules/cloexec-tests (Files): Likewise.
30473         * modules/copy-file-tests (Files): Likewise.
30474         * modules/count-one-bits-tests (Files): Likewise.
30475         * modules/dprintf-posix-tests (Files): Likewise.
30476         * modules/dup2-tests (Files): Likewise.
30477         * modules/dup3-tests (Files): Likewise.
30478         * modules/duplocale-tests (Files): Likewise.
30479         * modules/fbufmode-tests (Files): Likewise.
30480         * modules/fchdir-tests (Files): Likewise.
30481         * modules/fcntl-safer-tests (Files): Likewise.
30482         * modules/fcntl-tests (Files): Likewise.
30483         * modules/fdopendir-tests (Files): Likewise.
30484         * modules/fdutimensat-tests (Files): Likewise.
30485         * modules/fflush-tests (Files): Likewise.
30486         * modules/filevercmp-tests (Files): Likewise.
30487         * modules/flock-tests (Files): Likewise.
30488         * modules/floorf-tests (Files): Likewise.
30489         * modules/floorl-tests (Files): Likewise.
30490         * modules/fnmatch-tests (Files): Likewise.
30491         * modules/fopen-safer-tests (Files): Likewise.
30492         * modules/fopen-tests (Files): Likewise.
30493         * modules/fpending-tests (Files): Likewise.
30494         * modules/fprintf-posix-tests (Files): Likewise.
30495         * modules/fpurge-tests (Files): Likewise.
30496         * modules/freadable-tests (Files): Likewise.
30497         * modules/freadahead-tests (Files): Likewise.
30498         * modules/freading-tests (Files): Likewise.
30499         * modules/freadptr-tests (Files): Likewise.
30500         * modules/freadseek-tests (Files): Likewise.
30501         * modules/freopen-tests (Files): Likewise.
30502         * modules/frexp-nolibm-tests (Files): Likewise.
30503         * modules/frexp-tests (Files): Likewise.
30504         * modules/frexpl-nolibm-tests (Files): Likewise.
30505         * modules/frexpl-tests (Files): Likewise.
30506         * modules/fseek-tests (Files): Likewise.
30507         * modules/fseeko-tests (Files): Likewise.
30508         * modules/fstrcmp-tests (Files): Likewise.
30509         * modules/fsync-tests (Files): Likewise.
30510         * modules/ftell-tests (Files): Likewise.
30511         * modules/ftello-tests (Files): Likewise.
30512         * modules/func-tests (Files): Likewise.
30513         * modules/futimens-tests (Files): Likewise.
30514         * modules/fwritable-tests (Files): Likewise.
30515         * modules/fwriting-tests (Files): Likewise.
30516         * modules/getcwd-tests (Files): Likewise.
30517         * modules/getdate-tests (Files): Likewise.
30518         * modules/getdelim-tests (Files): Likewise.
30519         * modules/getdtablesize-tests (Files): Likewise.
30520         * modules/getgroups-tests (Files): Likewise.
30521         * modules/getline-tests (Files): Likewise.
30522         * modules/getndelim2-tests (Files): Likewise.
30523         * modules/glob-tests (Files): Likewise.
30524         * modules/hash-tests (Files): Likewise.
30525         * modules/i-ring-tests (Files): Likewise.
30526         * modules/iconv-tests (Files): Likewise.
30527         * modules/iconv_open-utf-tests (Files): Likewise.
30528         * modules/idpriv-drop-tests (Files): Likewise.
30529         * modules/idpriv-droptemp-tests (Files): Likewise.
30530         * modules/inet_ntop-tests (Files): Likewise.
30531         * modules/inet_pton-tests (Files): Likewise.
30532         * modules/isblank-tests (Files): Likewise.
30533         * modules/isfinite-tests (Files): Likewise.
30534         * modules/isinf-tests (Files): Likewise.
30535         * modules/isnan-tests (Files): Likewise.
30536         * modules/isnand-nolibm-tests (Files): Likewise.
30537         * modules/isnand-tests (Files): Likewise.
30538         * modules/isnanf-nolibm-tests (Files): Likewise.
30539         * modules/isnanf-tests (Files): Likewise.
30540         * modules/isnanl-nolibm-tests (Files): Likewise.
30541         * modules/isnanl-tests (Files): Likewise.
30542         * modules/lchown-tests (Files): Likewise.
30543         * modules/ldexpl-tests (Files): Likewise.
30544         * modules/link-tests (Files): Likewise.
30545         * modules/linkat-tests (Files): Likewise.
30546         * modules/linked-list-tests (Files): Likewise.
30547         * modules/linkedhash-list-tests (Files): Likewise.
30548         * modules/localename-tests (Files): Likewise.
30549         * modules/lseek-tests (Files): Likewise.
30550         * modules/lstat-tests (Files): Likewise.
30551         * modules/mbmemcasecmp-tests (Files): Likewise.
30552         * modules/mbmemcasecoll-tests (Files): Likewise.
30553         * modules/mbrtowc-tests (Files): Likewise.
30554         * modules/mbscasecmp-tests (Files): Likewise.
30555         * modules/mbscasestr-tests (Files): Likewise.
30556         * modules/mbschr-tests (Files): Likewise.
30557         * modules/mbscspn-tests (Files): Likewise.
30558         * modules/mbsinit-tests (Files): Likewise.
30559         * modules/mbsncasecmp-tests (Files): Likewise.
30560         * modules/mbsnrtowcs-tests (Files): Likewise.
30561         * modules/mbspbrk-tests (Files): Likewise.
30562         * modules/mbspcasecmp-tests (Files): Likewise.
30563         * modules/mbsrchr-tests (Files): Likewise.
30564         * modules/mbsrtowcs-tests (Files): Likewise.
30565         * modules/mbsspn-tests (Files): Likewise.
30566         * modules/mbsstr-tests (Files): Likewise.
30567         * modules/memchr-tests (Files): Likewise.
30568         * modules/memchr2-tests (Files): Likewise.
30569         * modules/memcmp-tests (Files): Likewise.
30570         * modules/memmem-tests (Files): Likewise.
30571         * modules/memrchr-tests (Files): Likewise.
30572         * modules/mkdir-tests (Files): Likewise.
30573         * modules/mkfifo-tests (Files): Likewise.
30574         * modules/mkfifoat-tests (Files): Likewise.
30575         * modules/mknod-tests (Files): Likewise.
30576         * modules/nanosleep-tests (Files): Likewise.
30577         * modules/nl_langinfo-tests (Files): Likewise.
30578         * modules/obstack-printf-tests (Files): Likewise.
30579         * modules/open-tests (Files): Likewise.
30580         * modules/openat-tests (Files): Likewise.
30581         * modules/pipe-filter-gi-tests (Files): Likewise.
30582         * modules/pipe-filter-ii-tests (Files): Likewise.
30583         * modules/pipe2-tests (Files): Likewise.
30584         * modules/popen-safer-tests (Files): Likewise.
30585         * modules/popen-tests (Files): Likewise.
30586         * modules/posixtm-tests (Files): Likewise.
30587         * modules/pread-tests (Files): Likewise.
30588         * modules/printf-frexp-tests (Files): Likewise.
30589         * modules/printf-frexpl-tests (Files): Likewise.
30590         * modules/printf-posix-tests (Files): Likewise.
30591         * modules/priv-set-tests (Files): Likewise.
30592         * modules/quotearg-tests (Files): Likewise.
30593         * modules/random_r-tests (Files): Likewise.
30594         * modules/rawmemchr-tests (Files): Likewise.
30595         * modules/rbtree-list-tests (Files): Likewise.
30596         * modules/rbtree-oset-tests (Files): Likewise.
30597         * modules/rbtreehash-list-tests (Files): Likewise.
30598         * modules/readlink-tests (Files): Likewise.
30599         * modules/remove-tests (Files): Likewise.
30600         * modules/rename-tests (Files): Likewise.
30601         * modules/renameat-tests (Files): Likewise.
30602         * modules/rmdir-tests (Files): Likewise.
30603         * modules/round-tests (Files): Likewise.
30604         * modules/roundf-tests (Files): Likewise.
30605         * modules/roundl-tests (Files): Likewise.
30606         * modules/safe-alloc-tests (Files): Likewise.
30607         * modules/setenv-tests (Files): Likewise.
30608         * modules/sigaction-tests (Files): Likewise.
30609         * modules/signbit-tests (Files): Likewise.
30610         * modules/sleep-tests (Files): Likewise.
30611         * modules/snprintf-posix-tests (Files): Likewise.
30612         * modules/snprintf-tests (Files): Likewise.
30613         * modules/sprintf-posix-tests (Files): Likewise.
30614         * modules/stat-tests (Files): Likewise.
30615         * modules/stat-time-tests (Files): Likewise.
30616         * modules/strcasestr-tests (Files): Likewise.
30617         * modules/strchrnul-tests (Files): Likewise.
30618         * modules/strerror-tests (Files): Likewise.
30619         * modules/striconv-tests (Files): Likewise.
30620         * modules/striconveh-tests (Files): Likewise.
30621         * modules/striconveha-tests (Files): Likewise.
30622         * modules/strsignal-tests (Files): Likewise.
30623         * modules/strstr-tests (Files): Likewise.
30624         * modules/strtod-tests (Files): Likewise.
30625         * modules/strverscmp-tests (Files): Likewise.
30626         * modules/symlink-tests (Files): Likewise.
30627         * modules/symlinkat-tests (Files): Likewise.
30628         * modules/trunc-tests (Files): Likewise.
30629         * modules/truncf-tests (Files): Likewise.
30630         * modules/truncl-tests (Files): Likewise.
30631         * modules/uname-tests (Files): Likewise.
30632         * modules/unicase/cased-tests (Files): Likewise.
30633         * modules/unicase/ignorable-tests (Files): Likewise.
30634         * modules/unicase/locale-language-tests (Files): Likewise.
30635         * modules/unicase/tolower-tests (Files): Likewise.
30636         * modules/unicase/totitle-tests (Files): Likewise.
30637         * modules/unicase/toupper-tests (Files): Likewise.
30638         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30639         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30640         * modules/unicase/u8-casefold-tests (Files): Likewise.
30641         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30642         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30643         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30644         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30645         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30646         * modules/unicase/u8-tolower-tests (Files): Likewise.
30647         * modules/unicase/u8-totitle-tests (Files): Likewise.
30648         * modules/unicase/u8-toupper-tests (Files): Likewise.
30649         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30650         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30651         * modules/unicase/u16-casefold-tests (Files): Likewise.
30652         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30653         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30654         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30655         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30656         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30657         * modules/unicase/u16-tolower-tests (Files): Likewise.
30658         * modules/unicase/u16-totitle-tests (Files): Likewise.
30659         * modules/unicase/u16-toupper-tests (Files): Likewise.
30660         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30661         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30662         * modules/unicase/u32-casefold-tests (Files): Likewise.
30663         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30664         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30665         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30666         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30667         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30668         * modules/unicase/u32-tolower-tests (Files): Likewise.
30669         * modules/unicase/u32-totitle-tests (Files): Likewise.
30670         * modules/unicase/u32-toupper-tests (Files): Likewise.
30671         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30672         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30673         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30674         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30675         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30676         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30677         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30678         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30679         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30680         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30681         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30682         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30683         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30684         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30685         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30686         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30687         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30688         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30689         * modules/unictype/block-list-tests (Files): Likewise.
30690         * modules/unictype/block-of-tests (Files): Likewise.
30691         * modules/unictype/block-test-tests (Files): Likewise.
30692         * modules/unictype/category-C-tests (Files): Likewise.
30693         * modules/unictype/category-Cc-tests (Files): Likewise.
30694         * modules/unictype/category-Cf-tests (Files): Likewise.
30695         * modules/unictype/category-Cn-tests (Files): Likewise.
30696         * modules/unictype/category-Co-tests (Files): Likewise.
30697         * modules/unictype/category-Cs-tests (Files): Likewise.
30698         * modules/unictype/category-L-tests (Files): Likewise.
30699         * modules/unictype/category-Ll-tests (Files): Likewise.
30700         * modules/unictype/category-Lm-tests (Files): Likewise.
30701         * modules/unictype/category-Lo-tests (Files): Likewise.
30702         * modules/unictype/category-Lt-tests (Files): Likewise.
30703         * modules/unictype/category-Lu-tests (Files): Likewise.
30704         * modules/unictype/category-M-tests (Files): Likewise.
30705         * modules/unictype/category-Mc-tests (Files): Likewise.
30706         * modules/unictype/category-Me-tests (Files): Likewise.
30707         * modules/unictype/category-Mn-tests (Files): Likewise.
30708         * modules/unictype/category-N-tests (Files): Likewise.
30709         * modules/unictype/category-Nd-tests (Files): Likewise.
30710         * modules/unictype/category-Nl-tests (Files): Likewise.
30711         * modules/unictype/category-No-tests (Files): Likewise.
30712         * modules/unictype/category-P-tests (Files): Likewise.
30713         * modules/unictype/category-Pc-tests (Files): Likewise.
30714         * modules/unictype/category-Pd-tests (Files): Likewise.
30715         * modules/unictype/category-Pe-tests (Files): Likewise.
30716         * modules/unictype/category-Pf-tests (Files): Likewise.
30717         * modules/unictype/category-Pi-tests (Files): Likewise.
30718         * modules/unictype/category-Po-tests (Files): Likewise.
30719         * modules/unictype/category-Ps-tests (Files): Likewise.
30720         * modules/unictype/category-S-tests (Files): Likewise.
30721         * modules/unictype/category-Sc-tests (Files): Likewise.
30722         * modules/unictype/category-Sk-tests (Files): Likewise.
30723         * modules/unictype/category-Sm-tests (Files): Likewise.
30724         * modules/unictype/category-So-tests (Files): Likewise.
30725         * modules/unictype/category-Z-tests (Files): Likewise.
30726         * modules/unictype/category-Zl-tests (Files): Likewise.
30727         * modules/unictype/category-Zp-tests (Files): Likewise.
30728         * modules/unictype/category-Zs-tests (Files): Likewise.
30729         * modules/unictype/category-and-not-tests (Files): Likewise.
30730         * modules/unictype/category-and-tests (Files): Likewise.
30731         * modules/unictype/category-byname-tests (Files): Likewise.
30732         * modules/unictype/category-name-tests (Files): Likewise.
30733         * modules/unictype/category-none-tests (Files): Likewise.
30734         * modules/unictype/category-of-tests (Files): Likewise.
30735         * modules/unictype/category-or-tests (Files): Likewise.
30736         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30737         * modules/unictype/combining-class-tests (Files): Likewise.
30738         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30739         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30740         * modules/unictype/ctype-blank-tests (Files): Likewise.
30741         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30742         * modules/unictype/ctype-digit-tests (Files): Likewise.
30743         * modules/unictype/ctype-graph-tests (Files): Likewise.
30744         * modules/unictype/ctype-lower-tests (Files): Likewise.
30745         * modules/unictype/ctype-print-tests (Files): Likewise.
30746         * modules/unictype/ctype-punct-tests (Files): Likewise.
30747         * modules/unictype/ctype-space-tests (Files): Likewise.
30748         * modules/unictype/ctype-upper-tests (Files): Likewise.
30749         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30750         * modules/unictype/decimal-digit-tests (Files): Likewise.
30751         * modules/unictype/digit-tests (Files): Likewise.
30752         * modules/unictype/mirror-tests (Files): Likewise.
30753         * modules/unictype/numeric-tests (Files): Likewise.
30754         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30755         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30756         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30757         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30758         Likewise.
30759         * modules/unictype/property-bidi-block-separator-tests (Files):
30760         Likewise.
30761         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30762         Likewise.
30763         * modules/unictype/property-bidi-common-separator-tests (Files):
30764         Likewise.
30765         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30766         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30767         Likewise.
30768         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30769         Likewise.
30770         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30771         Likewise.
30772         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30773         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30774         Likewise.
30775         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30776         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30777         Likewise.
30778         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30779         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30780         * modules/unictype/property-bidi-segment-separator-tests (Files):
30781         Likewise.
30782         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30783         * modules/unictype/property-byname-tests (Files): Likewise.
30784         * modules/unictype/property-combining-tests (Files): Likewise.
30785         * modules/unictype/property-composite-tests (Files): Likewise.
30786         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30787         * modules/unictype/property-dash-tests (Files): Likewise.
30788         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30789         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30790         Likewise.
30791         * modules/unictype/property-deprecated-tests (Files): Likewise.
30792         * modules/unictype/property-diacritic-tests (Files): Likewise.
30793         * modules/unictype/property-extender-tests (Files): Likewise.
30794         * modules/unictype/property-format-control-tests (Files): Likewise.
30795         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30796         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30797         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30798         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30799         * modules/unictype/property-hyphen-tests (Files): Likewise.
30800         * modules/unictype/property-id-continue-tests (Files): Likewise.
30801         * modules/unictype/property-id-start-tests (Files): Likewise.
30802         * modules/unictype/property-ideographic-tests (Files): Likewise.
30803         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30804         * modules/unictype/property-ids-trinary-operator-tests (Files):
30805         Likewise.
30806         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30807         * modules/unictype/property-iso-control-tests (Files): Likewise.
30808         * modules/unictype/property-join-control-tests (Files): Likewise.
30809         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30810         * modules/unictype/property-line-separator-tests (Files): Likewise.
30811         * modules/unictype/property-logical-order-exception-tests (Files):
30812         Likewise.
30813         * modules/unictype/property-lowercase-tests (Files): Likewise.
30814         * modules/unictype/property-math-tests (Files): Likewise.
30815         * modules/unictype/property-non-break-tests (Files): Likewise.
30816         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30817         * modules/unictype/property-numeric-tests (Files): Likewise.
30818         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30819         * modules/unictype/property-other-default-ignorable-code-point-tests
30820         (Files): Likewise.
30821         * modules/unictype/property-other-grapheme-extend-tests (Files):
30822         Likewise.
30823         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30824         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30825         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30826         * modules/unictype/property-other-math-tests (Files): Likewise.
30827         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30828         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30829         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30830         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30831         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30832         * modules/unictype/property-private-use-tests (Files): Likewise.
30833         * modules/unictype/property-punctuation-tests (Files): Likewise.
30834         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30835         * modules/unictype/property-radical-tests (Files): Likewise.
30836         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30837         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30838         * modules/unictype/property-space-tests (Files): Likewise.
30839         * modules/unictype/property-terminal-punctuation-tests (Files):
30840         Likewise.
30841         * modules/unictype/property-test-tests (Files): Likewise.
30842         * modules/unictype/property-titlecase-tests (Files): Likewise.
30843         * modules/unictype/property-unassigned-code-value-tests (Files):
30844         Likewise.
30845         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30846         * modules/unictype/property-uppercase-tests (Files): Likewise.
30847         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30848         * modules/unictype/property-white-space-tests (Files): Likewise.
30849         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30850         * modules/unictype/property-xid-start-tests (Files): Likewise.
30851         * modules/unictype/property-zero-width-tests (Files): Likewise.
30852         * modules/unictype/scripts-tests (Files): Likewise.
30853         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30854         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30855         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30856         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30857         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30858         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30859         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30860         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30861         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30862         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30863         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30864         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30865         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30866         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30867         * modules/uninorm/composition-tests (Files): Likewise.
30868         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30869         * modules/uninorm/decomposition-tests (Files): Likewise.
30870         * modules/uninorm/filter-tests (Files): Likewise.
30871         * modules/uninorm/nfc-tests (Files): Likewise.
30872         * modules/uninorm/nfd-tests (Files): Likewise.
30873         * modules/uninorm/nfkc-tests (Files): Likewise.
30874         * modules/uninorm/nfkd-tests (Files): Likewise.
30875         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30876         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30877         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30878         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30879         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30880         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30881         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30882         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30883         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30884         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30885         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30886         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30887         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30888         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30889         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30890         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30891         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30892         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30893         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30894         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30895         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30896         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30897         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30898         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30899         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30900         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30901         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30902         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30903         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30904         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30905         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30906         * modules/uniwidth/u8-width-tests (Files): Likewise.
30907         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30908         * modules/uniwidth/u16-width-tests (Files): Likewise.
30909         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30910         * modules/uniwidth/u32-width-tests (Files): Likewise.
30911         * modules/uniwidth/width-tests (Files): Likewise.
30912         * modules/unlink-tests (Files): Likewise.
30913         * modules/unsetenv-tests (Files): Likewise.
30914         * modules/usleep-tests (Files): Likewise.
30915         * modules/utimens-tests (Files): Likewise.
30916         * modules/utimensat-tests (Files): Likewise.
30917         * modules/vasnprintf-posix-tests (Files): Likewise.
30918         * modules/vasnprintf-tests (Files): Likewise.
30919         * modules/vasprintf-posix-tests (Files): Likewise.
30920         * modules/vasprintf-tests (Files): Likewise.
30921         * modules/vdprintf-posix-tests (Files): Likewise.
30922         * modules/vfprintf-posix-tests (Files): Likewise.
30923         * modules/vprintf-posix-tests (Files): Likewise.
30924         * modules/vsnprintf-posix-tests (Files): Likewise.
30925         * modules/vsnprintf-tests (Files): Likewise.
30926         * modules/vsprintf-posix-tests (Files): Likewise.
30927         * modules/wcrtomb-tests (Files): Likewise.
30928         * modules/wcsnrtombs-tests (Files): Likewise.
30929         * modules/wcsrtombs-tests (Files): Likewise.
30930         * modules/wctype-tests (Files): Likewise.
30931         * modules/wcwidth-tests (Files): Likewise.
30932         * modules/xmemdup0-tests (Files): Likewise.
30933         * modules/xprintf-posix-tests (Files): Likewise.
30934         * modules/xvasprintf-tests (Files): Likewise.
30935
30936 2009-12-24  Eric Blake  <ebb9@byu.net>
30937
30938         test-nanosleep: fix typo
30939         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30940         patch.
30941         Reported by Bruno Haible.
30942
30943 2009-12-24  Bruno Haible  <bruno@clisp.org>
30944
30945         Reduce namespace pollution on glibc systems.
30946         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30947         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30948         systems.
30949         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30950         <getopt.h> on glibc systems.
30951         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30952         systems.
30953         * lib/fcntl.c: Include <unistd.h> here instead.
30954
30955 2009-12-24  Bruno Haible  <bruno@clisp.org>
30956
30957         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30958
30959 2009-12-24  Eric Blake  <ebb9@byu.net>
30960
30961         tests: add signature checks
30962         * tests/signature.h (SIGNATURE_CHECK): New file.
30963         * modules/atexit-tests (Files): Use it.
30964         * modules/btowc-tests (Files): Likewise.
30965         * modules/canonicalize-lgpl-tests (Files): Likewise.
30966         * modules/ceilf-tests (Files): Likewise.
30967         * modules/ceill-tests (Files): Likewise.
30968         * modules/chown-tests (Files): Likewise.
30969         * modules/dprintf-posix-tests (Files): Likewise.
30970         * modules/dup2-tests (Files): Likewise.
30971         * modules/dup3-tests (Files): Likewise.
30972         * modules/duplocale-tests (Files): Likewise.
30973         * modules/fchdir-tests (Files): Likewise.
30974         * modules/fcntl-tests (Files): Likewise.
30975         * modules/fdopendir-tests (Files): Likewise.
30976         * modules/fflush-tests (Files): Likewise.
30977         * modules/flock-tests (Files): Likewise.
30978         * modules/floorf-tests (Files): Likewise.
30979         * modules/floorl-tests (Files): Likewise.
30980         * modules/fnmatch-tests (Files): Likewise.
30981         * modules/fopen-tests (Files): Likewise.
30982         * modules/fprintf-posix-tests (Files): Likewise.
30983         * modules/freopen-tests (Files): Likewise.
30984         * modules/frexp-nolibm-tests (Files): Likewise.
30985         * modules/frexp-tests (Files): Likewise.
30986         * modules/frexpl-nolibm-tests (Files): Likewise.
30987         * modules/frexpl-tests (Files): Likewise.
30988         * modules/fseek-tests (Files): Likewise.
30989         * modules/fseeko-tests (Files): Likewise.
30990         * modules/fsync-tests (Files): Likewise.
30991         * modules/ftell-tests (Files): Likewise.
30992         * modules/ftello-tests (Files): Likewise.
30993         * modules/futimens-tests (Files): Likewise.
30994         * modules/getaddrinfo-tests (Files): Likewise.
30995         * modules/getcwd-tests (Files): Likewise.
30996         * modules/getdelim-tests (Files): Likewise.
30997         * modules/getdtablesize-tests (Files): Likewise.
30998         * modules/getgroups-tests (Files): Likewise.
30999         * modules/gethostname-tests (Files): Likewise.
31000         * modules/getline-tests (Files): Likewise.
31001         * modules/getopt-posix-tests (Files): Likewise.
31002         * modules/gettimeofday-tests (Files): Likewise.
31003         * modules/glob-tests (Files): Likewise.
31004         * modules/iconv-tests (Files): Likewise.
31005         * modules/inet_ntop-tests (Files): Likewise.
31006         * modules/inet_pton-tests (Files): Likewise.
31007         * modules/isblank-tests (Files): Likewise.
31008         * modules/lchown-tests (Files): Likewise.
31009         * modules/ldexpl-tests (Files): Likewise.
31010         * modules/link-tests (Files): Likewise.
31011         * modules/linkat-tests (Files): Likewise.
31012         * modules/lseek-tests (Files): Likewise.
31013         * modules/lstat-tests (Files): Likewise.
31014         * modules/mbrtowc-tests (Files): Likewise.
31015         * modules/mbsinit-tests (Files): Likewise.
31016         * modules/mbsnrtowcs-tests (Files): Likewise.
31017         * modules/mbsrtowcs-tests (Files): Likewise.
31018         * modules/memchr-tests (Files): Likewise.
31019         * modules/memcmp-tests (Files): Likewise.
31020         * modules/memmem-tests (Files): Likewise.
31021         * modules/memrchr-tests (Files): Likewise.
31022         * modules/mkdir-tests (Files): Likewise.
31023         * modules/mkfifo-tests (Files): Likewise.
31024         * modules/mkfifoat-tests (Files): Likewise.
31025         * modules/mknod-tests (Files): Likewise.
31026         * modules/nanosleep-tests (Files): Likewise.
31027         * modules/nl_langinfo-tests (Files): Likewise.
31028         * modules/obstack-printf-tests (Files): Likewise.
31029         * modules/open-tests (Files): Likewise.
31030         * modules/openat-tests (Files): Likewise.
31031         * modules/perror-tests (Files): Likewise.
31032         * modules/pipe2-tests (Files): Likewise.
31033         * modules/poll-tests (Files): Likewise.
31034         * modules/popen-tests (Files): Likewise.
31035         * modules/posix_spawn-tests (Files): Likewise.
31036         * modules/posix_spawnp-tests (Files): Likewise.
31037         * modules/pread-tests (Files): Likewise.
31038         * modules/printf-posix-tests (Files): Likewise.
31039         * modules/pty-tests (Files): Likewise.
31040         * modules/random_r-tests (Files): Likewise.
31041         * modules/rawmemchr-tests (Files): Likewise.
31042         * modules/readlink-tests (Files): Likewise.
31043         * modules/remove-tests (Files): Likewise.
31044         * modules/rename-tests (Files): Likewise.
31045         * modules/renameat-tests (Files): Likewise.
31046         * modules/rmdir-tests (Files): Likewise.
31047         * modules/round-tests (Files): Likewise.
31048         * modules/roundf-tests (Files): Likewise.
31049         * modules/roundl-tests (Files): Likewise.
31050         * modules/select-tests (Files): Likewise.
31051         * modules/setenv-tests (Files): Likewise.
31052         * modules/sigaction-tests (Files): Likewise.
31053         * modules/sleep-tests (Files): Likewise.
31054         * modules/snprintf-posix-tests (Files): Likewise.
31055         * modules/snprintf-tests (Files): Likewise.
31056         * modules/sprintf-posix-tests (Files): Likewise.
31057         * modules/stat-tests (Files): Likewise.
31058         * modules/strcasestr-tests (Files): Likewise.
31059         * modules/strchrnul-tests (Files): Likewise.
31060         * modules/strerror-tests (Files): Likewise.
31061         * modules/strsignal-tests (Files): Likewise.
31062         * modules/strstr-tests (Files): Likewise.
31063         * modules/strtod-tests (Files): Likewise.
31064         * modules/strverscmp-tests (Files): Likewise.
31065         * modules/symlink-tests (Files): Likewise.
31066         * modules/symlinkat-tests (Files): Likewise.
31067         * modules/times-tests (Files): Likewise.
31068         * modules/trunc-tests (Files): Likewise.
31069         * modules/truncf-tests (Files): Likewise.
31070         * modules/truncl-tests (Files): Likewise.
31071         * modules/tsearch-tests (Files): Likewise.
31072         * modules/uname-tests (Files): Likewise.
31073         * modules/unlink-tests (Files): Likewise.
31074         * modules/unsetenv-tests (Files): Likewise.
31075         * modules/usleep-tests (Files): Likewise.
31076         * modules/utimensat-tests (Files): Likewise.
31077         * modules/vasprintf-tests (Files): Likewise.
31078         * modules/vdprintf-posix-tests (Files): Likewise.
31079         * modules/vfprintf-posix-tests (Files): Likewise.
31080         * modules/vprintf-posix-tests (Files): Likewise.
31081         * modules/vsnprintf-posix-tests (Files): Likewise.
31082         * modules/vsnprintf-tests (Files): Likewise.
31083         * modules/vsprintf-posix-tests (Files): Likewise.
31084         * modules/wcrtomb-tests (Files): Likewise.
31085         * modules/wcsnrtombs-tests (Files): Likewise.
31086         * modules/wcsrtombs-tests (Files): Likewise.
31087         * modules/wcwidth-tests (Files): Likewise.
31088         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31089         * tests/test-isinf.c (isinf): Likewise.
31090         * tests/test-isnan.c (isnan): Likewise.
31091         * tests/test-signbit.c (signbit): Likewise.
31092         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31093         declaration, either as macro or with correct signature.
31094         (select): Ensure function under test is declared with correct
31095         signature in correct header.
31096         * tests/test-atexit.c (atexit): Likewise.
31097         * tests/test-btowc.c (btowc): Likewise.
31098         * tests/test-canonicalize-lgpl.c (realpath)
31099         (canonicalize_file_name): Likewise.
31100         * tests/test-ceilf1.c (ceilf): Likewise.
31101         * tests/test-ceill.c (ceill): Likewise.
31102         * tests/test-chown.c (chown): Likewise.
31103         * tests/test-dprintf-posix.c (dprintf): Likewise.
31104         * tests/test-dup2.c (dup2): Likewise.
31105         * tests/test-dup3.c (dup3): Likewise.
31106         * tests/test-duplocale.c (duplocale): Likewise.
31107         * tests/test-fchdir.c (fchdir): Likewise.
31108         * tests/test-fchownat.c (fchownat): Likewise.
31109         * tests/test-fcntl.c (fcntl): Likewise.
31110         * tests/test-fdopendir.c (fdopendir): Likewise.
31111         * tests/test-fflush.c (fflush): Likewise.
31112         * tests/test-flock.c (flock): Likewise.
31113         * tests/test-floorf1.c (floorf): Likewise.
31114         * tests/test-floorl.c (floorl): Likewise.
31115         * tests/test-fnmatch.c (fnmatch): Likewise.
31116         * tests/test-fopen.c (fopen): Likewise.
31117         * tests/test-fprintf-posix.c (fprintf): Likewise.
31118         * tests/test-freopen.c (freopen): Likewise.
31119         * tests/test-frexp.c (frexp): Likewise.
31120         * tests/test-frexpl.c (frexpl): Likewise.
31121         * tests/test-fseek.c (fseek): Likewise.
31122         * tests/test-fseeko.c (fseeko): Likewise.
31123         * tests/test-fstatat.c (fstatat): Likewise.
31124         * tests/test-fsync.c (fsync): Likewise.
31125         * tests/test-ftell.c (ftell): Likewise.
31126         * tests/test-ftello.c (ftello): Likewise.
31127         * tests/test-futimens.c (futimens): Likewise.
31128         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31129         (gai_strerror): Likewise.
31130         * tests/test-getcwd.c (getcwd): Likewise.
31131         * tests/test-getdelim.c (getdelim): Likewise.
31132         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31133         * tests/test-getgroups.c (getgroups): Likewise.
31134         * tests/test-gethostname.c (gethostname): Likewise.
31135         * tests/test-getline.c (getline): Likewise.
31136         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31137         Likewise.
31138         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31139         * tests/test-glob.c (glob, globfree): Likewise.
31140         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31141         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31142         * tests/test-inet_pton.c (inet_pton): Likewise.
31143         * tests/test-isblank.c (isblank): Likewise.
31144         * tests/test-lchown.c (lchown): Likewise.
31145         * tests/test-ldexpl.c (ldexpl): Likewise.
31146         * tests/test-link.c (link): Likewise.
31147         * tests/test-linkat.c (linkat): Likewise.
31148         * tests/test-lseek.c (lseek): Likewise.
31149         * tests/test-lstat.c (lstat): Likewise.
31150         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31151         * tests/test-mbsinit.c (mbsinit): Likewise.
31152         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31153         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31154         * tests/test-memchr.c (memchr): Likewise.
31155         * tests/test-memcmp.c (memcmp): Likewise.
31156         * tests/test-memmem.c (memmem): Likewise.
31157         * tests/test-memrchr.c (memrchr): Likewise.
31158         * tests/test-mkdir.c (mkdir): Likewise.
31159         * tests/test-mkdirat.c (mkdirat): Likewise.
31160         * tests/test-mkfifo.c (mkfifo): Likewise.
31161         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31162         * tests/test-mknod.c (mknod): Likewise.
31163         * tests/test-nanosleep.c (nanosleep): Likewise.
31164         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31165         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31166         Likewise.
31167         * tests/test-open.c (open): Likewise.
31168         * tests/test-openat.c (openat): Likewise.
31169         * tests/test-perror.c (perror): Likewise.
31170         * tests/test-pipe2.c (pipe2): Likewise.
31171         * tests/test-poll.c (poll): Likewise.
31172         * tests/test-popen.c (popen, pclose): Likewise.
31173         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31174         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31175         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31176         (posix_spawn_file_actions_destroy)
31177         (posix_spawn_file_actions_addclose)
31178         (posix_spawn_file_actions_addopen)
31179         (posix_spawn_file_actions_adddup2): Likewise.
31180         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31181         * tests/test-pread.c (pread): Likewise.
31182         * tests/test-printf-posix.c (printf): Likewise.
31183         * tests/test-pty.c (openpty, forkpty): Likewise.
31184         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31185         (random_r): Likewise.
31186         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31187         * tests/test-readlink.c (readlink): Likewise.
31188         * tests/test-remove.c (remove): Likewise.
31189         * tests/test-rename.c (rename): Likewise.
31190         * tests/test-renameat.c (renameat): Likewise.
31191         * tests/test-rmdir.c (rmdir): Likewise.
31192         * tests/test-round1.c (round): Likewise.
31193         * tests/test-roundf1.c (roundf): Likewise.
31194         * tests/test-roundl.c (roundl): Likewise.
31195         * tests/test-setenv.c (setenv): Likewise.
31196         * tests/test-sigaction.c (sigaction): Likewise.
31197         * tests/test-sleep.c (sleep): Likewise.
31198         * tests/test-snprintf.c (snprintf): Likewise.
31199         * tests/test-sprintf-posix.c (sprintf): Likewise.
31200         * tests/test-stat.c (stat): Likewise.
31201         * tests/test-stpncpy.c (stpncpy): Likewise.
31202         * tests/test-strcasestr.c (strcasestr): Likewise.
31203         * tests/test-strchrnul.c (strchrnul): Likewise.
31204         * tests/test-strerror.c (strerror): Likewise.
31205         * tests/test-strsignal.c (strsignal): Likewise.
31206         * tests/test-strstr.c (strstr): Likewise.
31207         * tests/test-strtod.c (strtod): Likewise.
31208         * tests/test-strverscmp.c (strverscmp): Likewise.
31209         * tests/test-symlink.c (symlink): Likewise.
31210         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31211         * tests/test-times.c (times): Likewise.
31212         * tests/test-trunc1.c (trunc): Likewise.
31213         * tests/test-truncf1.c (truncf): Likewise.
31214         * tests/test-truncl.c (truncl): Likewise.
31215         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31216         Likewise.
31217         * tests/test-uname.c (uname): Likewise.
31218         * tests/test-unlink.c (unlink): Likewise.
31219         * tests/test-unlinkat.c (unlinkat): Likewise.
31220         * tests/test-unsetenv.c (unsetenv): Likewise.
31221         * tests/test-usleep.c (usleep): Likewise.
31222         * tests/test-utimensat.c (utimensat): Likewise.
31223         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31224         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31225         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31226         * tests/test-vprintf-posix.c (vprintf): Likewise.
31227         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31228         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31229         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31230         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31231         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31232         * tests/test-wcwidth.c (wcwidth): Likewise.
31233
31234         build: pull in conditional headers during GNULIB_POSIXCHECK
31235         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31236         definitions from any conditionally-included headers.
31237         * lib/stdlib.in.h (includes): Likewise.
31238         * lib/unistd.in.h (includes): Likewise.
31239
31240 2009-12-24  Bruno Haible  <bruno@clisp.org>
31241
31242         * tests/test-argv-iter.c: Include header file being tested immediately
31243         after config.h.
31244         * tests/test-base64.c: Likewise.
31245         * tests/test-flock.c: Likewise.
31246         * tests/test-fsync.c: Likewise.
31247         * tests/test-getdate.c: Likewise.
31248         * tests/test-getndelim2.c: Likewise.
31249         * tests/test-isfinite.c: Likewise.
31250         * tests/test-isinf.c: Likewise.
31251         * tests/test-strerror.c: Likewise.
31252         * tests/test-strsignal.c: Likewise.
31253
31254 2009-12-23  Eric Blake  <ebb9@byu.net>
31255
31256         unistd: work around cygwin bug
31257         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31258         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31259         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31260
31261 2009-12-23  Bruno Haible  <bruno@clisp.org>
31262
31263         localename: More tests.
31264         * tests/test-localename.c (SIZEOF): New macro.
31265         (categories): New variable.
31266         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31267         test_locale_name_default): Add test w.r.t. thread locale.
31268         (test_locale_name_thread): New function.
31269         (main): Invoke it.
31270
31271         localename: Make aware of thread locale.
31272         * lib/localename.h (gl_locale_name_thread): New declaration.
31273         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31274         behaviour with respect to thread locale.
31275         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31276         <langinfo.h>, glthread/lock.h.
31277         (SIZE_BITS): New macro.
31278         (string_hash): New function.
31279         (struct hash_node): New type.
31280         (HASH_TABLE_SIZE): New macro.
31281         (struniq_hash_table, struniq_lock): New variables.
31282         (struniq): New function.
31283         (gl_locale_name_thread): New function.
31284         (gl_locale_name): Invoke it.
31285         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31286         * modules/localename (Depends-on): Add lock.
31287         Reported by Mike Gran <spk121@yahoo.com>.
31288
31289 2009-12-23  Eric Blake  <ebb9@byu.net>
31290
31291         va-args: new module
31292         * modules/va-args: New file.
31293         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31294         * MODULES.html.sh (Core language properties): Mention it.
31295
31296         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31297         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31298         named alias for __attribute__((__unused__)).
31299         * lib/chown.c: Update client.
31300         * lib/fchmodat.c: Likewise.
31301         * lib/fts.c: Likewise.
31302         * lib/getdate.y: Likewise.
31303         * lib/getgroups.c: Likewise.
31304         * lib/getopt.c: Likewise.
31305         * lib/getugroups.c: Likewise.
31306         * lib/mkdir.c: Likewise.
31307         * lib/mkfifo.c: Likewise.
31308         * lib/mkfifoat.c: Likewise.
31309         * lib/mknod.c: Likewise.
31310         * lib/mknodat.c: Likewise.
31311         * lib/readlink.c: Likewise.
31312         * lib/se-context.in.h: Likewise.
31313         * lib/se-selinux.in.h: Likewise.
31314         * lib/sockets.c: Likewise.
31315         * lib/symlink.c: Likewise.
31316         * lib/symlinkat.c: Likewise.
31317         * lib/unicodeio.c: Likewise.
31318         * lib/unistr.h: Likewise.
31319         * tests/test-areadlink.c: Likewise.
31320         * tests/test-areadlinkat.c: Likewise.
31321         * tests/test-filenamecat.c: Likewise.
31322         * tests/test-fseeko.c: Likewise.
31323         * tests/test-ftello.c: Likewise.
31324         * tests/test-getdate.c: Likewise.
31325         * tests/test-getgroups.c: Likewise.
31326         * tests/test-gethostname.c: Likewise.
31327         * tests/test-quotearg.c: Likewise.
31328         * tests/test-version-etc.c: Likewise.
31329         * tests/test-xalloc-die.c: Likewise.
31330         * tests/test-xfprintf-posix.c: Likewise.
31331         * tests/test-xprintf-posix.c: Likewise.
31332         * tests/test-xvasprintf.c: Likewise.
31333
31334         tests: avoid compiler warnings
31335         * tests/test-fcntl.c (main): Delete unused parameters.
31336         * tests/test-freopen-safer.c (main): Likewise.
31337         * tests/test-xalloc-die.c (main): Mark unused parameters.
31338         * tests/test-fseeko.c (main): Likewise.
31339         * tests/test-ftello.c (main): Likewise.
31340         * tests/test-nanosleep.c (main): Avoid declaration warning.
31341         * tests/test-sleep.c (main): Likewise.
31342         * tests/test-unsetenv.c (main): Silence warning about string
31343         literal.
31344         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31345
31346 2009-12-23  Bruno Haible  <bruno@clisp.org>
31347
31348         * tests/test-localename.c (test_locale_name): New function, extracted
31349         from main. Also test mixed situations.
31350         (test_locale_name_posix, test_locale_name_environ,
31351         test_locale_name_default): New functions.
31352         (main): Invoke them all.
31353         * modules/localename-tests (configure.ac): Test for newlocale.
31354
31355 2009-12-23  Bruno Haible  <bruno@clisp.org>
31356
31357         unistd: Ensure getcwd gets declared before being overridden.
31358         * lib/unistd.in.h: Conditionally include <io.h>.
31359
31360 2009-12-22  Bruno Haible  <bruno@clisp.org>
31361
31362         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31363         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31364         (gl_WCHAR_H): Invoke it.
31365         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31366         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31367         Reported by Karl Berry <karl@freefriends.org>.
31368
31369 2009-12-22  Eric Blake  <ebb9@byu.net>
31370
31371         math, unistd: avoid redundant includes
31372         * lib/math.in.h (isnan): No need to re-include <math.h>.
31373         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31374
31375         getsubopt: work around cygwin bug
31376         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31377         avoid conflicting with system getsubopt.
31378         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31379         bug.
31380
31381         getopt: synchronize from glibc
31382         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31383         parameter order.  Adjust all callers.
31384         (_getopt_internal_r, main): Adjust quoting in error messages.
31385         Drop considerations for outdated POSIX 1003.2 error message.
31386         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31387         callers.
31388         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31389
31390         test-getopt: test stderr behavior
31391         * modules/getopt-posix-tests (Depends-on): Add dup2.
31392         * tests/test-getopt.c (ASSERT): Avoid stderr.
31393         (main): Move stderr to a temporary file.
31394         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31395         Instead, add parameter to inform caller if output occurred.
31396         (test_getopt): Adjust all existing tests to expect silence, and
31397         add new tests of leading ":".
31398         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31399         glibc shortcomings with leading "-:" or "+:" in optstring.
31400         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31401         Likewise.
31402         * doc/posix-functions/getopt.texi (getopt): Likewise.
31403
31404         test-getopt: enhance test
31405         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31406         supports optind=0.
31407         * tests/test-getopt.c (OPTIND_MIN): Move...
31408         * tests/test-getopt.h (OPTIND_MIN): ...here.
31409         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31410         Require that optind=0 works, since modern BSD supports it in
31411         addition to optreset, and since coreutils expects it.
31412         (test_getopt_long_only): New test.
31413         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31414         glibc shortcomings with 'W;', and enforcement of optind=0.
31415         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31416         Likewise.
31417
31418 2009-12-21  Bruno Haible  <bruno@clisp.org>
31419
31420         localename: Improvements for MacOS X and Cygwin.
31421         * lib/localename.h (gl_locale_name_environ): New declaration.
31422         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31423         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31424         (gl_locale_name_posix): Invoke it.
31425         (gl_locale_name_default): Add comments. Use Windows native API also on
31426         Cygwin.
31427
31428 2009-12-21  Bruno Haible  <bruno@clisp.org>
31429
31430         Update list of Win32 locale ids.
31431         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31432         (LANG_SAMI): Renamed from LANG_SAAMI.
31433         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31434         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31435         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31436         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31437         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31438         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31439         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31440         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31441         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31442         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31443         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31444         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31445         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31446         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31447         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31448         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31449         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31450         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31451         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31452         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31453         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31454         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31455         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31456         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31457         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31458         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31459         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31460         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31461         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31462         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31463         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31464         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31465         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31466         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31467         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31468         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31469         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31470         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31471         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31472         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31473         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31474         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31475         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31476         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31477         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31478         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31479         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31480         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31481         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31482         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31483         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31484         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31485         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31486         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31487         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31488         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31489         Add more languages and countries for Sami, Sorbian. Add more countries
31490         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31491         for Pashto. Change country for Syriac, Tswana.
31492
31493 2009-12-21  Eric Blake  <ebb9@byu.net>
31494
31495         test-utimens: avoid spurious failure
31496         * tests/test-chown.h (nap): Factor...
31497         * tests/nap.h: ...into new file.
31498         * tests/test-lchown.h (nap): Avoid duplication.
31499         * tests/test-utimens-common.h (nap): Use shared implementation,
31500         necessary on file systems with 1-second resolution.
31501         * modules/chown-tests (Files): Include new file.
31502         * modules/fdutimensat-tests (Files): Likewise.
31503         * modules/futimens-tests (Files): Likewise.
31504         * modules/lchown-tests (Files): Likewise.
31505         * modules/openat-tests (Files): Likewise.
31506         * modules/utimens-tests (Files): Likewise.
31507         * modules/utimensat-tests (Files): Likewise.
31508
31509 2009-12-19  Eric Blake  <ebb9@byu.net>
31510
31511         futimens, utimensat: work around Linux bug
31512         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31513         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31514         * lib/utimensat.c (rpl_utimensat): Work around it.
31515         * lib/futimens.c (rpl_futimens): Adjust comment.
31516
31517         utimens: work around Linux ctime bug
31518         * lib/utimens.c (detect_ctime_bug): New helper function.
31519         (update_timespec): Differentiate between workaround needed for
31520         this bug vs. what is needed for systems that lack utimensat.
31521         (fdutimens, lutimens): Work around bug.
31522
31523         utimens: check for ctime update
31524         * tests/test-utimens-common.h (check_ctime): Define.
31525         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31526         * tests/test-futimens.h (test_futimens): Likewise.
31527         * tests/test-lutimens.h (test_lutimens): Likewise.
31528         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31529         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31530
31531 2009-12-19  Bruno Haible  <bruno@clisp.org>
31532
31533         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31534         * tests/test-dprintf-posix2.sh: New file.
31535         * tests/test-dprintf-posix2.c: New file.
31536         * modules/dprintf-posix-tests (Files): Add them.
31537         (configure.ac): Check for getrlimit and setrlimit.
31538         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31539
31540 2009-12-19  Bruno Haible  <bruno@clisp.org>
31541
31542         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31543         * tests/test-fprintf-posix3.sh: New file.
31544         * tests/test-fprintf-posix3.c: New file.
31545         * modules/fprintf-posix-tests (Files): Add them.
31546         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31547
31548 2009-12-19  Eric Blake  <ebb9@byu.net>
31549
31550         dirfd: fix prototype
31551         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31552         * lib/dirfd.c (dirfd): Likewise.
31553
31554         canonicalize: reduce memory usage
31555         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31556         allocation to size.
31557         Reported by Solar Designer <solar@openwall.com>.
31558
31559 2009-12-19  Bruno Haible  <bruno@clisp.org>
31560
31561         New module attribute 'Applicability'.
31562         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31563         * gnulib-tool: New option --extract-applicability.
31564         (func_usage): Document it.
31565         (sed_extract_prog): Recognize it.
31566         (func_get_applicability): New function.
31567         (func_import): Generalize handling of 'link-warning' module.
31568         * modules/link-warning (Applicability): New section.
31569         * modules/arg-nonnull (Applicability): New section.
31570         Repoted by Simon Josefsson <simon@josefsson.org>.
31571
31572 2009-12-19  Bruno Haible  <bruno@clisp.org>
31573
31574         fflush: tweak
31575         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31576         * lib/fseeko.c (rpl_fseeko): Likewise.
31577
31578 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31579
31580         * lib/gl_list.h: Fix typo in comment.
31581
31582 2009-12-16  Eric Blake  <ebb9@byu.net>
31583
31584         fcntl: use to simplify other modules
31585         * modules/cloexec (Depends-on): Add fcntl.
31586         * modules/fchdir (Depends-on): Likewise.
31587         * modules/fd-safer-flag (Depends-on): Likewise.
31588         * modules/unistd-safer (Depends-on): Likewise.
31589         * modules/dup3 (configure.ac): Set module indicator.
31590         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31591         missing.
31592         * lib/fchdir.c (_gl_register_dup): Fix comment.
31593         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31594         * lib/dup-safer.c (dup_safer): Likewise.
31595         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31596         * lib/dup3.c (dup3): Likewise.
31597         * tests/test-fchdir.c (main): Enhance test.
31598         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
31599
31600         fcntl: port portions of fcntl to mingw
31601         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31602         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31603         replacement for mingw.
31604         * modules/fcntl (Description): Update.
31605         (Depends-on): Add dup2.
31606         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31607         * modules/fcntl-h (Makefile.am): Substitute it.
31608         * lib/fcntl.in.h (fcntl): Update declaration.
31609         (F_DUPFD, F_GETFD): New macros, when needed.
31610         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31611         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31612         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31613         we now guarantee.
31614
31615         fcntl: work around cygwin bug in F_DUPFD
31616         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31617         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31618         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31619         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31620         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31621
31622         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31623         * modules/fcntl (Files): List new files.
31624         (configure.ac): Run a test.
31625         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31626         * lib/fcntl.c (rpl_fcntl): Likewise.
31627         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31628         (gl_FCNTL_H): Always replace fcntl.h.
31629         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31630         * lib/fcntl.in.h (fcntl): Declare replacement.
31631         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31632         needed, plus a witness.
31633         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31634         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31635         * tests/test-fcntl.c: New file.
31636         * modules/fcntl-tests: Likewise.
31637
31638         binary-io: avoid potential compilation warning
31639         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31640         directives.
31641
31642         fflush: avoid compilation error on NetBSD
31643         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31644         between off_t and fpos_t, since the latter is sometimes a struct.
31645         * lib/fseeko.c (rpl_fseeko): Likewise.
31646         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31647
31648 2009-12-15  Eric Blake  <ebb9@byu.net>
31649
31650         fcntl-h, stdio, sys_ioctl: fix declarations
31651         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31652         function must not take arguments.
31653         * lib/sys_ioctl.in.h (ioctl): Likewise.
31654         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31655         (open): Add a link warning.
31656
31657 2009-12-15  Jim Meyering  <meyering@redhat.com>
31658
31659         areadlink, areadlink-with-size: relax license to LGPLv2+
31660         * modules/areadlink (License): Relax to LGPLv2+.
31661         * modules/areadlink-with-size (License): Likewise.
31662
31663 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31664             Bruno Haible  <bruno@clisp.org>
31665
31666         *printf: Fix memory leak.
31667         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31668         * lib/vfprintf.c (vfprintf): Likewise.
31669         * lib/dprintf.c (dprintf): Likewise.
31670         * lib/vdprintf.c (vdprintf): Likewise.
31671
31672 2009-12-14  Eric Blake  <ebb9@byu.net>
31673
31674         accept4: adjust module dependencies
31675         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31676
31677         utimens: one more try at avoiding compiler warning
31678         * lib/utimens.c (lutimens): Lower scope of result.
31679
31680 2009-12-13  Bruno Haible  <bruno@clisp.org>
31681
31682         Move the malloc checking from module 'list' to new module 'xlist'.
31683         * modules/xlist: New file.
31684         * lib/gl_xlist.h: New file.
31685         * lib/gl_xlist.c: New file.
31686         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31687         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31688         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31689         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31690         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31691         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31692         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31693         gl_sortedlist_nx_add): New declarations.
31694         (struct gl_list_implementation): Rename and change methods accordingly.
31695         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31696         (gl_list_nx_create): Renamed from gl_list_create.
31697         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31698         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31699         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31700         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31701         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31702         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31703         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31704         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31705         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31706         gl_list_create_empty.
31707         (gl_list_nx_create): Renamed from gl_list_create.
31708         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31709         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31710         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31711         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31712         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31713         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31714         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31715         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31716         * lib/gl_array_list.c: Don't include xalloc.h.
31717         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31718         NULL upon out-of-memory.
31719         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31720         out-of-memory.
31721         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31722         Change return type to 'int'.
31723         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31724         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31725         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31726         upon out-of-memory.
31727         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31728         upon out-of-memory.
31729         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31730         upon out-of-memory.
31731         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31732         upon out-of-memory.
31733         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31734         out-of-memory.
31735         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31736         Update.
31737         (gl_array_list_implementation): Update.
31738         * lib/gl_carray_list.c: Don't include xalloc.h.
31739         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31740         Return NULL upon out-of-memory.
31741         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31742         out-of-memory.
31743         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31744         Change return type to 'int'.
31745         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31746         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31747         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31748         upon out-of-memory.
31749         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31750         upon out-of-memory.
31751         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31752         out-of-memory.
31753         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31754         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31755         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31756         Update.
31757         (gl_carray_list_implementation): Update.
31758         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31759         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31760         gl_linked_create_empty. Return NULL upon out-of-memory.
31761         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31762         out-of-memory.
31763         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31764         Change return type to 'int'. Return -1 upon out-of-memory.
31765         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31766         out-of-memory.
31767         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31768         upon out-of-memory.
31769         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31770         upon out-of-memory.
31771         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31772         NULL upon out-of-memory.
31773         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31774         upon out-of-memory.
31775         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31776         out-of-memory.
31777         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31778         Update.
31779         * lib/gl_linked_list.c: Don't include xalloc.h.
31780         (gl_linked_list_implementation): Update.
31781         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31782         (add_to_bucket): Change return type to 'int'.
31783         (gl_linkedhash_list_implementation): Update.
31784         * lib/gl_anytree_list1.h (free_subtree): New function.
31785         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31786         gl_tree_create_empty. Return NULL upon out-of-memory.
31787         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31788         Change return type to 'int'. Return -1 upon out-of-memory.
31789         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31790         out-of-memory.
31791         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31792         (gl_tree_remove_node): New function, moved here from
31793         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31794         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31795         Update.
31796         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31797         malloc, not xmalloc. Return NULL upon out-of-memory.
31798         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31799         out-of-memory.
31800         (gl_tree_remove_node_from_tree): New function, extracted from
31801         gl_tree_remove_node.
31802         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31803         upon out-of-memory.
31804         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31805         out-of-memory.
31806         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31807         upon out-of-memory.
31808         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31809         upon out-of-memory.
31810         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31811         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31812         not xmalloc. Return NULL upon out-of-memory.
31813         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31814         out-of-memory.
31815         (gl_tree_remove_node_from_tree): New function, extracted from
31816         gl_tree_remove_node.
31817         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31818         upon out-of-memory.
31819         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31820         out-of-memory.
31821         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31822         upon out-of-memory.
31823         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31824         upon out-of-memory.
31825         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31826         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31827         gl_anytree_list1.h before gl_anyavltree_list2.h.
31828         (gl_avltree_list_implementation): Update.
31829         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31830         gl_anytree_list1.h before gl_anyavltree_list2.h.
31831         (gl_rbtree_list_implementation): Update.
31832         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31833         Change return type to 'int'. Return -1 upon out-of-memory. Use
31834         __builtin_expect.
31835         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31836         (gl_avltreehash_list_implementation): Update.
31837         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31838         (gl_rbtreehash_list_implementation): Update.
31839         * modules/array-list (Depends-on): Remove xalloc.
31840         * modules/carray-list (Depends-on): Likewise.
31841         * modules/linked-list (Depends-on): Likewise.
31842         * modules/linkedhash-list (Depends-on): Likewise.
31843         * modules/avltree-list (Depends-on): Likewise.
31844         * modules/rbtree-list (Depends-on): Likewise.
31845         * modules/avltreehash-list (Depends-on): Likewise.
31846         * modules/rbtreehash-list (Depends-on): Likewise.
31847
31848         * modules/xsublist: New file.
31849         * lib/gl_xsublist.h: New file.
31850         * lib/gl_xsublist.c: New file.
31851         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31852         (gl_sublist_nx_create): New declaration.
31853         * lib/gl_sublist.c: Don't include xalloc.h.
31854         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31855         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31856         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31857         Change return type to 'int'. Return -1 upon out-of-memory.
31858         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31859         upon out-of-memory.
31860         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31861         NULL upon out-of-memory.
31862         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31863         upon out-of-memory.
31864         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31865         NULL upon out-of-memory.
31866         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31867         NULL upon out-of-memory.
31868         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31869         upon out-of-memory.
31870         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31871         (gl_sublist_list_implementation): Update.
31872         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31873         upon out-of-memory.
31874         * modules/sublist (Depends-on): Remove xalloc.
31875
31876         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31877         * tests/test-carray_list.c: Likewise.
31878         * tests/test-linked_list.c: Likewise.
31879         * tests/test-linkedhash_list.c: Likewise.
31880         * tests/test-avltree_list.c: Likewise.
31881         * tests/test-rbtree_list.c: Likewise.
31882         * tests/test-avltreehash_list.c: Likewise.
31883         * tests/test-rbtreehash_list.c: Likewise.
31884         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31885         * modules/carray-list-tests (Makefile.am): Likewise.
31886         * modules/linked-list-tests (Makefile.am): Likewise.
31887         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31888         * modules/avltree-list-tests (Makefile.am): Likewise.
31889         * modules/rbtree-list-tests (Makefile.am): Likewise.
31890         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31891         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31892
31893         * NEWS: Mention the changes.
31894
31895         * lib/clean-temp.c: Include gl_xlist.h.
31896         * modules/clean-temp (Depends-on): Add xlist.
31897
31898         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31899         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31900
31901         * tests/test-array_oset.c: Include gl_xlist.h.
31902         * modules/array-oset-tests (Depends-on): Add xlist.
31903
31904         Reported by José E. Marchesi <jemarch@gnu.org>.
31905
31906 2009-12-13  Bruno Haible  <bruno@clisp.org>
31907
31908         Move the malloc checking from module 'oset' to new module 'xoset'.
31909         * modules/xoset: New file.
31910         * lib/gl_xoset.h: New file.
31911         * lib/gl_xoset.c: New file.
31912         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31913         declarations.
31914         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31915         (struct gl_oset_implementation): Rename and change methods accordingly.
31916         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31917         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31918         'int'. Mark as __warn_unused_result__.
31919         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31920         gl_oset_create_empty.
31921         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31922         'int'.
31923         * lib/gl_array_oset.c: Don't include xalloc.h.
31924         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31925         malloc, not xmalloc.
31926         (grow): Change return type to 'int'. Don't call xalloc_die.
31927         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31928         to 'int'.
31929         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31930         'int'.
31931         (gl_array_oset_implementation): Update.
31932         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31933         gl_tree_create_empty.
31934         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31935         'int'.
31936         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31937         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31938         xmalloc.
31939         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31940         not xmalloc.
31941         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31942         xmalloc.
31943         (gl_avltree_oset_implementation): Update.
31944         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31945         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31946         xmalloc.
31947         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31948         not xmalloc.
31949         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31950         xmalloc.
31951         (gl_rbtree_oset_implementation): Update.
31952         * modules/array-oset (Depends-on): Remove xalloc.
31953         * modules/avltree-oset (Depends-on): Likewise.
31954         * modules/rbtree-oset (Depends-on): Likewise.
31955         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31956         * tests/test-avltree_oset.c: Likewise.
31957         * tests/test-rbtree_oset.c: Likewise.
31958         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31959         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31960         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31961         * NEWS: Mention the change.
31962
31963 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31964
31965         maint.mk: allow a project to override release-prep commands
31966         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31967         commands into a new rule.
31968         (release-prep): New rule.
31969         (release-prep-hook): New overridable variable.
31970
31971 2009-12-13  Bruno Haible  <bruno@clisp.org>
31972
31973         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31974
31975 2009-12-13  Jim Meyering  <meyering@redhat.com>
31976
31977         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31978         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31979
31980 2009-12-12  Bruno Haible  <bruno@clisp.org>
31981
31982         duplocale: Tweak.
31983         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31984
31985 2009-12-12  Karl Berry  <karl@gnu.org>
31986
31987         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31988
31989 2009-12-12  Bruno Haible  <bruno@clisp.org>
31990
31991         * m4/po.m4: Undo incorrect untabification.
31992
31993 2009-12-12  Bruno Haible  <bruno@clisp.org>
31994
31995         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31996         * modules/c-strtod (Depends-on): Add locale.
31997         * modules/c-strtold (Depends-on): Likewise.
31998
31999 2009-12-12  Bruno Haible  <bruno@clisp.org>
32000
32001         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32002
32003 2009-12-11  Eric Blake  <ebb9@byu.net>
32004
32005         setenv: relax requirement in light of POSIX ruling
32006         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32007         not NULL.
32008         * tests/test-setenv.c (main): Relax test.
32009         * tests/test-unsetenv.c (main): Likewise.
32010         * doc/posix-functions/setenv.texi (setenv): Document this.
32011         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32012
32013 2009-12-11  Bruno Haible  <bruno@clisp.org>
32014
32015         New module 'fd-safer-flag'.
32016         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32017         * lib/dup-safer.c (dup_safer_flag): Remove function.
32018         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32019         * lib/fd-safer.c (fd_safer_flag): Remove function.
32020         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32021         * modules/cloexec (configure.ac): Drop indicator macro.
32022         * modules/fd-safer-flag: New file.
32023         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32024         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32025         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32026
32027 2009-12-11  Bruno Haible  <bruno@clisp.org>
32028
32029         Tests for module 'nl_langinfo'.
32030         * modules/nl_langinfo-tests: New file.
32031         * tests/test-nl_langinfo.sh: New file.
32032         * tests/test-nl_langinfo.c: New file.
32033
32034         New module 'nl_langinfo'.
32035         * lib/nl_langinfo.c: New file.
32036         * m4/nl_langinfo.m4: New file.
32037         * modules/nl_langinfo: New file.
32038         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32039
32040 2009-12-11  Bruno Haible  <bruno@clisp.org>
32041
32042         Tests for module 'langinfo'.
32043         * modules/langinfo-tests: New file.
32044         * tests/test-langinfo.c: New file.
32045
32046         New module 'langinfo'.
32047         * lib/langinfo.in.h: New file.
32048         * m4/langinfo_h.m4: New file.
32049         * modules/langinfo: New file.
32050         * doc/posix-headers/langinfo.texi: Mention the new module.
32051
32052 2009-12-11  Bruno Haible  <bruno@clisp.org>
32053
32054         * lib/config.charset: Untabify.
32055
32056 2009-12-11  Bruno Haible  <bruno@clisp.org>
32057
32058         * modules/unistd-safer (configure.ac): Drop indicator macro.
32059
32060 2009-12-11  Bruno Haible  <bruno@clisp.org>
32061
32062         Move pipe2-safer code to its own file.
32063         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32064         * lib/pipe-safer.c (pipe2_safer): Remove function.
32065         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32066         (Makefile.am): Add it to lib_SOURCES.
32067
32068 2009-12-10  Bruno Haible  <bruno@clisp.org>
32069
32070         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32071
32072 2009-12-10  Bruno Haible  <bruno@clisp.org>
32073
32074         Declare which arguments expect non-NULL values, for GCC and clang.
32075         * build-aux/arg-nonnull.h: New file.
32076         * modules/arg-nonnull: New file.
32077         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32078         (inet_ntop, inet_pton): Use it.
32079         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32080         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32081         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32082         (open, openat): Use it.
32083         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32084         (fnmatch): Use it.
32085         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32086         (getopt, getopt_long, getopt_long_only): Use it.
32087         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32088         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32089         Use it.
32090         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32091         (iconv_open): Use it.
32092         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32093         (strtoimax, strtoumax): Use it.
32094         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32095         (duplocale): Use it.
32096         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32097         (frexp, frexpl): Use it.
32098         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32099         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32100         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32101         (tsearch, tfind, tdelete, twalk): Use it.
32102         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32103         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32104         sigpending): Use it.
32105         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32106         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32107         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32108         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32109         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32110         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32111         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32112         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32113         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32114         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32115         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32116         Use it.
32117         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32118         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32119         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32120         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32121         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32122         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32123         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32124         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32125         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32126         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32127         strtoull, unsetenv): Use it.
32128         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32129         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32130         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32131         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32132         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32133         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32134         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32135         (strcasecmp, strncasecmp): Use it.
32136         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32137         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32138         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32139         rpl_setsockopt): Use it.
32140         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32141         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32142         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32143         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32144         (gettimeofday): Use it.
32145         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32146         (times): Use it.
32147         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32148         (uname): Use it.
32149         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32150         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32151         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32152         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32153         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32154         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32155         unlinkat, write): Use it.
32156         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32157         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32158         * lib/argv-iter.h: Include arg-nonnull.h.
32159         (_ATTRIBUTE_NONNULL_): Remove macro.
32160         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32161         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32162         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32163         optimization.
32164         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32165         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32166         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32167         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32168         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32169         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32170         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32171         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32172         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32173         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32174         * modules/dirent (Depends-on): Add arg-nonnull.
32175         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32176         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32177         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32178         * modules/fnmatch (Depends-on): Add arg-nonnull.
32179         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32180         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32181         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32182         * modules/glob (Depends-on): Add arg-nonnull.
32183         (Makefile.am): Insert arg-nonnull.h into glob.h.
32184         * modules/iconv_open (Depends-on): Add arg-nonnull.
32185         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32186         * modules/inttypes (Depends-on): Add arg-nonnull.
32187         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32188         * modules/locale (Depends-on): Add arg-nonnull.
32189         (Makefile.am): Insert arg-nonnull.h into locale.h.
32190         * modules/math (Depends-on): Add arg-nonnull.
32191         (Makefile.am): Insert arg-nonnull.h into math.h.
32192         * modules/netdb (Depends-on): Add arg-nonnull.
32193         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32194         * modules/search (Depends-on): Add arg-nonnull.
32195         (Makefile.am): Insert arg-nonnull.h into search.h.
32196         * modules/signal (Depends-on): Add arg-nonnull.
32197         (Makefile.am): Insert arg-nonnull.h into signal.h.
32198         * modules/spawn (Depends-on): Add arg-nonnull.
32199         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32200         * modules/stdio (Depends-on): Add arg-nonnull.
32201         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32202         * modules/stdlib (Depends-on): Add arg-nonnull.
32203         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32204         * modules/string (Depends-on): Add arg-nonnull.
32205         (Makefile.am): Insert arg-nonnull.h into string.h.
32206         * modules/strings (Depends-on): Add arg-nonnull.
32207         (Makefile.am): Insert arg-nonnull.h into strings.h.
32208         * modules/sys_socket (Depends-on): Add arg-nonnull.
32209         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32210         * modules/sys_stat (Depends-on): Add arg-nonnull.
32211         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32212         * modules/sys_time (Depends-on): Add arg-nonnull.
32213         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32214         * modules/sys_times (Depends-on): Add arg-nonnull.
32215         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32216         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32217         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32218         * modules/time (Depends-on): Add arg-nonnull.
32219         (Makefile.am): Insert arg-nonnull.h into time.h.
32220         * modules/unistd (Depends-on): Add arg-nonnull.
32221         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32222         * modules/wchar (Depends-on): Add arg-nonnull.
32223         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32224         * modules/argv-iter (Depends-on): Add arg-nonnull.
32225         * tests/test-canonicalize.c (null_ptr): New function.
32226         (main): Use it.
32227         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32228         (main): Use it.
32229         * tests/test-memmem.c (null_ptr): New function.
32230         (main): Use it.
32231         Reported by Jim Meyering.
32232
32233 2009-12-10  Bruno Haible  <bruno@clisp.org>
32234
32235         Use spaces for indentation, not tabs.
32236         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32237         * m4/*.m4: Untabify.
32238         * build-aux/*.h: Untabify.
32239         * tests/**/*.[hc]: Untabify.
32240         * README: New section "Indent with spaces, not TABs", based on
32241         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32242         * NEWS: Mention the change.
32243
32244 2009-12-10  Bruno Haible  <bruno@clisp.org>
32245
32246         pty test: Fix link error.
32247         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32248         test_pty_LDADD.
32249
32250 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32251
32252         * modules/pty: New file.
32253         * modules/pty-tests: New file.
32254         * m4/pty.m4: New file.
32255         * tests/test-pty.c: New file.
32256         * doc/glibc-headers/pty.texi: Modified.
32257         * doc/glibc-functions/forkpty.texi: Modified.
32258         * doc/glibc-functions/openpty.texi: Modified.
32259
32260 2009-12-10  Bruno Haible  <bruno@clisp.org>
32261
32262         Avoid syntax error in C++ mode.
32263         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32264
32265 2009-12-10  Bruno Haible  <bruno@clisp.org>
32266
32267         Use sed with option -e.
32268         * gnulib-tool (func_version, func_emit_copyright_notice,
32269         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32270         option -e to sed.
32271         * modules/link-warning (Makefile.am): Likewise.
32272
32273 2009-12-10  Jim Meyering  <meyering@redhat.com>
32274
32275         mgetgroups: do not write bytes beyond end of malloc'd buffer
32276         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32277         username, we call getgroups with a one-element-shorter buffer,
32278         but still told it the length was original, max_n_groups.
32279
32280 2009-12-09  Eric Blake  <ebb9@byu.net>
32281
32282         cloexec: relax license
32283         * modules/cloexec (Maintainer): Add myself.
32284         (License): Use LGPL, not GPL.
32285
32286         link-warning: optimize generation
32287         * modules/link-warning (Makefile.am): Reduce process usage.
32288
32289 2009-12-09  Bruno Haible  <bruno@clisp.org>
32290
32291         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32292         workaround was added on 2009-11-17.
32293
32294 2009-12-09  Jim Meyering  <meyering@redhat.com>
32295             Bruno Haible  <bruno@clisp.org>
32296
32297         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32298         * modules/link-warning (Makefile.am): Make the comment-removing sed
32299         command more robust in the face of bootstrap-prepended comment lines.
32300
32301 2009-12-09  Bruno Haible  <bruno@clisp.org>
32302
32303         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32304         most one group.
32305
32306 2009-12-09  Simon Josefsson <simon@josefsson.org>
32307             Bruno Haible  <bruno@clisp.org>
32308
32309         * build-aux/link-warning.h: Add copyright notice.
32310         * modules/link-warning (Makefile.am): Generate link-warning.h from
32311         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32312         * NEWS: Mention change in link-warning module.
32313         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32314         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32315         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32316         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32317         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32318         * modules/math (Makefile.am): Add dependency to math.h.
32319         * modules/search (Makefile.am): Add dependency to search.h.
32320         * modules/signal (Makefile.am): Add dependency to signal.h.
32321         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32322         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32323         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32324         * modules/string (Makefile.am): Add dependency to string.h.
32325         * modules/strings (Makefile.am): Add dependency to strings.h.
32326         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32327         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32328         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32329         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32330         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32331         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32332         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32333         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32334         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32335
32336 2009-12-09  Bruno Haible  <bruno@clisp.org>
32337
32338         fchdir: Optimize away rpl_fstat when possible.
32339         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32340         REPLACE_OPEN_DIRECTORY.
32341         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32342
32343 2009-12-09  Bruno Haible  <bruno@clisp.org>
32344
32345         * lib/fchdir.c: Update comment.
32346
32347 2009-12-09  Bruno Haible  <bruno@clisp.org>
32348
32349         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32350
32351 2009-12-08  Eric Blake  <ebb9@byu.net>
32352
32353         fchdir: avoid memory leak on re-registration.
32354         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32355
32356 2009-12-08  Jim Meyering  <meyering@redhat.com>
32357
32358         init.sh: avoid Solaris 10 /bin/sh portability problem
32359         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32360         sourced script:
32361           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32362           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32363           bar
32364         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32365         and two tests used that idiom.
32366         * tests/init.sh: Update suggested usage comments.
32367         (path_prepend_): New function, to be used in place
32368         of the --src-path=DIR option.
32369         (setup_): Move PATH-prepending code into path_prepend_.
32370         * tests/test-pread.sh: Adapt to new usage.
32371         * tests/test-xalloc-die.sh: Likewise.
32372
32373 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32374
32375         * doc/gnulib.texi (Glibc pty.h): Add.
32376         * doc/glibc-functions/forkpty.texi: Add.
32377         * doc/glibc-functions/openpty.texi: Add.
32378         Suggested by Bruno Haible.
32379
32380 2009-12-08  Eric Blake  <ebb9@byu.net>
32381
32382         fchdir: fix logic bugs
32383         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32384         * tests/test-fchdir.c (main): Enhance test.
32385         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32386         is in use.
32387
32388         dup2: fix logic bugs
32389         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32390         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32391         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32392         exists.
32393         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32394
32395 2009-12-07  Eric Blake  <ebb9@byu.net>
32396
32397         unlink: fix m4 detection
32398         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32399
32400         unistd-safer: add unit test
32401         * modules/unistd-safer-tests: New file.
32402         * tests/test-dup-safer.c: Likewise.
32403         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32404         * tests/test-dup2.c (setmode): Likewise.
32405         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32406
32407         cloexec: preserve text vs. binary across dup_cloexec
32408         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32409         mode.
32410         * modules/dup2-tests (Depends-on): Add binary-io.
32411         * modules/cloexec-tests (Depends-on): Likewise.
32412         * tests/test-dup2.c (setmode, is_mode): New helpers.
32413         (main): Add tests that translation mode is preserved.
32414         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32415         Reported by Bruno Haible.
32416
32417         mgetgroups: reduce duplicate listings
32418         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32419         resulting array.
32420         * tests/test-chown.h (test_chown): Simplify client.
32421         * tests/test-lchown.h (test_lchown): Likewise.
32422
32423 2009-12-06  Bruno Haible  <bruno@clisp.org>
32424
32425         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32426         value.
32427
32428 2009-12-06  Bruno Haible  <bruno@clisp.org>
32429
32430         * lib/progname.c: Include stdio.h, stdlib.h.
32431         (set_program_name): Reject a NULL argument.
32432
32433 2009-12-05  Eric Blake  <ebb9@byu.net>
32434
32435         pipe2-safer: new module
32436         * modules/pipe2-safer: New file.
32437         * lib/unistd-safer.h (pipe2_safer): New prototype.
32438         * lib/unistd--.h (pipe2): New wrapper.
32439         * lib/pipe-safer.c (pipe2_safer): New function.
32440         * modules/pipe (Depends-on): Add pipe2-safer.
32441         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32442
32443         stdlib-safer: preserve cloexec flag for mkostemp[s]
32444         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32445         fd_safer_flag.
32446
32447         unistd-safer: allow preservation of cloexec status via flag
32448         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32449         prototypes.
32450         * lib/dup-safer.c (dup_safer_flag): New function.
32451         * lib/fd-safer.c (fd_safer_flag): Likewise.
32452         * modules/cloexec (configure.ac): Set witness.
32453
32454         test-dup2: enhance test
32455         * modules/dup2-tests (Depends-on): Add cloexec.
32456         * tests/test-dup2.c (main): Enhance test.
32457
32458         cloexec: add dup_cloexec
32459         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32460         header and comments.
32461         * lib/cloexec.c (set_cloexec_flag): Add comments.
32462         (dup_cloexec): New function, with mingw implementation borrowed
32463         from...
32464         * lib/w32spawn.h (dup_noinherit): ...here.
32465         * modules/execute (Depends-on): Add cloexec.
32466         * modules/pipe (Depends-on): Likewise.
32467         * modules/cloexec (Depends-on): Add dup2.
32468         * modules/cloexec-tests (Files): New file.
32469         * tests/test-cloexec.c: Likewise.
32470
32471         test-xalloc-die: fix test for mingw
32472         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32473         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32474         directory and .exe suffix off argv[0] output.
32475
32476         test-fseeko: fix test for mingw
32477         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32478         than undefining fseek, so test will pass on mingw.
32479
32480 2009-12-05  Bruno Haible  <bruno@clisp.org>
32481
32482         * lib/progname.h (set_program_name): Clarify specification.
32483         * lib/progname.c (set_program_name): Likewise.
32484         Reported by Jim Meyering.
32485
32486 2009-12-05  Jim Meyering  <meyering@redhat.com>
32487
32488         maint.mk: backslash-escape parens in default regexp
32489         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32490         backslash-escape the literal parentheses.
32491
32492         maint.mk: news-date-check: use grep -E
32493         * top/maint.mk (today): Define a Make variable, not a...
32494         (news-date-check): ...shell variable.
32495         (news-date-regexp): Use the Make variable.
32496         Use grep's -E option.  Change the failing diagnostic to mention
32497         the variable, $(news-date-regexp).
32498
32499 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32500
32501         maintainer-makefile: allow customization of NEWS entry format
32502         * top/maint.mk (news-date-regexp): New overridable variable.
32503         (news-date-check): Use it.
32504
32505 2009-12-04  Eric Blake  <ebb9@byu.net>
32506
32507         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32508         * lib/mgetgroups.h (xgetgroups): New prototype.
32509         * lib/mgetgroups.c (xgetgroups): New wrapper.
32510         (mgetgroups): Handle ENOSYS.
32511         * modules/mgetgroups (Depends-on): Add realloc.
32512         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32513
32514         mgetgroups: avoid argument promotion issues with -1
32515         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32516         for invalid gid_t.
32517         * tests/test-chown.h (getegid, test_chown): Likewise.
32518         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32519
32520 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32521
32522         exclude: Fix header file problems.
32523         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32524
32525 2009-12-01  Jim Meyering  <meyering@redhat.com>
32526
32527         fts: fts_open: do not let an empty string cause immediate failure
32528         This is required in support of GNU rm, for which the command
32529         "rm A '' B" must process and remove both A and B, in spite of
32530         the empty string argument.
32531         * lib/fts.c (fts_open): Do not let the presence of an empty string
32532         cause fts_open to fail immediately.  Most fts-using tools must be
32533         able to process all arguments, in order, and can be expected to
32534         diagnose such arguments themselves.
32535
32536 2009-11-30  Eric Blake  <ebb9@byu.net>
32537
32538         utimens: fix compilation error
32539         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32540         Declare variable at right scope.
32541
32542 2009-11-29  Jim Meyering  <meyering@redhat.com>
32543
32544         bootstrap: handle perl-5.11's changed --version output
32545         * build-aux/bootstrap (get_version): Handle perl separately,
32546         since perl-5.11's --version output is different.
32547
32548 2009-11-28  Jim Meyering  <meyering@redhat.com>
32549
32550         userspec: depend on the inttostr module, too
32551         * modules/userspec (Depends-on): Add inttostr.
32552
32553         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32554         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32555         number of MAXUID when it evaluates to (uid_t) -1.
32556         Likewise for group ID.  Reported by Matt McCutchen in
32557         <http://savannah.gnu.org/bugs/?28113>
32558
32559         userspec: reformat to use spaces, not TABs
32560         * lib/userspec.c: Expand TABs to spaces.
32561         Add Emacs' "indent-tabs-mode: nil" hint.
32562
32563 2009-11-27  Eric Blake  <ebb9@byu.net>
32564
32565         getopt-gnu: flush out another BSD bug
32566         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32567         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32568         flush out BSD bug.
32569         * tests/test-getopt.h (test_getopt): End lists with NULL.
32570         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32571         (test_getopt_long_posix): Enhance test.
32572         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32573         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32574         getopt-gnu.
32575         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32576         Likewise.
32577
32578 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32579
32580         * modules/idpriv-droptemp-tests (Notice): Fix text.
32581
32582 2009-11-27  Jim Meyering  <meyering@redhat.com>
32583
32584         test-xalloc-die: avoid spurious failure due to libtool argv difference
32585         In a libtool-enabled project, this test would fail due to a difference
32586         in the emitted program name, e.g.,
32587         -test-xalloc-die: memory exhausted
32588         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32589         Use program to avoid that.
32590         * modules/xalloc-die-tests (Depends-on): Add progname.
32591         * tests/test-xalloc-die.c: Include progname.h".
32592         (program_name): Remove decl.
32593         (main): Call set_program_name.
32594         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32595
32596 2009-11-26  Richard Jones  <rjones@redhat.com>
32597
32598         w32sock: leave win32 error in place.
32599         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32600
32601 2009-11-26  Eric Blake  <ebb9@byu.net>
32602
32603         init.sh: suggest to use skip_ and fail_ functions in comments
32604         * tests/init.sh: Add a sentence.
32605
32606 2009-11-25  Bruno Haible  <bruno@clisp.org>
32607
32608         init.sh: add documentation in comments
32609         * tests/init.sh: Add some developer and user documentation.
32610
32611 2009-11-26  Jim Meyering  <meyering@redhat.com>
32612
32613         init.sh: accommodate even those who specify bogus srcdir manually
32614         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32615         configure-time tests to be sanitized, so that there is no need to
32616         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32617         (with no double quotes) suffices.  However, since tests may be
32618         invoked manually, and since you may explicitly set srcdir to the
32619         name of a directory containing spaces, do quote its uses here.
32620         * tests/test-pread.sh: Likewise.
32621         Suggested by Bruno Haible.
32622
32623         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32624         * tests/test-pread.sh: Write no data into the pipe, because
32625         test-pread actually reads none.  This avoids a diagnostic,
32626         "bash: echo: write error: Broken pipe", that arises in the unusual
32627         event something is ignoring SIGPIPE, and might be interpreted
32628         as some sort of failure.  Reported by Bruno Haible.
32629
32630 2009-11-25  Jim Meyering  <meyering@redhat.com>
32631
32632         test-pread: cover failure with ESPIPE and EINVAL
32633         * tests/test-pread.c (main): Test for failure, too.
32634         * tests/test-pread.sh: Invoke with stdin on a pipe.
32635         Suggested by Eric Blake.
32636
32637         pread: improvement and fix
32638         * modules/pread (Depends-on): Depend on lseek, for portability to
32639         e.g., mingw.  Suggested by Eric Blake.
32640         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32641
32642         unistd.in.h: correct declaration of pread
32643         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32644         Reported by Richard W.M. Jones.
32645
32646         test-pread.sh: distribute the test script
32647         * modules/pread-tests (Files): Include test-pread.sh.
32648
32649         test-pread.sh: clean up
32650         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32651         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32652         That is unnecessary, since it's always ".".
32653         Suggestion from Eric Blake.
32654
32655         test-pread.sh: make executable
32656         * tests/test-pread.sh: Set executable bit.
32657         Reported by Eric Blake.
32658
32659         correct typo in test-pread.sh
32660         * tests/test-pread.sh: Add #! line.
32661
32662         test pread
32663         * tests/test-pread.c: New file.
32664         * tests/test-pread.sh: Likewise.
32665         * modules/pread-tests: Likewise.
32666
32667         pread: new module
32668         * modules/pread: New file.
32669         * lib/unistd.in.h (pread): Define/declare.
32670         * lib/pread.c (pread): New file.
32671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32672         * modules/unistd (Makefile.am): Substitute witnesses.
32673         * doc/posix-functions/pread.texi (pread): Update.
32674         * MODULES.html.sh: Add pread.
32675
32676 2009-11-25  Jim Meyering  <meyering@redhat.com>
32677
32678         tests/init.sh: new file to be used via most *.sh tests
32679         * tests/init.sh: New file.
32680
32681 2009-11-25  Eric Blake  <ebb9@byu.net>
32682
32683         utimens: work around older Linux failure with symlinks
32684         * lib/utimens.c (lutimensat_works_really): New variable.
32685         (fdutimens, lutimens): Use it to manage kernels that support
32686         nanosecond times on files, but not on symlinks.
32687         Reported by OndÅ™ej Vašík.
32688
32689         utimes: fix configure grammar
32690         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32691
32692 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32693
32694         regex: Fix fastmap for multibyte character ranges.
32695         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32696         characters when a multibyte character range is included.
32697
32698 2009-11-22  Andy Wingo  <wingo@pobox.com>
32699
32700         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32701         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32702
32703 2009-11-24  Bruno Haible  <bruno@clisp.org>
32704
32705         doc: Most *_l functions exist in MacOS X 10.5.
32706         * doc/posix-functions/duplocale.texi: Update platforms list.
32707         * doc/posix-functions/freelocale.texi: Likewise.
32708         * doc/posix-functions/newlocale.texi: Likewise.
32709         * doc/posix-functions/uselocale.texi: Likewise.
32710         * doc/posix-functions/isalnum_l.texi: Likewise.
32711         * doc/posix-functions/isalpha_l.texi: Likewise.
32712         * doc/posix-functions/isblank_l.texi: Likewise.
32713         * doc/posix-functions/iscntrl_l.texi: Likewise.
32714         * doc/posix-functions/isdigit_l.texi: Likewise.
32715         * doc/posix-functions/isgraph_l.texi: Likewise.
32716         * doc/posix-functions/islower_l.texi: Likewise.
32717         * doc/posix-functions/isprint_l.texi: Likewise.
32718         * doc/posix-functions/ispunct_l.texi: Likewise.
32719         * doc/posix-functions/isspace_l.texi: Likewise.
32720         * doc/posix-functions/isupper_l.texi: Likewise.
32721         * doc/posix-functions/iswalnum_l.texi: Likewise.
32722         * doc/posix-functions/iswalpha_l.texi: Likewise.
32723         * doc/posix-functions/iswblank_l.texi: Likewise.
32724         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32725         * doc/posix-functions/iswctype_l.texi: Likewise.
32726         * doc/posix-functions/iswdigit_l.texi: Likewise.
32727         * doc/posix-functions/iswgraph_l.texi: Likewise.
32728         * doc/posix-functions/iswlower_l.texi: Likewise.
32729         * doc/posix-functions/iswprint_l.texi: Likewise.
32730         * doc/posix-functions/iswpunct_l.texi: Likewise.
32731         * doc/posix-functions/iswspace_l.texi: Likewise.
32732         * doc/posix-functions/iswupper_l.texi: Likewise.
32733         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32734         * doc/posix-functions/isxdigit_l.texi: Likewise.
32735         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32736         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32737         * doc/posix-functions/strcoll_l.texi: Likewise.
32738         * doc/posix-functions/strfmon_l.texi: Likewise.
32739         * doc/posix-functions/strftime_l.texi: Likewise.
32740         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32741         * doc/posix-functions/strxfrm_l.texi: Likewise.
32742         * doc/posix-functions/tolower_l.texi: Likewise.
32743         * doc/posix-functions/toupper_l.texi: Likewise.
32744         * doc/posix-functions/towctrans_l.texi: Likewise.
32745         * doc/posix-functions/towlower_l.texi: Likewise.
32746         * doc/posix-functions/towupper_l.texi: Likewise.
32747         * doc/posix-functions/wcscoll_l.texi: Likewise.
32748         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32749         * doc/posix-functions/wctrans_l.texi: Likewise.
32750         * doc/posix-functions/wctype_l.texi: Likewise.
32751         * doc/glibc-functions/strptime_l.texi: Likewise.
32752         * doc/glibc-functions/strtod_l.texi: Likewise.
32753         * doc/glibc-functions/strtof_l.texi: Likewise.
32754         * doc/glibc-functions/strtol_l.texi: Likewise.
32755         * doc/glibc-functions/strtold_l.texi: Likewise.
32756         * doc/glibc-functions/strtoll_l.texi: Likewise.
32757         * doc/glibc-functions/strtoul_l.texi: Likewise.
32758         * doc/glibc-functions/strtoull_l.texi: Likewise.
32759         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32760         * doc/glibc-functions/wcstod_l.texi: Likewise.
32761         * doc/glibc-functions/wcstof_l.texi: Likewise.
32762         * doc/glibc-functions/wcstol_l.texi: Likewise.
32763         * doc/glibc-functions/wcstold_l.texi: Likewise.
32764         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32765         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32766         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32767
32768 2009-11-24  Bruno Haible  <bruno@clisp.org>
32769
32770         duplocale: Fix logic bug.
32771         * lib/duplocale.c: Don't include <langinfo.h>.
32772         (_NL_LOCALE_NAME): Remove macro.
32773         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32774         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32775
32776 2009-11-23  Jim Meyering  <meyering@redhat.com>
32777
32778         test-update-copyright: don't hard-code /usr/bin/perl
32779         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32780         perl to print the current year.  Gilles Espinasse reported that
32781         the replaced use of perl was hard-coded as /usr/bin/perl.
32782
32783 2009-11-23  Bruno Haible  <bruno@clisp.org>
32784
32785         duplocale: Add support for glibc 2.3.x.
32786         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32787
32788 2009-11-22  Bruno Haible  <bruno@clisp.org>
32789
32790         vasnprintf: Tiny optimization.
32791         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32792         MacOS X.
32793
32794 2009-11-22  Bruno Haible  <bruno@clisp.org>
32795
32796         Tests for module 'duplocale'.
32797         * modules/duplocale-tests: New file.
32798         * tests/test-duplocale.c: New file.
32799
32800         New module 'duplocale'.
32801         * m4/duplocale.m4: New file.
32802         * lib/locale.in.h (duplocale): New declaration.
32803         * lib/duplocale.c: New file.
32804         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32805         gl_LOCALE_H_DEFAULTS): New macros.
32806         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32807         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32808         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32809         REPLACE_DUPLOCALE.
32810         * modules/duplocale: New file.
32811         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32812
32813 2009-11-22  Bruno Haible  <bruno@clisp.org>
32814
32815         * modules/locale-tests (configure.ac): Test for newlocale function.
32816         * tests/test-locale.c: When the system has extended locale functions,
32817         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32818
32819         locale: Make locale_t available when possible.
32820         * lib/locale.in.h: Include <xlocale.h> when it exists.
32821         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32822         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32823         * modules/locale (Depends-on): Add extensions.
32824         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32825         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32826
32827 2009-11-22  Bruno Haible  <bruno@clisp.org>
32828
32829         Add comments.
32830         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32831         invocation.
32832         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32833         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32834         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32835
32836 2009-11-22  Bruno Haible  <bruno@clisp.org>
32837
32838         error: account for the possibility of freopen (stdout).
32839         * lib/error.c: Include <unistd.h>.
32840         (flush_stdout): New function, extracted from error and error_at_line.
32841         Determine stdout's fd dynamically.
32842         (error, error_at_line): Invoke flush_stdout.
32843         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32844         * modules/error (Depends-on): Add unistd.
32845
32846 2009-11-22  Bruno Haible  <bruno@clisp.org>
32847
32848         diffseq: Add comment.
32849         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32850
32851 2009-11-22  Jim Meyering  <meyering@redhat.com>
32852
32853         c-stack: avoid defining an unused static function
32854         * lib/c-stack.c (find_stack_direction): Do not define this function
32855         when it will not be used.
32856
32857         diffseq: avoid spurious gcc warnings
32858         * lib/diffseq.h (IF_LINT2): Define.
32859         (compareseq): Use it to initialize two members of "part".
32860         This avoids two used-uninitialized warnings.
32861
32862 2009-11-21  Jim Meyering  <meyering@redhat.com>
32863
32864         c-stack: avoid "ignoring return value of `write'" warning
32865         * lib/c-stack.c: Include "ignore-value.h".
32866         (die): Explicitly ignore each write return value.
32867         * modules/c-stack (Depends-on): Add ignore-value.
32868
32869 2009-11-21  Bruno Haible  <bruno@clisp.org>
32870
32871         diffseq: reduce scope of variable 'best'.
32872         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32873         variable, earlier used for two different purposes.
32874
32875 2009-11-21  Jim Meyering  <meyering@redhat.com>
32876
32877         diffseq: remove useless assignment to "best"
32878         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32879         assignment.  At that point "best" is already guaranteed to be zero.
32880
32881 2009-11-20  Eric Blake  <ebb9@byu.net>
32882
32883         build: mention ftp redirector in release announcements
32884         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32885         values that used to come from cfg.mk; mention FTP redirect URL.
32886         * build-aux/announce-gen: Mention the mirror list.
32887         Suggested by Karl Berry.
32888
32889         nanosleep: improve port to mingw
32890         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32891         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32892         LIB_NANOSLEEP, but only when needed.
32893         * modules/select (Link): Document LIBSOCKET.
32894         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32895         enough.
32896
32897         nanosleep: work around cygwin bug
32898         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32899         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32900         bug.
32901         (getnow): Delete, not needed.
32902         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32903         LIB_CLOCK_GETTIME.
32904         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32905         clock-time, gettime.
32906         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32907         bug.
32908         * modules/nanosleep-tests: New test.
32909         * tests/test-nanosleep.c: New file.
32910
32911         sleep: work around cygwin bug
32912         * lib/sleep.c (rpl_sleep): Work around the bug.
32913         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32914         (gl_PREREQ_SLEEP): Delete unused macro.
32915         * modules/sleep (Depends-on): Add verify.
32916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32917         * modules/unistd (Makefile.am): Substitute witness.
32918         * lib/unistd.in.h (sleep): Update prototype.
32919         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32920         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32921         * modules/sleep-tests (Depends-on): Check for alarm.
32922
32923 2009-11-20  Jim Meyering  <meyering@redhat.com>
32924
32925         maint.mk: improve sc_prohibit_magic_number_exit
32926         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32927         so it does not match uses like System.exit(1).
32928         Add comments showing how to correct all offenders.
32929
32930 2009-11-19  Eric Blake  <ebb9@byu.net>
32931
32932         xalloc-die-tests: add missing library
32933         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32934
32935         test-xvasprintf: silence compiler warnings
32936         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32937         empty string from gcc.
32938
32939 2009-11-19  Jim Meyering  <meyering@redhat.com>
32940
32941         xfreopen: new module, from coreutils
32942         * modules/xfreopen: New module.
32943         * lib/xfreopen.c: New file.
32944         * lib/xfreopen.h: New file.
32945         * MODULES.html.sh (File stream based Input/Output"): Add it.
32946
32947 2009-11-19  Eric Blake  <ebb9@byu.net>
32948
32949         manywarnings: depend on warnings
32950         * modules/manywarnings (Depends-on): Add warnings.
32951
32952         build: avoid compiler warnings
32953         * lib/select.c (rpl_select): Delete unused variable.
32954         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32955
32956 2009-11-18  Eric Blake  <ebb9@byu.net>
32957
32958         tests: avoid false negative with --with-packager
32959         * tests/test-version-etc.sh: Discard packager information.
32960         * tests/test-argp-version-etc-1.sh: Likewise.
32961         Reported by Mike Frysinger.
32962
32963         utimens: fix regression on Solaris
32964         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32965         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32966         can only change fd timestamps via futimesat.  Instead, use an
32967         additional witness macro to avoid BSD bug.
32968         Reported by Jim Meyering.
32969
32970 2009-11-17  Eric Blake  <ebb9@byu.net>
32971
32972         usleep: use it to simplify tests
32973         * modules/stat-time-tests (Depends-on): Add usleep.
32974         (configure.ac): Drop usleep check.
32975         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32976         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32977         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32978         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32979         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32980         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32981         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32982         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32983         Likewise.
32984         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32985         * tests/test-lchown.h (nap): Likewise.
32986         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32987         * tests/test-stat-time.c (nap): Likewise.
32988         * tests/test-utimens-common.h (nap): Update comments.
32989
32990         usleep: new module
32991         * modules/usleep: New file.
32992         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32993         * lib/usleep.c (usleep): Likewise.
32994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32995         * modules/unistd (Makefile.am): Substitute witnesses.
32996         * lib/unistd.in.h (usleep): Add declaration.
32997         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32998         * MODULES.html.sh (Date and time): Likewise.
32999         * modules/usleep-tests (Depends-on): New test.
33000         * tests/test-usleep.c: New file.
33001
33002         chown: work around OpenBSD bug
33003         * lib/chown.c (rpl_chown): Work around the bug.
33004         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33005         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33006         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33007         * modules/chown (Depends-on): Add stdbool.
33008         * modules/lchown (Depends-on): Likewise.
33009         * doc/posix-functions/chown.texi (chown): Document the bug.
33010         * doc/posix-functions/lchown.texi (lchown): Likewise.
33011         * tests/test-lchown.h (test_chown): Relax test.
33012
33013         mkstemp: avoid conflict with C++ keyword template
33014         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33015         * lib/mkostemp.c (mkostemp): Likewise.
33016         * lib/mkostemps.c (mkostemps): Likewise.
33017         * lib/mkstemp.c (mkstemp): Likewise.
33018         * lib/mkstemps.c (mkstemps): Likewise.
33019
33020         xalloc-die-tests: optimize
33021         * tests/test-xalloc-die.sh: Reduce number of processes.
33022
33023 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33024
33025         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33026         patch from ludo@gnu.org (Ludovic Courtès).
33027
33028 2009-11-17  Jim Meyering  <meyering@redhat.com>
33029
33030         version-etc: use proper license string
33031         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33032         * modules/version-etc-fsf: Likewise.
33033
33034 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33035
33036         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33037         printed to stdout.  Deal with EOL differences.
33038
33039 2009-11-17  Eric Blake  <ebb9@byu.net>
33040
33041         unsetenv: work around Solaris bug
33042         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33043         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33044         Reported by Jim Meyering.
33045
33046         vasnprintf: avoid compiler warnings
33047         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33048         variables.
33049         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33050
33051 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33052
33053         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33054         settings since xalloc-die is no longer the self test,
33055         xalloc-die.sh is.
33056
33057 2009-11-17  Jim Meyering  <meyering@redhat.com>
33058
33059         test-xalloc-die.sh: make the code agree with the commit log
33060         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33061         at the end, just in case you happen to have a test-xalloc-die
33062         program in some other PATH directory.
33063
33064         test-xalloc-die.sh: fix a portability bug
33065         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33066         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33067         Otherwise, argv[0] (as often seen in diagnostics) would be too
33068         system-dependent, sometimes with, and sometimes without the leading "./".
33069
33070         version-etc-fsf: relax license to LGPLv3+
33071         * modules/version-etc-fsf (License): Relax license.
33072
33073 2009-11-16  Eric Blake  <ebb9@byu.net>
33074
33075         xalloc-die-tests: avoid printing null pointer
33076         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33077         shell script.
33078         * tests/test-xalloc-die.c (program_name): Declare.
33079         * tests/test-xalloc-die.sh (tmpfiles): New file.
33080
33081         setenv, unsetenv: work around various bugs
33082         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33083         (setenv) [HAVE_SETENV]: Work around bugs.
33084         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33085         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33086         for bugs.
33087         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33088         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33090         * modules/stdlib (Makefile.am): Update substitutions.
33091         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33092         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33093         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33094         * modules/setenv-tests: New test.
33095         * modules/unsetenv-tests: Likewise.
33096         * tests/test-setenv.c: New file.
33097         * tests/test-unsetenv.c: Likewise.
33098
33099 2009-11-16  Jim Meyering  <meyering@redhat.com>
33100
33101         version-etc: relax license to LGPLv3+
33102         * modules/version-etc (License): Relax license.
33103
33104         better AC_REQUIRE expanded-before-required-warning avoidance
33105         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33106         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33107         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33108         which is no longer needed.
33109
33110 2009-11-16  Eric Blake  <ebb9@byu.net>
33111
33112         test-freading: clean up temporary file
33113         * tests/test-freading.c (main): Remove file on success, and use
33114         ASSERT more liberally.
33115         Reported by Jim Meyering.
33116
33117 2009-11-16  Jim Meyering  <meyering@redhat.com>
33118
33119         avoid new AC_REQUIRE expanded-before-required warnings
33120         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33121         merely using it.
33122         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33123         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33124
33125 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33126
33127         * tests/test-xalloc-die.c: New file.
33128         * modules/xalloc-die-tests: New file.
33129         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33130         XFAIL_TESTS so it can be appended by modules.
33131
33132 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33133
33134         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33135         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33136
33137 2009-11-14  Eric Blake  <ebb9@byu.net>
33138
33139         fnmatch: avoid compiler warning
33140         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33141         to silence compiler warning about mismatch signedness in ?:.
33142         Reported by Robert Millan.
33143
33144         intprops: add double-inclusion guard
33145         * lib/intprops.h: Allow idempotent includes.
33146         Suggested by Bruce Korb.
33147
33148         openat: detect Solaris fchownat bug
33149         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33150         penalizing glibc chownat when only lchownat is broken.
33151         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33152         trailing slash bugs.
33153         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33154         * modules/openat-tests (Files): Include more files.
33155         (Depends-on): Add mgetgroups, sleep, stat-time.
33156         (configure.ac): Add additional checks.
33157         (Makefile.am): Build new test.
33158         * tests/test-fchownat.c: New file.
33159
33160         lchown: detect Solaris and FreeBSD bug
33161         * lib/lchown.c (rpl_lchown): Work around bug.
33162         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33164         * modules/unistd (Makefile.am): Populate it.
33165         * lib/unistd.in.h (lchown): Update declaration.
33166         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33167         * modules/lchown-tests: New file.
33168         * tests/test-lchown.h (test_lchown): Likewise.
33169         * tests/test-lchown.c (main): Likewise.
33170
33171         chown: detect Solaris and FreeBSD bug
33172         * lib/chown.c (rpl_chown): Work around bug.
33173         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33174         (gl_PREREQ_CHOWN): Delete.
33175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33176         * modules/unistd (Makefile.am): Populate it.
33177         * lib/unistd.in.h (chown): Update declaration.
33178         * lib/lchown.c (chown): Update client.
33179         * modules/lchown (Depends-on): Add lstat.
33180         * doc/posix-functions/chown.texi (chown): Document the bug.
33181         * doc/posix-functions/getgroups.texi (getgroups): Document
33182         getgroups pitfall.
33183         * modules/chown-tests: New file.
33184         * tests/test-chown.h (test_chown): Likewise.
33185         * tests/test-chown.c (main): Likewise.
33186
33187 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33188
33189         gnulib-tool: correctly detect absence of m4 directories
33190         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33191
33192 2009-11-14  Jim Meyering  <meyering@redhat.com>
33193
33194         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33195         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33196
33197 2009-11-14  John W. Eaton  <jwe@gnu.org>
33198
33199         strftime.h: wrap funtion declaration in extern "C" block
33200         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33201
33202 2009-11-13  Eric Blake  <ebb9@byu.net>
33203
33204         getgroups: avoid compiler warning
33205         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33206
33207         getgroups: work around FreeBSD bug
33208         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33209         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33210         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33211         * tests/test-getgroups.c (main): Fix buffer overrun.
33212
33213         getgroups: avoid compilation failure
33214         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33215         * modules/getgroups (Depends-on): Add stdint.
33216
33217 2009-11-13  Jim Meyering  <meyering@redhat.com>
33218
33219         test-getgroups: avoid compilation failure
33220         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33221
33222 2009-11-13  Eric Blake  <ebb9@byu.net>
33223
33224         mgetgroups: new module, taken from coreutils
33225         * modules/mgetgroups: New file.
33226         * lib/mgetgroups.h: Likewise.
33227         * lib/mgetgroups.c (mgetgroups): Likewise.
33228         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33229         * MODULES.html.sh (Users and groups): Mention it.
33230
33231         getgroups: don't expose GETGROUPS_T to user
33232         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33233         an element at a time if GETGROUPS_T is wrong size.
33234         * lib/getugroups.h (getugroups): Change signature.
33235         * lib/unistd.in.h (getgroups): Likewise.
33236         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33237         signature needs fixing.
33238         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33239         AC_TYPE_GETGROUPS.
33240         * modules/group-member (Depends-on): Add getgroups.
33241         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33242         (group_member): Rely on getgroups replacement.
33243         * lib/getugroups.c (getugroups): Use gid_t.
33244         * tests/test-getgroups.c (main): Likewise.
33245         * NEWS: Mention the signature change.
33246         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33247         problem with signature.
33248         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33249         GETGROUPS_T is still useful for setgroups.
33250
33251         getgroups, getugroups: provide stubs for mingw
33252         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33253         * lib/getugroups.c (getugroups): Likewise.
33254         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33255         function.  Modernize replacement scheme.
33256         (gl_PREREQ_GETGROUPS): Delete.
33257         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33258         * modules/getgroups (configure.ac): Declare witness.
33259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33260         * modules/unistd (Depends-on): Substitute witness.
33261         * lib/unistd.in.h (getgroups): Declare replacement.
33262
33263         getgroups: avoid calling exit
33264         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33265         drop xalloc.
33266         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33267         dependencies.
33268         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33269         exiting, in the rare case of malloc failure.
33270
33271         getgroups: fix logic error
33272         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33273         has more than 20 groups.
33274         * modules/getgroups-tests: New test.
33275         * tests/test-getgroups.c: New file.
33276
33277 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33278
33279         * tests/test-base64.c: Improve.
33280
33281 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33282
33283         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33284         Blake <ebb9@byu.net>.
33285
33286 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33287
33288         * tests/test-xvasprintf.c: Add %s%s related checks.
33289
33290 2009-11-12  Eric Blake  <ebb9@byu.net>
33291
33292         version-etc: match standards.texi style
33293         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33294         and use <> only for URLs.
33295
33296 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33297
33298         fts: do not fail on a submount during traversal
33299         * lib/fts.c (fts_build): Read the stat info again after opening
33300         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33301         Original report at http://bugzilla.redhat.com/501848.
33302
33303 2009-11-12  Jim Meyering  <meyering@redhat.com>
33304
33305         bootstrap: sync from coreutils
33306         * build-aux/bootstrap (bootstrap_epilogue): New function.
33307         Use git_modules_config in one more place.  This make bootstrap's
33308         --gnulib-srcdir option more useful for testing.
33309
33310         bootstrap: generalize autoheader check
33311         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33312         AC_CONFIG_HEADERS.
33313
33314 2009-11-11  Eric Blake  <ebb9@byu.net>
33315
33316         mkfifoat: use new modules for Solaris and BSD bugs
33317         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33318         * lib/mkfifoat.c (mknodat): Split...
33319         * lib/mknodat.c (mknodat): ...into new file.
33320         * modules/mkfifoat (Files): Ship new file.
33321         (Depends-on): Add mkfifo, mknod.
33322         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33323         (Depends-on): Add symlink.
33324         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33325         redundant with test_mkfifo.h.
33326         (do_mkfifoat, do_mknodat): New helpers.
33327
33328         mknod: new module
33329         * modules/mknod: New file.
33330         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33331         * lib/mknod.c (mknod): Likewise.
33332         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33333         defaults.
33334         * modules/sys_stat (Makefile.am): Substitute them.
33335         * lib/sys_stat.in.h (mknod): Declare replacement.
33336         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33337         Document it.
33338         * doc/posix-functions/mknod.texi (mknod): Likewise.
33339         * modules/mknod-tests: New test.
33340         * tests/test-mknod.c: Likewise.
33341
33342         mkfifo: new module
33343         * modules/mkfifo: New file.
33344         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33345         * lib/mkfifo.c (mkfifo): Likewise.
33346         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33347         defaults.
33348         * modules/sys_stat (Makefile.am): Substitute them.
33349         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33350         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33351         Document it.
33352         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33353         * modules/mkfifo-tests: New test.
33354         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33355         from test-mkfifoat.c.
33356         * tests/test-mkfifo.c: New file.
33357
33358         readlink: detect FreeBSD bug
33359         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33360         slash on symlink.
33361         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33362         * tests/test-readlink.h (test_readlink): Enhance test.
33363
33364         symlink: detect FreeBSD bug
33365         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33366         slash on symlink.
33367         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33368         * tests/test-symlink.h (test_symlink): Enhance test.
33369
33370 2009-11-10  Eric Blake  <ebb9@byu.net>
33371
33372         link: detect FreeBSD bug
33373         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33374         symlink.
33375         * doc/posix-functions/link.texi (link): Document the bug.
33376         * tests/test-link.h (test_link): Enhance test.
33377         * tests/test-linkat.c (main): Update caller.
33378
33379         unlink, remove: detect FreeBSD bug
33380         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33381         slash on symlink.
33382         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33383         * doc/posix-functions/remove.texi (remove): Likewise.
33384         * tests/test-unlink.h (test_unlink): Enhance test.
33385         * tests/test-remove.c (main): Likewise.
33386
33387 2009-11-09  Eric Blake  <ebb9@byu.net>
33388
33389         rename: detect FreeBSD bug
33390         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33391         slash on symlink.
33392         * modules/renameat-tests (Depends-on): Add filenamecat.
33393         * tests/test-rename.h (test_rename): Allow one more errno.
33394         * tests/test-renameat.c (main): Likewise.
33395         * doc/posix-functions/rename.texi (rename): Document the bug.
33396
33397         open: detect FreeBSD bug
33398         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33399         symlink.
33400         * doc/posix-functions/open.texi (open): Document the bug.
33401         * doc/posix-functions/utimes.texi (utimes): Likewise.
33402         * tests/test-open.h (test_open): Add parameters, and test symlink
33403         handling.
33404         * tests/test-open.c (main): Adjust caller.
33405         * tests/test-fcntl-safer.c (main): Likewise.
33406         * modules/open-tests (Depends-on): Add stdbool, symlink.
33407         * modules/fcntl-safer-tests (Depends-on): Likewise.
33408         * tests/test-openat.c (main): Add test-open tests.
33409
33410         stat: detect FreeBSD bug
33411         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33412         symlink.
33413         * doc/posix-functions/stat.texi (stat): Document the bug.
33414         * tests/test-stat.h (test_stat_func): Add argument.
33415         * tests/test-stat.c (main): Adjust caller.
33416         * tests/test-fstatat.c (main): Likewise.
33417         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33418         Reported by Jim Meyering.
33419
33420 2009-11-09  James Youngman  <jay@gnu.org>
33421
33422         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33423         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33424
33425 2009-11-08  Jim Meyering  <meyering@redhat.com>
33426
33427         utimens: remove invalid futimesat call
33428         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33429         It used the file descriptor of the target file as the DIR_FD
33430         parameter and NULL as the file name.  That caused failure with
33431         errno == EFAULT on FreeBSD-8.0-rc2
33432
33433 2009-11-07  Eric Blake  <ebb9@byu.net>
33434
33435         fflush, freadseek: use fseeko, not fseek
33436         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33437         (clear_ungetc_buffer): Avoid potential problems on large files.
33438         * lib/freadseek.c (freadseek): Likewise.
33439         * modules/freadseek (Depends-on): Add fseeko.
33440         * modules/fseek (configure.ac): Set a witness.
33441         * tests/test-fflush.c (main): Use fseeko.
33442         * tests/test-fpurge.c (fseek): Disable link warning.
33443         * tests/test-freadable.c (fseek): Likewise.
33444         * tests/test-freading.c (fseek): Likewise.
33445         * tests/test-fseeko.c (fseek): Likewise.
33446         * tests/test-ftell.c (fseek): Likewise.
33447         * tests/test-ftello.c (fseek): Likewise.
33448         * tests/test-fwritable.c (fseek): Likewise.
33449         * tests/test-fwriting.c (fseek): Likewise.
33450
33451 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33452
33453         * modules/memchr (Depends-on): Drop getpagesize dependency.
33454
33455 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33456
33457         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33458         Reported by Ludovic Courtès.
33459         * build-aux/pmccabe2html: Improve example usage.
33460         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33461
33462 2009-11-06  Jim Meyering  <meyering@redhat.com>
33463
33464         do-release-commit-and-tag: New module.
33465         Automate the release-commit and tag process.
33466         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33467         * modules/do-release-commit-and-tag: New file.
33468         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33469
33470 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33471
33472         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33473         because test-select.c uses inet_pton.
33474
33475 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33476
33477         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33478         GETADDRINFO_LIB.  Bump serial number.
33479         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33480         Suggested by Eric Blake <ebb9@byu.net>.
33481
33482 2009-11-05  Eric Blake  <ebb9@byu.net>
33483
33484         strtod: detect darwin bug
33485         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33486         Reported by Leo Davis.
33487
33488         freopen-safer: new module
33489         * modules/freopen-safer: New module.
33490         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33491         * lib/freopen-safer.c (freopen_safer): New file.
33492         * lib/stdio-safer.h (freopen_safer): New declaration.
33493         * lib/stdio--.h (freopen): New override.
33494         * MODULES.html.sh (File stream based Input/Output): Mention it.
33495         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33496         freopen-safer module.
33497         * doc/posix-functions/stderr.texi (stderr): Likewise.
33498         * doc/posix-functions/stdin.texi (stdin): Likewise.
33499         * doc/posix-functions/stdout.texi (stdout): Likewise.
33500         * modules/freopen-safer-tests: New test.
33501         * tests/test-reopen-safer.c: New file.
33502
33503 2009-11-05  Jim Meyering  <meyering@redhat.com>
33504
33505         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33506         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33507
33508 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33509
33510         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33511
33512 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33513
33514         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33515
33516 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33517
33518         Fix link error.
33519         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33520         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33521
33522 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33523
33524         * tests/test-func.c: Also test value of __func__.
33525
33526 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33527
33528         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33529         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33530
33531 2009-11-05  Bruno Haible  <bruno@clisp.org>
33532
33533         Fix link error.
33534         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33535         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33536         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33537
33538 2009-11-05  Bruno Haible  <bruno@clisp.org>
33539
33540         Tests for module 'inet_pton'.
33541         * modules/inet_pton-tests: New file.
33542         * tests/test-inet_pton.c: New file.
33543
33544 2009-11-05  Bruno Haible  <bruno@clisp.org>
33545
33546         Tests for module 'inet_ntop'.
33547         * modules/inet_ntop-tests: New file.
33548         * tests/test-inet_ntop.c: New file.
33549
33550 2009-11-04  Eric Blake  <ebb9@byu.net>
33551
33552         stdlib-safer: wrap all mkstemp variants
33553         * modules/mkostemp (configure.ac): Set witness.
33554         * modules/mkostemps (configure.ac): Likewise.
33555         * modules/mkstemps (configure.ac): Likewise.
33556         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33557         (mkstemps_safer): Wrap more functions.
33558         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33559         wrapping.
33560         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33561         (mkstemps_safer): Implement the wrappers.
33562
33563         mkstemps, mkostemps: new modules
33564         * modules/mkostemps: New module.
33565         * modules/mkstemps: Likewise.
33566         * lib/mkostemps.c (mkostemps): New file.
33567         * lib/mkstemps.c (mkstemps): Likewise.
33568         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33569         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33570         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33571         * modules/stdlib (Makefile.am): Substitute them.
33572         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33573         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33574         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33575         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33576         * MODULES.html.sh (File system functions): Mention them.
33577
33578         tempname: resync from glibc
33579         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33580         same values for __GT_FILE as glibc.  Abort even when assertions
33581         are disabled.
33582         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33583         match its value otherwise.  Allow idempotent inclusion.
33584         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33585         * lib/mkostemp.c (mkostemp): Likewise.
33586         * lib/mkstemp.c (mkstemp): Likewise.
33587         * lib/tmpfile.c (tmpfile): Likewise.
33588         * NEWS: Document this.
33589
33590         utimens: fix use of futimens on older Linux
33591         * lib/utimens.c (fdutimens): Use updated, rather than original,
33592         timespec to avoid bug in older Linux kernel.
33593         Reported by Simon Josefsson.
33594
33595 2009-11-04  Bruno Haible  <bruno@clisp.org>
33596
33597         Make num_processors more flexible and consistent.
33598         * lib/nproc.h (enum nproc_query): New type.
33599         (num_processors): Add a 'query' argument.
33600         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33601         (num_processors): Add a 'query' argument. Test the value of the
33602         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33603         mingw, count the number of CPUs available for the current process.
33604         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33605         Check for sched_getaffinity and sched_getaffinity_np.
33606         * modules/nproc (Depends-on): Add c-ctype, extensions.
33607         * NEWS: Mention the change.
33608
33609 2009-11-03  Bruno Haible  <bruno@clisp.org>
33610
33611         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33612
33613 2009-11-03  Jim Meyering  <meyering@redhat.com>
33614
33615         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33616         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33617         if it is defined.
33618
33619 2009-11-02  Eric Blake  <ebb9@byu.net>
33620
33621         mktime, timegm: share common declaration
33622         * lib/mktime-internal.h: New file.
33623         * lib/mktime.c: Use it rather than open-coding a declaration.
33624         * lib/timegm.c: Likewise.
33625         * modules/mktime (Files): Ship it.
33626         * modules/timegm (Files): Likewise.
33627         Suggested by Bruno Haible.
33628
33629         test-update-copyright: update test to match script changes
33630         * tests/test-update-copyright.sh: Avoid hard-coding perl
33631         location.  Don't update *.bak created by earlier runs.
33632
33633 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33634             Simon Josefsson  <simon@josefsson.org>
33635             Bruno Haible  <bruno@clisp.org>
33636
33637         Fix link error on Solaris 8.
33638         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33639         also in libnsl. Define also INET_PTON_LIB.
33640         * modules/inet_pton (Link): New section.
33641
33642 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33643             Bruno Haible  <bruno@clisp.org>
33644
33645         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33646         * modules/inet_ntop (Link): New section.
33647         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33648
33649 2009-11-02  Eric Blake  <ebb9@byu.net>
33650
33651         maint: avoid compiler warnings in m4 macros
33652         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33653         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33654
33655 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33656
33657         * m4/pmccabe2html.m4: Remove file.
33658         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33659         function.  Change maintainer.
33660         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33661         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33662         Courtès).
33663
33664 2009-10-31  Eric Blake  <ebb9@byu.net>
33665
33666         fseeko: fix m4 regression
33667         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33668         regression from 2009-10-27.
33669         Reported by Ralf Wildenhues.
33670
33671 2009-10-31  Jim Meyering  <meyering@redhat.com>
33672
33673         inttostr: aesthetics and improved (compile-time) safety
33674         Define inttype_is_signed rather than inttype_is_unsigned,
33675         since the sole use is via "#if inttype_is_signed".
33676         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33677         inttype_is_unsigned.
33678         * lib/offtostr.c (inttype_is_signed): Likewise.
33679         * lib/uinttostr.c (inttype_is_signed): Likewise.
33680         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33681         * lib/inttostr.c (inttostr): Use verify to cross-check the
33682         inttype_is_signed value and the signedness of the actual type.
33683         * modules/inttostr (Depends-on): Add verify.
33684
33685 2009-10-30  Eric Blake  <ebb9@byu.net>
33686
33687         build: avoid compiler warnings
33688         * lib/fchmodat.c (lchmod): Mark unused variables.
33689         * lib/getopt.c (_getopt_initialize): Likewise.
33690         * lib/mktime.c (__mktime_internal): Provide prototype.
33691         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33692         older gcc that do not understand #pragma GCC diagnostic.
33693         * lib/uinttostr.c (inttype_is_unsigned): Define.
33694         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33695
33696 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33697
33698         stat: fix compilation on AIX
33699         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33700         only see struct stat64.
33701
33702 2009-10-30  Eric Blake  <ebb9@byu.net>
33703
33704         exclude: make more robust
33705         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33706         rather than masking a coding bug.
33707         Suggested by Bruno Haible.
33708
33709 2009-10-30  Jim Meyering  <meyering@redhat.com>
33710
33711         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33712         Rather than putting #!/usr/bin/perl on the first line,
33713         start with a variant of what's recommended by "man perlrun" that
33714         invokes the first "perl" program from your shell's search path.
33715         * build-aux/gitlog-to-changelog: Replace #!... as above.
33716         Add a "Local Variables" perl mode setting.
33717         Prompted by a patch from Ludovic Courtès.
33718         Improved by Eric Blake.
33719         * build-aux/useless-if-before-free: Likewise.
33720         * build-aux/announce-gen: Likewise.
33721         * build-aux/update-copyright: Likewise.
33722
33723 2009-10-29  Eric Blake  <ebb9@byu.net>
33724
33725         filenamecat-lgpl: adjust clients
33726         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33727         filenamecat.
33728         * modules/renameat (Depends-on): Likewise.
33729
33730         filenamecat: split into filenamecat-lgpl
33731         * modules/filenamecat-lgpl: New module.
33732         * modules/filenamecat (Files): Move library-safe files into
33733         filenamecat-lgpl.
33734         (Depends-on): Add filenamecat-lgpl.
33735         (configure.ac): Declare witness.
33736         * lib/filenamecat.h (file_name_concat): Only declare when using
33737         GPL module.
33738         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33739         Move...
33740         * lib/filenamecat-lgpl.c: ...into new file.
33741         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33742         (gl_FILE_NAME_CONCAT): Use it.
33743         * MODULES.html.sh (File system functions): Mention new module.
33744
33745         argp: avoid memory leak
33746         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33747         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33748         base_name, since the latter malloc()s and can call exit().
33749         Leak introduced 2006-07-03.
33750
33751         dirname-lgpl: adjust clients that don't need full dirname
33752         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33753         * modules/filenamecat (Depends-on): Likewise.
33754         * modules/linkat (Depends-on): Likewise.
33755         * modules/mkancesdirs (Depends-on): Likewise.
33756         * modules/mkdir (Depends-on): Likewise.
33757         * modules/openat (Depends-on): Likewise.
33758         * modules/savewd (Depends-on): Likewise.
33759         * modules/rename (Depends-on): Likewise.
33760         (License): Relax license.
33761         * modules/mkdir-tests (Depends-on): Drop progname.
33762         (Makefile.am): Delete unneeded LDADD.
33763         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33764
33765         dirname: split into dirname-lgpl
33766         * modules/dirname-lgpl: New module.
33767         * modules/dirname (Files): Move library-safe files into
33768         dirname-lgpl.
33769         (Depends-on): Add dirname-lgpl.
33770         (configure.ac): Declare witness.
33771         * modules/double-slash-root (License): Relax license.
33772         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33773         module.
33774         * lib/dirname.c (dir_len, mdir_name): Move...
33775         * lib/dirname-lgpl.c: ...into new file.
33776         * lib/basename.c (last_component, base_len): Move...
33777         * lib/basename-lgpl.c: ...into new file.
33778         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33779         (gl_DIRNAME): Use it.
33780         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33781         Mention new module.
33782         * modules/dirname-tests (Depends-on): Add progname.
33783         * tests/test-dirname.c (program_name): Delete.
33784
33785         mkdir: make safe for libraries
33786         * modules/mkdir (Depends-on): Drop xalloc.
33787         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33788         exit.
33789
33790         tests: avoid some compiler warnings
33791         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33792         literals.
33793         * tests/test-memchr.c (main): Avoid type mismatch.
33794         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33795         * tests/test-base64.c (main): Likewise.
33796         * tests/test-getdelim.c (main): Likewise.
33797         * tests/test-gethostname.c (main): Likewise.
33798         * tests/test-getline.c (main): Likewise.
33799         * tests/test-netinet_in.c (main): Likewise.
33800         * tests/test-select.c (open_server_socket, main): Likewise.
33801         * tests/test-select-stdin.c (main): Likewise.
33802         * tests/test-sockets.c (main): Likewise.
33803         * tests/test-strsignal.c (main): Likewise.
33804         * tests/test-sys_select.c (main): Likewise.
33805         * tests/test-sys_socket.c (main): Likewise.
33806         * tests/test-u64.c (main): Likewise.
33807         * tests/test-xfprintf-posix.c (main): Likewise.
33808         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33809
33810         sockets: avoid compiler warning
33811         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33812
33813         maint: detect usage(1) and other suspicious exits
33814         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33815
33816 2009-10-29  Jim Meyering  <meyering@redhat.com>
33817
33818         timespec: long-to-int truncation could make timespec_cmp malfunction
33819         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33820         a multiple of 2^32 nanoseconds as no difference.
33821
33822 2009-10-28  Jim Meyering  <meyering@redhat.com>
33823
33824         fprintftime: wrap macro code argument in "do {...} while(0)"
33825         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33826         cpy macro must be a statement that can be followed by a semicolon.
33827         Now that the else clause contains a comment and is hence longer
33828         than one line, I require curly braces.  That in turn requires
33829         that we wrap this code block in the standard do...while(0).
33830
33831         fprintftime: remove stray semicolon from previous change
33832         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33833
33834         fprintftime: avoid a warning about ignored fwrite return value
33835         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33836         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33837         that is unsafe.
33838         * modules/fprintftime (Depends-on): Add ignore-value.
33839
33840         exclude: avoid an unwarranted warning
33841         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33842
33843 2009-10-27  Eric Blake  <ebb9@byu.net>
33844
33845         fseek: avoid compilation failure when fflush is replaced
33846         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33847         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33848         module is in use.
33849         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33850         module is not in use; since REPLACE_FSEEK worked otherwise.
33851         (GNULIB_FTELLO): Likewise for ftell.
33852         Reported by Ian Beckwith and others.
33853
33854 2009-10-27  Bruno Haible  <bruno@clisp.org>
33855
33856         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33857         Reported by Jim Meyering.
33858
33859 2009-10-27  Jim Meyering  <jim@meyering.net>
33860             Bruno Haible  <bruno@clisp.org>
33861
33862         Avoid warning despite dropping the return value of fwrite.
33863         * lib/unicodeio.c: Include ignore-value.h.
33864         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33865         * modules/unicodeio (Depends-on): Add ignore-value.
33866
33867 2009-10-26  Eric Blake  <ebb9@byu.net>
33868
33869         areadlinkat: fix fallback path
33870         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33871         pointer and zero.
33872
33873 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33874
33875         Use a better IO block size for modern systems
33876         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33877         * lib/md2.c: Likewise.
33878         * lib/md4.c: Likewise.
33879         * lib/md5.c: Likewise.
33880         * lib/sha1.c: Likewise.
33881         * lib/sha256.c: Likewise.
33882         * lib/sha512.c: Likewise.
33883
33884 2009-10-22  Eric Blake  <ebb9@byu.net>
33885
33886         tests: avoid several compiler warnings
33887         * tests/test-getcwd.c (main): Avoid buffer underflow.
33888         * tests/test-getdate.c (main): String literals are not safe with
33889         putenv, so use setenv.  Declare unused argument.
33890         * modules/getdate-tests (Depends-on): Add setenv.
33891         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33892         problems with string literals in char *.
33893         * tests/test-hash.c (main): Avoid shadowing declaration.
33894         (insert_new): Treat string literals as char const *.
33895         * tests/test-getopt.h (test_getopt): Likewise.
33896         (getopt_loop): Alter types to minimize casting elsewhere.
33897         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33898         (test_getopt_long_posix): Likewise.
33899         (do_getopt_long): Add wrapper to minimize casting.
33900         * tests/test-atexit.c (clear_temp_file): Use void.
33901         * tests/test-areadlink-with-size.c (main): Declare unused
33902         arguments.
33903         * tests/test-areadlink.c (main): Likewise.
33904         * tests/test-areadlinkat-with-size.c (main): Likewise.
33905         * tests/test-areadlinkat.c (main): Likewise.
33906         * tests/test-canonicalize-lgpl.c (main): Likewise.
33907         * tests/test-canonicalize.c (main): Likewise.
33908         * tests/test-dirent-safer.c (main): Likewise.
33909         * tests/test-dirname.c (main): Likewise.
33910         * tests/test-dup2.c (main): Likewise.
33911         * tests/test-fchdir.c (main): Likewise.
33912         * tests/test-fcntl-h.c (main): Likewise.
33913         * tests/test-fcntl-safer.c (main): Likewise.
33914         * tests/test-fdopendir.c (main): Likewise.
33915         * tests/test-fdutimensat.c (main): Likewise.
33916         * tests/test-fflush.c (main): Likewise.
33917         * tests/test-filenamecat.c (main): Likewise.
33918         * tests/test-filevercmp.c (main): Likewise.
33919         * tests/test-fopen-safer.c (main): Likewise.
33920         * tests/test-fopen.c (main): Likewise.
33921         * tests/test-fpending.c (main): Likewise.
33922         * tests/test-fpurge.c (main): Likewise.
33923         * tests/test-freading.c (main): Likewise.
33924         * tests/test-fstatat.c (main): Likewise.
33925         * tests/test-fsync.c (main): Likewise.
33926         * tests/test-futimens.c (main): Likewise.
33927         * tests/test-getndelim2.c (main): Likewise.
33928         * tests/test-gettimeofday.c (main): Likewise.
33929         * tests/test-getopt.c (main): Likewise.
33930         * tests/test-i-ring.c (main): Likewise.
33931         * tests/test-inttypes.c (main): Likewise.
33932         * tests/test-link.c (main): Likewise.
33933         * tests/test-lstat.c (main): Likewise.
33934         * tests/test-math.c (main): Likewise.
33935         * tests/test-md5.c (main): Likewise.
33936         * tests/test-memchr2.c (main): Likewise.
33937         * tests/test-memrchr.c (main): Likewise.
33938         * tests/test-mkdir.c (main): Likewise.
33939         * tests/test-mkdirat.c (main): Likewise.
33940         * tests/test-mkfifoat.c (main): Likewise.
33941         * tests/test-open.c (main): Likewise.
33942         * tests/test-openat-safer.c (main): Likewise.
33943         * tests/test-openat.c (main): Likewise.
33944         * tests/test-quotearg.c (main): Likewise.
33945         * tests/test-rawmemchr.c (main): Likewise.
33946         * tests/test-readlink.c (main): Likewise.
33947         * tests/test-remove.c (main): Likewise.
33948         * tests/test-rename.c (main): Likewise.
33949         * tests/test-renameat.c (main): Likewise.
33950         * tests/test-rmdir.c (main): Likewise.
33951         * tests/test-sha1.c (main): Likewise.
33952         * tests/test-signal.c (main): Likewise.
33953         * tests/test-sigaction.c (main): Likewise.
33954         * tests/test-stat.c (main): Likewise.
33955         * tests/test-stat-time.c (main): Likewise.
33956         * tests/test-stddef.c (main): Likewise.
33957         * tests/test-stdint.c (main): Likewise.
33958         * tests/test-stdio.c (main): Likewise.
33959         * tests/test-stdlib.c (main): Likewise.
33960         * tests/test-strchrnul.c (main): Likewise.
33961         * tests/test-strerror.c (main): Likewise.
33962         * tests/test-string.c (main): Likewise.
33963         * tests/test-strtod.c (main): Likewise.
33964         * tests/test-strverscmp.c (main): Likewise.
33965         * tests/test-symlink.c (main): Likewise.
33966         * tests/test-symlinkat.c (main): Likewise.
33967         * tests/test-sys_stat.c (main): Likewise.
33968         * tests/test-sys_time.c (main): Likewise.
33969         * tests/test-time.c (main): Likewise.
33970         * tests/test-unistd.c (main): Likewise.
33971         * tests/test-unlink.c (main): Likewise.
33972         * tests/test-unlinkat.c (main): Likewise.
33973         * tests/test-utimens.c (main): Likewise.
33974         * tests/test-utimensat.c (main): Likewise.
33975         * tests/test-version-etc.c (main): Likewise.
33976         * tests/test-wchar.c (main): Likewise.
33977         * tests/test-wctype.c (main): Likewise.
33978         * tests/test-xprintf-posix.c (main): Likewise.
33979         * tests/test-posixtm.c (main): Likewise.
33980         (STREQ): Delete unused macro.
33981         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33982         shadowed variables.
33983         * tests/test-memchr.c (main): Likewise.
33984
33985 2009-10-21  Eric Blake  <ebb9@byu.net>
33986
33987         areadlinkat: avoid failure on older glibc
33988         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33989         rather than mis-comparing 0 against FUNC_RESULT of char*.
33990
33991 2009-10-21  Bruno Haible  <bruno@clisp.org>
33992
33993         * modules/stpncpy (License): Relicense under LGPLv2+.
33994         Reported by David Lutterkort <lutter@redhat.com>.
33995
33996 2009-10-20  Eric Blake  <ebb9@byu.net>
33997
33998         utimensat: work around Solaris 9 bug
33999         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34000         has trailing slash bugs.
34001         * tests/test-lutimens.h (test_lutimens): Enhance test.
34002         * tests/test-utimens.h (test_utimens): Likewise.
34003         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34004         * doc/posix-functions/utimes.texi (utimes): Likewise.
34005         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34006         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34007         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34008         * doc/posix-functions/futimens.texi (futimens): Likewise.
34009
34010         fdutimensat: new module
34011         * modules/fdutimensat: New file.
34012         * lib/fdutimensat.c (fdutimensat): Likewise.
34013         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34014         * MODULES.html.sh (File system functions): Mention module.
34015         * modules/fdutimensat-tests: New test.
34016         * tests/test-fdutimensat.c: Likewise.
34017
34018         doc: regenerate INSTALL
34019         * doc/INSTALL: Reflect recent autoconf update.
34020         * doc/INSTALL.ISO: Likewise.
34021         * doc/INSTALL.UTF-8: Likewise.
34022
34023 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34024
34025         acl: warn if ACL support is not detected
34026         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34027
34028 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34029
34030         * lib/nproc.h: Add extern "C" block for C++.
34031
34032 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34033             Bruno Haible  <bruno@clisp.org>
34034
34035         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34036         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34037         * doc/posix-functions/isalpha.texi: Likewise.
34038         * doc/posix-functions/isblank.texi: Likewise.
34039         * doc/posix-functions/iscntrl.texi: Likewise.
34040         * doc/posix-functions/isdigit.texi: Likewise.
34041         * doc/posix-functions/isgraph.texi: Likewise.
34042         * doc/posix-functions/islower.texi: Likewise.
34043         * doc/posix-functions/isprint.texi: Likewise.
34044         * doc/posix-functions/ispunct.texi: Likewise.
34045         * doc/posix-functions/isspace.texi: Likewise.
34046         * doc/posix-functions/isupper.texi: Likewise.
34047         * doc/posix-functions/isxdigit.texi: Likewise.
34048
34049 2009-10-18  Bruno Haible  <bruno@clisp.org>
34050
34051         Tests for module 'isblank'.
34052         * modules/isblank-tests: New file.
34053         * tests/test-isblank.c: New file.
34054
34055         New module 'isblank'.
34056         * lib/isblank.c: New file.
34057         * m4/isblank.m4: New file.
34058         * modules/isblank: New file.
34059         * doc/posix-functions/isblank.texi: Mention the new module.
34060
34061 2009-10-18  Bruno Haible  <bruno@clisp.org>
34062
34063         New module 'ctype'.
34064         * lib/ctype.in.h: New file.
34065         * m4/ctype.m4: New file.
34066         * modules/ctype: New file.
34067         * doc/posix-headers/ctype.texi: Mention the new module.
34068
34069 2009-10-18  Jim Meyering  <meyering@redhat.com>
34070
34071         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34072         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34073         right after its initialization, rather than farther down.
34074         Keeping these in close proximity makes it easier to ensure
34075         that each such variable is initialized.  E.g.,
34076
34077             LIB_CLOCK_GETTIME=
34078             AC_SUBST([LIB_CLOCK_GETTIME])
34079
34080         This change also increments these serial numbers.
34081         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34082         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34083         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34084
34085 2009-10-18  Bruno Haible  <bruno@clisp.org>
34086
34087         Don't let environment variables perturb build.
34088         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34089         (gl_PREREQ_GETHRXTIME): ... not here.
34090
34091 2009-10-18  Bruno Haible  <bruno@clisp.org>
34092
34093         Avoid symlink attack in localcharset module.
34094         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34095         (O_NOFOLLOW): Define fallback.
34096         (get_charset_aliases): Don't open the file if it is a symbolic link.
34097         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34098         gl_FCNTL_H.
34099         (gl_FCNTL_H): Require it.
34100         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34101         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34102         Reported by Fergal Glynn <fglynn@veracode.com>.
34103
34104 2009-10-18  Bruno Haible  <bruno@clisp.org>
34105
34106         Implement nproc for mingw.
34107         * lib/nproc.c: Include <windows.h>
34108         (num_processors): On native Windows platforms, try GetSystemInfo.
34109
34110 2009-10-18  Bruno Haible  <bruno@clisp.org>
34111
34112         Implement nproc for IRIX.
34113         * lib/nproc.c: Include <sys/sysmp.h>.
34114         (num_processors): On IRIX systems, try sysmp.
34115         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34116
34117 2009-10-18  Bruno Haible  <bruno@clisp.org>
34118
34119         Implement nproc for HP-UX.
34120         * lib/nproc.c: Include <sys/pstat.h>
34121         (num_processors): On HP-UX systems, try pstat_getdynamic.
34122         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34123         pstat_getdynamic.
34124
34125 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34126             Bruno Haible  <bruno@clisp.org>
34127
34128         Implement nproc for NetBSD, OpenBSD.
34129         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34130         (ARRAY_SIZE): New macro.
34131         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34132         * m4/nproc.m4: New file.
34133         * modules/nproc (Files): Add m4/nproc.m4.
34134         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34135         (Makefile.am): Instead, augment lib_SOURCES.
34136
34137 2009-10-18  Bruno Haible  <bruno@clisp.org>
34138
34139         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34140         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34141         sys/param.h.
34142
34143 2009-10-16  Eric Blake  <ebb9@byu.net>
34144
34145         utimensat: new module
34146         * modules/utimensat: New file.
34147         * lib/utimensat.c (utimensat): Likewise.
34148         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34149         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34150         so we can work around Linux bugs.
34151         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34152         * modules/sys_stat (Makefile.am): Substitute them.
34153         * lib/sys_stat.in.h (utimensat): Declare it.
34154         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34155         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34156         * modules/utimensat-tests: New test.
34157         * tests/test-utimensat.c: Likewise.
34158
34159         utimens: let lutimens work on non-symlinks
34160         * lib/utimens.c (lutimens): Fall back to utimens rather than
34161         failing with ENOSYS, when file is not a symlink.
34162         (utimens): Reduce redirection.
34163         * tests/test-lutimens.h (test_lutimens): Update test to cover
34164         non-symlinks.
34165         * tests/test-utimens.h (test_utimens): Update test to cover
34166         symlinks.
34167         * tests/test-utimens.c (main): Update caller.
34168
34169         utimens: cache whether utimensat syscall works
34170         * lib/utimens.c (utimensat_works_really): New cache variable.
34171         (fdutimens, lutimens): Use it to avoid failing syscall.
34172
34173         test-stat-time, test-utimens: improve portability
34174         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34175         ext4 on alpha, and for cygwin.
34176         * tests/test-utimens-common.h: New file.
34177         (nap): Factor delays into single function.
34178         * tests/test-lutimens.h (test_lutimens): Use new header.
34179         * tests/test-futimens.h (test_futimens): Likewise.
34180         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34181         timestamps to occur from same machine, as was done previously for
34182         test_utimens.
34183         * modules/utimens-tests (Files): Ship new file.
34184         * modules/futimens-tests (Files): Likewise.
34185         Reported in part by Jim Meyering.
34186
34187         sys_stat: sort replacement declarations
34188         * lib/sys_stat.in.h: Sort declarations.
34189         * lib/futimens.c (futimens): Fix typo.
34190
34191 2009-10-15  Jim Meyering  <meyering@redhat.com>
34192
34193         don't let environment settings perturb build
34194         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34195         could cause a configure-time and/or build-time malfunction.
34196         Typically, a configure-time function-in-library test is performed
34197         via code like this:
34198
34199           LIB_VAR=
34200           AC_SUBST([LIB_VAR])
34201           prefix_saved_LIBS=$LIBS
34202             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34203                        [test "$ac_cv_search_FUNC" = "none required" ||
34204                         LIB_VAR=$ac_cv_search_FUNC])
34205           LIBS=$prefix_saved_LIBS
34206
34207         However, in each of the files affected by this change, the LIB_VAR=
34208         initialization was omitted.  Thus, when set in the environment, its
34209         value would propagate into generated Makefiles when FUNC is not found
34210         in LIB_NAME.
34211         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34212         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34213         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34214
34215 2009-10-14  Eric Blake  <ebb9@byu.net>
34216
34217         fchdir: avoid infinite recursion in mingw
34218         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34219         recursing.
34220
34221         test-stat-time: port to mingw
34222         * tests/test-stat-time.c (force_unlink): Return a value.
34223         (test_ctime) [W32]: Fix compilation error.
34224         (nap): Don't call usleep with too large an argument.  Use
34225         force_unlink.
34226         * doc/pastposix-functions/usleep.texi (usleep): Document the
34227         portability issue.
34228
34229 2009-10-13  Jim Meyering  <meyering@redhat.com>
34230
34231         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34232         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34233         * modules/pipe-filter-ii: Likewise.
34234         * modules/sys_socket-tests: Likewise.
34235         * modules/tsearch-tests: Likewise.
34236         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34237         (check): Depend on it.
34238
34239 2009-10-12  Eric Blake  <ebb9@byu.net>
34240
34241         utimens-tests: port to NFS file systems
34242         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34243         comparisons to avoid spurious failures from timestamp drift
34244         between NFS machines.
34245
34246 2009-10-12  Eric Blake  <ebb9@byu.net>
34247
34248         stat-time-tests: minor cleanups
34249         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34250         * tests/test-stat-time.c (nap): Separate assignment from call.
34251         Suggested by Paolo Bonzini and Bruno Haible.
34252
34253         sys_stat: guarantee struct timespec
34254         * lib/sys_stat.in.h (includes): Always include <time.h>
34255         * modules/sys_stat (Depends-on): Add time.
34256         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34257         mode_t permission values.
34258         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34259         get at subsecond timestamps.
34260
34261 2009-10-10  Eric Blake  <ebb9@byu.net>
34262
34263         futimens: new module
34264         * modules/futimens: New file.
34265         * lib/futimens.c (futimens): Likewise.
34266         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34267         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34268         we can work around Linux bugs.
34269         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34270         * modules/sys_stat (Makefile.am): Substitute them.
34271         * lib/sys_stat.in.h (futimens): Declare it.
34272         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34273         * doc/posix-functions/futimens.texi (futimens): Likewise.
34274         * modules/futimens-tests: New test.
34275         * tests/test-futimens.c: Likewise.
34276
34277         utimens: introduce fdutimens
34278         * lib/utimens.h (fdutimens): New prototype.
34279         * lib/utimens.c (gl_futimens): Move guts...
34280         (fdutimens): ...to new interface.
34281         * tests/test-utimens.c (do_fdutimens): Use it.
34282
34283         utimens: add UTIME_NOW and UTIME_OMIT support
34284         * lib/utimens.c (validate_timespec, update_timespec): New helper
34285         functions.
34286         (gl_futimens, lutimens): Use them.
34287         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34288         stdbool, sys_stat.
34289         (Link): Mention resulting library dependency.
34290         * modules/utimecmp (Link): Likewise.
34291         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34292         (Makefile.am): Pick up library dependency.
34293         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34294         definition.
34295         * tests/test-sys_stat.c: Test the definitions.
34296         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34297         * NEWS: Document library dependency.
34298
34299         utimecmp: support symlink timestamps
34300         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34301         hashing when possible.  Use pathconf when available.
34302         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34303         * modules/utimecmp (Depends-on): Add lstat.
34304
34305         utimens: add lutimens interface
34306         * lib/utimens.c (lutimens): New function.
34307         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34308         * lib/utimens.h (lutimens): Declare new interface.
34309         * tests/test-utimens.c (main): Enhance test.
34310         * tests/test-lutimens.h (test_lutimens): New file.
34311         * modules/utimens-tests (Files): Distribute it.
34312         (Depends-on): Add symlink.
34313         (configure.ac): Check for usleep.
34314
34315         utimens: validate futimens usage
34316         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34317         fewer syscalls on failure later on.  Avoid compiler warning on
34318         mingw.
34319         * modules/utimens (Depends-on): Add dup2.
34320
34321         utimens: add test
34322         * modules/utimens-tests: New test.
34323         * tests/test-utimens.h: New file.
34324         * tests/test-futimens.h: Likewise.
34325         * tests/test-utimens.c: Likewise.
34326
34327         doc: mention timestamp portability issues
34328         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34329         instead.
34330         * doc/posix-functions/utime.texi (utime): Likewise.
34331         * doc/posix-functions/utimes.texi (utimes): Likewise.
34332         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34333         instead.
34334         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34335         module.
34336         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34337         Mention weakness with symlink timestamps.
34338         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34339         to utimensat/futimens instead.
34340         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34341
34342         test-dup2: enhance test
34343         * tests/test-dup2.c (main): Also check AT_FDCWD.
34344
34345         test-stat-time: avoid more spurious failures
34346         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34347         xfs; and avoid race if the two timestamps cross quantization edge.
34348
34349         relocatable: prefer 'file system' over 'filesystem'
34350         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34351         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34352         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34353         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34354         * lib/relocatable.c (compute_curr_prefix): Likewise.
34355
34356 2009-10-10  Jim Meyering  <meyering@redhat.com>
34357
34358         stat-time-tests: check for the usleep function
34359         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34360
34361 2009-10-10  Bruno Haible  <bruno@clisp.org>
34362
34363         * modules/xnanosleep: Put the Link section after the Include section.
34364
34365 2009-10-09  Eric Blake  <ebb9@byu.net>
34366
34367         dup2: work around FreeBSD 6.1 bug
34368         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34369         * doc/posix-functions/dup2.texi (dup2): Document it.
34370         Reported by Nelson H. F. Beebe and Jim Meyering.
34371
34372         test-stat-time: port to buggy NFS clients
34373         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34374         (test_ctime): Also skip test if mtime and ctime are skewed.
34375
34376         maint: prefer 'file system' over 'filesystem'
34377         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34378         * doc/posix-functions/lstat.texi (lstat): Likewise.
34379         * lib/file-has-acl.c (file_has_acl): Likewise.
34380         * lib/fwriteerror.c [TEST]: Likewise.
34381         * tests/test-areadlink.h (test_areadlink): Likewise.
34382         * tests/test-areadlinkat-with-size.c (main): Likewise.
34383         * tests/test-areadlinkat.c (main): Likewise.
34384         * tests/test-canonicalize-lgpl.c (main): Likewise.
34385         * tests/test-canonicalize.c (main): Likewise.
34386         * tests/test-fstatat.c (main): Likewise.
34387         * tests/test-linkat.c (main): Likewise.
34388         * tests/test-lstat.h (test_lstat_func): Likewise.
34389         * tests/test-mkdir.h (test_mkdir): Likewise.
34390         * tests/test-readlink.h (test_readlink): Likewise.
34391         * tests/test-remove.c (main): Likewise.
34392         * tests/test-rename.h (test_rename): Likewise.
34393         * tests/test-renameat.c (main): Likewise.
34394         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34395         * tests/test-symlink.h (test_symlink): Likewise.
34396         * tests/test-symlinkat.c (main): Likewise.
34397         * tests/test-unlink.h (test_unlink_func): Likewise.
34398         * tests/test-unlinkat.c (main): Likewise.
34399
34400         maint: make realtime library usage explicit
34401         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34402         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34403         * modules/settime (Link): Likewise.
34404         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34405
34406         test-stat-time: speed up execution
34407         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34408         warning on mingw.
34409         (nap): New helper function.
34410         (prepare_test): Use it to reduce sleep time.
34411         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34412         execution.
34413         * modules/stat-time-tests (configure.ac): Check for usleep.
34414
34415 2009-10-09  Jim Meyering  <meyering@redhat.com>
34416
34417         selinux-h: always use getfilecon wrappers
34418         * lib/getfilecon.c: New file.
34419         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34420         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34421         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34422         (fgetfilecon): Provide a stub.
34423         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34424         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34425         file unconditionally.
34426         When <selinux/selinux.h> is found, arrange to use wrappers.
34427         * modules/selinux-h (Files): Add getfilecon.c.
34428         (Makefile.am): Substitute include-next-related bits
34429         into the now-always-generated selinux/selinux.h file.
34430         * doc/glibc-functions/lgetfilecon.texi: New file.
34431         * doc/glibc-functions/fgetfilecon.texi: New file.
34432         * doc/glibc-functions/getfilecon.texi: New file.
34433         * doc/glibc-functions/getfilecon-desc.texi: New file.
34434         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34435         which to pull in the new files.
34436         * MODULES.html.sh (Misc): Add selinux-h.
34437
34438 2009-10-08  Jim Meyering  <meyering@redhat.com>
34439
34440         unistd: fix comment typo
34441         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34442
34443 2009-10-08  Eric Blake  <ebb9@byu.net>
34444
34445         areadlink: use SIZE_MAX consistently
34446         * modules/areadlink (Depends-on): Add stdint.
34447         * modules/areadlink-with-size (Depends-on): Likewise.
34448         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34449         gives NULL; drop sys/types, since unistd gives size_t; and add
34450         stdint for SIZE_MAX.
34451         (SIZE_MAX): Rely on headers.
34452         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34453         and add stdint.
34454         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34455         (SIZE_MAX): Likewise.
34456         (INITIAL_BUF_SIZE): Turn into enum.
34457         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34458
34459 2009-10-08  Jim Meyering  <meyering@redhat.com>
34460
34461         areadlinkat: avoid compilation failure
34462         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34463         Fix typo in comment.
34464
34465 2009-10-07  Eric Blake  <ebb9@byu.net>
34466
34467         areadlinkat-with-size: new module
34468         * modules/areadlinkat-with-size: New module.
34469         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34470         * lib/areadlink.h (areadlinkat): Declare it.
34471         * MODULES.html.sh (File system functions): Mention it.
34472         * modules/areadlinkat-with-size-tests: New test.
34473         * tests/test-areadlinkat-with-size.c: New file.
34474
34475         xreadlinkat: new module
34476         * modules/xreadlinkat: New module.
34477         * lib/xreadlinkat.c (xreadlinkat): New file.
34478         * lib/xreadlink.h (xreadlinkat): Declare it.
34479         * MODULES.html.sh (File system functions): Mention it.
34480
34481         areadlinkat: new module
34482         * lib/at-func.c (FUNC_FAIL): New define.
34483         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34484         * modules/areadlinkat: New module.
34485         * lib/linkat.c (areadlinkat): Move...
34486         * lib/areadlinkat.c (areadlinkat): ...to new file.
34487         * lib/areadlink.h (areadlinkat): Declare it.
34488         * modules/linkat (Depends-on): Add areadlinkat.
34489         * MODULES.html.sh (File system functions): Mention it.
34490         * modules/areadlinkat-tests: New test.
34491         * tests/test-areadlinkat.c: New file.
34492
34493         areadlink, areadlink-with-size: add tests
34494         * modules/areadlink-tests: New test.
34495         * modules/areadlink-with-size-tests: Likewise.
34496         * tests/test-areadlink.h: New file.
34497         * tests/test-areadlink.c: Likewise.
34498         * tests/test-areadlink-with-size.c: Likewise.
34499
34500         maint: minor cleanups
34501         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34502         _UNUSED_PARAMETER_ instead.
34503         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34504         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34505         * modules/linkat-tests (Files): Distribute test-link.h.
34506
34507         openat, utimens: whitespace cleanup
34508         * lib/openat.c: Prefer space throughout, rather than mix of 8
34509         spaces vs. tabs.
34510         * lib/at-func.c: Likewise.
34511         * lib/utimens.c: Likewise.
34512
34513         openat: avoid using wrong fd
34514         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34515         working directory chooses same fd.
34516         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34517
34518         mkdir, mkdirat: fix cygwin 1.5.x bug
34519         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34520         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34521         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34522         bug.
34523         (gl_PREREQ_MKDIR): Delete unused macro.
34524         * modules/mkdir (Files): Track file rename.
34525         (configure.ac): Update macro name.
34526         * modules/openat (Depends-on): Add mkdir.
34527         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34528
34529         mkdir, mkdirat: add tests
34530         * modules/mkdir-tests: New test.
34531         * tests/test-mkdir.h: New file.
34532         * tests/test-mkdir.c: Likewise.
34533         * tests/test-mkdirat.c: Likewise.
34534         * modules/openat-tests (Files): Add new files.
34535         (Makefile.am): Run new test.
34536
34537 2009-10-06  Eric Blake  <ebb9@byu.net>
34538
34539         doc: tweak *at function documentation
34540         * doc/posix-functions/faccessat.texi (faccessat): Mention
34541         known issue with replacement.
34542         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34543         * doc/posix-functions/linkat.texi (linkat): Likewise.
34544         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34545         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34546         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34547         * doc/posix-functions/renameat.texi (renameat): Likewise.
34548         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34549
34550         openat: fix GNU/Hurd bug in unlinkat
34551         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34552         broken.
34553         * doc/posix-functions/unlink.texi (unlink): Document this.
34554         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34555
34556         fdopendir: fix GNU/Hurd bug
34557         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34558         allowing non-directory fds.
34559         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34560         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34561         * modules/dirent (Makefile.am): Substitute it.
34562         * lib/dirent.in.h (fdopendir): Declare replacement.
34563         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34564         * tests/test-fdopendir.c (main): Test something other than
34565         /dev/null, since on Hurd that behaves like a directory.
34566
34567         test-symlink: port to GNU/Hurd
34568         * tests/test-symlink.h (test_symlink): Relax expected errno.
34569
34570         doc: tweak more cygwin information
34571         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34572         now compatible with glibc.
34573         * doc/posix-functions/getopt.texi (getopt): Likewise.
34574
34575         getopt-gnu: add another test
34576         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34577         guarantee behavior relied on by m4.
34578         * tests/test-getopt.c (main): Use it.
34579         * modules/getopt-posix-tests (Depends-on): Add setenv.
34580         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34581
34582         getopt: fix compilation on darwin
34583         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34584         include.
34585         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34586         Reported by Ludovic Courtès.
34587
34588 2009-10-06  Bruno Haible  <bruno@clisp.org>
34589
34590         * modules/size_max (Description): Discourage its use.
34591         Reported by Simon Josefsson.
34592
34593 2009-10-06  Jim Meyering  <meyering@redhat.com>
34594
34595         linkat: avoid compilation failure
34596         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34597
34598 2009-10-05  Eric Blake  <ebb9@byu.net>
34599
34600         linkat: support Linux 2.6.17
34601         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34602         linkat on Linux, but allow cache variable override.
34603         * lib/linkat.c (rpl_linkat): Define override.
34604         * modules/linkat (Depends-on): Add symlinkat.
34605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34606         * modules/unistd (Makefile.am): Substitute it.
34607         * lib/unistd.in.h (linkat): Declare replacement.
34608         Reported by Pádraig Brady.
34609
34610         quotearg: port test to systems with C.UTF-8 locale
34611         * tests/test-quotearg.c (struct result_strings): Add another
34612         member, differentiating between C.ASCII and C.UTF-8 handling.
34613         (compare_strings): Add parameter.
34614         (main): Adjust all callers.
34615
34616         getopt: avoid clash with FreeBSD _getopt_internal
34617         * lib/getopt.in.h (_getopt_internal): Override the name.
34618         * lib/getopt_int.h (includes): Pick up any overrides.
34619         Reported by Reuben Thomas.
34620
34621         hash: allow C89 compilation
34622         * lib/hash.c (check_tuning): Move declaration before statement.
34623         Reported by Reuben Thomas.
34624
34625 2009-10-05  Karl Berry  <karl@gnu.org>
34626
34627         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34628
34629 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34630             Bruno Haible  <bruno@clisp.org>
34631
34632         * lib/uname.c (uname): Use a table-driven algorithm to compute
34633         Windows NT versions.
34634
34635 2009-10-04  Bruno Haible  <bruno@clisp.org>
34636
34637         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34638         program_invocation_short_name.
34639         * modules/progname (configure.ac): Test for presence of
34640         program_invocation_short_name.
34641         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34642
34643 2009-10-04  Bruno Haible  <bruno@clisp.org>
34644
34645         * lib/progname.c (set_program_name): Fix comment.
34646         Reported by Jim Meyering.
34647
34648 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34649             Bruno Haible  <bruno@clisp.org>
34650
34651         * lib/uname.c: Include <string.h>.
34652         (uname): Do only one call to GetVersionEx in the common case.
34653
34654 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34655             Bruno Haible  <bruno@clisp.org>
34656
34657         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34658         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34659         (uname): Add support for Windows CE and various non-x86 CPU types.
34660
34661 2009-10-03  Bruno Haible  <bruno@clisp.org>
34662
34663         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34664         invocation to tests/configure.ac.
34665         Reported by Ian Beckwith <ianb@erislabs.net>.
34666
34667 2009-10-02  Eric Blake  <ebb9@byu.net>
34668
34669         fchdir: avoid compiler warning
34670         * lib/fchdir.c (canonicalize_file_name)
34671         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34672
34673         test-open: support mingw errno values
34674         * tests/test-open.h (test_open): Relax test.
34675         * tests/test-fopen.h (test_fopen): Likewise.
34676         * tests/test-openat-safer.c (main): Likewise.
34677
34678         open: fix opening directory on mingw
34679         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34680
34681         test-open: on GNU/Hurd, /dev/null is a directory
34682         * tests/test-fopen.h (main): Rename...
34683         (test_fopen): ...to this.  Use a guaranteed non-directory when
34684         confirming open behavior on trailing slash.
34685         * tests/test-openat-safer.c (main): Likewise.
34686         * tests/test-open.h (main): Likewise....
34687         (test_open): ...to this.
34688         * tests/test-fopen.c (main): Adjust caller.
34689         * tests/test-fopen-safer.c (main): Likewise.
34690         * tests/test-open.c (main): Likewise.
34691         * tests/test-fcntl-safer.c (main): Likewise.
34692         Reported by Samuel Thibault.
34693
34694         rename, fchdir: don't ignore chdir failure
34695         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34696         * lib/rename.c (rpl_rename) [W32]: Likewise.
34697         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34698         an empty destination directory if source cannot be renamed,
34699         although there is still possibility for failure.
34700         * doc/posix-functions/rename.texi (rename): Document the race.
34701         Reported by Jim Meyering.
34702
34703         maint: cleanup whitespace in recent commits
34704         * lib/rename.c (rpl_rename): Remove tabs.
34705         * tests/test-link.h (test_link): Likewise.
34706         * lib/fchdir.c (get_name): Likewise.
34707         Reported by Jim Meyering.
34708
34709 2009-10-02  Ben Pfaff  <blp@gnu.org>
34710
34711         relocatable-prog-wrapper: Add missing dependency on
34712         double-slash-root.
34713         * modules/relocatable-prog-wrapper: Add dependency.
34714         Reported by Ian Beckwith <ianb@erislabs.net>.
34715
34716 2009-10-02  Eric Blake  <ebb9@byu.net>
34717
34718         renameat: fix Solaris bugs
34719         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34720         needed fixing.
34721         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34722         * modules/stdio (Makefile.am): Substitute it.
34723         * lib/stdio.in.h (renameat): Declare replacement.
34724         * lib/renameat.c (rpl_renameat): Implement fix.
34725
34726         renameat: new module
34727         * modules/renameat: New file.
34728         * lib/renameat.c (renameat): Likewise.
34729         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34730         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34731         * modules/stdio (Makefile.am): Substitute them.
34732         * lib/stdio.in.h (renameat): Declare it.
34733         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34734         * doc/posix-functions/renameat.texi (renameat): Likewise.
34735         * modules/renameat-tests: New test.
34736         * tests/test-renameat.c: Likewise.
34737
34738         rename: fix mingw bugs
34739         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34740         directory overwrite bugs.
34741
34742         rename: fix another cygwin 1.5 bug
34743         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34744         checks.
34745         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34746         unnecessary cygwin workarounds.  Also work around bug with moving
34747         full directory onto an empty one.
34748         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34749
34750         rename-dest-slash: merge into rename module
34751         * modules/rename-dest-slash (Status): Mark obsolete.
34752         (Depends-on): Add rename.
34753         (Files): Let rename do it all.
34754         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34755         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34756         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34757         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34758         * lib/rename.c (rpl_rename): Update comments.
34759
34760         rename: fix cygwin 1.5.x bugs
34761         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34762         * lib/rename.c (rpl_rename): Work around them.
34763         * modules/rename (Depends-on): Add same-inode.
34764
34765         rename: fix Solaris 10 bug
34766         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34767         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34768         was the only bug.
34769
34770         rename: fix Solaris 9 bug
34771         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34772         on non-directory.  Avoid calling exit.
34773         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34774         strdup.
34775         * modules/rename-tests (Depends-on): Drop lstat.
34776         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34777         (gl_PREREQ_RENAME): Delete unused macro.
34778
34779         rename-dest-slash: fix NetBSD bug
34780         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34781         links.
34782         * modules/rename-dest-slash (Depends-on): Add same-inode.
34783
34784         rename-tests: new test, exposes several platform bugs
34785         * modules/rename-tests: New file.
34786         * tests/test-rename.h: Likewise.
34787         * tests/test-rename.c: Likewise.
34788         * doc/posix-functions/rename.texi (rename): Improve documentation,
34789         including bugs that will eventually be fixed in gnulib.
34790
34791 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34792
34793         * lib/uname.c: Include <stdlib.h>
34794         (uname): Assume version info is available.
34795
34796 2009-10-02  Jim Meyering  <meyering@redhat.com>
34797
34798         gnu-web-doc-update: correct --help output
34799         * build-aux/gnu-web-doc-update: Make --help output relevant.
34800
34801         gnu-web-doc-update: add standard options
34802         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34803
34804         gnu-web-doc-update: New module.
34805         Use this script to automatically update the on-line web documentation
34806         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34807         * modules/gnu-web-doc-update: New file, from coreutils.
34808         * build-aux/gnu-web-doc-update: New script.
34809
34810 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34811
34812         link: LoadLibrary is not needed.
34813         * lib/link.c: Use GetModuleHandle.
34814
34815 2009-10-01  Eric Blake  <ebb9@byu.net>
34816
34817         getopt: bump serial number
34818         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34819         change.
34820
34821         tests: tighten link, rmdir, and remove tests
34822         * tests/test-link.h (includes): No need to use <config.h> here.
34823         Clean up if directory hard link was created, otherwise test for
34824         trailing '.'.
34825         * tests/test-linkat.c (main): Simplify.
34826         * tests/test-remove.c (main): Enhance test for trailing '.'.
34827         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34828
34829 2009-10-01  Jim Meyering  <meyering@redhat.com>
34830
34831         maint.mk: requiring "make major" was annoying, for a "minor" release.
34832         What is intended is "stable", to contrast with alpha and beta,
34833         so require "make stable", not "make major".
34834         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34835         (get_tool_versions): Likewise.
34836         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34837
34838 2009-09-30  Ben Pfaff  <blp@gnu.org>
34839
34840         Fix broken build of replacement for Windows tmpfile().
34841         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34842         flags argument added along with the 'mkostemp' module.
34843
34844 2009-09-28  Bruno Haible  <bruno@clisp.org>
34845
34846         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34847         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34848         to 'remove_elt'.
34849         (gl_list_remove): Update.
34850         * lib/gl_list.c (gl_list_remove): Update.
34851         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34852         to 'remove_elt'.
34853         (gl_oset_remove): Update.
34854         * lib/gl_list.c (gl_oset_remove): Update.
34855         Reported by Eric Blake.
34856
34857 2009-09-28  Eric Blake  <ebb9@byu.net>
34858
34859         doc: mention yet more cygwin 1.7 status
34860         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34861         cygwin.
34862         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34863         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34864
34865         argp: fix test failure
34866         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34867         that are not upper-case.  Pass correct range to tolower.
34868
34869 2009-09-27  Jim Meyering  <meyering@redhat.com>
34870
34871         test-yesno: work around sparc-dash here-document infelicity
34872         Without this change, the literal \177 byte in a here document
34873         would make dash 0.5.5.1-3 access uninitialized memory.
34874         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34875         Instead, use a marker, "@", and filter through tr to create the desired
34876         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34877
34878 2009-09-27  Bruno Haible  <bruno@clisp.org>
34879
34880         Disable untested support for new flavours of ACLs on AIX.
34881         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34882         progress.
34883         * lib/set-mode-acl.c (qset_acl): Likewise.
34884
34885 2008-12-07  Bruno Haible  <bruno@clisp.org>
34886
34887         Add support for new flavours of ACLs on AIX. (Untested.)
34888         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34889         (file_has_acl): Add support for newer AIX.
34890         * lib/set-mode-acl.c (qset_acl): Likewise.
34891         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34892         Rainer Tammer <tammer@tammer.net>.
34893
34894 2009-09-26  Eric Blake  <ebb9@byu.net>
34895
34896         argp: fix compilation of getopt
34897         * lib/getopt.in.h (includes): Use different guard than glibc.
34898         Reported by Sergey Poznyakoff.
34899
34900         doc: mention more cygwin 1.7 status
34901         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34902         bug.
34903         * doc/posix-functions/execl.texi (execl): Likewise.
34904         * doc/posix-functions/execle.texi (execle): Likewise.
34905         * doc/posix-functions/execlp.texi (execlp): Likewise.
34906         * doc/posix-functions/execv.texi (execv): Likewise.
34907         * doc/posix-functions/execve.texi (execve): Likewise.
34908         * doc/posix-functions/execvp.texi (execvp): Likewise.
34909         * doc/glibc-functions/canonicalize_file_name.texi
34910         (canonicalize_file_name): Cygwin 1.7 now provides this.
34911         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34912         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34913         on AT_SYMLINK_NOFOLLOW.
34914
34915 2009-09-24  Eric Blake  <ebb9@byu.net>
34916
34917         test-linkat: make test more robust
34918         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34919
34920         getopt: fix inclusion guards for cygwin
34921         * modules/getopt-posix (Depends-on): Add include-next.
34922         (Makefile.am): Substitute more items in replacement header.
34923         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34924         <getopt.h>.
34925         * lib/getopt.in.h (includes): Use split inclusion guard, and
34926         prefer <getopt.h> over include <unistd.h> when one is present.
34927         (option): Also override name of 'struct option'.
34928
34929         same-inode: revert prior change; it is not yet ready
34930         * NEWS: Undo mention of this change.
34931         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34932         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34933         * lib/cycle-check.c (cycle_check): Likewise.
34934         * lib/same.c (same_name): Likewise.
34935         * lib/at-func2.c (at_func2): Likewise.
34936
34937 2009-09-23  Eric Blake  <ebb9@byu.net>
34938
34939         linkat: new module
34940         * modules/linkat: New file.
34941         * lib/at-func2.c (at_func2): Likewise.
34942         * lib/linkat.c (linkat): Likewise.
34943         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34944         * lib/openat-priv.h (at_func2): Add declaration.
34945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34946         * modules/unistd (Makefile.am): Substitute them.
34947         * lib/unistd.in.h (linkat): Declare it.
34948         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34949         * doc/posix-functions/linkat.texi (linkat): Likewise.
34950         * doc/posix-functions/link.texi (link): Tweak wording.
34951         * tests/test-link.c (main): Move guts...
34952         * tests/test-link.h (test_link): ...into new file.
34953         * modules/linkat-tests: New test.
34954         * tests/test-linkat.c: Likewise.
34955         * modules/link-tests (Files): Ship new file.
34956         (Depends-on): Add stdbool.
34957
34958         dirname: add library-safe mdir_name
34959         * lib/dirname.h (mdir_name): New prototype.
34960         * lib/dirname.c (dir_name): Move guts...
34961         (mdir_name): ...to new function that avoids xalloc_die.
34962
34963         fchdir: another mingw fix
34964         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34965         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34966         on mingw (where it has not yet been ported), and make it optional
34967         elsewhere.
34968         (_gl_register_fd): Use it.
34969
34970         same-inode: make SAME_INODE tri-state, to port to mingw
34971         * NEWS: Mention this change.
34972         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34973         st_ino always being 0.
34974         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34975         * lib/cycle-check.c (cycle_check): Likewise.
34976         * lib/same.c (same_name): Likewise.
34977
34978         lstat: avoid mingw compilation error
34979         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34980         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34981         lstat ourselves.
34982         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34983         was adequate.
34984         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34985         the checks for lstat.
34986         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34987
34988         link: fix test failure on Solaris 9
34989         * lib/link.c (rpl_link): Don't assume link will catch bogus
34990         trailing slash on source.
34991
34992         test-symlinkat: enhance test
34993         * tests/test-readlink.c (main): Move guts...
34994         * tests/test-readlink.h (test_readlink): ...into new file.
34995         * tests/test-symlink.c (main): Move guts...
34996         * tests/test-symlink.h (test_symlink): ...into new file.
34997         * tests/test-symlinkat.c (main): Use new files for further
34998         coverage.
34999         (do_symlink, do_readlink): New helper functions.
35000         * modules/symlink-tests (Files): Ship new file.
35001         (Depends-on): Add stdbool.
35002         * modules/readlink-tests (Files): Ship new file.
35003         (Depends-on): Add stdbool.
35004         * modules/symlinkat-tests (Files): Use new files.
35005
35006 2009-09-23  Eric Blake  <ebb9@byu.net>
35007
35008         readlink: document portability issue with symlink length
35009         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35010         systems have bogus st_size on symlinks, and mention the
35011         areadlink-with-size module.
35012         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35013         * doc/posix-functions/readlink.texi (readlink): Mention the
35014         areadlink module, and ERANGE failure.
35015         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35016         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35017
35018         readlink: fix Solaris 9 bug with trailing slash
35019         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35020         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35021         * doc/posix-functions/readlink.texi (readlink): Document this.
35022         * modules/readlink-tests: New test.
35023         * tests/test-readlink.c: Likewise.
35024
35025         readlink: fix cygwin 1.5.x bug with return type
35026         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35027         * lib/unistd.in.h (readlink): Use ssize_t.
35028         * lib/readlink.c (readlink): Likewise.
35029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35030         * modules/unistd (Makefile.am): Substitute it.
35031         * lib/unistd.in.h (readlink): Declare replacement.
35032         * doc/posix-functions/readlink.texi (readlink): Document this.
35033
35034         symlink: use throughout gnulib
35035         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35036         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35037         symlink is not used.
35038         * modules/symlinkat (Depends-on): Add symlink.
35039         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35040         * modules/canonicalize-tests (Depends-on): Likewise.
35041         * modules/lstat-tests (Depends-on): Likewise.
35042         * modules/openat-tests (Depends-on): Likewise.
35043         * modules/remove-tests (Depends-on): Likewise.
35044         * modules/rmdir-tests (Depends-on): Likewise.
35045         * modules/unlink-tests (Depends-on): Likewise.
35046         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35047         * tests/test-canonicalize.c (symlink): Likewise.
35048         * tests/test-fstatat.c (symlink): Likewise.
35049         * tests/test-lstat.c (symlink): Likewise.
35050         * tests/test-remove.c (symlink): Likewise.
35051         * tests/test-rmdir.c (symlink): Likewise.
35052         * tests/test-unlink.c (symlink): Likewise.
35053         * tests/test-unlinkat.c (symlink): Likewise.
35054
35055         symlink: new module, for Solaris 9 bug
35056         * modules/symlink: New file.
35057         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35058         * lib/symlink.c: Likewise.
35059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35060         * modules/unistd (Makefile.am): Substitute them.
35061         * lib/unistd.in.h (symlink): Declare replacement.
35062         * MODULES.html.sh (File system functions): Mention it.
35063         * doc/posix-functions/symlink.texi (symlink): Likewise.
35064         * modules/symlink-tests: New test.
35065         * tests/test-symlink.c: Likewise.
35066
35067 2009-09-23  Bruno Haible  <bruno@clisp.org>
35068
35069         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35070         when needed.
35071         Test case: gnulib-tool --import --with-tests atexit inttypes.
35072         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35073
35074 2009-09-23  Bruno Haible  <bruno@clisp.org>
35075
35076         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35077         subcommand, not in a subshell.
35078
35079 2009-09-22  Eric Blake  <ebb9@byu.net>
35080
35081         unistd: sort replacement declarations
35082         * lib/unistd.in.h: Sort declarations.
35083
35084         open, openat: minor optimization
35085         * lib/open.c (open): If open succeeded, len is non-zero.
35086         * lib/openat.c (rpl_openat): Likewise.
35087
35088         link-follow: ensure correct result
35089         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35090         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35091         distinguish between possible failures.
35092
35093 2009-09-21  Eric Blake  <ebb9@byu.net>
35094
35095         fts: avoid compiler warning
35096         * lib/fts.c (dirent_inode_sort_may_be_useful)
35097         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35098
35099 2009-09-19  Bruno Haible  <bruno@clisp.org>
35100
35101         * lib/progreloc.c (canonicalize_file_name): New declaration.
35102
35103 2009-09-19  Eric Blake  <ebb9@byu.net>
35104
35105         link: fix quoting
35106         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35107
35108         openat: fix openat bugs on Solaris 9
35109         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35110         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35111         * modules/openat (Depends-on): Add open.
35112         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35113         * modules/fcntl-h (Makefile.am): Substitute it.
35114         * lib/fcntl.in.h (openat): Declare replacement.
35115         * doc/posix-functions/openat.texi (openat): Document this.
35116
35117         openat: move fstatat and unlinkat into correct files
35118         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35119         compiled.
35120         * lib/openat.c (fstatat, unlinkat): Move...
35121         * lib/fstatat.c (fstatat): ...into correct files.
35122         * lib/unlinkat.c (unlinkat): Likewise.
35123
35124         openat: fix unlinkat bugs on Solaris 9
35125         * lib/unlinkat.c (unlinkat): New file.
35126         * modules/openat (Depends-on): Add unlink.
35127         (Files): Distribute it.
35128         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35129         trailing slash behavior is broken.
35130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35131         * modules/unistd (Makefile.am): Substitute it.
35132         * lib/unistd.in.h (unlinkat): Declare replacement.
35133         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35134
35135         openat: fix fstatat bugs on Solaris 9
35136         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35137         stat.
35138         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35139
35140         test-unlinkat: enhance test, to expose Solaris 9 bug
35141         * tests/test-unlink.c (main): Factor guts...
35142         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35143         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35144         * tests/test-rmdir.c (main): Adjust caller.
35145         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35146         (unlinker): New helper function.
35147         (rmdirat): Enhance check.
35148         * modules/rmdir-tests (Depends-on): Add stdbool.
35149         * modules/unlink-tests (Depends-on): Likewise.
35150         (Files): Add test-unlink.h.
35151         * modules/openat-tests (Files): Likewise.
35152         (Depends-on): Add unlinkdir.
35153
35154         test-fstatat: new test, to expose Solaris 9 bugs
35155         * tests/test-stat.c (main): Factor guts...
35156         * tests/test-stat.h (test_stat_func): ...into new file.
35157         * tests/test-lstat.c (main): Factor guts...
35158         * tests/test-lstat.h (test_lstat_func): ...into new file.
35159         * tests/test-fstatat.c: New file.
35160         * modules/stat-tests (Files): Add test-stat.h.
35161         * modules/lstat-tests (Files): Add test-lstat.h.
35162         (Depends-on): Add stdbool.
35163         * modules/openat-tests (Depends-on): Add pathmax.
35164         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35165         (Makefile.am): Run new test.
35166
35167         remove: new module, for mingw and Solaris 9 bugs
35168         * modules/remove: New file.
35169         * lib/remove.c: Likewise.
35170         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35171         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35172         * modules/stdio (Makefile.am): Use them.
35173         * lib/stdio.in.h (remove): Declare replacement.
35174         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35175         * doc/posix-functions/remove.texi (remove): Likewise.
35176         * modules/remove-tests: New test.
35177         * tests/test-remove.c: Likewise.
35178
35179         unlink: new module, for Solaris 9 bug
35180         * modules/unlink: New file.
35181         * lib/unlink.c: Likewise.
35182         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35184         * modules/unistd (Makefile.am): Use them.
35185         * lib/unistd.in.h (stat): Declare replacement.
35186         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35187         * doc/posix-functions/unlink.texi (unlink): Likewise.
35188         * modules/unlink-tests: New test.
35189         * tests/test-unlink.c: Likewise.
35190
35191         lstat: fix Solaris 9 bug
35192         * lib/lstat.c (lstat): Also check for trailing slash on
35193         non-symlink, non-directories.  Use stat module to simplify logic.
35194         * doc/posix-functions/lstat.texi (lstat): Document it.
35195         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35196         (configure.ac): Check for symlink.
35197         * tests/test-lstat.c (main): Add more tests.
35198
35199         stat: add as dependency to other modules
35200         * modules/chown (Depends-on): Add stat.
35201         * modules/euidaccess (Depends-on): Likewise.
35202         * modules/fchdir (Depends-on): Likewise.
35203         * modules/isdir (Depends-on): Likewise.
35204         * modules/link (Depends-on): Likewise.
35205         * modules/lstat (Depends-on): Likewise.
35206         * modules/mkdir-p (Depends-on): Likewise.
35207         * modules/modechange (Depends-on): Likewise.
35208         * modules/open (Depends-on): Likewise.
35209         * modules/readlink (Depends-on): Likewise.
35210         * modules/same (Depends-on): Likewise.
35211
35212         stat: fix Solaris 9 bug
35213         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35214         slash.
35215         * lib/stat.c (rpl_stat): Work around it.
35216         * doc/posix-functions/stat.texi (stat): Update documentation.
35217
35218         stat: new module, for mingw bug
35219         * modules/stat: New file.
35220         * lib/stat.c: Likewise.
35221         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35222         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35223         * modules/sys_stat (Makefile.am): Use them.
35224         * lib/sys_stat.in.h (stat): Declare replacement.
35225         * lib/openat.c (fstatat): Deal with lstat and stat being function
35226         macros.
35227         * modules/openat (Depends-on): Add inline.
35228         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35229         * doc/posix-functions/stat.texi (stat): Likewise.
35230         * modules/stat-tests: New test.
35231         * tests/test-stat.c: Likewise.
35232
35233 2009-09-19  Jim Meyering  <meyering@redhat.com>
35234
35235         syntax-check: detect unnecessary inclusion of canonicalize.h
35236         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35237
35238 2009-09-19  Eric Blake  <ebb9@byu.net>
35239
35240         canonicalize-lgpl: adjust clients to use correct header
35241         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35242         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35243         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35244         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35245         * lib/progreloc.c (includes): Likewise.
35246
35247 2009-09-19  Jim Meyering  <meyering@redhat.com>
35248
35249         test-posixtm.c: correct a comment
35250         * tests/test-posixtm.c: Correct first-line comment.
35251         Spotted by Eric Blake.
35252
35253 2009-09-16  Jim Meyering  <meyering@redhat.com>
35254
35255         posixtm-tests: make T const-correct; add a test case
35256         * tests/test-posixtm.c (T): Declare const.
35257         Add a test for -(2^31+1).
35258         Remove useless can-succeed-only-in-2002 test.
35259
35260         posixtm-tests: adjust the sole failing test
35261         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35262         expected output matches what mktime now produces.  Cross-checked via
35263         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35264
35265         posixtm: move #ifdef'd tests into a new module
35266         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35267         * tests/test-posixtm.c: ... this new file.
35268         * modules/posixtm-tests: New module.
35269
35270 2009-09-19  Eric Blake  <ebb9@byu.net>
35271
35272         openat: simplify use of at-func.c
35273         * lib/at-func.c (includes): Include prerequisites here, to
35274         simplify requirements on client files.
35275         * lib/openat-priv.h: Add double-inclusion guard.
35276         * lib/faccessat.c (includes): Simplify.
35277         * lib/fchmodat.c (includes): Likewise.
35278         * lib/fchownat.c (includes): Likewise.
35279         * lib/mkdirat.c (includes): Likewise.
35280         * lib/mkfifoat.c (includes): Likewise.
35281         * lib/symlinkat.c (includes): Likewise.
35282
35283         openat: allow return of fd 0
35284         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35285         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35286         unistd-safer.
35287         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35288         <fcntl.h>; this module does not leak fds.
35289         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35290         must be allowed to return 0, leaving openat_safer to add the
35291         safety.
35292         (openat_permissive): Avoid writing to just-opened fd 2 if
35293         restoring the current directory fails.
35294         * lib/openat-die.c (openat_restore_fail): Add comment.
35295         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35296         (save_cwd): Guarantee safe fd, but without use of open_safer.
35297         * tests/test-openat.c: New test.
35298         * modules/openat-tests (Files, Makefile.am): Distribute and build
35299         new file.
35300
35301         relocatable-prog-wrapper: fix build
35302         * modules/relocatable-prog-wrapper (Files): Update name of
35303         canonicalize m4 file, broken on 2009-09-17.
35304         Reported by emad hajjar <aleppos@hotmail.com>.
35305
35306 2009-09-19  Bruno Haible  <bruno@clisp.org>
35307
35308         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35309         * lib/safe-alloc.c: Likewise.
35310         Reported by Ian Beckwith <ianb@erislabs.net>.
35311
35312 2009-09-18  Bruno Haible  <bruno@clisp.org>
35313
35314         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35315         Reported by <erobles@sensacd.com.mx>.
35316
35317 2009-09-17  Eric Blake  <ebb9@byu.net>
35318
35319         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35320         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35321         slashes when checking if last component is missing.
35322         * tests/test-canonicalize.c (main): Test this.
35323
35324         canonicalize, canonicalize-lgpl: honor // if distinct from /
35325         * modules/canonicalize (Files): Add double-slash-root.m4.
35326         * modules/canonicalize-lgpl (Files): Likewise.
35327         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35328         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35329         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35330         fallback definition.
35331         (canonicalize_filename_mode): Use it to protect //.
35332         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35333         (__realpath): Likewise.
35334         * tests/test-canonicalize.c (main): Test this.
35335         * tests/test-canonicalize-lgpl.c (main): Likewise.
35336         * modules/canonicalize-tests (Depends-on): Add same-inode.
35337         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35338
35339         canonicalize-lgpl: fix glibc bug with trailing slash
35340         * m4/canonicalize-lgpl.m4: Move contents...
35341         * m4/canonicalize.m4: ...here.
35342         (gl_CANONICALIZE_LGPL): Factor realpath check...
35343         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35344         glibc 2.3.5 bug, fixed 2005-04-27.
35345         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35346         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35347         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35348         * modules/canonicalize-lgpl (Files): Manage file rename.
35349         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35350         * modules/stdlib (Makefile.am): Substitute witness.
35351         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35352         is needed.
35353         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35354         replacement is required.
35355         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35356         * doc/glibc-functions/canonicalize_file_name.texi
35357         (canonicalize_file_name): Document this.
35358         * doc/posix-functions/realpath.texi (realpath): Likewise.
35359
35360         canonicalize-lgpl: reject non-directory with trailing slash
35361         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35362         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35363         catches failures in glibc 2.3.5.
35364         * tests/test-canonicalize.c (main): Likewise.
35365
35366         canonicalize-lgpl: use native realpath if it works
35367         * lib/canonicalize-lgpl.c (realpath): Guard with
35368         FUNC_REALPATH_WORKS.
35369         * lib/stdlib.in.h (realpath): Make declaration optional based on
35370         HAVE_REALPATH.
35371         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35372         native realpath works.
35373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35374         * modules/stdlib (Makefile.am): Substitute witness.
35375
35376         canonicalize, canonicalize-lgpl: use <stdlib.h>
35377         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35378         (Include): Mention <stdlib.h>.
35379         (configure.ac): Mention functions we provide.
35380         * modules/canonicalize (configure.ac): Likewise.
35381         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35382         realpath if canonicalize_file_name is missing.
35383         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35384         * modules/stdlib (Makefile.am): Substitute witnesses.
35385         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35386         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35387         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35388         * NEWS: Document this.
35389         * doc/glibc-functions/canonicalize_file_name.texi
35390         (canonicalize_file_name): Likewise.
35391         * doc/posix-functions/realpath.texi (realpath): Likewise.
35392         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35393
35394         test-canonicalize: consolidate into single C program
35395         * tests/test-canonicalize.sh: Delete; move setup into...
35396         * tests/test-canonicalize.c (main): ...the program, making it
35397         easier to run in debugger.  Add some tests.
35398         * modules/canonicalize-tests (Files): Remove unused file.
35399         (Depends-on): Add progname.
35400         (configure.ac, Makefile.am): Simplify.
35401
35402         test-canonicalize-lgpl: consolidate into single C program
35403         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35404         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35405         easier to run in debugger.  Add some tests.
35406         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35407         (configure.ac, Makefile.am): Simplify.
35408
35409         canonicalize: avoid resolvepath
35410         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35411         unnecessary checks.
35412         * lib/canonicalize.c (includes): Simplify.
35413         (canonicalize_file_name): Drop resolvepath implementation.
35414         * modules/canonicalize (Depends-on): Drop filenamecat.
35415
35416         canonicalize: don't lose errno
35417         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35418         over calls to free.
35419
35420         canonicalize: simplify errno handling
35421         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35422         assignment.
35423
35424         canonicalize, canonicalize-lgpl: update module dependencies
35425         * modules/canonicalize (Depends-on): Add extensions, lstat,
35426         pathmax, stdlib.
35427         (Files): Drop pathmax.h.
35428         (configure.ac): Adjust macro name.
35429         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35430         lstat, stdlib, sys_stat.
35431         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35432         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35433         extensions.
35434         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35435         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35436         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35437         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35438         declaration, if available.
35439         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35440         we can rely on the readlink module.
35441         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35442         (includes): Use <unistd.h> unconditionally.
35443
35444 2009-09-17  Eric Blake  <ebb9@byu.net>
35445
35446         maint: make Include sections of modules consistent
35447         * modules/alloca: Use only header name; no need to list #include.
35448         * modules/alloca-opt: Likewise.
35449         * modules/arpa_inet: Likewise.
35450         * modules/canon-host: Likewise.
35451         * modules/configmake: Likewise.
35452         * modules/dirent: Likewise.
35453         * modules/eealloc: Likewise.
35454         * modules/environ: Likewise.
35455         * modules/fchdir: Likewise.
35456         * modules/fcntl: Likewise.
35457         * modules/fcntl-h: Likewise.
35458         * modules/gethrxtime: Likewise.
35459         * modules/gettime: Likewise.
35460         * modules/ignore-value: Likewise.
35461         * modules/inet_ntop: Likewise.
35462         * modules/inet_pton: Likewise.
35463         * modules/inttypes: Likewise.
35464         * modules/isnand-nolibm: Likewise.
35465         * modules/isnanf-nolibm: Likewise.
35466         * modules/mbchar: Likewise.
35467         * modules/mbfile: Likewise.
35468         * modules/mbiter: Likewise.
35469         * modules/mbuiter: Likewise.
35470         * modules/netdb: Likewise.
35471         * modules/netinet_in: Likewise.
35472         * modules/nproc: Likewise.
35473         * modules/pagealign_alloc: Likewise.
35474         * modules/poll: Likewise.
35475         * modules/printf-frexp: Likewise.
35476         * modules/pthread: Likewise.
35477         * modules/putenv: Likewise.
35478         * modules/random_r: Likewise.
35479         * modules/relocatable-prog: Likewise.
35480         * modules/search: Likewise.
35481         * modules/select: Likewise.
35482         * modules/selinux-h: Likewise.
35483         * modules/settime: Likewise.
35484         * modules/signal: Likewise.
35485         * modules/size_max: Likewise.
35486         * modules/socklen: Likewise.
35487         * modules/ssize_t: Likewise.
35488         * modules/stdarg: Likewise.
35489         * modules/stdbool: Likewise.
35490         * modules/stddef: Likewise.
35491         * modules/stdint: Likewise.
35492         * modules/stdio: Likewise.
35493         * modules/stdlib: Likewise.
35494         * modules/string: Likewise.
35495         * modules/strings: Likewise.
35496         * modules/sys_file: Likewise.
35497         * modules/sys_ioctl: Likewise.
35498         * modules/sys_select: Likewise.
35499         * modules/sys_socket: Likewise.
35500         * modules/sys_stat: Likewise.
35501         * modules/sys_time: Likewise.
35502         * modules/sys_times: Likewise.
35503         * modules/sys_utsname: Likewise.
35504         * modules/sys_wait: Likewise.
35505         * modules/sysexits: Likewise.
35506         * modules/time: Likewise.
35507         * modules/times: Likewise.
35508         * modules/tmpfile: Likewise.
35509         * modules/trim: Likewise.
35510         * modules/unistd: Likewise.
35511         * modules/wchar: Likewise.
35512         * modules/wctype: Likewise.
35513
35514 2009-09-17  Bruno Haible  <bruno@clisp.org>
35515
35516         Make getdate.y compile on QNX and NetBSD 5 / i386.
35517         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35518         TIME_T_FITS_IN_LONG_INT.
35519         * lib/getdate.y (long_time_t): New type.
35520         (relative_time): Change type of 'seconds' field to long_time_t.
35521         (get_date): Update types of local variables. Check against overflow
35522         during conversion from long_time_t to time_t.
35523         Reported by Matt Kraai <kraai@ftbfs.org>
35524         and Hasso Tepper <hasso@netbsd.org>.
35525
35526 2009-09-17  Bruno Haible  <bruno@clisp.org>
35527
35528         * modules/COPYING: Update copyright years.
35529         * modules/README: Likeiwse.
35530         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35531         Reported by Ian Beckwith <ianb@erislabs.net>.
35532
35533 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35534
35535         * users.txt: Update references for gnuit package.
35536
35537 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35538
35539         * m4/getdelim.m4: Fix typo in copyright line.
35540
35541 2009-09-17  Bruno Haible  <bruno@clisp.org>
35542
35543         * lib/atoll.c: Use the standard header with GPL copyright.
35544         * lib/argz.in.h: Likewise.
35545         * lib/glob.c: Likewise.
35546         * lib/glob-libc.h: Likewise.
35547         * lib/random_r.c: Likewise.
35548         * lib/siglist.h: Likewise.
35549         * lib/strsignal.c: Likewise.
35550         Reported by Ian Beckwith <ianb@erislabs.net>.
35551
35552 2009-09-17  Eric Blake  <ebb9@byu.net>
35553
35554         rmdir: ensure correct dependency order
35555         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35556
35557 2009-09-17  Bruno Haible  <bruno@clisp.org>
35558
35559         Disable assertion that fails on NetBSD 5 / i386.
35560         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35561         Reported by Sam Steingold <sds@gnu.org>
35562         and Hasso Tepper <hasso@netbsd.org>.
35563
35564 2009-09-16  Eric Blake  <ebb9@byu.net>
35565
35566         unlinkdir: port to mingw
35567         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35568         on which no one can unlink a directory.
35569
35570         stdlib: sort witness names
35571         * modules/stdlib (Makefile.am): Sort replacements.
35572         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35573         * lib/stdlib.in.h: Likewise.
35574
35575         parse-duration-tests: avoid link failure
35576         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35577         LIBINTL.
35578         Reported by Tom G. Christensen.
35579
35580         openat-tests: ensure unlinkat behaves like rmdir
35581         * tests/test-rmdir.c (main): Factor guts...
35582         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35583         * modules/rmdir-tests (Files): Ship new file.
35584         * modules/openat-tests: New test.
35585         * tests/test-unlinkat.c: Likewise.
35586
35587         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35588         * modules/rmdir-errno (Status, Notice): Now obsolete.
35589
35590         rmdir: work around cygwin 1.5.x and mingw bugs
35591         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35592         * lib/rmdir.c (rmdir): Work around it.
35593         * modules/rmdir (Status, Notice): No longer obsolete.
35594         (Files): Add dos.m4.
35595         (Depends-on): Add unistd.
35596         (configure.ac): Set witnesses.
35597         (License): Relax to LGPLv2+.
35598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35599         * modules/unistd (Makefile.am): Substitute witnesses.
35600         * lib/unistd.in.h (rmdir): Declare replacement.
35601         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35602         * modules/rmdir-tests: New tests.
35603         * tests/test-rmdir.c: Likewise.
35604
35605 2009-09-15  Eric Blake  <ebb9@byu.net>
35606
35607         fchdir: improve use of replacement functions
35608         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35609         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35610         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35611         REPLACE_CLOSEDIR.
35612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35613         * modules/sys_stat (Makefile.am): Substitute correct witness.
35614         * modules/dirent (Makefile.am): Likewise.
35615         * modules/unistd (Makefile.am): Likewise.
35616         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35617         * lib/unistd.in.h (dup): Likewise.
35618         * lib/sys_stat.in.h (fstat): Likewise.
35619
35620         maint: ignore gnulib-tool temp files
35621         * .gitignore: Ignore files created during gnulib-tool --test.
35622
35623 2009-09-13  Jim Meyering  <meyering@redhat.com>
35624
35625         posixtm: don't reject a time that specify "60" as the number of seconds
35626         * lib/posixtm.c (posixtime): The code to reject invalid dates
35627         would also reject a time specified with the .60 suffix.
35628         But POSIX allows that, in order to accommodate leap seconds.
35629         So don't reject it.
35630         (main): Adjust tests accordingly.
35631         * modules/posixtm (Depends-on): Add stpcpy.
35632
35633 2009-09-11  Jim Meyering  <meyering@redhat.com>
35634
35635         announce-gen: include [$release_type] in emitted Subject:
35636         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35637         e.g., [stable] in the emitted Subject: line.
35638
35639 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35640
35641         Remove obsolete macros from several modules.
35642         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35643         obsolete Autoconf macros with their modern counterparts.
35644         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35645         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35646         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35647         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35648         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35649         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35650         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35651         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35652         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35653         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35654         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35655         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35656         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35657         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35658         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35659         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35660         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35661         * m4/time_r.m4 (gl_TIME_R): Likewise.
35662         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35663         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35664         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35665
35666         Fix copyright header in build-aux scripts.
35667         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35668         recommendation.
35669         * build-aux/ncftpput-ftp: Likewise.
35670         * build-aux/update-copyright: Likewise.
35671
35672 2009-09-09  Eric Blake  <ebb9@byu.net>
35673
35674         test-link: allow Linux choice of errno
35675         * tests/test-link.c (main): Relax test for alternate error.
35676
35677         strndup: fix improper m4 caching
35678         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35679         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35680         (gl_PREREQ_STRNDUP): Delete.
35681         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35682         * modules/string (Makefile.am): Substitute it.
35683         * lib/string.in.h (strndup): Modernize prototype.
35684
35685         getcwd: port to mingw
35686         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35687         different from the POSIX assumptions made throughout the getcwd
35688         module; fortunately, the mingw getcwd does not need replacement.
35689         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35690         * modules/getcwd-tests: New test.
35691         * tests/test-getcwd.c: Likewise.
35692
35693         link: fix platform bugs
35694         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35695         * lib/link.c (link): Work around them.  Fix related mingw bug.
35696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35697         * modules/unistd (Makefile.am): Substitute it.
35698         * lib/unistd.in.h (link): Declare replacement.
35699         * doc/posix-functions/link.texi (link): Document this.
35700         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35701
35702         test-link: consolidate into single C program, test more cases
35703         * tests/test-link.sh: Delete.
35704         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35705         at least Cygwin and Solaris.
35706         * modules/link-tests (Files): Remove unused file.
35707         (Depends-on): Add errno, sys_stat.
35708         (Makefile.am): Simplify.
35709
35710 2009-09-08  Bruno Haible  <bruno@clisp.org>
35711
35712         Work around towlower, towupper bug on mingw.
35713         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35714         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35715         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35716         * doc/posix-functions/towupper.texi: Likewise.
35717         Reported by Eric Blake.
35718
35719 2009-09-08  Jim Meyering  <meyering@redhat.com>
35720
35721         build: don't try to run autoheader if we don't use it
35722         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35723         is not used in configure.ac.
35724
35725 2009-09-08  Eric Blake  <ebb9@byu.net>
35726
35727         euidaccess: fix compilation error
35728         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35729
35730         rawmemchr: relax license
35731         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35732         okay.
35733         Reported by Jim Meyering.
35734
35735         mkfifoat: new module
35736         * modules/mkfifoat: New file.
35737         * lib/mkfifoat.c: Likewise.
35738         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35739         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35740         * modules/sys_stat (Makefile.am): Use them.
35741         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35742         * MODULES.html.sh (File system functions): Mention module.
35743         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35744         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35745         * modules/mkfifoat-tests: New test.
35746         * tests/test-mkfifoat.c: Likewise.
35747
35748         strchrnul: relax license
35749         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35750         okay.
35751         Reported by Jim Meyering.
35752
35753 2009-09-08  Eric Blake  <ebb9@byu.net>
35754
35755         fstatat: fix compilation on Solaris
35756         * lib/fstatat.c (includes): Add fcntl.h.
35757         Reported by Pádraig Brady.
35758
35759 2009-09-07  Eric Blake  <ebb9@byu.net>
35760
35761         rename: modernize replacement
35762         * modules/rename (Depends-on): Add stdio.
35763         (configure.ac): Declare witness.
35764         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35765         stdio take care of replacement.
35766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35767         * modules/stdio (Makefile.am): Substitute them.
35768         * lib/stdio.in.h (rename): Declare replacement.
35769         * lib/rename.c (includes): Allow cross-compilation to non-windows
35770         machines.
35771         * doc/posix-functions/rename.texi (rename): Improve
35772         documentation.
35773
35774         stdio: sort witness names
35775         * modules/stdio (Makefile.am): Sort replacements.
35776         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35777         * lib/stdio.in.h: Likewise.
35778
35779         getcwd: minor cleanups
35780         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35781         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35782
35783         openat: provide more convenience names
35784         * modules/faccessat (configure.ac): Add C witness.
35785         * lib/unistd.in.h (readlinkat): Fix typo.
35786         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35787         convenience wrappers.
35788         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35789         wrappers in syntax checks.
35790
35791 2009-09-06  Eric Blake  <ebb9@byu.net>
35792
35793         doc: fix comments in recent patches
35794         * lib/faccessat.c: Mention correct function.
35795         * lib/fchmodat.c: Likewise.
35796         * lib/fchownat.c: Likewise.
35797         * lib/symlinkat.c: Likewise.
35798         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35799         constants.
35800
35801         faccessat, symlinkat: continue cleanup of previous patch
35802         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35803         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35804         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35806         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35807         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35808         set.
35809
35810 2009-09-06  Bruno Haible  <bruno@clisp.org>
35811
35812         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35813         (fstatat): Declare if GNULIB_FSTATAT is set.
35814         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35815         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35816         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35817         * modules/fcntl-h (Files): Remove m4/openat.m4.
35818         * modules/sys_stat (Files): Remove m4/openat.m4.
35819         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35820         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35821         * modules/unistd (Files): Remove m4/openat.m4.
35822         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35823         GNULIB_OPENAT.
35824         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35825         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35826         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35827         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35828         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35829         gl_OPENAT_DEFAULTS.
35830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35831         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35832         Don't require gl_OPENAT_DEFAULTS.
35833         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35834         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35835         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35836         (gl_OPENAT_DEFAULTS): Remove macro.
35837
35838 2009-09-06  Bruno Haible  <bruno@clisp.org>
35839
35840         * modules/openat (configure.ac): Remove unneeded witness.
35841
35842 2009-09-06  Bruno Haible  <bruno@clisp.org>
35843
35844         Set errno to ENOSYS when a function is entirely unsupported.
35845         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35846         EOPNOTSUPP.
35847         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35848         * modules/chown (Depends-on): Remove errno.
35849
35850 2009-09-06  Bruno Haible  <bruno@clisp.org>
35851
35852         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35853
35854 2009-09-06  Bruno Haible  <bruno@clisp.org>
35855
35856         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35857
35858 2009-09-06  Ben Pfaff  <blp@gnu.org>
35859             Bruno Haible  <bruno@clisp.org>
35860
35861         Work around a glibc bug in strtok_r.
35862         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35863         Undefine if UNDEFINE_STRTOK_R is set.
35864         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35865         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35866         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35867         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35868         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35869         UNDEFINE_STRTOK_R.
35870         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35871
35872 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35873
35874         exclude: minor fix
35875         * lib/exclude.c: Include wctype.h
35876
35877 2009-09-06  Akim Demaille  <demaille@gostai.com>
35878
35879         bootstrap: improve error message
35880         * build-aux/bootstrap (find_tool): Upon failure, report the list
35881         of candidates.
35882         Honor the initial value of the envvar.
35883
35884 2009-09-05  Eric Blake  <ebb9@byu.net>
35885
35886         symlinkat: new module
35887         * modules/symlinkat: New file.
35888         * lib/symlinkat.c: Likewise.
35889         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35891         * modules/unistd (Makefile.am): Use them.
35892         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35893         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35894         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35895         * MODULES.html.sh (File system functions): Mention module.
35896         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35897         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35898         * modules/symlinkat-tests: New test.
35899         * tests/test-symlinkat.c: Likewise.
35900
35901         test-openat-safer: add more checks
35902         * tests/test-openat-safer.c (main): Check more code paths.
35903
35904 2009-09-05  Jim Meyering  <meyering@redhat.com>
35905
35906         syntax-check: detect unnecessary inclusion of openat.h
35907         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35908
35909 2009-09-05  Bruno Haible  <bruno@clisp.org>
35910
35911         Support towlower, towupper.
35912         * doc/posix-functions/towlower.texi: Mention module wctype.
35913         * doc/posix-functions/towupper.texi: Likewise.
35914         * lib/wctype.in.h (towlower, towupper): New functions.
35915         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35916         (ASSERT): New macro.
35917         (e): New variable.
35918         (main): Test also towlower, towupper. Test WEOF argument.
35919         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35920
35921 2009-09-05  Bruno Haible  <bruno@clisp.org>
35922
35923         Fix conversion behaviour when the input is invalid.
35924         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35925         mark occurring in first pass of indirect conversion.
35926         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35927         input.
35928         Found by clang's static analyzer.
35929
35930 2009-09-05  Bruno Haible  <bruno@clisp.org>
35931
35932         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35933         where direct conversion is possible.
35934
35935 2009-09-04  Eric Blake  <ebb9@byu.net>
35936
35937         openat: fail with ENOENT on empty name
35938         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35939         buffer.
35940
35941         link-follow: fix logic bug in prior patch
35942         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35943         reversed sense of yes and no in prior patch.  Avoid confusing
35944         compilation failure with desired semantics.
35945
35946         link-follow: accomodate mingw and cross-compilation
35947         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35948         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35949         cross-compilation results to -1, to make linkat easier to
35950         implement when cross-compiling.  Trivially support mingw.
35951         * modules/link-follow (configure.ac): Call new name.
35952         * NEWS: Mention this.
35953
35954 2009-09-03  Eric Blake  <ebb9@byu.net>
35955
35956         faccessat: compile replacement
35957         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35958         needed.
35959
35960         fts: fix compilation error
35961         * lib/fts.c (includes): Re-add "openat.h", for
35962         openat_needs_fchdir.
35963
35964         faccessat: new module
35965         * modules/faccessat: New file.
35966         * lib/faccessat.c: Likewise.
35967         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35969         * modules/unistd (Makefile.am): Use it.
35970         * lib/unistd.in.h (faccessat): Declare it.
35971         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35972         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35973         * MODULES.html.sh (File system functions): Mention it.
35974         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35975         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35976
35977         euidaccess: prefer POSIX over non-standard implementation
35978         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35979         * lib/euidaccess.c (euidaccess): Use it if available.
35980
35981         openat: make template easier to use
35982         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35983         AT_FUNC_F2 to be undefined.
35984         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35985         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35986         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35987         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35988         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35989         Likewise.
35990         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35991         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35992         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35993         Likewise.
35994
35995         openat: declare in POSIX headers
35996         * NEWS: Mention this.
35997         * modules/openat (configure.ac): Declare witnesses.
35998         (Depends-on): Add fcntl-h, sys_stat, unistd.
35999         (Include): Mention correct headers.
36000         * modules/fcntl-h (Depends-on): Add link-warning.
36001         (Files): Add openat.m4.
36002         (Makefile.am): Substitute witnesses.
36003         * modules/sys_stat (Files, Makefile.am): Likewise.
36004         * modules/unistd (Files, Makefile.am): Likewise.
36005         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36006         (gl_OPENAT_DEFAULTS): New macro.
36007         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36009         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36010         (SYS_STAT_H): Remove unused variable.
36011         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36012         * lib/fcntl--.h (includes): Remove unneeded header.
36013         * lib/openat-safer.c (includes): Likewise.
36014         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36015         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36016         appropriate headers.
36017         (__OPENAT_PREFIX): Delete.
36018         * lib/fcntl.in.h (openat): Provide declaration.
36019         (AT_FDCWD): Fix Solaris bug.
36020         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36021         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36022         * lib/fchmodat.c (includes):  Adjust to find declaration.
36023         * lib/fchownat.c (includes): Likewise.
36024         * lib/mkdirat.c (includes): Likewise.
36025         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36026         still visible.
36027
36028 2009-09-02  Eric Blake  <ebb9@byu.net>
36029
36030         errno: use consistently
36031         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36032         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36033         * lib/canonicalize.c (ELOOP): Likewise.
36034         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36035         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36036         * lib/lchown.c (EOPNOTSUPP): Likewise.
36037         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36038         * lib/savewd.c (ESTALE): Likewise.
36039         * lib/settime.c (ENOSYS): Likewise.
36040         * lib/utimens.c (ENOSYS): Likewise.
36041         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36042         * lib/chdir-safer.c (ELOOP): Likewise.
36043         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36044         * modules/c-stack (Depends-on): Add errno.
36045         * modules/canonicalize (Depends-on): Likewise.
36046         * modules/chdir-safer (Depends-on): Likewise.
36047         * modules/fdopendir (Depends-on): Likewise.
36048         * modules/inet_ntop (Depends-on): Likewise.
36049         * modules/inet_pton (Depends-on): Likewise.
36050         * modules/lchown (Depends-on): Likewise.
36051         * modules/openat (Depends-on): Likewise.
36052         * modules/savewd (Depends-on): Likewise.
36053         * modules/settime (Depends-on): Likewise.
36054         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36055
36056         fts: avoid leaking fds
36057         * modules/fts (Depends-on): Add cloexec.
36058         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36059         flag.
36060
36061         fts: make directory fds more robust
36062         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36063         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36064
36065         backupfile, chdir-long, fts, savedir: make safer
36066         * lib/backupfile.c (includes): Use "dirent--.h", since
36067         numbered_backup can write to stderr during readdir.
36068         * lib/savedir.c (includes): Likewise.
36069         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36070         emulation can write to stderr on failure.
36071         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36072         * lib/getcwd.c: Document why opendir_safer is unused.
36073         * lib/glob.c: Likewise.
36074         * lib/scandir.c: Likewise.
36075         * lib/openat-proc.c: Likewise, for open_safer.
36076         * modules/backupfile (Depends-on): Add dirent-safer.
36077         * modules/savedir (Depends-on): Likewise.
36078         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36079         * modules/chdir-long (Depends-on): Add openat-safer.
36080
36081         openat-safer: new module
36082         * modules/openat-safer: New file.
36083         * lib/openat-safer.c: Likewise.
36084         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36085         * lib/fcntl-safer.h (openat_safer): Declare.
36086         * lib/fcntl--.h (openat): Override.
36087         * MODULES.html.sh (File descriptor based I/O): Mention it.
36088         * lib/openat.h: Add double-inclusion guards.
36089         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36090         "fcntl--.h", so we can implement openat.
36091         * modules/openat-safer-tests: New test.
36092         * tests/test-openat-safer.c: New file.
36093
36094         dirent-safer: new module
36095         * modules/dirent-safer: New file.
36096         * lib/dirent--.h: Likewise.
36097         * lib/dirent-safer.h: Likewise.
36098         * lib/opendir-safer.c: Likewise.
36099         * m4/dirent-safer.m4: Likewise.
36100         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36101         * modules/dirent-safer-tests: New test.
36102         * tests/test-dirent-safer.c: New file.
36103         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36104
36105         fdopendir: optimize on mingw
36106         * lib/unistd.in.h (_gl_directory_name): New prototype.
36107         * lib/fchdir.c (_gl_directory_name): Implement it.
36108         (fchdir): Use it to simplify implementation.
36109         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36110         fchdir, when available, to avoid calling [f]chdir().
36111
36112         fdopendir: split into its own module
36113         * lib/openat.c (fdopendir): Move...
36114         * lib/fdopendir.c: ...into new file.
36115         * modules/fdopendir: New module.
36116         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36117         * modules/openat (Depends-on): Add fdopendir.
36118         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36119         fdopendir here.
36120         * modules/savedir (Depends-on): Only need fdopendir, not full
36121         openat.
36122         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36123         * lib/openat.h (fdopendir): Drop prototype.
36124         * lib/dirent.in.h (fdopendir): Provide prototype.
36125         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36126         * modules/dirent (Makefile.am): Substitute them.
36127         * MODULES.html.sh (File system functions): Mention it.
36128         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36129         * modules/fdopendir-tests: New file.
36130         * tests/test-fdopendir.c: Likewise.
36131
36132         fchdir: use more consistent macro convention
36133         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36134         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36135         REPLACE_FCHDIR, rather than relying on config.h macros.
36136         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36137         inside a single make-time REPLACE_FCHDIR block, rather than using
36138         the config.h FCHDIR_REPLACEMENT.
36139         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36140         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36141         Manage fstat replacement.
36142         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36143         REPLACE_FCHDIR.
36144         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36145         (Makefile.am): Substitute REPLACE_FCHDIR.
36146         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36147         FCHDIR_REPLACEMENT.
36148         * lib/dup-safer.c (dup_safer): Likewise.
36149         * lib/dup2.c (rpl_dup2): Likewise.
36150         * lib/dup3.c (rpl_dup3): Likewise.
36151         * lib/open.c (rpl_open): Likewise.
36152
36153         fchdir: simplify error handling, and support dup3
36154         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36155         stdbool, malloc-posix, realloc-posix.
36156         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36157         (ensure_dirs_slot): Return false on allocation failure.
36158         (rpl_dup2): Delete.
36159         (_gl_register_dup): New function.
36160         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36161         (_gl_register_fd): Close fd on allocation failure.
36162         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36163         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36164         prototype.
36165         (rpl_dup2_fchdir): Delete prototype.
36166         * lib/open.c (open): Update caller.
36167         * lib/dup2.c (dup2): Track fchdir metadata.
36168         * lib/dup3.c (dup3): Likewise.
36169         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36170         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36171
36172 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36173
36174         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36175         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36176         don't pass arguments to AC_OUTPUT.
36177
36178 2009-09-02  Bruno Haible  <bruno@clisp.org>
36179
36180         * modules/mkdtemp (License): Relicense under LGPLv2+.
36181         Reported by Paolo Bonzini.
36182
36183 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36184
36185         Replace uses of obsolete autoconf macros in Jim's modules.
36186         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36187         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36188         can evoke a warning from autoconf when run with -Wobsolete
36189         enabled.  They were declared obsolete for good reasons (see
36190         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36191         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36192         should not continue using the deprecated macros.
36193         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36194         obsolete Autoconf macros with modern counterparts.
36195         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36196         * m4/dos.m4 (gl_AC_DOS): Likewise.
36197         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36198         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36199         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36200         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36201         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36202         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36203         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36204         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36205         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36206         Likewise.
36207         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36208         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36209         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36210         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36211         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36212         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36213
36214 2009-09-01  Eric Blake  <ebb9@byu.net>
36215
36216         fchdir: fix off-by-one bug in previous patch
36217         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36218         (_gl_unregister_fd): Delete useless if.
36219
36220 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36221
36222         maint.mk: sort the list of syntax-check rules
36223         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36224         easier to get a sense of progress when the rules are run sequentially
36225         and take a long time.
36226
36227 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36228
36229         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36230         * modules/netinet_in: Likewise.
36231         * modules/sys_file: Likewise.
36232         * modules/sys_ioctl: Likewise.
36233         * modules/sys_select: Likewise.
36234         * modules/sys_socket: Likewise.
36235         * modules/sys_stat: Likewise.
36236         * modules/sys_time: Likewise.
36237         * modules/sys_times: Likewise.
36238         * modules/sys_utsname: Likewise.
36239         * modules/sys_wait: Likewise.
36240
36241 2009-09-01  Jim Meyering  <meyering@redhat.com>
36242
36243         fts: help ensure that return values are not ignored
36244         * lib/fts_.h (__GNUC_PREREQ): Define.
36245         (__attribute_warn_unused_result__): Define.
36246         (fts_children, fts_close, fts_open, fts_read): Declare with
36247         __attribute_warn_unused_result__.
36248
36249         fts: fts_close now fails also when closing a dir file descriptor fails
36250         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36251         and propagate to caller, along with errno.
36252
36253         announce-gen: correct formatting in --help output
36254         * build-aux/announce-gen (usage): Move the one-line description in
36255         --help output "up", to where it belongs, just after Usage:.
36256
36257 2009-08-31  Eric Blake  <ebb9@byu.net>
36258
36259         fchdir: port to mingw
36260         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36261         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36262         opened, then use a substitute.
36263         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36264         replacement.
36265         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36266         (_gl_register_fd): No need to check stat if open already filters
36267         all directories.
36268         (fchdir): Fix error condition to match POSIX.
36269         * modules/fchdir (Depends-on): Add sys_stat.
36270         * doc/posix-functions/open.texi (open): Document the limitation.
36271         * modules/fchdir-tests: New file.
36272         * tests/test-fchdir.c: Likewise.
36273
36274         canonicalize: allow cross-testing from cygwin to mingw
36275         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36276         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36277         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36278         Likewise.
36279         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36280         target does not support symlinks.
36281         * tests/test-canonicalize-lgpl.sh: Likewise.
36282
36283         chown: avoid compilation warning on mingw
36284         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36285         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36286         mingw.
36287         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36288         * modules/chown (Depends-on): Add errno.
36289
36290 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36291
36292         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36293         command.
36294
36295 2009-08-31  Jim Meyering  <meyering@redhat.com>
36296
36297         canonicalize: remove useless initialization
36298         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36299         initialization of local, "end".
36300
36301 2009-08-30  Bruno Haible  <bruno@clisp.org>
36302
36303         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36304         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36305         ENOSYS.
36306
36307 2009-08-30  Bruno Haible  <bruno@clisp.org>
36308
36309         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36310         /usr/xpg4/bin/tr when it exists.
36311         * tests/test-pipe-filter-gi1.sh: Likewise.
36312
36313 2009-08-30  Bruno Haible  <bruno@clisp.org>
36314
36315         Work around deficient /usr/bin/id program on Solaris.
36316         * tests/test-file-has-acl.sh (ID): New variable.
36317         * tests/test-set-mode-acl.sh (ID): Likewise.
36318         * tests/test-copy-acl.sh (ID): Likewise.
36319         * tests/test-copy-file.sh (ID): Likewise.
36320
36321 2009-08-30  Bruno Haible  <bruno@clisp.org>
36322
36323         New module 'xstriconveh'.
36324         * lib/xstriconveh.h: New file.
36325         * lib/xstriconveh.c: New file.
36326         * modules/xstriconveh: New file.
36327
36328 2009-08-30  Bruno Haible  <bruno@clisp.org>
36329
36330         Make it easier to use mem_cd_iconveh.
36331         * lib/striconveh.h (iconveh_t): New type.
36332         (iconveh_open, iconveh_close): New declarations.
36333         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36334         with a single 'const iconveh_t *' argument.
36335         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36336         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36337         with a single 'const iconveh_t *' argument.
36338         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36339         * tests/test-striconveh.c (main): Update.
36340         * NEWS: Mention the change.
36341
36342 2009-08-30  Bruno Haible  <bruno@clisp.org>
36343
36344         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36345         problem.
36346
36347 2009-08-30  Bruno Haible  <bruno@clisp.org>
36348
36349         Work around iconv_open problem on Solaris.
36350         * lib/iconv_open-solaris.gperf: New file.
36351         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36352         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36353         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36354         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36355         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36356         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36357
36358 2009-08-29  Jim Meyering  <meyering@redhat.com>
36359
36360         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36361         * top/maint.mk (cvs-check): Remove target; it was just an alias
36362         to the better-named vc-diff-check.
36363         (maintainer-distcheck): Remove rule.  It was used only from
36364         the (alpha/beta/major) target, and all of its commands but one
36365         were coreutils-specific.
36366         (vc-dist): Remove rule.
36367         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36368         Run vc-diff-check, not vc-dist.
36369         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36370
36371 2009-08-27  Bruno Haible  <bruno@clisp.org>
36372
36373         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36374         of 0.
36375
36376 2009-08-27  Bruno Haible  <bruno@clisp.org>
36377
36378         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36379         compilers.
36380         * doc/func.texi: Document the SunPRO C bug.
36381
36382 2009-08-27  Bruno Haible  <bruno@clisp.org>
36383
36384         Fix link error on Solaris.
36385         * tests/test-parse-duration.c (xstrdup): Remove function.
36386
36387 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36388
36389         ignore-value: handle pointer types, too
36390         * lib/ignore-value.h (__attribute__): Remove definition.
36391         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36392         of a more concise and more-often effective "(void) i" statement.
36393         (ignore_ptr): New function to suppress warnings from functions that
36394         return pointers, and to make it explicit that one function doesn't
36395         handle all cases.
36396
36397 2009-08-25  Bruno Haible  <bruno@clisp.org>
36398
36399         dup2: work around a Linux bug.
36400         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36401         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36402         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36403         Reported by Simon Josefsson.
36404
36405 2009-08-25  Jim Meyering  <meyering@redhat.com>
36406
36407         libguestfs uses gnulib
36408         * users.txt: Add libguestfs.
36409
36410 2009-08-24  Eric Blake  <ebb9@byu.net>
36411
36412         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36413         * lib/pipe2.c (includes): Add binary-io.h.
36414         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36415
36416 2009-08-24  Bruno Haible  <bruno@clisp.org>
36417
36418         Tolerate declared but missing accept4 syscall.
36419         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36420         available.
36421         * lib/sys_socket.in.h (accept4): If the function is already present,
36422         override it.
36423         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36424         * modules/accept4 (Makefile.am): Compile accept4.c always.
36425         Reported by Paolo Bonzini and Eric Blake.
36426
36427 2009-08-23  Bruno Haible  <bruno@clisp.org>
36428
36429         New module 'accept4'.
36430         * lib/sys_socket.in.h (accept4): New declaration.
36431         * lib/accept4.c: New file.
36432         * m4/accept4.m4: New file.
36433         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36434         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36435         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36436         HAVE_ACCEPT4.
36437         * modules/accept4: New file.
36438         * doc/glibc-functions/accept4.texi: Mention the new module.
36439
36440 2009-08-24  Jim Meyering  <meyering@redhat.com>
36441
36442         progname: also set global program_invocation_name, when possible
36443         Before this change, a libtool-enabled program that calls glibc's
36444         error function would report the program name as
36445         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36446         * modules/progname (configure.ac): Check for a declaration of
36447         program_invocation_name.
36448         * lib/progname.c:  Include <errno.h>.
36449         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36450         Set program_invocation_name.
36451
36452 2009-08-23  Bruno Haible  <bruno@clisp.org>
36453
36454         * lib/dup3.c: Include <string.h>.
36455
36456 2009-08-23  Bruno Haible  <bruno@clisp.org>
36457
36458         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36459         * lib/pipe2.c (pipe2): Likewise.
36460         Suggested by Eric Blake.
36461
36462 2009-08-23  Bruno Haible  <bruno@clisp.org>
36463
36464         Tolerate declared but missing dup3 syscall.
36465         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36466         * lib/unistd.in.h (dup3): If the function is already present,
36467         override it.
36468         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36469         * modules/dup3 (Makefile.am): Compile dup3.c always.
36470         Reported by Paolo Bonzini.
36471
36472 2009-08-23  Bruno Haible  <bruno@clisp.org>
36473
36474         Tolerate declared but missing pipe2 syscall.
36475         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36476         available.
36477         * lib/unistd.in.h (pipe2): If the function is already present,
36478         override it.
36479         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36480         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36481         Reported by Paolo Bonzini.
36482
36483 2009-08-23  Bruno Haible  <bruno@clisp.org>
36484
36485         * lib/pipe2.c (pipe2): Move #ifs inside function.
36486
36487 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36488
36489         quotearg: document limitations of quote_these_too
36490         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36491         those limitations are created.
36492         * lib/quotearg.h (set_char_quoting): Document that digits and
36493         letters that are special after backslash are not permitted.
36494         (quotearg_char): Cross-reference set_char_quoting documentation.
36495
36496 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36497
36498         quotearg: implement custom_quoting_style
36499         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36500         right_quote fields.
36501         (set_custom_quoting): New public function.
36502         (quotearg_buffer_restyled): Add left_quote and right_quote
36503         arguments, handle them very much like locale quoting, and update
36504         all uses.
36505         (quotearg_n_custom): New public function.
36506         (quotearg_n_custom_mem): New public function.
36507         (quotearg_custom): New public function.
36508         (quotearg_custom_mem): New public function.
36509         * lib/quotearg.h: Prototype and document new public functions.
36510         (enum quoting_style): For escape_quoting_style and
36511         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36512         ignored even though they're otherwise like c_quoting_style.
36513         Add custom_quoting_style member and document with comparison to
36514         clocale_quoting_style.
36515         * tests/test-quotearg.c (custom_quotes): New array.
36516         (custom_results): New array.
36517         (main): Extend to test custom quoting.
36518
36519 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36520
36521         quotearg: fix right quote escaping when it's in quote_these_too
36522         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36523         quote, be sure to prepend only one backslash.
36524         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36525         (main): Test it.
36526
36527 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36528
36529         quotearg-tests: test escaping of embedded locale quotes
36530         * tests/test-quotearg.c (struct result_strings): Add member for
36531         new input.
36532         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36533         (inputs): Add new input.
36534         (results_g): Add expected results.
36535         (flag_results): Likewise.
36536         (locale_results): Likewise.
36537         (compare_strings): Check those.
36538
36539 2009-08-23  Bruno Haible  <bruno@clisp.org>
36540
36541         Tests for module 'dup3'.
36542         * modules/dup3-tests: New file.
36543         * tests/test-dup3.c: New file.
36544
36545         New module 'dup3'.
36546         * lib/unistd.in.h (dup3): New declaration.
36547         * lib/dup3.c: New file.
36548         * m4/dup3.m4: New file.
36549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36550         HAVE_DUP3.
36551         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36552         * modules/dup3: New file.
36553         * doc/glibc-functions/dup3.texi: Mention the new module.
36554
36555 2009-08-23  Bruno Haible  <bruno@clisp.org>
36556
36557         Tweak the dup2 test.
36558         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36559         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36560         the test file is still empty. Fix argument order of lseek.
36561
36562 2009-08-23  Bruno Haible  <bruno@clisp.org>
36563
36564         Avoid test link errors when the modules getopt-gnu, gettext are used.
36565         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36566         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36567
36568 2009-08-23  Bruno Haible  <bruno@clisp.org>
36569
36570         Fix getdtablesize() on mingw.
36571         * lib/getdtablesize.c (getdtablesize): Implement differently.
36572         * lib/unistd.in.h (getdtablesize): Improve comment.
36573
36574 2009-08-23  Bruno Haible  <bruno@clisp.org>
36575
36576         New module 'mkostemp'.
36577         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36578         * lib/stdlib.in.h (mksotemp): New declaration.
36579         * lib/mkostemp.c: New file, from glibc with modifications.
36580         * lib/tempname.h (GT_FILE): Remove outdated comment.
36581         (gen_tempname): Add flags argument.
36582         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36583         (__GT_FILE): Map to 1.
36584         (small_open, large_open): Remove macros.
36585         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36586         * lib/mkstemp.c (mkstemp): Update.
36587         * lib/mkdtemp.c (mkdtemp): Likewise.
36588         * m4/mkostemp.m4: New file.
36589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36590         HAVE_MKOSTEMP.
36591         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36592         HAVE_MKOSTEMP.
36593         * modules/mkostemp: New file, based on modules/mkstemp.
36594         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36595         * NEWS: Mention the change.
36596
36597 2009-08-23  Bruno Haible  <bruno@clisp.org>
36598
36599         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36600         Reported by Eric Blake.
36601
36602 2009-08-23  Bruno Haible  <bruno@clisp.org>
36603
36604         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36605         Reported by Eric Blake.
36606
36607 2009-08-23  Bruno Haible  <bruno@clisp.org>
36608
36609         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36610         * modules/pipe2 (Depends-on): Likewise.
36611
36612 2009-08-23  Eric Blake  <ebb9@byu.net>
36613
36614         fcntl-h: add O_TTY_INIT support
36615         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36616         * tests/test-fcntl-h.c (o): Test it.
36617         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36618
36619         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36620         * modules/fcntl: Move <fcntl.h> header replacement...
36621         * modules/fcntl-h: ...to new name, so as not to collide with
36622         like-named function.
36623         * tests/test-fcntl.c: Rename...
36624         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36625         * modules/fcntl-tests: Rename...
36626         * modules/fcntl-h-tests: ...to this.  Update test file name.
36627         * modules/chdir-long (Depends-on): Update clients.
36628         * modules/chdir-safer (Depends-on): Likewise.
36629         * modules/fcntl-safer (Depends-on): Likewise.
36630         * modules/fts (Depends-on): Likewise.
36631         * modules/mkancesdirs (Depends-on): Likewise.
36632         * modules/mkdir-p (Depends-on): Likewise.
36633         * modules/open (Depends-on): Likewise.
36634         * modules/savewd (Depends-on): Likewise.
36635         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36636         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36637
36638 2009-08-22  Bruno Haible  <bruno@clisp.org>
36639
36640         * modules/binary-io (License): Relicense under LGPL.
36641         * modules/pipe2 (License): Likewise.
36642
36643 2009-08-22  Bruno Haible  <bruno@clisp.org>
36644
36645         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36646         return value.
36647         * lib/pipe-filter-gi.c (filter_init): Likewise.
36648         Reported by Eric Blake.
36649
36650 2009-08-22  Bruno Haible  <bruno@clisp.org>
36651
36652         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36653         * modules/pipe (Depends-on): Add pipe2.
36654
36655 2009-08-22  Bruno Haible  <bruno@clisp.org>
36656
36657         Tests for module 'pipe2'.
36658         * modules/pipe2-tests: New file.
36659         * tests/test-pipe2.c: New file.
36660
36661         New module 'pipe2'.
36662         * lib/unistd.in.h (pipe2): New declaration.
36663         * lib/pipe2.c: New file.
36664         * m4/pipe2.m4: New file.
36665         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36666         HAVE_PIPE2.
36667         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36668         * modules/pipe2: New file.
36669         * doc/glibc-functions/pipe2.texi: Mention the new module.
36670
36671 2009-08-22  Bruno Haible  <bruno@clisp.org>
36672
36673         Reference some new glibc functions.
36674         * doc/glibc-functions/accept4.texi: New file.
36675         * doc/glibc-functions/dup3.texi: New file.
36676         * doc/glibc-functions/mkostemp.texi: New file.
36677         * doc/glibc-functions/pipe2.texi: New file.
36678         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36679         (Glibc sys/socket.h): Refer to accept4.
36680         (Glibc unistd.h): Refer to dup3, pipe2.
36681         Reported by Eric Blake.
36682
36683 2009-08-22  Jim Meyering  <meyering@redhat.com>
36684             Bruno Haible  <bruno@clisp.org>
36685
36686         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36687         This makes it so packages using automake-1.11's silent-rules option
36688         can print e.g., a single "GEN    configmake.h" line, rather than
36689         the 30+ statements that perform the job.  If you want to see the
36690         actual commands, you can still run "make V=1".
36691         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36692         so that make output is abbreviated when those variables are defined
36693         appropriately.
36694         * modules/argz: Likewise.
36695         * modules/arpa_inet: Likewise.
36696         * modules/byteswap: Likewise.
36697         * modules/configmake: Likewise.
36698         * modules/dirent: Likewise.
36699         * modules/errno: Likewise.
36700         * modules/fcntl: Likewise.
36701         * modules/float: Likewise.
36702         * modules/fnmatch: Likewise.
36703         * modules/getopt-posix: Likewise.
36704         * modules/glob: Likewise.
36705         * modules/iconv_open: Likewise.
36706         * modules/inttypes: Likewise.
36707         * modules/localcharset: Likewise.
36708         * modules/locale: Likewise.
36709         * modules/math: Likewise.
36710         * modules/netdb: Likewise.
36711         * modules/netinet_in: Likewise.
36712         * modules/poll: Likewise.
36713         * modules/posix_spawnp-tests: Likewise.
36714         * modules/sched: Likewise.
36715         * modules/search: Likewise.
36716         * modules/selinux-h: Likewise.
36717         * modules/signal: Likewise.
36718         * modules/spawn: Likewise.
36719         * modules/stdarg: Likewise.
36720         * modules/stdbool: Likewise.
36721         * modules/stddef: Likewise.
36722         * modules/stdint: Likewise.
36723         * modules/stdio: Likewise.
36724         * modules/stdlib: Likewise.
36725         * modules/string: Likewise.
36726         * modules/strings: Likewise.
36727         * modules/sys_file: Likewise.
36728         * modules/sys_ioctl: Likewise.
36729         * modules/sys_select: Likewise.
36730         * modules/sys_socket: Likewise.
36731         * modules/sys_stat: Likewise.
36732         * modules/sys_time: Likewise.
36733         * modules/sys_times: Likewise.
36734         * modules/sys_utsname: Likewise.
36735         * modules/sys_wait: Likewise.
36736         * modules/sysexits: Likewise.
36737         * modules/time: Likewise.
36738         * modules/unistd: Likewise.
36739         * modules/wchar: Likewise.
36740         * modules/wctype: Likewise.
36741
36742 2009-08-22  Jim Meyering  <meyering@redhat.com>
36743
36744         announce-gen: detect write failure
36745         * build-aux/announce-gen: Add Coda at end.
36746         Remove equivalent-but-more-verbose block at top.
36747
36748 2009-08-19  Akim Demaille  <demaille@gostai.com>
36749
36750         bootstrap: --help to stdout.
36751         * bootstrap (usage): Don't send --help to stderr.
36752         Use a here doc instead of a long string.
36753
36754 2009-08-21  Eric Blake  <ebb9@byu.net>
36755
36756         test-popen-safer: split from test-popen
36757         * tests/test-popen.c (main): Move...
36758         * tests/test-popen.h: ...into new file.
36759         * tests/test-popen-safer2.c: New file.
36760         * modules/popen-tests (Files): Add test-popen.h.
36761         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36762         Suggested by Bruno Haible.
36763
36764         test-fcntl-safer: split from test-open
36765         * tests/test-open.c (main): Move...
36766         * tests/test-open.h: ...into new file.
36767         * tests/test-fcntl-safer.c: New file.
36768         * modules/open-tests (Files): Add test-open.h.
36769         * modules/fcntl-safer-tests: New file.
36770         Suggested by Bruno Haible.
36771
36772         test-fopen-safer: split from test-fopen
36773         * tests/test-fopen.c (main): Move...
36774         * tests/test-fopen.h: ...into new file.
36775         * tests/test-fopen-safer.c: New file.
36776         * modules/fopen-tests (Files): Add test-fopen.h.
36777         * modules/fopen-safer-tests: New file.
36778         Suggested by Bruno Haible.
36779
36780 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36781
36782         popen-safer: test O_CLOEXEC at run-time.
36783         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36784
36785 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36786
36787         fcntl: move more flags to the header
36788         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36789         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36790         * lib/fcntl.in.h: Do both things here.
36791
36792 2009-08-21  Jim Meyering  <meyering@redhat.com>
36793
36794         consistently remove $@-t before redirecting to it
36795         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36796         * modules/alloca-opt: Likewise.
36797         * modules/byteswap: Likewise.
36798         * modules/fnmatch: Likewise.
36799         * modules/getopt-posix: Likewise.
36800         * modules/glob: Likewise.
36801         * modules/poll: Likewise.
36802         * modules/posix_spawnp-tests: Likewise.
36803         * modules/sys_socket: Likewise.
36804         * modules/sysexits: Likewise.
36805
36806 2009-08-21  Eric Blake  <ebb9@byu.net>
36807
36808         popen: simplify access to original popen
36809         * lib/popen.c (rpl_popen): No need to worry about popen being a
36810         macro.
36811         Reported by Bruno Haible.
36812
36813 2009-08-20  Eric Blake  <ebb9@byu.net>
36814
36815         build: avoid some compiler warnings
36816         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36817         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36818         type.
36819         (new_exclude_segment, excluded_file_pattern_p)
36820         (excluded_file_name_p): Reduce scope.
36821         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36822         old-style declaration.
36823
36824 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36825
36826         * tests/test-exclude1.sh: Handle Windows EOL.
36827         * tests/test-exclude2.sh: Likewise.
36828         * tests/test-exclude3.sh: Likewise.
36829         * tests/test-exclude4.sh: Likewise.
36830         * tests/test-exclude5.sh: Likewise.
36831         * tests/test-exclude6.sh: Likewise.
36832         * tests/test-exclude7.sh: Likewise.
36833
36834 2009-08-19  Akim Demaille  <demaille@gostai.com>
36835
36836         bootstrap: find sha1sum when named gsha1sum.
36837         * bootstrap (find_tool): New.
36838         ($SHA1SUM): New.
36839         Use it.
36840
36841 2009-08-20  Jim Meyering  <meyering@redhat.com>
36842
36843         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36844         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36845         expression that converts "." in a file name to "\." in the resulting
36846         regexp.  Start with a dummy statement, so that prior shell variable
36847         definitions are expanded portably.  Reported by Simon Josefsson.
36848
36849 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36850
36851         Fix polling for writeability of a screen buffer.
36852         * lib/poll.c: Distinguish input and screen buffers for the
36853         Win32 implementation.
36854         * lib/select.c: Likewise.
36855
36856 2009-08-19  Eric Blake  <ebb9@byu.net>
36857
36858         popen-safer: prevent popen from clobbering std descriptors
36859         * modules/popen-safer: New file.
36860         * lib/popen-safer.c: Likewise.
36861         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36862         * lib/stdio--.h (popen): Provide override.
36863         * lib/stdio-safer.h (popen_safer): Provide declaration.
36864         * tests/test-popen.c (includes): Partially test this.
36865         * modules/popen-safer-tests: New file, for more tests.
36866         * tests/test-popen-safer.c: Likewise.
36867         * MODULES.html.sh (file stream based Input/Output): Mention it.
36868
36869         tests: test some of the *-safer modules
36870         * modules/fopen-safer (Depends-on): Add fopen.
36871         * modules/fcntl-safer (Depends-on): Add fcntl.
36872         * modules/stdlib-safer (Depends-on): Add stdlib.
36873         (configure.ac): Set indicator.
36874         * modules/unistd-safer (configure.ac): Likewise.
36875         * modules/tmpfile-safer (configure.ac): Likewise.
36876         (Depends-on): Add tmpfile.
36877         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36878         active.
36879         * tests/test-fopen.c (includes): Test safer versions when they are
36880         in use.
36881         * tests/test-open.c (includes): Likewise.
36882
36883         popen: fix cygwin 1.5 bug when stdin closed
36884         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36885         * modules/popen: New file.
36886         * modules/popen-tests: Likewise.
36887         * tests/test-popen.c: Likewise.
36888         * m4/popen.m4: Likewise.
36889         * lib/popen.c: Likewise.
36890         * lib/stdio.in.h (popen): New declaration.
36891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36892         * modules/stdio (Makefile.am): Likewise.
36893         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36894
36895 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36896
36897         maint.mk: give full control over update-copyright exclusions
36898         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36899         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36900         (update-copyright): Don't force inclusion of top-level
36901         ChangeLog.  Don't force exclusion of all COPYING files, but make
36902         them the default exclusion instead.
36903
36904 2009-08-16  Bruno Haible  <bruno@clisp.org>
36905
36906         Fix test failures on Solaris 10.
36907         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36908         tests when Solaris iconv() is used.
36909         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36910         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36911         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36912         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36913         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36914
36915 2009-08-16  Bruno Haible  <bruno@clisp.org>
36916
36917         Fix test failures on Solaris 10.
36918         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36919         'tr' program and pass it as first argument.
36920         * tests/test-pipe-filter-gi1.sh: Likewise.
36921         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36922         program as first argument.
36923         * tests/test-pipe-filter-gi1.c (main): Likewise.
36924
36925 2009-08-16  Eric Blake  <ebb9@byu.net>
36926
36927         fpurge: fix previous commits
36928         * modules/fpurge (Makefile.am): Make replacement conditional,
36929         partially reverting 2007-04-29 change; missed in previous
36930         attempt.
36931         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36932         is missing.
36933
36934 2009-08-16  Bruno Haible  <bruno@clisp.org>
36935
36936         Clarify fpurge's effect on the file position.
36937         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36938         * tests/test-fpurge.c (main): Make a second pass for checking the file
36939         position.
36940
36941 2009-08-16  Bruno Haible  <bruno@clisp.org>
36942
36943         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36944         declaration of fpurge is missing.
36945         * tests/test-fpurge.c (main): Check that the file has not more contents
36946         than expected. Close the file before removing it.
36947
36948 2009-08-15  Eric Blake  <ebb9@byu.net>
36949
36950         fpurge: don't wrap working cygwin implementation
36951         * lib/fpurge.c (fpurge): Fix comment typo.
36952         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36953         1.7 to avoid replacement.
36954         * tests/test-fpurge.c (main): Enhance test.
36955
36956 2009-08-15  Eric Blake  <ebb9@byu.net>
36957         and Jim Meyering  <meyering@redhat.com>
36958
36959         test-update-copyright: skip if perl is insufficient
36960         * tests/test-update-copyright.sh: Failure to run maintainer tool
36961         should not cause testsuite failure on cygwin 1.5.
36962
36963 2009-08-14  Eric Blake  <ebb9@byu.net>
36964
36965         doc: mention more functions added in cygwin 1.7.0
36966         * doc/posix-headers/limits.texi (limits.h): Update for recent
36967         cygwin additions.
36968         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36969         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36970         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36971         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36972         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36973
36974 2009-08-14  Eric Blake  <ebb9@byu.net>
36975
36976         maint.mk: simplify update-copyright rule
36977         * top/maint.mk (update-copyright-local): Delete, and document how
36978         to do it in cfg.mk instead.
36979         (update-copyright-exclude-regexp): Delete, and document how to do
36980         it in .x-update-copyright instead.
36981         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36982         exclude ChangeLog.
36983
36984 2009-08-14  Bruno Haible  <bruno@clisp.org>
36985
36986         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36987
36988 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36989
36990         maint.mk: support update-copyright-env
36991         * top/maint.mk (update-copyright-env): Define place-holder.
36992         (update-copyright): Expand $(update-copyright-env) before
36993         invoking update-copyright.
36994
36995 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36996
36997         update-copyright: implement forced reformatting
36998         * build-aux/update-copyright: Implement and document
36999         UPDATE_COPYRIGHT_FORCE.
37000         * tests/test-update-copyright.sh: Test it.
37001
37002 2009-08-14  Eric Blake  <ebb9@byu.net>
37003         and Bruno Haible  <bruno@clisp.org>
37004
37005         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37006         * tests/test-locale.c: Revert previous patch related to NULL.
37007         * tests/test-stdio.c: Likewise.
37008         * tests/test-stdlib.c: Likewise.
37009         * tests/test-string.c: Likewise.
37010         * tests/test-unistd.c: Likewise.
37011         * modules/time-tests (Depends-on): Add verify.
37012         * modules/wchar-tests (Depends-on): Likewise.
37013         * tests/test-time.c: Test for NULL compliance.
37014         * tests/test-wchar.c: Likewise.
37015         * modules/locale (Depends-on): Add stddef.
37016         * modules/stdio (Depends-on): Likewise.
37017         * modules/stdlib (Depends-on): Likewise.
37018         * modules/string (Depends-on): Likewise.
37019         * modules/time (Depends-on): Likewise.
37020         * modules/unistd (Depends-on): Likewise.
37021         * modules/wchar (Depends-on): Likewise.
37022         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37023         * lib/stdlib.in.h (includes): Likewise.
37024         * lib/string.in.h (includes): Likewise.
37025         * lib/time.in.h (includes): Likewise.
37026         * lib/unistd.in.h (includes): Likewise.
37027         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37028         replaced.
37029         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37030         * m4/stddef_h.m4: New file.
37031         * modules/stddef: Likewise.
37032         * lib/stddef.in.h: Likewise.
37033         * modules/stddef-tests: Likewise.
37034         * tests/test-stddef.c: Likewise.
37035         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37036         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37037         * doc/posix-headers/locale.texi (locale.h): Likewise.
37038         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37039         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37040         * doc/posix-headers/string.texi (string.h): Likewise.
37041         * doc/posix-headers/time.texi (time.h): Likewise.
37042         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37043         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37044
37045 2009-08-14  Eric Blake  <ebb9@byu.net>
37046
37047         doc: improve git diff of texinfo files
37048         * .gitattributes: Add rule for *.texi files, with hint on how to
37049         use it.
37050         Copied from m4, and based on a report by Bruno Haible.
37051
37052 2009-08-14  Bruno Haible  <bruno@clisp.org>
37053
37054         Disable multithread support by default on Cygwin 1.5.x for real.
37055         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37056
37057 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37058
37059         update-copyright: much ado about intervals
37060         * build-aux/update-copyright: Implement and document
37061         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37062         of copyright year intervals.
37063         Also, document UPDATE_COPYRIGHT_YEAR.
37064         * tests/test-update-copyright.sh: Test it.
37065
37066         update-copyright: convert 2-digit to 4-digit years
37067         * build-aux/update-copyright: Implement and document.
37068         * tests/test-update-copyright.sh: Update.
37069
37070 2009-08-14  Jim Meyering  <meyering@redhat.com>
37071
37072         test-exclude: avoid coreutils "make check" failure
37073         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37074         just as in test-argmatch.c.
37075
37076 2009-08-13  Eric Blake  <ebb9@byu.net>
37077
37078         test-dup2: fix bad assumption
37079         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37080         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37081
37082         test-version-etc: fix CRLF portability issue
37083         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37084         recognize \r.
37085         * tests/test-argp-version-etc-1.sh: Likewise.
37086
37087         getopt: update client modules
37088         * modules/argp (Depends-on): Use getopt-gnu.
37089         * modules/git-merge-changelog (Depends-on): Likewise.
37090         * modules/long-options (Depends-on): Likewise.
37091         * modules/xstrtol (Depends-on): Likewise.
37092
37093 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37094
37095         * tests/test-version-etc.sh: Don't fail on different
37096         project/version.  Don't fail on CRLF differences.  Rewrite to use
37097         multiple -e instead of multiple sed forks, suggested by Eric Blake
37098         <ebb9@byu.net>.
37099         * tests/test-argp-version-etc-1.sh: Likewise.
37100
37101 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37102
37103         * tests/test-version-etc.sh: Don't fail on different
37104         project/version.
37105
37106 2009-08-12  Bruno Haible  <bruno@clisp.org>
37107
37108         Tests for modules 'getopt-posix', 'getopt-gnu'.
37109         * modules/getopt-posix-tests: New file.
37110         * tests/test-getopt.c: New file.
37111         * tests/test-getopt.h: New file.
37112         * tests/test-getopt_long.h: New file.
37113
37114         New modules 'getopt-posix', 'getopt-gnu'.
37115         * modules/getopt-gnu: New file, renamed from modules/getopt.
37116         * modules/getopt-posix: New file.
37117         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37118         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37119         (gl_GETOPT): Remove macro.
37120         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37121         Disable the test against BSD systems that declare optreset. Test
37122         against mingw bug. Test against lack of support of optional arguments
37123         on many platforms.
37124         * doc/glibc-headers/getopt.texi: Update module name and list of
37125         relevant platforms.
37126         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37127         'getopt-gnu' and more portability problems.
37128         * NEWS: Mention the changes.
37129
37130 2009-08-12  Bruno Haible  <bruno@clisp.org>
37131
37132         Ensure that optarg etc. get declared by <unistd.h>.
37133         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37134         AC_USE_SYSTEM_EXTENSIONS.
37135         * modules/getopt (Depends-on): Add 'extensions'.
37136
37137 2009-08-12  Bruno Haible  <bruno@clisp.org>
37138
37139         Avoid test link errors.
37140         * modules/pipe-filter-ii-tests (Makefile.am): Define
37141         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37142         * modules/pipe-filter-gi-tests (Makefile.am): Define
37143         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37144         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37145
37146 2009-08-12  Bruno Haible  <bruno@clisp.org>
37147
37148         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37149         gl_GETOPT_SUBSTITUTE before.
37150         (gl_GETOPT): Use it.
37151         * m4/argp.m4 (gl_ARGP): Update.
37152         Reported by Sergey Poznyakoff.
37153
37154         * m4/getopt.m4: Reorder macros.
37155         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37156         (gl_GETOPT_SUBSTITUTE): Remove macro.
37157
37158 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37159
37160         Minor improvement in gitlog-to-changelog
37161
37162         * build-aux/gitlog-to-changelog: New option `--format' makes
37163         output format string configurable.
37164
37165 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37166
37167         Optimize exclude: use hash tables for non-wildcard patterns.
37168
37169         * lib/exclude.c: Include hash.h and mbuiter.h
37170         (struct exclude_pattern, exclude_segment): New data types.
37171         (struct exclude): Rewrite.
37172         (fnmatch_pattern_has_wildcards): New function.
37173         (new_exclude_segment, free_exclude_segment): New functions.
37174         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37175         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37176         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37177         * modules/exclude: Depend on hash and mbuiter.
37178
37179         * modules/exclude-tests: New file.
37180         * tests/test-exclude.c: New file.
37181         * tests/test-exclude1.sh: New file.
37182         * tests/test-exclude2.sh: New file.
37183         * tests/test-exclude3.sh: New file.
37184         * tests/test-exclude4.sh: New file.
37185         * tests/test-exclude5.sh: New file.
37186         * tests/test-exclude6.sh: New file.
37187         * tests/test-exclude7.sh: New file.
37188
37189 2009-08-12  Bruno Haible  <bruno@clisp.org>
37190
37191         Ensure that getopt() gets declared by <unistd.h>.
37192         * lib/unistd.in.h: Conditionally include getopt.h.
37193         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37194         Set GNULIB_UNISTD_H_GETOPT.
37195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37196         GNULIB_UNISTD_H_GETOPT.
37197         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37198
37199 2009-08-12  Bruno Haible  <bruno@clisp.org>
37200
37201         Clarify logic.
37202         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37203         gl_replace_getopt instead of GETOPT_H.
37204
37205 2009-08-12  Bruno Haible  <bruno@clisp.org>
37206
37207         * m4/getopt.m4: Add comments.
37208
37209 2009-08-12  Bruno Haible  <bruno@clisp.org>
37210
37211         Disable multithread support by default on Cygwin 1.5.x.
37212         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37213         set gl_use_threads=no if not specified otherwise.
37214
37215 2009-08-11  Bruno Haible  <bruno@clisp.org>
37216
37217         Avoid compilation error on NetBSD 5.0.
37218         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37219         * tests/test-stdio.c: Likewise.
37220         * tests/test-stdlib.c: Likewise.
37221         * tests/test-string.c: Likewise.
37222         * tests/test-unistd.c: Likewise.
37223         Reported by Greg Troxel <gdt@ir.bbn.com>
37224         at <https://savannah.gnu.org/support/?106973>.
37225
37226 2009-08-11  Bruno Haible  <bruno@clisp.org>
37227
37228         * modules/dup2-tests (Depends-on): Remove close.
37229
37230         Undo 2009-07-19 commit.
37231         * modules/acl-tests (Depends-on): Remove close.
37232         * modules/binary-io-tests (Depends-on): Likewise.
37233         * modules/closein-tests (Depends-on): Likewise.
37234         * modules/flock-tests (Depends-on): Likewise.
37235         * modules/fsync-tests (Depends-on): Likewise.
37236         * modules/lseek-tests (Depends-on): Likewise.
37237         * modules/pipe-tests (Depends-on): Likewise.
37238         * modules/posix_spawn-tests (Depends-on): Likewise.
37239         * modules/posix_spawnp-tests (Depends-on): Likewise.
37240         * modules/stat-time-tests (Depends-on): Likewise.
37241         * modules/yesno-tests (Depends-on): Likewise.
37242
37243 2009-08-10  Bruno Haible  <bruno@clisp.org>
37244
37245         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37246
37247 2009-08-10  Bruno Haible  <bruno@clisp.org>
37248
37249         Fix a gcc warning.
37250         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37251
37252 2009-08-10  Bruno Haible  <bruno@clisp.org>
37253
37254         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37255         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37256         not only the first time.
37257         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37258         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37259         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37260         is 1, not only the the first time.
37261
37262 2009-08-10  Bruno Haible  <bruno@clisp.org>
37263
37264         Make it possible to use module 'gethostname' without module 'close'.
37265         * lib/unistd.in.h (close): Evoke a link error only if
37266         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37268         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37269         * modules/unistd (Makefile.am): Substitute
37270         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37271         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37272         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37273         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37274         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37275         * modules/sys_ioctl (Makefile.am): Substitute
37276         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37277         * modules/socket (configure.ac): On native Windows, set
37278         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37279         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37280         Reported by Sam Steingold <sds@gnu.org>.
37281
37282 2009-08-10  Bruno Haible  <bruno@clisp.org>
37283
37284         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37285         * modules/ioctl (configure.ac): Likewise.
37286
37287 2009-08-10  Bruno Haible  <bruno@clisp.org>
37288
37289         Avoid collision between gnulib wrapper and libintl wrapper.
37290         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37291         already defined in intl/printf.c.
37292         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37293         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37294
37295 2009-08-09  Bruno Haible  <bruno@clisp.org>
37296
37297         Make <sys/select.h> really self-contained, also on Solaris 10.
37298         * lib/sys_select.in.h: Include <string.h>.
37299         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37300         Solaris 10 problem.
37301         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37302         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37303         Reported by Jim Meyering.
37304
37305 2009-08-09  Bruno Haible  <bruno@clisp.org>
37306
37307         Avoid warnings from 'aclocal' that are due to a use of macro name
37308         AM_XGETTEXT_OPTION that is not defined in automake.
37309         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37310         automake.
37311         * modules/error (configure.ac): Likewise.
37312         * modules/propername (configure.ac): Likewise.
37313         * modules/vasprintf (configure.ac): Likewise.
37314         * modules/verror (configure.ac): Likewise.
37315         * modules/xprintf (configure.ac): Likewise.
37316         * modules/xvasprintf (configure.ac): Likewise.
37317
37318 2009-08-08  Bruno Haible  <bruno@clisp.org>
37319
37320         Avoid compilation error in C++ mode.
37321         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37322         Reported by Sam Steingold <sds@gnu.org>.
37323
37324 2009-08-08  Bruno Haible  <bruno@clisp.org>
37325
37326         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37327         for the various Unix platforms.
37328         * doc/posix-headers/limits.texi: Update platforms list regarding
37329         HOST_NAME_MAX.
37330         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37331
37332 2009-08-07  Jim Meyering  <meyering@redhat.com>
37333
37334         selinux-at: fix typo in a comment
37335         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37336         Spotted by Paolo Bonzini.
37337
37338         selinux-at: remove redundant m4 code, add documentation
37339         * modules/selinux-at (configure.ac): Remove redundant code.
37340         LIB_SELINUX is already set via the dependent module, selinux-h.
37341         (Include): Add quotes around selinux-at.h.
37342         * lib/selinux-at.h: Add documentation.
37343         Reported by Bruno Haible in
37344         http://marc.info/?l=gnulib-bug&m=124958988300749
37345
37346 2009-08-07  Bruno Haible  <bruno@clisp.org>
37347
37348         Avoid link error on MacOS X 10.3 and 10.4.
37349         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37350         on non-ELF systems.
37351         * lib/argp-pv.c (argp_program_version): Likewise.
37352         Reported by Simon Josefsson.
37353
37354 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37355
37356         * tests/test-version-etc.sh: Use $EXEEXT.
37357
37358 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37359
37360         update-copyright: update documentation to point to maint.mk
37361         * build-aux/update-copyright: Here.
37362
37363 2009-08-06  Jim Meyering  <meyering@redhat.com>
37364
37365         maint.mk: support update-copyright-local
37366         * top/maint.mk (update-copyright-local): Define place-holder.
37367         (update-copyright): Depend on $(update-copyright-local).
37368
37369 2009-08-06  Jim Meyering  <meyering@redhat.com>
37370
37371         selinux-at: new module
37372         Initially written for coreutils, this module will soon be
37373         used by findutils, too.
37374         * MODULES.html.sh [Misc]: Add selinux-at.
37375         * lib/selinux-at.h: New file, from coreutils.
37376         * lib/selinux-at.c: Likewise.
37377         * modules/selinux-at: Likewise.
37378         (License): Change from LGPL to GPL, since it depends
37379         on the GPL'd openat module.
37380
37381         doc: update README
37382         * README: Remove references to cogito.
37383         Remove cvs-repo-updating instructions from 2007.
37384         Don't imply that CVS is better if you have limited disk space.
37385
37386 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37387
37388         update-copyright: support C-style comments
37389         * build-aux/update-copyright: Implement and document.
37390         * tests/test-update-copyright.sh: Test.
37391
37392 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37393
37394         update-copyright: support omitted "(C)"
37395         * build-aux/update-copyright: Implement and document.  Also,
37396         allow variable whitespace before "(C)".
37397         * tests/test-update-copyright.sh: Test.
37398
37399 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37400
37401         update-copyright: don't trip on non-FSF copyright statements
37402         * build-aux/update-copyright: Fix so that the first correctly
37403         formatted FSF copyright statement is recognized no matter what
37404         appears before it.  Update documentation.
37405         * tests/test-update-copyright.sh: Test that.
37406
37407 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37408
37409         update-copyright: clean up code a little
37410         * build-aux/update-copyright: Append "_re" to the name of any
37411         variable holding a regular expression.
37412         Replace "old" and "new" with "stmt" in variable names.
37413         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37414         handled correctly.
37415         Format code more consistently.
37416
37417 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37418
37419         update-copyright-tests: improve portability
37420         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37421         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37422
37423 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37424
37425         update-copyright: support @copyright{} and &copy;
37426         * build-aux/update-copyright: Implement and document.
37427         * tests/test-update-copyright.sh: Test.
37428
37429 2009-08-04  Jim Meyering  <meyering@redhat.com>
37430
37431         update-copyright-tests: correctly test EOL=\r\n handling
37432         * tests/test-update-copyright.sh: Put \r at the end of some lines
37433         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37434
37435         maint.mk: make update-copyright exclusion list more configurable
37436         * top/maint.mk (update-copyright): Default to excluding COPYING,
37437         but allow an override, in case someone does want to update that file.
37438
37439         maint.mk: don't update copyright date in COPYING
37440         * top/maint.mk (update-copyright): Exclude COPYING.
37441
37442         maint.mk: add a copyright-updating rule
37443         * top/maint.mk (update-copyright): New rule.
37444         Derived from coreutils/Makefile.am.
37445
37446         update-copyright: rename some variables
37447         * build-aux/update-copyright: Rename a few variables for clarity.
37448         Tweak syntax.  List Joel E. Denny as coauthor.
37449
37450 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37451
37452         update-copyright: fix bug for 2-digit last year and add tests
37453         * build-aux/update-copyright: Fix bug.
37454         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37455         specified.
37456         * modules/update-copyright-tests: New
37457         * tests/test-update-copyright.sh: New.
37458
37459 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37460
37461         update-copyright: handle leading tabs in line prefix
37462         * build-aux/update-copyright: Count leading tabs as 8 spaces
37463         when computing margin.  This helps with the formatting of
37464         ChangeLogs, for example.
37465         Fix documentation a little.
37466
37467 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37468
37469         update-copyright: support EOL=\r\n
37470         * build-aux/update-copyright: Implement that.
37471
37472 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37473
37474         update-copyright: automatically format copyright statements
37475         * build-aux/update-copyright: Implement that.
37476         Also, be a little more predictable and safer by always failing
37477         when the full copyright format is not perfectly recognized as an
37478         unbroken whole.  Discussed at
37479         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37480         Rewrite documentation.
37481
37482 2009-08-03  Bruno Haible  <bruno@clisp.org>
37483
37484         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37485
37486 2009-08-02  Bruno Haible  <bruno@clisp.org>
37487
37488         Tests for module 'uname'.
37489         * modules/uname-tests: New file.
37490         * tests/test-uname.c: New file.
37491
37492         New module 'uname'.
37493         * lib/uname.c: New file.
37494         * m4/uname.m4: New file.
37495         * modules/uname: New file.
37496         * doc/posix-functions/uname.texi: Mention the new module.
37497
37498 2009-08-02  Bruno Haible  <bruno@clisp.org>
37499
37500         Tests for module 'sys_utsname'.
37501         * modules/sys_utsname-tests: New file.
37502         * tests/test-sys_utsname.c: New file.
37503
37504         New module 'sys_utsname'.
37505         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37506         * m4/sys_utsname_h.m4: New file.
37507         * modules/sys_utsname: New file.
37508         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37509
37510 2009-08-02  Bruno Haible  <bruno@clisp.org>
37511
37512         Implicitly initialize the sockets library.
37513         * lib/gethostname.c: Include sockets.h.
37514         (rpl_gethostname): Invoke gl_sockets_startup.
37515         * lib/socket.c: Include sockets.h.
37516         (rpl_socket): Invoke gl_sockets_startup.
37517         * modules/gethostname (Depends-on): Add sockets.
37518         * modules/socket (Depends-on): Likewise.
37519         * tests/test-poll.c: Don't include sockets.h.
37520         (main): Don't invoke gl_sockets_startup.
37521         * tests/test-select.c: Don't include sockets.h.
37522         (main): Don't invoke gl_sockets_startup.
37523
37524 2009-08-02  Bruno Haible  <bruno@clisp.org>
37525
37526         Allow multiple calls to gl_sockets_startup.
37527         * lib/sockets.c (initialized_sockets_version): New variable.
37528         (gl_sockets_startup): Do nothing if already called for this or a higher
37529         version.
37530         (gl_sockets_cleanup): Reset initialized_sockets_version.
37531
37532 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37533
37534         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37535         different project/version.
37536
37537 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37538             Bruno Haible  <bruno@clisp.org>
37539
37540         Tests for module 'pipe-filter-gi'.
37541         * modules/pipe-filter-gi-tests: New file.
37542         * tests/test-pipe-filter-gi1.sh: New file.
37543         * tests/test-pipe-filter-gi1.c: New file.
37544         * tests/test-pipe-filter-gi2.sh: New file.
37545         * tests/test-pipe-filter-gi2-main.c: New file.
37546         * tests/test-pipe-filter-gi2-child.c: New file.
37547
37548         New module 'pipe-filter-gi'.
37549         * lib/pipe-filter-gi.c: New file.
37550         * modules/pipe-filter-gi: New file.
37551
37552 2009-08-02  Bruno Haible  <bruno@clisp.org>
37553             Paolo Bonzini  <bonzini@gnu.org>
37554
37555         Tests for module 'pipe-filter-ii'.
37556         * modules/pipe-filter-ii-tests: New file.
37557         * tests/test-pipe-filter-ii1.sh: New file.
37558         * tests/test-pipe-filter-ii1.c: New file.
37559         * tests/test-pipe-filter-ii2.sh: New file.
37560         * tests/test-pipe-filter-ii2-main.c: New file.
37561         * tests/test-pipe-filter-ii2-child.c: New file.
37562
37563         New module 'pipe-filter-ii'.
37564         * lib/pipe-filter.h: New file.
37565         * lib/pipe-filter-ii.c: New file.
37566         * lib/pipe-filter-aux.h: New file.
37567         * modules/pipe-filter-ii: New file.
37568
37569 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37570
37571         * lib/gc-libgcrypt.c: Change copyright to FSF.
37572         * lib/gc-gnulib.c: Likewise.
37573
37574 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37575
37576         * lib/gethostname.c: Include limits.h.
37577
37578 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37579             Bruno Haible  <bruno@clisp.org>
37580
37581         Ensure HOST_NAME_MAX as part of the gethostname module.
37582         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37583         define also HOST_NAME_MAX.
37584         * tests/test-gethostname.c: Include <limits.h>.
37585         (main): Check also HOST_NAME_MAX.
37586         * doc/posix-headers/limits.texi: Document the mingw problem.
37587
37588 2009-08-02  Bruno Haible  <bruno@clisp.org>
37589
37590         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37591         Add comments.
37592
37593 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37594
37595         * lib/gethostname.c: Add Windows wrapper.
37596         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37597         * modules/gethostname: Depend on sys_socket & errno, for also
37598         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37599         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37600
37601 2009-07-31  Jim Meyering  <meyering@redhat.com>
37602
37603         getloadavg: fix symbol name in comment
37604         * lib/getloadavg.c: Correct a typo I introduced when adding
37605         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37606         Matt Kraai spotted the problem.
37607
37608 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37609
37610         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37611         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37612         code also if ! defined N_NAME_POINTER.
37613         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37614         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37615         but the n_name member is a 12-byte array.
37616
37617 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37618
37619         update-copyright: generalize comment handling
37620         * build-aux/update-copyright: Handle copyright statements
37621         within more comment styles.
37622         Document usage.
37623         Report any file with an external copyright holder or parse failure.
37624
37625 2009-07-29  Jim Meyering  <meyering@redhat.com>
37626
37627         mktime: correct setting of REPLACE_MKTIME
37628         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37629
37630         update-copyright: new module
37631         * modules/update-copyright: New file.
37632         * build-aux/update-copyright: New file.
37633         * MODULES.html.sh (maint+release support): Add update-copyright.
37634
37635 2009-07-27  Bruno Haible  <bruno@clisp.org>
37636
37637         Fix compilation error when <ctime> is used and mktime is replaced.
37638         * lib/time.in.h (mktime): New declaration.
37639         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37640         REPLACE_MKTIME instead of defining mktime in config.h.
37641         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37642         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37643         Reported by Ross McFarland <rwmcfa1@neces.com>.
37644
37645 2009-07-27  Bruno Haible  <bruno@clisp.org>
37646
37647         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37648         Reported by Matt Kraai <mkraai@beckman.com>.
37649
37650 2009-07-25  Jim Meyering  <meyering@redhat.com>
37651
37652         maint.mk: avoid warnings about missing files
37653         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37654         diagnostic when .prev-version does not exist.
37655         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37656         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37657         nonexistent cfg.mk.
37658         Suggestions from Simon Josefsson.
37659
37660 2009-07-25  Bruno Haible  <bruno@clisp.org>
37661
37662         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37663         defined as macros. Needed on QNX 6.4.1.
37664         Reported by Matt Kraai <mkraai@beckman.com>.
37665
37666 2009-07-23  Jim Meyering  <meyering@redhat.com>
37667
37668         maint.mk: invoke "make dist" with a working value of XZ_OPT
37669         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37670
37671 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37672
37673         Make fseeko.c compile on QNX.
37674         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37675
37676 2009-07-22  Peter Simons  <simons@cryp.to>
37677
37678         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37679         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37680         * lib/md4.h: Likewise.
37681         * lib/md5.h: Likewise.
37682         * lib/sha1.h: Likewise.
37683         * lib/sha256.h: Likewise.
37684         * lib/sha512.h: Likewise.
37685
37686         tests-sha1: don't assign literal string to 'char *' variable
37687         * tests/test-sha1.c (main): Declare locals with "const" to match
37688         attributes of the right hand side.
37689
37690 2009-07-21  Eric Blake  <ebb9@byu.net>
37691
37692         dup2: fix more mingw problems
37693         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37694         fd to itself.
37695         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37696         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37697         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37698         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37699         care of mingw bugs.
37700
37701 2009-07-21  Jim Meyering  <meyering@redhat.com>
37702
37703         vc-list-files: avoid failure when /bin/sh is dash
37704         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37705         On some Debian based systems, /bin/sh is a symlink to dash, and running
37706         this command would omit the "/" following each 'tests' prefix:
37707           dash -x build-aux/vc-list-files -C . tests
37708         That is because bash and dash work differently:
37709           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37710           bash ok
37711           dash odd
37712
37713 2009-07-21  Eric Blake  <ebb9@byu.net>
37714
37715         dup2-tests: test previous patch
37716         * modules/dup2-tests: New file.
37717         * tests/test-dup2.c: Likewise.
37718         * tests/test-open.c (main): Avoid unspecified behavior.
37719         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37720         test.
37721
37722         dup2: work around mingw and cygwin 1.5 bug
37723         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37725         * modules/unistd (Makefile.am): Substitute it.
37726         * lib/unistd.in.h (dup2): Declare the replacement.
37727         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37728         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37729         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37730         * modules/execute (Depends-on): Add dup2.
37731         * modules/fseterr (Depends-on): Likewise.
37732         * modules/pipe (Depends-on): Likewise.
37733         * modules/posix_spawn-internal (Depends-on): Likewise.
37734
37735 2009-07-21  Bruno Haible  <bruno@clisp.org>
37736
37737         * modules/.gitattributes: New file.
37738
37739 2009-07-20  Bruno Haible  <bruno@clisp.org>
37740
37741         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37742         (main): Use it.
37743
37744 2009-07-20  Eric Blake  <ebb9@byu.net>
37745
37746         test-pipe: make a bit more robust.
37747         * tests/test-pipe.c (myerr): Allow error messages regardless of
37748         what we do to stderr.
37749         (test_pipe): Rearrange to avoid deadlock.
37750         (child_main): Try a larger read, to ensure we avoided deadlock.
37751         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37752         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37753         if misused.
37754
37755 2009-07-19  Jim Meyering  <meyering@redhat.com>
37756
37757         fts: avoid false-positive cycle-detection
37758         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37759         for each new command line argument.
37760
37761 2009-07-19  Bruno Haible  <bruno@clisp.org>
37762
37763         Fix build error on mingw with the modules sys_select and unistd.
37764         * modules/acl-tests (Depends-on): Add close.
37765         * modules/binary-io-tests (Depends-on): Likewise.
37766         * modules/closein-tests (Depends-on): Likewise.
37767         * modules/flock-tests (Depends-on): Likewise.
37768         * modules/fsync-tests (Depends-on): Likewise.
37769         * modules/lseek-tests (Depends-on): Likewise.
37770         * modules/pipe-tests (Depends-on): Likewise.
37771         * modules/posix_spawn-tests (Depends-on): Likewise.
37772         * modules/posix_spawnp-tests (Depends-on): Likewise.
37773         * modules/stat-time-tests (Depends-on): Likewise.
37774         * modules/yesno-tests (Depends-on): Likewise.
37775
37776 2009-07-19  Bruno Haible  <bruno@clisp.org>
37777
37778         Unify conditionals.
37779         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37780         macros, not at the compiler macros.
37781         * lib/pipe.c: Likewise.
37782         * lib/execute.c: Likewise.
37783         * lib/spawni.c: Likewise.
37784
37785 2009-07-19  Bruno Haible  <bruno@clisp.org>
37786
37787         Fix handling of closed stdin/stdout/stderr on mingw.
37788         * lib/w32spawn.h: Include unistd.h.
37789         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37790         file descriptor with O_NOINHERIT flag.
37791         (fd_safer_noinherit): New function, based on fd-safer.c.
37792         (dup_safer_noinherit): New function, based on dup-safer.c.
37793         (undup_safer_noinherit): New function.
37794         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37795         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37796         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37797         instead of fd_safer.
37798         * tests/test-pipe.c: Include <windows.h>.
37799         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37800         result.
37801
37802         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37803         from main.
37804         (test_pipe): Pass an extra argument for disambiguation.
37805         (main): Invoke parent_main or child_main.
37806
37807         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37808         consistently.
37809
37810 2009-07-18  Eric Blake  <ebb9@byu.net>
37811
37812         test-pipe: fix mingw build
37813         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37814
37815 2009-07-18  Bruno Haible  <bruno@clisp.org>
37816
37817         * modules/pipe-tests (Makefile.am): Fix typo.
37818
37819 2009-07-18  Eric Blake  <ebb9@byu.net>
37820
37821         error: fix mingw build
37822         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37823         Reported by Bruno Haible.
37824
37825         error: avoid undefined use of stdout
37826         * lib/error.c (error, error_at_line): Check that fd 1 is open
37827         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37828         is handling faults and the close_stdout module wants to report the
37829         detection of closed stdout as an error.
37830
37831 2009-07-17  Eric Blake  <ebb9@byu.net>
37832
37833         pipe: be robust in face of closed fds
37834         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37835         should cause child to misbehave.
37836         * modules/pipe-tests: New module.
37837         * tests/test-pipe.c: New file.
37838         * tests/test-pipe.sh: New file.
37839         Reported by Akim Demaille.
37840
37841 2009-07-14  Bruno Haible  <bruno@clisp.org>
37842
37843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37844         Reported by anonymous kc.
37845
37846 2009-07-07  Jim Meyering  <meyering@redhat.com>
37847
37848         maint.mk: don't look for translatable strings in *.m4 or *.mk
37849         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37850         when searching for translatable strings.
37851
37852 2009-07-05  Jim Meyering  <meyering@redhat.com>
37853
37854         remove superfluous parentheses in STREQ definition
37855         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37856         * lib/getugroups.c (STREQ): Likewise.
37857         * lib/fnmatch.c (STREQ): Likewise.
37858         Spotted by Bruno Haible.
37859
37860 2009-07-04  Jim Meyering  <meyering@redhat.com>
37861
37862         argv-iter: new module
37863         * MODULES.html.sh: Add argv-iter.
37864         * lib/argv-iter.c, lib/argv-iter.h: New files.
37865         * modules/argv-iter: New file.
37866         * modules/argv-iter-tests: New file.
37867         * tests/test-argv-iter.c: Test it.
37868
37869 2009-07-04  Bruno Haible  <bruno@clisp.org>
37870
37871         Fix assertion.
37872         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37873         contains more exact copies of a given entry than file2, leave the extra
37874         copies unpaired rather than aborting.
37875         Reported by Eric Blake.
37876
37877 2009-07-02  Bruno Haible  <bruno@clisp.org>
37878
37879         Speedup git-merge-changelog for git cherry-pick.
37880         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37881         (entries_mapping_get): New function, extracted from compute_mapping.
37882         (entries_mapping_reverse_get): New function.
37883         (compute_mapping): Add a 'full' argument. Return the result in a
37884         'struct entries_mapping'.
37885         (main): Update. Access the mappings through entries_mapping_get.
37886         Reported by Eric Blake.
37887
37888 2009-07-02  Bruno Haible  <bruno@clisp.org>
37889
37890         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37891         best_i.
37892
37893 2009-07-02  Bruno Haible  <bruno@clisp.org>
37894
37895         Speed up approximate search for matching ChangeLog entries.
37896         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37897         argument. Call fstrcmp_bounded instead of fstrcmp.
37898         (compute_mapping, try_split_merged_entry, main): Update callers.
37899
37900 2009-07-02  Bruno Haible  <bruno@clisp.org>
37901
37902         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37903
37904 2009-06-30  Bruno Haible  <bruno@clisp.org>
37905
37906         Reduce the number of uc_is_cased calls.
37907         * lib/unicase.h (casing_suffix_context_t): Add
37908         'first_char_except_ignorable' field.
37909         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37910         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37911         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37912         Update initializer.
37913         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37914         case-ignorable characters.
37915         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37916         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37917         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37918         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37919         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37920
37921 2009-06-30  Bruno Haible  <bruno@clisp.org>
37922
37923         Tests for module 'unicase/ignorable'.
37924         * modules/unicase/ignorable-tests: New file.
37925         * tests/unicase/test-ignorable.c: New file, generated by
37926         gen-uni-tables.
37927
37928         Tests for module 'unicase/cased'.
37929         * modules/unicase/cased-tests: New file.
37930         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37931         * tests/unicase/test-predicate-part1.h: New file, derived from
37932         tests/unictype/test-predicate-part1.h.
37933         * tests/unicase/test-predicate-part2.h: New file, same as
37934         tests/unictype/test-predicate-part2.h.
37935
37936         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37937         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37938         (output_casing_properties): New function.
37939         (main): Call it.
37940         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37941         * lib/unicase/cased.c: Include unictype/bitmap.h.
37942         (uc_is_cased): Define through a bitmap lookup.
37943         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37944         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37945         (uc_is_case_ignorable): Define through a bitmap lookup.
37946         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37947         lib/unictype/bitmap.h.
37948         (Depends-on): Add inline. Clean up.
37949         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37950         lib/unictype/bitmap.h.
37951         (Depends-on): Add inline. Clean up.
37952         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37953         recognition.
37954         * tests/unicase/test-u16-tolower.c (main): Likewise.
37955         * tests/unicase/test-u32-tolower.c (main): Likewise.
37956
37957 2009-06-30  Bruno Haible  <bruno@clisp.org>
37958
37959         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37960         * lib/unicase/u16-casemap.c: Likewise.
37961         * lib/unicase/u32-casemap.c: Likewise.
37962
37963 2009-06-29  Bruno Haible  <bruno@clisp.org>
37964
37965         Define u32_casefold as a wrapper around u32_ct_casefold.
37966         * lib/unicase/u32-casefold.c: Update.
37967         * modules/unicase/u32-casefold (Depends-on): Add
37968         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37969         unicase/empty-suffix-context. Clean up.
37970
37971         Define u16_casefold as a wrapper around u16_ct_casefold.
37972         * lib/unicase/u16-casefold.c: Update.
37973         * modules/unicase/u16-casefold (Depends-on): Add
37974         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37975         unicase/empty-suffix-context. Clean up.
37976
37977         Define u8_casefold as a wrapper around u8_ct_casefold.
37978         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37979         * lib/unicase/u8-casefold.c: Update.
37980         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37981         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37982
37983         Define u32_totitle as a wrapper around u32_ct_totitle.
37984         * lib/unicase/u32-totitle.c: Update.
37985         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37986         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37987
37988         Define u16_totitle as a wrapper around u16_ct_totitle.
37989         * lib/unicase/u16-totitle.c: Update.
37990         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37991         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37992
37993         Define u8_totitle as a wrapper around u8_ct_totitle.
37994         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37995         functions.
37996         (FUNC): Delegate to U_CT_TOTITLE.
37997         * lib/unicase/u8-totitle.c: Update.
37998         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37999         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38000
38001         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38002         invocation.
38003         * modules/unicase/u32-tolower (Depends-on): Add
38004         unicase/empty-prefix-context, unicase/empty-suffix-context.
38005
38006         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38007         invocation.
38008         * modules/unicase/u16-tolower (Depends-on): Add
38009         unicase/empty-prefix-context, unicase/empty-suffix-context.
38010
38011         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38012         * modules/unicase/u8-tolower (Depends-on): Add
38013         unicase/empty-prefix-context, unicase/empty-suffix-context.
38014
38015         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38016         invocation.
38017         * modules/unicase/u32-toupper (Depends-on): Add
38018         unicase/empty-prefix-context, unicase/empty-suffix-context.
38019
38020         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38021         invocation.
38022         * modules/unicase/u16-toupper (Depends-on): Add
38023         unicase/empty-prefix-context, unicase/empty-suffix-context.
38024
38025         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38026         * modules/unicase/u8-toupper (Depends-on): Add
38027         unicase/empty-prefix-context, unicase/empty-suffix-context.
38028
38029         New module 'unicase/u32-ct-casefold'.
38030         * lib/unicase/u32-ct-casefold.c: New file.
38031         * modules/unicase/u32-ct-casefold: New file.
38032
38033         New module 'unicase/u16-ct-casefold'.
38034         * lib/unicase/u16-ct-casefold.c: New file.
38035         * modules/unicase/u16-ct-casefold: New file.
38036
38037         New module 'unicase/u8-ct-casefold'.
38038         * lib/unicase/u8-ct-casefold.c: New file.
38039         * lib/unicase/u-ct-casefold.h: New file, derived from
38040         lib/unicase/u-casefold.h.
38041         * modules/unicase/u8-ct-casefold: New file.
38042
38043         New module 'unicase/u32-ct-totitle'.
38044         * lib/unicase/u32-ct-totitle.c: New file.
38045         * modules/unicase/u32-ct-totitle: New file.
38046
38047         New module 'unicase/u16-ct-totitle'.
38048         * lib/unicase/u16-ct-totitle.c: New file.
38049         * modules/unicase/u16-ct-totitle: New file.
38050
38051         New module 'unicase/u8-ct-totitle'.
38052         * lib/unicase/u8-ct-totitle.c: New file.
38053         * lib/unicase/u-ct-totitle.h: New file, derived from
38054         lib/unicase/u-totitle.h.
38055         * modules/unicase/u8-ct-totitle: New file.
38056
38057         New module 'unicase/u32-ct-tolower'.
38058         * lib/unicase/u32-ct-tolower.c: New file.
38059         * modules/unicase/u32-ct-tolower: New file.
38060
38061         New module 'unicase/u16-ct-tolower'.
38062         * lib/unicase/u16-ct-tolower.c: New file.
38063         * modules/unicase/u16-ct-tolower: New file.
38064
38065         New module 'unicase/u8-ct-tolower'.
38066         * lib/unicase/u8-ct-tolower.c: New file.
38067         * modules/unicase/u8-ct-tolower: New file.
38068
38069         New module 'unicase/u32-ct-toupper'.
38070         * lib/unicase/u32-ct-toupper.c: New file.
38071         * modules/unicase/u32-ct-toupper: New file.
38072
38073         New module 'unicase/u16-ct-toupper'.
38074         * lib/unicase/u16-ct-toupper.c: New file.
38075         * modules/unicase/u16-ct-toupper: New file.
38076
38077         New module 'unicase/u8-ct-toupper'.
38078         * lib/unicase/u8-ct-toupper.c: New file.
38079         * modules/unicase/u8-ct-toupper: New file.
38080
38081         Add context arguments to u*_casemap functions.
38082         * lib/unicase/unicasemap.h: Include unicase.h.
38083         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38084         suffix_context arguments.
38085         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38086         functions.
38087         (FUNC): Add prefix_context and suffix_context arguments. Use
38088         uc_is_cased and uc_is_case_ignorable.
38089         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38090         * lib/unicase/u16-casemap.c: Likewise.
38091         * lib/unicase/u32-casemap.c: Likewise.
38092         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38093         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38094         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38095         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38096         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38097         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38098
38099         New module 'unicase/u32-suffix-context'.
38100         * lib/unicase/u32-suffix-context.c: New file.
38101         * modules/unicase/u32-suffix-context: New file.
38102
38103         New module 'unicase/u16-suffix-context'.
38104         * lib/unicase/u16-suffix-context.c: New file.
38105         * modules/unicase/u16-suffix-context: New file.
38106
38107         New module 'unicase/u8-suffix-context'.
38108         * lib/unicase/u8-suffix-context.c: New file.
38109         * lib/unicase/u-suffix-context.h: New file.
38110         * modules/unicase/u8-suffix-context: New file.
38111
38112         New module 'unicase/empty-suffix-context'.
38113         * lib/unicase/empty-suffix-context.c: New file.
38114         * modules/unicase/empty-suffix-context: New file.
38115
38116         New module 'unicase/u32-prefix-context'.
38117         * lib/unicase/u32-prefix-context.c: New file.
38118         * modules/unicase/u32-prefix-context: New file.
38119
38120         New module 'unicase/u16-prefix-context'.
38121         * lib/unicase/u16-prefix-context.c: New file.
38122         * modules/unicase/u16-prefix-context: New file.
38123
38124         New module 'unicase/u8-prefix-context'.
38125         * lib/unicase/u8-prefix-context.c: New file.
38126         * lib/unicase/u-prefix-context.h: New file.
38127         * lib/unicase/context.h: New file.
38128         * modules/unicase/u8-prefix-context: New file.
38129
38130         New module 'unicase/empty-prefix-context'.
38131         * lib/unicase/empty-prefix-context.c: New file.
38132         * modules/unicase/empty-prefix-context: New file.
38133
38134         New module 'unicase/ignorable'.
38135         * lib/unicase/ignorable.c: New file.
38136         * modules/unicase/ignorable: New file.
38137
38138         New module 'unicase/cased'.
38139         * lib/unicase/caseprop.h: New file.
38140         * lib/unicase/cased.c: New file.
38141         * modules/unicase/cased: New file.
38142
38143         New functions for case mapping of substrings.
38144         * lib/unicase.h (casing_prefix_context_t): New type.
38145         (unicase_empty_prefix_context): New variable.
38146         (u8_casing_prefix_context, u16_casing_prefix_context,
38147         u32_casing_prefix_context, u8_casing_prefixes_context,
38148         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38149         declarations.
38150         (casing_suffix_context_t): New type.
38151         (unicase_empty_suffix_context): New variable.
38152         (u8_casing_suffix_context, u16_casing_suffix_context,
38153         u32_casing_suffix_context, u8_casing_suffixes_context,
38154         u16_casing_suffixes_context, u32_casing_suffixes_context,
38155         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38156         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38157         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38158         declarations.
38159
38160 2009-06-28  Jim Meyering  <meyering@redhat.com>
38161
38162         boostrap: indent only with spaces
38163         * build-aux/bootstrap: Indent only with spaces, never TABs.
38164
38165         bootstrap: split long lines
38166         * build-aux/bootstrap: Keep line length < 80.
38167
38168         bootstrap: sync from coreutils
38169         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38170         just as autoreconf does.  Verify a list of prerequisite
38171         package-name,version-number pairs if defined in bootstrap.conf.
38172         Refer to README-prereq, if prerequisites are not satisfied.
38173
38174 2009-06-27  Eric Blake  <ebb9@byu.net>
38175
38176         tests: add test for bogus NULL definition
38177         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38178         * tests/test-stdlib.c: Likewise.
38179         * tests/test-string.c: Likewise.
38180         * tests/test-locale.c: Likewise.
38181         * tests/test-unistd.c: Likewise.
38182         * modules/stdio-tests (Depends-on): Add verify.
38183         * modules/stdlib-tests (Depends-on): Likewise.
38184         * modules/string-tests (Depends-on): Likewise.
38185         * modules/locale-tests (Depends-on): Likewise.
38186         * modules/unistd-tests (Depends-on): Likewise.
38187
38188 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38189
38190         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38191         self-explaining comment.
38192         * m4/selinux-selinux-h: Update serial.
38193         (gl_LIBSELINUX): New macro, adding a warning for missing development
38194         packages to code extracted from...
38195         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38196         Add warning for missing development packages here, too.
38197
38198 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38199
38200         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38201
38202 2009-06-25  Eric Blake  <ebb9@byu.net>
38203
38204         version-etc: fix regression
38205         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38206         gcc.
38207         (version_etc): Use it, to catch bugs with trailing NULL.
38208         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38209         (version_etc_va): Fix logic bug.
38210         * modules/version-etc-tests: Add test.
38211         * tests/test-version-etc.c: New file.
38212         * tests/test-version-etc.sh: Likewise.
38213
38214 2009-06-25  Sam Steingold  <sds@gnu.org>
38215
38216         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38217         mbtowc declaration.
38218
38219 2009-06-25  Eric Blake  <ebb9@byu.net>
38220
38221         fpurge: migrate into <stdio.h>
38222         * lib/fpurge.h: Delete...
38223         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38224         * lib/fpurge.c (fpurge): Change declaring header.
38225         * modules/fpurge (Files): Drop deleted file.
38226         (Depends-on): Add stdio.
38227         (configure.ac): Set witness.
38228         * modules/stdio (Makefile.am): Support fpurge macros.
38229         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38230         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38231         * lib/fflush.c: Update client.
38232         * tests/test-fpurge.c: Likewise.
38233         * NEWS: Mention the change.
38234
38235 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38236
38237         * lib/argp-version-etc.c (program_authors): Add const
38238         qualifier.
38239         * lib/version-etc.c: Fix typos in the comments.
38240         * modules/argp-version-etc: Depends on version-etc.
38241
38242 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38243
38244         argp-version-etc: new module.
38245
38246         * lib/argp-version-etc.c: New file.
38247         * lib/argp-version-etc.h: New file.
38248         * modules/argp-version-etc: New file.
38249         * modules/argp-version-etc-tests: New file.
38250         * tests/test-argp-version-etc.c: New test.
38251         * tests/test-argp-version-etc-1.sh: New test.
38252
38253 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38254
38255         Provide additional interfaces and documentation for version-etc
38256         module.
38257
38258         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38259         interfaces.
38260         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38261         prototypes.
38262
38263 2009-06-24  Bruno Haible  <bruno@clisp.org>
38264
38265         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38266         HAVE_LIB${NAME} macro.
38267         Reported by Sam Steingold <sds@gnu.org>.
38268
38269 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38270
38271         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38272         needed.
38273
38274 2009-06-21  Bruno Haible  <bruno@clisp.org>
38275
38276         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38277         work.
38278         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38279         together with LIB${NAME}, LTLIB${NAME}.
38280         Reported by Sam Steingold <sds@gnu.org>.
38281
38282 2009-06-20  Jim Meyering  <meyering@redhat.com>
38283
38284         tests: make sc_require_test_exit_idiom more generic
38285         * top/maint.mk (Exit_witness_file): New overridable variable.
38286         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38287         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38288
38289 2009-06-19  Jim Meyering  <meyering@redhat.com>
38290
38291         hash: reverse order of src/dst parameters in an internal interface
38292         * lib/hash.c (transfer_entries): Reverse order of parameters to
38293         put DST before SRC.  Adjust callers.
38294
38295         tests: test-hash: avoid wholesale duplication
38296         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38297         Instead, use a loop and add a single conditional.
38298
38299         tests: test-hash: allow seed selection via a command line argument
38300         * tests/test-hash.c (get_seed): New function.
38301         (main): Use it.
38302
38303 2009-06-19  Eric Blake  <ebb9@byu.net>
38304
38305         hash: avoid memory leak on allocation failure
38306         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38307         failure.  Factor repeated algorithm...
38308         (transfer_entries): ...into new helper routine.
38309         (hash_delete): React to hash_rehash return value.
38310
38311         hash: reduce memory pressure in hash_rehash no-op case
38312         * lib/hash.c (next_prime): Avoid overflow.
38313         (hash_initialize): Factor bucket size computation...
38314         (compute_bucket_size): ...into new helper function.
38315         (hash_rehash): Use new function and open coding to reduce memory
38316         pressure, and avoid a memory leak in USE_OBSTACK code.
38317         Reported by Jim Meyering.
38318
38319 2009-06-18  Eric Blake  <ebb9@byu.net>
38320
38321         hash: make rotation more obvious
38322         * modules/hash (Depends-on): Add bitrotate and stdint.
38323         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38324         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38325         (SIZE_MAX): Rely on headers for definition.
38326         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38327         (raw_hasher): Use rotr_sz.
38328         Suggested by Jim Meyering.
38329
38330         hash: fix memory leak in last patch
38331         * lib/hash.c (hash_rehash): Avoid memory leak.
38332
38333         hash: avoid no-op rehashing
38334         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38335
38336         hash: provide default callback functions
38337         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38338         (hash_initialize): Use them as defaults.
38339         * tests/test-hash.c (main): Test this.
38340
38341         hash: minor optimization
38342         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38343         when possible.
38344         (hash_initialize): Document this promise.
38345         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38346         * tests/test-hash.c (hash_compare_strings): Test this.
38347
38348 2009-06-18  Bruno Haible  <bruno@clisp.org>
38349
38350         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38351         going to be replaced anyway.
38352
38353 2009-06-18  Bruno Haible  <bruno@clisp.org>
38354
38355         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38356         in one place.
38357         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38358         be replaced anyway.
38359
38360 2009-06-18  Eric Blake  <ebb9@byu.net>
38361
38362         hash: check for resize before insertion
38363         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38364         threshold before insertion, so that a pathological hash_rehash
38365         that fills every bucket can still trigger another rehash.
38366
38367 2009-06-18  Jim Meyering  <meyering@redhat.com>
38368
38369         hash-tests: add a loop around the small tests
38370         * tests/test-hash.c (main): Repeat small tests with selected
38371         small initial table sizes.
38372
38373 2009-06-17  Eric Blake  <ebb9@byu.net>
38374
38375         hash: minor cleanups
38376         * lib/hash.h (hash_entry): Make opaque, by moving...
38377         * lib/hash.c (hash_entry): ...here.
38378         (hash_insert): Clarify restrictions on what can be inserted.
38379         (hash_get_next): Clarify when it is safe to remove an element
38380         during traversal.
38381         (check_tuning): Skip verification when tuning is known safe.
38382         (hash_initialize): Clarify restrictions on tuning.
38383
38384 2009-06-17  Jim Meyering  <jim@meyering.net>
38385         and Eric Blake  <ebb9@byu.net>
38386
38387         hash-tests: new module
38388         * modules/hash-tests: New file.
38389         * tests/test-hash.c: New file.
38390
38391 2009-06-17  Eric Blake  <ebb9@byu.net>
38392
38393         strstr-simple: document new module
38394         * MODULES.html.sh: Document new module.
38395
38396         strstr, strcasestr: replace on platforms with broken memchr
38397         * modules/strstr: Split into...
38398         * modules/strstr-simple: ...new module that does not care about
38399         performance, but does care about glibc bug.
38400         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38401         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38402         if platform memchr is broken, per Debian bug 521737.
38403         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38404         memchr.
38405         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38406         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38407         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38408         * modules/mountlist (Depends-on): Add strstr-simple.
38409         * modules/gen-uni-tables (Depends-on): Likewise.
38410         * modules/argz (Depends-on): Add strstr.
38411
38412 2009-06-17  Bruno Haible  <bruno@clisp.org>
38413
38414         * modules/posix_spawn-internal (Depends-on): Add errno.
38415
38416 2009-06-17  Bruno Haible  <bruno@clisp.org>
38417
38418         Define missing ESTALE on Interix 3.5.
38419         * lib/errno.in.h (ESTALE): Assign a value if missing.
38420         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38421         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38422         missing.
38423         * doc/posix-headers/errno.texi: Mention the Interix bug.
38424         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38425
38426 2009-06-15  Eric Blake  <ebb9@byu.net>
38427
38428         memchr, memchr2: add valgrind exception
38429         * lib/memchr.valgrind: New file.
38430         * lib/memchr2.valgrind: New file.
38431         * modules/memchr (Files): Distribute valgrind file.
38432         * modules/memchr2 (Files): Likewise.
38433
38434         docs: memchr is no longer obsolete
38435         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38436         * lib/string.in.h (memchr): Simplify logic.
38437
38438 2009-06-14  Jim Meyering  <meyering@redhat.com>
38439
38440         link-follow: fix the "checking..." message to not mention trailing slash
38441         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38442         never considered trailing slashes.
38443
38444 2009-06-14  Bruno Haible  <bruno@clisp.org>
38445
38446         * m4/memchr.m4: Mention also the bug on IA-64.
38447         * doc/posix-functions/memchr.texi: Likewise.
38448
38449 2009-06-12  Eric Blake  <ebb9@byu.net>
38450
38451         memchr: detect broken x86_64 and alpha implementations
38452         * modules/memchr-tests (Depends-on): Move mmap detection...
38453         * modules/memchr (Depends-on): ...here.
38454         (configure.ac): Set indicator.
38455         * lib/string.in.h (memchr): Declare replacement.
38456         * modules/string (Makefile.am): Trigger replacement.
38457         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38458         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38459         bugs.
38460         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38461         * modules/getpagesize (License): Relax license.
38462
38463 2009-06-11  Bruno Haible  <bruno@clisp.org>
38464
38465         * lib/idpriv.h: Add more references.
38466
38467 2009-06-08  Bruno Haible  <bruno@clisp.org>
38468
38469         Tests for module 'idpriv-droptemp'.
38470         * modules/idpriv-droptemp-tests: New file.
38471         * tests/test-idpriv-droptemp.sh: New file.
38472         * tests/test-idpriv-droptemp.su.sh: New file.
38473         * tests/test-idpriv-droptemp.c: New file.
38474
38475         New module 'idpriv-droptemp'.
38476         * lib/idpriv-droptemp.c: New file.
38477         * modules/idpriv-droptemp: New file.
38478
38479 2009-06-08  Bruno Haible  <bruno@clisp.org>
38480
38481         Tests for module 'idpriv-drop'.
38482         * modules/idpriv-drop-tests: New file.
38483         * tests/test-idpriv-drop.sh: New file.
38484         * tests/test-idpriv-drop.su.sh: New file.
38485         * tests/test-idpriv-drop.c: New file.
38486
38487         New module 'idpriv-drop'.
38488         * lib/idpriv.h: New file.
38489         * lib-idpriv-drop.c: New file.
38490         * m4/idpriv.m4: New file.
38491         * modules/idpriv-drop: New file.
38492
38493 2009-06-08  Bruno Haible  <bruno@clisp.org>
38494
38495         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38496         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38497         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38498         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38499         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38500         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38501         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38502
38503 2009-06-08  Eric Blake  <ebb9@byu.net>
38504
38505         test-strstr: use memory fence, when possible
38506         * tests/test-strstr.c (main): Use memory fence, in order to be
38507         more likely to trigger Debian bug 521737.
38508         * modules/strstr-tests (Files): Pull in additional files.
38509
38510         memchr: no longer obsolete, for wider field testing
38511         * modules/memchr (Status, Notice): Delete, this module is no
38512         longer obsolete.
38513         * modules/vasnprintf (Depends-on): Add memchr.
38514
38515 2009-06-07  Jim Meyering  <meyering@redhat.com>
38516
38517         hash: declare some functions with the warn_unused_result attribute
38518         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38519
38520 2009-06-07  Bruno Haible  <bruno@clisp.org>
38521
38522         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38523         Reported by Eric Blake.
38524
38525 2009-06-06  Eric Blake  <ebb9@byu.net>
38526
38527         test-alignof: fix typo with long double
38528         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38529         compiler error.
38530
38531 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38532
38533         Escape non-texinfo { and }s.
38534         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38535         markup error.
38536
38537 2009-06-04  Jim Meyering  <meyering@redhat.com>
38538
38539         gitlog-to-changelog: don't infloop on an empty commit log
38540         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38541         Reported by Boris Petersen <transacid@centerim.org>.
38542
38543 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38544
38545         version-etc: extend for packagers
38546         Add three new configure options, intended for packagers:
38547           --with-packager="packager name"
38548           --with-packager-version="packager-specific version"
38549           --with-packager-bug-reports="packager bug reporting"
38550         An example with coreutils:
38551           $ ./configure \
38552             --with-packager=Gentoo \
38553             --with-packager-bug-report=http://bugs.gentoo.org/ \
38554             --with-packager-version="patchset 1.6"
38555           $ ./src/ls --version | head -n2
38556           ls (GNU coreutils) 7.1-dirty
38557           Packaged by Gentoo (patchset 1.6)
38558         Note that the bug reporting info via --help doesn't show up because
38559         coreutils uses its own custom emit_bug_reporting_address() implementation
38560         in src/system.h.  If it didn't, it'd look like:
38561           $ ./src/ls --help | tail -n4
38562           Report bugs to <bug-coreutils@gnu.org>.
38563           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38564           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38565           General help using GNU software: <http://www.gnu.org/gethelp/>.
38566         * lib/version-etc.c: Print new information, if provided.
38567         * m4/version-etc.m4: New file.
38568         * modules/version-etc (Files): Add m4/version-etc.m4.
38569         (configure.ac): Add gl_VERSION_ETC.
38570
38571 2009-05-31  Bruno Haible  <bruno@clisp.org>
38572
38573         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38574         and 'int64_t'.
38575         * modules/alignof-tests (Dependencies): Add stdint.
38576         Reported by Eric Blake.
38577
38578 2009-05-31  Bruno Haible  <bruno@clisp.org>
38579
38580         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38581         restriction due to compiler bugs.
38582         Reported by Eric Blake.
38583
38584 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38585             Bruno Haible  <bruno@clisp.org>
38586
38587         Fix test-alignof failure.
38588         * lib/alignof.h (alignof_slot): New macro.
38589         (alignof_type): New macro, with the same semantics as the previous
38590         'alignof'.
38591         (alignof): Alias to alignof_slot.
38592         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38593         check that the results are usable as constant expressions.
38594
38595 2009-05-31  Bruno Haible  <bruno@clisp.org>
38596
38597         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38598         * tests/test-memchr.c (main): Check that memchr does not read past the
38599         first occurrence of the byte.
38600         * tests/test-strstr.c (main): Update comment.
38601         Suggested by Eric Blake.
38602
38603 2009-05-30  Bruno Haible  <bruno@clisp.org>
38604
38605         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38606         detail how to use dumpbin.
38607         Reported by David Byron <dbyron@dbyron.com>.
38608
38609 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38610
38611         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38612
38613 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38614
38615         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38616
38617 2009-05-28  Bruno Haible  <bruno@clisp.org>
38618
38619         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38620         build-aux/ files.
38621
38622 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38623
38624         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38625
38626 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38627
38628         * gnulib-tool (sed_transform_main_lib_file)
38629         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38630         regexps.
38631
38632 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38633
38634         * tests/test-strstr.c: Add another self-test.
38635         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38636         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38637
38638 2009-05-23  Bruno Haible  <bruno@clisp.org>
38639
38640         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38641         change.
38642
38643 2009-05-21  Bruno Haible  <bruno@clisp.org>
38644
38645         Simplify use of mode_t varargs.
38646         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38647         uses 'mode_t' or 'int'.
38648         * lib/openat.c (openat): Likewise.
38649         * lib/open-safer.c (open_safer): Likewise.
38650         * m4/mode_t.m4: New file.
38651         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38652         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38653         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38654         * modules/open (Files): Add m4/mode_t.m4.
38655         * modules/openat (Files): Likewise.
38656         * modules/fcntl-safer (Files): Likewise.
38657         Suggested by Eric Blake.
38658
38659 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38660
38661         * doc/glibc-functions/fallocate.texi: New file.
38662         * doc/gnulib.texi: Include it.
38663
38664 2009-05-21  Eric Blake  <ebb9@byu.net>
38665             Bruno Haible  <bruno@clisp.org>
38666
38667         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38668         invocations.
38669         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38670
38671 2009-05-21  Eric Blake  <ebb9@byu.net>
38672             Bruno Haible  <bruno@clisp.org>
38673
38674         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38675         include_next. Fix of 2008-11-20 commit.
38676         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38677         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38678         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38679         NEXT_MATH_H.
38680         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38681         instead of NEXT_MATH_H.
38682
38683 2009-05-21  Bruno Haible  <bruno@clisp.org>
38684
38685         Avoid redefinition warnings for SIZE_MAX.
38686         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38687         Reported by Simon Josefsson.
38688
38689 2009-05-21  Bruno Haible  <bruno@clisp.org>
38690
38691         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38692         AC_CACHE_VAL.
38693
38694 2009-05-20  Bruno Haible  <bruno@clisp.org>
38695
38696         Make zeroptr.h work on mingw.
38697         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38698         mprotect.
38699         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38700         * modules/memchr2-tests (configure.ac): Likewise.
38701         * modules/memcmp-tests (configure.ac): Likewise.
38702         * modules/memmem-tests (configure.ac): Likewise.
38703         * modules/memrchr-tests (configure.ac): Likewise.
38704         Reported by Simon Josefsson.
38705
38706 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38707
38708         * tests/test-glob.c: Include string.h for strcmp prototype.
38709
38710 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38711
38712         * modules/getdelim (Depends-on): Add explicit stdint, although it
38713         was implicitly already pulled in via realloc-posix.
38714         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38715
38716 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38717
38718         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38719         G. Christensen" <tgc@jupiterrise.com>.
38720         * m4/sys_socket_h.m4: Check for sa_family_t.
38721         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38722         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38723         * tests/test-sys_socket.c: Check that sa_family_t works.
38724
38725 2009-05-18  Eric Blake  <ebb9@byu.net>
38726
38727         maint.mk: allow gnulib_dir in VPATH build
38728         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38729
38730 2009-05-15  Jim Meyering  <meyering@redhat.com>
38731
38732         maint.mk: Give gnulib_dir a default definition.
38733         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38734         Thus, most packages no longer need to specify this variable in cfg.mk
38735
38736 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38737
38738         rename.m4: fix typos that would make non-mingw cross-configure fail
38739         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38740
38741 2009-05-13  Eric Blake  <ebb9@byu.net>
38742
38743         mmap-anon: avoid out-of-order autoconf expansion
38744         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38745         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38746         * modules/memchr-tests (Depends-on): Add extensions.
38747         * modules/memchr2-tests (Depends-on): Add extensions.
38748         * modules/memcmp-tests (Depends-on): Add extensions.
38749         * modules/memmem-tests (Depends-on): Add extensions.
38750         * modules/memrchr-tests (Depends-on): Add extensions.
38751
38752 2009-05-13  Bruno Haible  <bruno@clisp.org>
38753
38754         Make some tests ISO C 99 compliant.
38755         * tests/zerosize-ptr.h: New file.
38756         * tests/test-memchr.c: Include zerosize-ptr.h.
38757         (main): Use a zero-size object pointer instead of NULL.
38758         * tests/test-memchr2.c: Include zerosize-ptr.h.
38759         (main): Use a zero-size object pointer instead of NULL.
38760         * tests/test-memcmp.c: Include zerosize-ptr.h.
38761         (main): Use a zero-size object pointer instead of NULL.
38762         * tests/test-memmem.c: Include zerosize-ptr.h.
38763         (main): Use a zero-size object pointer instead of NULL.
38764         * tests/test-memrchr.c: Include zerosize-ptr.h.
38765         (main): Use a zero-size object pointer instead of NULL.
38766         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38767         m4/mmap-anon.m4.
38768         (Depends-on): Add getpagesize.
38769         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38770         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38771         m4/mmap-anon.m4.
38772         (Depends-on): Add getpagesize.
38773         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38774         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38775         m4/mmap-anon.m4.
38776         (Depends-on): Add getpagesize.
38777         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38778         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38779         m4/mmap-anon.m4.
38780         (Depends-on): Add getpagesize.
38781         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38782         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38783         m4/mmap-anon.m4.
38784         (Depends-on): Add getpagesize.
38785         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38786
38787 2009-05-12  Bruno Haible  <bruno@clisp.org>
38788
38789         Tests for module 'alignof'.
38790         * modules/alignof-tests: New file.
38791         * tests/test-alignof.c: New file.
38792
38793 2009-05-12  Bruno Haible  <bruno@clisp.org>
38794
38795         Fix alignof macro.
38796         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38797         vendor compilers that are always correct.
38798
38799 2009-05-12  Bruno Haible  <bruno@clisp.org>
38800
38801         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38802         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38803         not whether its fully works.
38804
38805 2009-05-12  Bruno Haible  <bruno@clisp.org>
38806
38807         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38808
38809 2009-05-12  Jim Meyering  <meyering@redhat.com>
38810
38811         * top/maint.mk: Adjust backslash alignment.
38812
38813 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38814
38815         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38816
38817 2009-05-11  Eric Blake  <ebb9@byu.net>
38818
38819         argp: avoid undefined behavior
38820         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38821         macros.
38822
38823 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38824
38825         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38826         user.name to prevent git commit from complaining.
38827
38828 2009-05-10  Bruno Haible  <bruno@clisp.org>
38829
38830         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38831         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38832         it rewrites every file name only once.
38833         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38834
38835 2009-05-08  Bruno Haible  <bruno@clisp.org>
38836
38837         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38838         instead of 'max'.
38839
38840 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38841
38842         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38843         sockaddr_storage test.
38844
38845 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38846
38847         * modules/sys_socket (Makefile.am): Substitute
38848         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38849         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38850         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38851         * tests/test-sys_socket.c: Check sockaddr_storage.
38852
38853 2009-05-08  Bruno Haible  <bruno@clisp.org>
38854
38855         New module 'alignof'.
38856         * lib/alignof.h: New file.
38857         * modules/alignof: New file.
38858
38859 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38860             Bruno Haible  <bruno@clisp.org>
38861
38862         Fix test-file-has-acl on FreeBSD.
38863         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38864         mask is implicitly added.
38865         * tests/test-file-has-acl.c: Include <signal.h>.
38866         (main): Terminate the test after 5 seconds.
38867         * modules/acl-tests (configure.ac): Check for alarm function.
38868
38869 2009-05-04  Bruno Haible  <bruno@clisp.org>
38870
38871         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38872         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38873         * modules/errno (configure.ac): Drop AC_REQUIRE.
38874         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38875         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38876
38877 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38878
38879         * modules/glob-tests: New module.
38880         * tests/test-glob.c: Add.
38881
38882 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38883
38884         * modules/fnmatch-tests: New module.
38885         * tests/test-fnmatch.c: Add.
38886
38887 2009-05-04  Eric Blake  <ebb9@byu.net>
38888
38889         maint: make the new no-submodule-changes rule VPATH-safe
38890         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38891
38892 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38893             Bruno Haible  <bruno@clisp.org>
38894
38895         acl: Fix infinite loop on FreeBSD.
38896         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38897         of return value from acl_get_entry.
38898         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38899         Likewise.
38900
38901 2009-05-03  Bruno Haible  <bruno@clisp.org>
38902
38903         * lib/acl-internal.h (acl_entries): Clarify return value.
38904         * lib/acl_entries.c (acl_entries): Likewise.
38905
38906 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38907
38908         Bug fix in acl module.
38909         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38910
38911 2009-05-03  Bruno Haible  <bruno@clisp.org>
38912
38913         Create gperf-generated file in the source dir, not in the build dir.
38914         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38915         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38916         * modules/unicase/locale-language (unicase/locale-languages.h):
38917         Likewise.
38918         * modules/unicase/special-casing (unicase/special-casing-table.h):
38919         Likewise.
38920         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38921         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38922         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38923         Reported by Ralf Wildenhues.
38924
38925 2009-05-03  Bruno Haible  <bruno@clisp.org>
38926
38927         * modules/fnmatch (Description, configure.ac): Taken from
38928         fnmatch-posix.
38929         * modules/fnmatch-posix: Turn into a symbolic reference to the
38930         'fnmatch' module, and deprecate.
38931         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38932
38933 2009-05-03  Bruno Haible  <bruno@clisp.org>
38934
38935         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38936         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38937         Reported by Ralf Wildenhues.
38938
38939 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38940
38941         * m4/fnmatch.m4: Fix fnmatch re-define.
38942
38943 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38944
38945         priv-set: new module and tests; adapt write-any-file
38946         * lib/priv-set.c: New file.
38947         * lib/priv-set.h: New file.
38948         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38949         * lib/write-any-file.c: Simplify by using priv-set module.
38950         * m4/priv-set.m4: New file.
38951         * modules/priv-set: New file.
38952         * modules/unlinkdir: Add dependency on priv-set module.
38953         * modules/write-any-file: Likewise.
38954
38955         Tests for module 'priv-set'.
38956         * modules/priv-set-tests: New file.
38957         * tests/test-priv-set.c: New file.
38958
38959 2009-05-03  Jim Meyering  <meyering@redhat.com>
38960             Bruno Haible  <bruno@clisp.org>
38961
38962         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38963         use the converted UTF-8 variant of the name instead.
38964
38965 2009-05-03  Jim Meyering  <meyering@redhat.com>
38966
38967         tests: tighten some getdate tests
38968         * tests/test-getdate.c (main): Tighten tests: require equality,
38969         not just greater than.  Set TZ envvar to UTC0.
38970
38971 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38972
38973         getdate: correctly interpret "next monday" when run on a Monday
38974         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38975         that e.g., "next tues" (when run on a tuesday) results in a date
38976         that is one week in the future, and not today's date.
38977         I.e., add a week when the wday is the same as the current one.
38978         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38979         and earlier by Martin Bernreuther and Jan Minář.
38980         * tests/test-getdate.c (main): Check that "next DAY" is always in
38981         the future and that "last DAY" is always in the past.
38982
38983 2009-05-02  Jim Meyering  <meyering@redhat.com>
38984
38985         build: ensure that a release build fails when a submodule is unclean
38986         * top/maint.mk (no-submodule-changes): New rule.
38987         (alpha beta major): Depend on it.
38988
38989 2009-05-02  Bruno Haible  <bruno@clisp.org>
38990
38991         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38992         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38993         shell variable gl_fnmatch_required to detect which variant is
38994         requested.
38995         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38996         gl_FUNC_FNMATCH_POSIX.
38997         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38998         exclude fnmatch-posix.
38999
39000 2009-05-02  Bruno Haible  <bruno@clisp.org>
39001
39002         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39003         * modules/mbsrtowcs (License): Change to LGPLv2+.
39004         * modules/strnlen1 (License): Likewise.
39005         Reported by Simon Josefsson.
39006
39007 2009-05-02  Bruno Haible  <bruno@clisp.org>
39008
39009         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39010         "cross".
39011         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39012         gnulib-tool was called with option --source-base=lib.
39013
39014 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39015
39016         Use automake *-local hooks without commands, for extensibility.
39017         * modules/localcharset (Makefile.am): Rename install-exec-local
39018         rule to install-exec-localcharset, and make it a prerequisite of
39019         install-exec-local.  Likewise, rename the uninstall-local rule to
39020         uninstall-localcharset, and make it a prerequisite of the former.
39021
39022 2009-05-01  Bruno Haible  <bruno@clisp.org>
39023
39024         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39025         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39026         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39027         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39028         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39029         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39030         m4/locale-zh.m4, m4/codeset.m4.
39031
39032         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39033         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39034         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39035         m4/locale-zh.m4.
39036
39037         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39038         REPLACE_WCRTOMB if mbstate_t must be replaced.
39039         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39040         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39041
39042 2009-05-01  Bruno Haible  <bruno@clisp.org>
39043
39044         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39045         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39046         dngettext, dcngettext, textdomain, bindtextdomain,
39047         bind_textdomain_codeset): Undefine before redefining.
39048
39049 2009-04-30  Bruno Haible  <bruno@clisp.org>
39050
39051         Fix bug introduced on 2009-04-25.
39052         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39053         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39054         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39055         is defined.
39056         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39057         is defined.
39058         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39059         is defined.
39060         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39061
39062 2009-04-28  Bruno Haible  <bruno@clisp.org>
39063
39064         Comment tweaks.
39065         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39066         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39067         * lib/unicase.h (u*_casexfrm): Likewise.
39068         Reported by Paolo Bonzini.
39069
39070 2009-04-28  Bruno Haible  <bruno@clisp.org>
39071
39072         Fix a compilation error.
39073         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39074         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39075         Reported by Jim Meyering.
39076
39077 2009-04-27  Bruno Haible  <bruno@clisp.org>
39078
39079         New module 'libunistring'.
39080         * modules/libunistring: New file.
39081         * m4/libunistring.m4: New file.
39082         * MODULES.html.sh (Unicode string functions): Add it.
39083
39084 2009-04-27  Eric Blake  <ebb9@byu.net>
39085
39086         maint.mk: allow package-specific header to provide <config.h>
39087         * top/maint.mk (sc_require_config_h): New variable.
39088         (sc_require_config_h, sc_require_config_h_first): Use it.
39089
39090 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39091
39092         * top/maint.mk (sc_avoid_if_before_free): Except
39093         useless-if-before-free script.
39094
39095 2009-04-27  Eric Blake  <ebb9@byu.net>
39096
39097         maintainer-makefile: depend on all required helper scripts
39098         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39099         useless-if-before-free.
39100         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39101         version, rather than assuming gnulib checkout is available.
39102         Reported by Simen Josefsson.
39103
39104 2009-04-26  Bruno Haible  <bruno@clisp.org>
39105
39106         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39107         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39108         "../" or "..".
39109
39110 2009-04-26  Bruno Haible  <bruno@clisp.org>
39111
39112         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39113         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39114         AC_LIB_HAVE_LINKFLAGS.
39115
39116 2009-04-26  Bruno Haible  <bruno@clisp.org>
39117
39118         Simplify calling convention of u*_conv_from_encoding.
39119         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39120         u32_conv_from_encoding): Expect a resultbuf argument and return the
39121         result directly as a pointer.
39122         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39123         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39124         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39125         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39126         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39127         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39128         Update.
39129         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39130         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39131         * lib/vasnprintf.c (VASNPRINTF): Update.
39132         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39133         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39134         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39135         * NEWS: Mention the change.
39136
39137 2009-04-26  Bruno Haible  <bruno@clisp.org>
39138
39139         Simplify calling convention of u*_conv_to_encoding.
39140         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39141         u32_conv_to_encoding): Expect a resultbuf argument and return the
39142         result directly as a pointer.
39143         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39144         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39145         freeing scaled_offsets if mem_iconveha failed.
39146         * lib/unicase/u-casexfrm.h (FUNC): Update.
39147         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39148         * lib/vasnprintf.c (VASNPRINTF): Update.
39149         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39150         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39151         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39152         * NEWS: Mention the change.
39153
39154 2009-04-26  Bruno Haible  <bruno@clisp.org>
39155
39156         Avoid test failures on AIX and OSF/1.
39157         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39158         malloc(0).
39159         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39160         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39161         Likewise.
39162         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39163         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39164         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39165         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39166         * doc/posix-functions/malloc.texi: Document the portability problem
39167         related to malloc(0).
39168
39169 2009-04-26  Bruno Haible  <bruno@clisp.org>
39170
39171         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39172         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39173         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39174
39175 2009-04-25  Bruno Haible  <bruno@clisp.org>
39176
39177         Avoid link error when creating a namespace clean library.
39178         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39179         as macro with arguments if already defined as an alias.
39180         * lib/signbitf.c (gl_signbitf): Don't undefine.
39181         * lib/signbitd.c (gl_signbitd): Don't undefine.
39182         * lib/signbitl.c (gl_signbitl): Don't undefine.
39183
39184 2009-04-25  Jim Meyering  <meyering@redhat.com>
39185
39186         vc-list-files: fix another quoting bug
39187         * build-aux/vc-list-files: Avoid sed backslash expansion
39188         of pathological directory names.
39189
39190 2009-04-25  Eric Blake  <ebb9@byu.net>
39191
39192         vc-list-files: fix shell quoting error
39193         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39194         timestamp.
39195
39196 2009-04-25  Jim Meyering  <meyering@redhat.com>
39197
39198         vc-list-files: restore lost functionality with subdir argument
39199         * build-aux/vc-list-files: When given a non-"." sub-directory
39200         argument, substitute the $dir/ prefix back onto each resulting name.
39201         Otherwise, coreutils' root_tests check would fail.
39202
39203 2009-04-24  Eric Blake  <ebb9@byu.net>
39204
39205         vc-list-files: ignore git symlinks
39206         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39207         than ls-files, to ignore git symlinks.
39208
39209         maint.mk: import improvements from m4
39210         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39211         (move_if_change): Delete unused macro.
39212         (news-date-check, vc-diff-check): Support VPATH builds.
39213         (announcement): Likewise.  Split --bootstrap-tools list...
39214         (boostrap-tools): ...into separate list, which can be overridden
39215         in cfg.mk.
39216         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39217         requiring dependency on useless-if-before-free module.
39218         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39219         Support VPATH builds.
39220
39221 2009-04-24  Jim Meyering  <meyering@redhat.com>
39222
39223         maint.mk: remove coreutils-specific rules and variables
39224         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39225         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39226         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39227
39228         maint.mk: remove obsolete rule
39229         * top/maint.mk (rel-check): Remove rule.
39230         (WGET, WGETFLAGS): Remove now-unused variables.
39231
39232 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39233
39234         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39235         consistency.
39236
39237         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39238         '$(PATH_SEPARATOR)' instead of ':'.
39239
39240 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39241
39242         * lib/getopt1.c (main): Use 'const' for static array.
39243
39244 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39245
39246         * top/maint.mk: Sync with coreutils.
39247         * NEWS: Explain incompatibilities.
39248
39249 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39250             Bruno Haible  <bruno@clisp.org>
39251
39252         Fix cross-compilation results.
39253         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39254         statement, as third argument of AC_TRY_RUN.
39255         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39256         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39257         Likewise.
39258         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39259         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39260         Likewise.
39261         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39262         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39263         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39264
39265 2009-04-20  Bruno Haible  <bruno@clisp.org>
39266
39267         Avoid test failure on mingw.
39268         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39269
39270 2009-04-20  Bruno Haible  <bruno@clisp.org>
39271
39272         Avoid compilation error on mingw.
39273         * modules/localename-tests (Depends-on): Add locale.
39274
39275 2009-04-19  Bruno Haible  <bruno@clisp.org>
39276
39277         Support for building a shared library on Windows platforms.
39278         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39279         (main): Test the presence of UNINORM_NFC here.
39280         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39281         (main): Test the presence of UNINORM_NFD here.
39282         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39283         (main): Test the presence of UNINORM_NFKC here.
39284         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39285         (main): Test the presence of UNINORM_NFKD here.
39286
39287 2009-04-19  Bruno Haible  <bruno@clisp.org>
39288
39289         Avoid a compiler warning.
39290         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39291         Change type of variable 'sequence'.
39292
39293 2009-04-19  Bruno Haible  <bruno@clisp.org>
39294
39295         * modules/configmake (Makefile.am): When the contents of configmake.h
39296         does not change, arrange to preserve its modification time.
39297
39298 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39299
39300         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39301         gettext domain.
39302
39303 2009-04-16  Jim Meyering  <meyering@redhat.com>
39304
39305         useless-if-before-free: improve conversion code
39306         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39307         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39308
39309 2009-04-14  Bruno Haible  <bruno@clisp.org>
39310
39311         * modules/fcntl (Depends-on): Add extensions.
39312         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39313
39314 2009-04-12  Ben Pfaff  <blp@gnu.org>
39315
39316         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39317         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39318
39319 2009-03-20  Ben Pfaff  <blp@gnu.org>
39320
39321         Make rename replace existing destinations on Windows.
39322         * m4/rename.m4: Add test for Mingw.
39323         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39324         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39325         * doc/posix-functions/rename.texi: Document.
39326
39327 2009-04-10  Bruno Haible  <bruno@clisp.org>
39328
39329         New include file "iconveh.h".
39330         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39331         * lib/striconveh.h: Include it.
39332         (enum iconv_ilseq_handler): Remove definition.
39333         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39334         striconveh.h.
39335         * lib/striconveha.c: Include striconveh.h.
39336         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39337         * modules/striconveh (Files): Add lib/iconveh.h.
39338         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39339         lib/striconveh.h.
39340
39341 2009-04-10  Bruno Haible  <bruno@clisp.org>
39342
39343         * lib/uniconv.h: Update comment.
39344
39345 2009-04-10  Bruno Haible  <bruno@clisp.org>
39346
39347         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39348         always.
39349         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39350         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39351         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39352         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39353         "unistring-notinline.h", so that the function gets defined always.
39354         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39355         * lib/unistr/u8-uctomb.c: Likewise.
39356         * lib/unistr/u16-mbtouc.c: Likewise.
39357         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39358         * lib/unistr/u16-uctomb.c: Likewise.
39359         * lib/unistr/u32-mbtouc.c: Likewise.
39360         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39361         * lib/unistr/u32-uctomb.c: Likewise.
39362
39363 2009-04-10  Bruno Haible  <bruno@clisp.org>
39364
39365         Mark 'utime' obsolete.
39366         * modules/utime (Status, Notice): New sections.
39367         Suggested by Jim Meyering.
39368
39369         Fix cross-compile guess for utime test.
39370         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39371         autoconf.
39372         * doc/posix-functions/utime.texi: Give more precisions.
39373         Reported by Jan <ipif@ymail.com>.
39374
39375 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39376
39377         filevercmp: correct today's change
39378         * lib/filevercmp.c: Also handle coreutils' test inputs.
39379         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39380
39381         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39382         for reporting it.
39383         * lib/filevercmp.c: Special handle for "", "." and "..".
39384         * tests/test-filevercmp.c: Enlarge the set suite.
39385
39386 2009-04-07  Jim Meyering  <meyering@redhat.com>
39387
39388         useless-if-before-free: show how to remove braced useless free, too
39389         * build-aux/useless-if-before-free: still only in a comment, though.
39390
39391 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39392
39393         maint.mk: import changes to syntax-check macros from coreutils
39394         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39395         Use them in the relevant macros.
39396
39397 2009-04-06  Bruno Haible  <bruno@clisp.org>
39398
39399         Fix unportable use of bit-fields.
39400         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39401         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39402         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39403
39404 2009-04-06  Bruno Haible  <bruno@clisp.org>
39405
39406         Avoid test failures on AIX and OSF/1.
39407         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39408         that malloc(0) = NULL.
39409         * tests/unicase/test-u8-tolower.c (check): Likewise.
39410         * tests/unicase/test-u8-totitle.c (check): Likewise.
39411         * tests/unicase/test-u8-toupper.c (check): Likewise.
39412         * tests/unicase/test-u16-casefold.c (check): Likewise.
39413         * tests/unicase/test-u16-tolower.c (check): Likewise.
39414         * tests/unicase/test-u16-totitle.c (check): Likewise.
39415         * tests/unicase/test-u16-toupper.c (check): Likewise.
39416         * tests/unicase/test-u32-casefold.c (check): Likewise.
39417         * tests/unicase/test-u32-tolower.c (check): Likewise.
39418         * tests/unicase/test-u32-totitle.c (check): Likewise.
39419         * tests/unicase/test-u32-toupper.c (check): Likewise.
39420         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39421         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39422         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39423         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39424         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39425         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39426         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39427         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39428         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39429         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39430         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39431         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39432
39433 2009-04-05  Bruno Haible  <bruno@clisp.org>
39434
39435         Work around an autoconf limitation.
39436         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39437         comment line if it would be longer than 3 KB.
39438
39439 2009-04-05  Bruno Haible  <bruno@clisp.org>
39440
39441         Avoid test failure with libiconv-1.13.
39442         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39443         of the expected test results.
39444
39445 2009-04-05  Bruno Haible  <bruno@clisp.org>
39446
39447         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39448         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39449         that it should be installed.
39450
39451 2009-04-05  Bruno Haible  <bruno@clisp.org>
39452
39453         * gnulib-tool: New option --copy-file.
39454         (func_usage): Document it.
39455         (func_dest_tmpfilename): Moved out of func_import.
39456         (func_add_file, func_update_file): New functions, extracted from
39457         func_import.
39458         (func_import): Update.
39459
39460 2009-04-05  Karl Berry  <karl@gnu.org>
39461
39462         * README: prominently mention gnulib-tool.
39463         Rearrange sections so getting the code is near the top.
39464
39465 2009-04-05  Bruno Haible  <bruno@clisp.org>
39466
39467         * lib/unicase.h: Mention u*_cmp2.
39468         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39469         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39470         * lib/unicase/ulc-casecmp.c: Likewise.
39471         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39472         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39473         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39474         unistr/u8-cmp.
39475         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39476         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39477         unistr/u16-cmp.
39478         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39479         unistr/u32-cmp.
39480
39481         * lib/uninorm.h: Mention u*_cmp2.
39482         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39483         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39484         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39485         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39486         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39487         unistr/u8-cmp.
39488         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39489         unistr/u16-cmp.
39490         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39491         unistr/u32-cmp.
39492
39493         New module 'unistr/u32-cmp2'.
39494         * lib/unistr/u32-cmp2.c: New file.
39495         * modules/unistr/u32-cmp2: New file.
39496
39497         New module 'unistr/u16-cmp2'.
39498         * lib/unistr/u16-cmp2.c: New file.
39499         * modules/unistr/u16-cmp2: New file.
39500
39501         New module 'unistr/u8-cmp2'.
39502         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39503         * lib/unistr/u8-cmp2.c: New file.
39504         * lib/unistr/u-cmp2.h: New file.
39505         * modules/unistr/u8-cmp2: New file.
39506
39507 2009-04-05  Bruno Haible  <bruno@clisp.org>
39508
39509         * lib/unictype.h (uc_property_is_valid): New macro.
39510         * tests/unictype/test-pr_byname.c (main): Use it.
39511
39512         * lib/unistr.h: Doc fixes.
39513         * lib/uniconv.h: Doc fixes.
39514         * lib/unictype.h: Doc fixes.
39515
39516 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39517
39518         Port coreutils 7.2 to Solaris 8.
39519
39520         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39521         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39522         for Solaris 8.  This is a bit of a hack, as it means it's the
39523         caller's responsibility to add -lnsl if needed, but most likely it
39524         won't be needed since only getaddrinfo uses this and getaddrinfo
39525         isn't needed on Solaris 8.
39526
39527         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39528         problem to Solaris 8 encountered with coreutils 7.2, which
39529         resulted in a message "fnmatch.c:292: warning: passing argument 4
39530         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39531         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39532
39533 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39534
39535         * m4/ld-version-script.m4: Add FIXME comment.
39536
39537 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39538
39539         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39540         SOVERSION variable.
39541
39542 2009-04-02  Bruno Haible  <bruno@clisp.org>
39543
39544         * Makefile (info, html, dvi, pdf): Combine the rules.
39545         Suggested by Jim Meyering.
39546
39547 2009-04-01  Bruno Haible  <bruno@clisp.org>
39548
39549         * Makefile (info, html, dvi, pdf): New targets.
39550         Reported by Reuben Thomas <rrt@sc3d.org>.
39551
39552 2009-04-01  Bruno Haible  <bruno@clisp.org>
39553
39554         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39555         can be put into PATH.
39556         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39557
39558 2009-04-01  Bruno Haible  <bruno@clisp.org>
39559
39560         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39561
39562 2009-04-01  Bruno Haible  <bruno@clisp.org>
39563
39564         Rename module 'visibility'.
39565         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39566         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39567         * doc/gnulib.texi: Update.
39568         * MODULES.html.sh (Misc): Update.
39569         * NEWS: Mention the change.
39570
39571 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39572
39573         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39574         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39575         Eric Blake <ebb9@byu.net> for review.
39576         * MODULES.html.sh: Add lib-msvc-compat.
39577         * doc/gnulib.texi: Link to new section.
39578         * m4/ld-output-def.m4: New file.
39579         * doc/ld-output-def.texi: New file.
39580
39581 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39582
39583         Rename ld-version-script to lib-symbol-versions.  Suggested by
39584         Bruno Haible <bruno@clisp.org>.
39585         * modules/ld-version-script: Renamed to lib-symbol-versions.
39586         * doc/ld-version-script.texi: Fix module name.
39587         * MODULES.html.sh: Add lib-symbol-versions.
39588
39589 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39590
39591         * modules/u64-tests: New file.
39592         * tests/test-u64.c: New file.
39593
39594 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39595
39596         * MODULES.html.sh: Mention u64.
39597         * modules/u64: New module.
39598         * modules/crypto/sha512: Depend on u64 module instead of providing
39599         u64.h.
39600
39601 2009-03-27  Eric Blake  <ebb9@byu.net>
39602
39603         test-strerror: make debugging EAI_SYSTEM easier
39604         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39605         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39606         failure was EAI_SYSTEM.
39607
39608 2009-03-25  Bruno Haible  <bruno@clisp.org>
39609
39610         Fix a problem with --enable-relocatable on Solaris 7.
39611         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39612         since 2008-02-24.
39613
39614 2009-03-25  Eric Blake  <ebb9@byu.net>
39615
39616         test-sockets: avoid gcc warning
39617         * tests/test-sockets.c (main): Silence compiler warning.
39618
39619 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39620
39621         New modules nproc, pthread, contributed by Glen Lenker.
39622
39623         * MODULES.html.sh: Add pthread, nproc.
39624         * lib/nproc.c: New file.
39625         * lib/nproc.h: New file.
39626         * lib/pthread.in.h: New file.
39627         * m4/pthread.m4: New file.
39628         * modules/nproc: New file.
39629         * modules/pthread: New file.
39630
39631 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39632
39633         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39634         New variable.
39635
39636 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39637
39638         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39639         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39640         * tests/test-filevercmp.c: Add tests for backup suffixes.
39641
39642 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39643
39644         * modules/stdlib (Depends-on): Add stdint, needed when defining
39645         struct random_data on, for example, HP-UX 10.20.  Reported by
39646         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39647
39648 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39649
39650         * lib/readline.c (readline): Call fflush on stdout after printing
39651         prompt.
39652
39653 2009-03-20  Bruno Haible  <bruno@clisp.org>
39654
39655         Remove dependency from 'close' module to -lws2_32 on native Windows.
39656         * lib/close-hook.h: New file.
39657         * lib/close-hook.c: New file.
39658         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39659         w32sock.h.
39660         (_gl_close_fd_maybe_socket): Remove function.
39661         (rpl_close): Invoke execute_all_close_hooks instead of
39662         _gl_close_fd_maybe_socket.
39663         * lib/sockets.c: Include close-hook.h, w32sock.h.
39664         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39665         (close_sockets_hook): New variable.
39666         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39667         (gl_sockets_cleanup): Unregister it.
39668         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39669         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39670         * modules/close-hook: New file.
39671         * modules/close (Files): Remove lib/w32sock.h.
39672         (Depends-on): Add close-hook.
39673         (Link): Remove section.
39674         * modules/sockets (Files): Add lib/w32sock.h.
39675         (Depends-on): Add close-hook.
39676         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39677         invocation.
39678         * NEWS: Mention that LIB_CLOSE is gone.
39679
39680 2009-03-23  Eric Blake  <ebb9@byu.net>
39681
39682         signal-tests: test previous patch
39683         * tests/test-signal.c: New file.
39684         * modules/signal-tests: Likewise.
39685
39686         signal.h: always support 'volatile sig_atomic_t'
39687         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39688         (gl_SIGNAL_H_DEFAULTS): Add a default.
39689         * modules/signal (Makefile.am): Substitute if needed.
39690         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39691         users can blindly add volatile.
39692         * doc/posix-headers/signal.texi (signal.h): Document it.
39693         Reported by Matthew Woehlke.
39694
39695 2009-03-23  Jim Meyering  <meyering@redhat.com>
39696
39697         pathmax: PATH_MAX: use pathconf only when available
39698         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39699         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39700         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39701         This avoids a link failure in a PSP cross-compilation environment
39702         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39703
39704         * lib/vasnprintf.c (divide): Fix typo in comment.
39705
39706 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39707
39708         * gnulib-tool (func_filter_filelist): Fix comment.
39709
39710 2009-03-20  Bruno Haible  <bruno@clisp.org>
39711
39712         Make sockets.h self-contained.
39713         * lib/sockets.c: Include sockets.h first.
39714         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39715
39716 2009-03-19  Eric Blake  <ebb9@byu.net>
39717
39718         doc: mention more functions added in cygwin 1.7.0
39719         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39720         addition.
39721         * doc/posix-functions/log2f.texi: Likewise.
39722
39723 2009-03-19  Jim Meyering  <meyering@redhat.com>
39724
39725         fsusage: avoid syntax error due to statement-before-declaration
39726         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39727         after all declarations.  Reported by Matthew Woehlke in
39728         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39729
39730 2009-03-18  Eric Blake  <ebb9@byu.net>
39731
39732         build-aux/compile: sync from automake
39733         * build-aux/compile: New file, from automake.
39734         * config/srclist.txt: Mention build-aux/compile.
39735
39736 2009-03-17  Bruno Haible  <bruno@clisp.org>
39737
39738         * lib/git-merge-changelog.c: Fix typo in comment.
39739         Reported by Reuben Thomas <rrt@sc3d.org>.
39740
39741 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39742
39743         * m4/regex.m4: update and improve help for
39744         --without-included-regex.
39745
39746 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39747
39748         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39749         failure on missing include files.
39750
39751 2009-03-17  Eric Blake  <ebb9@byu.net>
39752
39753         doc: mention more functions added in cygwin 1.7.0
39754         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39755         addition.
39756         * doc/posix-functions/fwscanf.texi: Likewise.
39757         * doc/posix-functions/swprintf.texi: Likewise.
39758         * doc/posix-functions/swscanf.texi: Likewise.
39759         * doc/posix-functions/vfwprintf.texi: Likewise.
39760         * doc/posix-functions/vfwscanf.texi: Likewise.
39761         * doc/posix-functions/vswprintf.texi: Likewise.
39762         * doc/posix-functions/vswscanf.texi: Likewise.
39763         * doc/posix-functions/vwprintf.texi: Likewise.
39764         * doc/posix-functions/vwscanf.texi: Likewise.
39765         * doc/posix-functions/wcscasecmp.texi: Likewise.
39766         * doc/posix-functions/wcsdup.texi: Likewise.
39767         * doc/posix-functions/wcsftime.texi: Likewise.
39768         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39769         * doc/posix-functions/wprintf.texi: Likewise.
39770         * doc/posix-functions/wscanf.texi: Likewise.
39771         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39772
39773 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39774
39775         maint.mk: really add $(AM_MAKEFLAGS)
39776         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39777         was inadvertently omitted in the last commit.
39778         Spotted by Bruno Haible.
39779
39780         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39781         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39782         $(AM_MAKEFLAGS)' rather than plain `make'.
39783
39784         gnulib-tool: execute $MAKE not make
39785         * gnulib-tool: Default $MAKE to 'make'.
39786         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39787         than make.  Initialize $MAKE in the do-autobuild script.
39788
39789         gnulib-tool: use $MAKE not make in generated files
39790         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39791         make, in generated files.  Initialize $MAKE in the do-autobuild
39792         script.
39793
39794         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39795
39796         GNUmakefile: disable parallelism only for multiple, recursive targets
39797         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39798         additions in the Makefile.
39799         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39800         by Automake.
39801         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39802         are listed on the command line and at least one of them is
39803         listed in $(ALL_RECURSIVE_TARGETS).
39804
39805 2009-03-14  Bruno Haible  <bruno@clisp.org>
39806
39807         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39808         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39809         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39810         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39811         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39812         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39813         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39814         unistr/u8-uctomb.
39815         * modules/unistr/u8-strchr (Depends-on): Likewise.
39816         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39817         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39818         unistr/u16-uctomb.
39819         * modules/unistr/u16-strchr (Depends-on): Likewise.
39820         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39821
39822 2009-03-12  Bruno Haible  <bruno@clisp.org>
39823
39824         Work around select() bug on Interix 3.5.
39825         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39826         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39827         * m4/select.m4: New file.
39828         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39829         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39830         * modules/select (Files): Add m4/select.m4.
39831         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39832         * modules/nanosleep (Depends-on): Add select.
39833         * modules/poll (Depends-on): Likewise.
39834         * doc/posix-functions/select.texi: Mention the Interix bug.
39835         Reported by Markus Duft <mduft@gentoo.org>.
39836
39837         * lib/select.c: Renamed from lib/winsock-select.c.
39838         * modules/select (Files): Add lib/select.c, remove
39839         lib/winsock-select.c.
39840         (configure.ac): Update.
39841
39842 2009-03-12  Jim Meyering  <meyering@redhat.com>
39843
39844         avoid gcc warnings about unused macro definitions
39845         * lib/readtokens.c (STREQ): Remove unused definition.
39846         * lib/xmalloc.c (SIZE_MAX): Likewise.
39847         * lib/openat-die.c (N_): Likewise.
39848         * lib/mountlist.c (SIZE_MAX): Remove definition.
39849         Instead, include <stdint.h>.
39850         * lib/readutmp.c: Likewise.
39851         * modules/readutmp (Depends-on): Add stdint.
39852         * modules/mountlist (Depends-on): Add stdint.
39853         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39854
39855 2009-03-10  Bruno Haible  <bruno@clisp.org>
39856
39857         Tests for module 'mbmemcasecoll'.
39858         * modules/mbmemcasecoll-tests: New file.
39859         * tests/test-mbmemcasecoll1.sh: New file.
39860         * tests/test-mbmemcasecoll2.sh: New file.
39861         * tests/test-mbmemcasecoll3.sh: New file.
39862         * tests/test-mbmemcasecoll.c: New file.
39863
39864         New module 'mbmemcasecoll'.
39865         * lib/mbmemcasecoll.h: New file.
39866         * lib/mbmemcasecoll.c: New file.
39867         * modules/mbmemcasecoll: New file.
39868
39869         * tests/test-mbmemcasecmp.h: New file, extracted from
39870         tests/test-mbmemcasecmp.c.
39871         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39872         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39873         (main): Update.
39874         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39875
39876 2009-03-09  Bruno Haible  <bruno@clisp.org>
39877
39878         Tests for module 'mbmemcasecmp'.
39879         * modules/mbmemcasecmp-tests: New file.
39880         * tests/test-mbmemcasecmp1.sh: New file.
39881         * tests/test-mbmemcasecmp2.sh: New file.
39882         * tests/test-mbmemcasecmp3.sh: New file.
39883         * tests/test-mbmemcasecmp.c: New file.
39884
39885         New module 'mbmemcasecmp'.
39886         * lib/mbmemcasecmp.h: New file.
39887         * lib/mbmemcasecmp.c: New file.
39888         * modules/mbmemcasecmp: New file.
39889
39890 2009-03-09  Bruno Haible  <bruno@clisp.org>
39891
39892         Tests for module 'unicase/ulc-casecoll'.
39893         * modules/unicase/ulc-casecoll-tests: New file.
39894         * tests/unicase/test-ulc-casecoll1.sh: New file.
39895         * tests/unicase/test-ulc-casecoll2.sh: New file.
39896         * tests/unicase/test-ulc-casecoll.c: New file.
39897
39898         New module 'unicase/ulc-casecoll'.
39899         * lib/unicase.h (ulc_casecoll): New declaration.
39900         * lib/unicase/ulc-casecoll.c: New file.
39901         * modules/unicase/ulc-casecoll: New file.
39902
39903         New module 'unicase/ulc-casexfrm'.
39904         * lib/unicase.h (ulc_casexfrm): New declaration.
39905         * lib/unicase/ulc-casexfrm.c: New file.
39906         * modules/unicase/ulc-casexfrm: New file.
39907
39908 2009-03-09  Bruno Haible  <bruno@clisp.org>
39909
39910         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39911         invocations.
39912
39913         * m4/mbscasecmp.m4: Remove file.
39914         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39915         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39916
39917         * m4/mbscasestr.m4: Remove file.
39918         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39919         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39920
39921         * m4/mbschr.m4: Remove file.
39922         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39923         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39924
39925         * m4/mbscspn.m4: Remove file.
39926         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39927         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39928
39929         * m4/mbslen.m4: Remove file.
39930         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39931         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39932
39933         * m4/mbsncasecmp.m4: Remove file.
39934         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39935         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39936
39937         * m4/mbsnlen.m4: Remove file.
39938         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39939         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39940
39941         * m4/mbspbrk.m4: Remove file.
39942         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39943         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39944
39945         * m4/mbspcasecmp.m4: Remove file.
39946         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39947         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39948
39949         * m4/mbsrchr.m4: Remove file.
39950         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39951         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39952
39953         * m4/mbssep.m4: Remove file.
39954         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39955         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39956
39957         * m4/mbsspn.m4: Remove file.
39958         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39959         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39960
39961         * m4/mbsstr.m4: Remove file.
39962         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39963         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39964
39965         * m4/mbstok_r.m4: Remove file.
39966         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39967         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39968
39969         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39970
39971         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39972         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39973
39974         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39975
39976 2009-03-08  Bruno Haible  <bruno@clisp.org>
39977
39978         Tests for module 'unicase/ulc-casecmp'.
39979         * modules/unicase/ulc-casecmp-tests: New file.
39980         * tests/unicase/test-ulc-casecmp1.sh: New file.
39981         * tests/unicase/test-ulc-casecmp2.sh: New file.
39982         * tests/unicase/test-ulc-casecmp.c: New file.
39983
39984         New module 'unicase/ulc-casecmp'.
39985         * lib/unicase.h (ulc_casecmp): New declaration.
39986         * lib/unicase/ulc-casecmp.c: New file.
39987         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39988         'const SRC_UNIT *'.
39989         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39990         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39991         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39992         * modules/unicase/ulc-casecmp: New file.
39993
39994         Tests for module 'unicase/u32-is-cased'.
39995         * modules/unicase/u32-is-cased-tests: New file.
39996         * tests/unicase/test-u32-is-cased.c: New file.
39997
39998         Tests for module 'unicase/u16-is-cased'.
39999         * modules/unicase/u16-is-cased-tests: New file.
40000         * tests/unicase/test-u16-is-cased.c: New file.
40001
40002         Tests for module 'unicase/u8-is-cased'.
40003         * modules/unicase/u8-is-cased-tests: New file.
40004         * tests/unicase/test-u8-is-cased.c: New file.
40005         * tests/unicase/test-is-cased.h: New file.
40006
40007         New module 'unicase/u32-is-cased'.
40008         * lib/unicase/u32-is-cased.c: New file.
40009         * modules/unicase/u32-is-cased: New file.
40010
40011         New module 'unicase/u16-is-cased'.
40012         * lib/unicase/u16-is-cased.c: New file.
40013         * modules/unicase/u16-is-cased: New file.
40014
40015         New module 'unicase/u8-is-cased'.
40016         * lib/unicase/u8-is-cased.c: New file.
40017         * lib/unicase/u-is-cased.h: New file.
40018         * modules/unicase/u8-is-cased: New file.
40019
40020         Tests for module 'unicase/u32-is-casefolded'.
40021         * modules/unicase/u32-is-casefolded-tests: New file.
40022         * tests/unicase/test-u32-is-casefolded.c: New file.
40023
40024         Tests for module 'unicase/u16-is-casefolded'.
40025         * modules/unicase/u16-is-casefolded-tests: New file.
40026         * tests/unicase/test-u16-is-casefolded.c: New file.
40027
40028         Tests for module 'unicase/u8-is-casefolded'.
40029         * modules/unicase/u8-is-casefolded-tests: New file.
40030         * tests/unicase/test-u8-is-casefolded.c: New file.
40031         * tests/unicase/test-is-casefolded.h: New file.
40032
40033         New module 'unicase/u32-is-casefolded'.
40034         * lib/unicase/u32-is-casefolded.c: New file.
40035         * modules/unicase/u32-is-casefolded: New file.
40036
40037         New module 'unicase/u16-is-casefolded'.
40038         * lib/unicase/u16-is-casefolded.c: New file.
40039         * modules/unicase/u16-is-casefolded: New file.
40040
40041         New module 'unicase/u8-is-casefolded'.
40042         * lib/unicase/u8-is-casefolded.c: New file.
40043         * modules/unicase/u8-is-casefolded: New file.
40044
40045         Tests for module 'unicase/u32-is-titlecase'.
40046         * modules/unicase/u32-is-titlecase-tests: New file.
40047         * tests/unicase/test-u32-is-titlecase.c: New file.
40048
40049         Tests for module 'unicase/u16-is-titlecase'.
40050         * modules/unicase/u16-is-titlecase-tests: New file.
40051         * tests/unicase/test-u16-is-titlecase.c: New file.
40052
40053         Tests for module 'unicase/u8-is-titlecase'.
40054         * modules/unicase/u8-is-titlecase-tests: New file.
40055         * tests/unicase/test-u8-is-titlecase.c: New file.
40056         * tests/unicase/test-is-titlecase.h: New file.
40057
40058         New module 'unicase/u32-is-titlecase'.
40059         * lib/unicase/u32-is-titlecase.c: New file.
40060         * modules/unicase/u32-is-titlecase: New file.
40061
40062         New module 'unicase/u16-is-titlecase'.
40063         * lib/unicase/u16-is-titlecase.c: New file.
40064         * modules/unicase/u16-is-titlecase: New file.
40065
40066         New module 'unicase/u8-is-titlecase'.
40067         * lib/unicase/u8-is-titlecase.c: New file.
40068         * modules/unicase/u8-is-titlecase: New file.
40069
40070         Tests for module 'unicase/u32-is-lowercase'.
40071         * modules/unicase/u32-is-lowercase-tests: New file.
40072         * tests/unicase/test-u32-is-lowercase.c: New file.
40073
40074         Tests for module 'unicase/u16-is-lowercase'.
40075         * modules/unicase/u16-is-lowercase-tests: New file.
40076         * tests/unicase/test-u16-is-lowercase.c: New file.
40077
40078         Tests for module 'unicase/u8-is-lowercase'.
40079         * modules/unicase/u8-is-lowercase-tests: New file.
40080         * tests/unicase/test-u8-is-lowercase.c: New file.
40081         * tests/unicase/test-is-lowercase.h: New file.
40082
40083         New module 'unicase/u32-is-lowercase'.
40084         * lib/unicase/u32-is-lowercase.c: New file.
40085         * modules/unicase/u32-is-lowercase: New file.
40086
40087         New module 'unicase/u16-is-lowercase'.
40088         * lib/unicase/u16-is-lowercase.c: New file.
40089         * modules/unicase/u16-is-lowercase: New file.
40090
40091         New module 'unicase/u8-is-lowercase'.
40092         * lib/unicase/u8-is-lowercase.c: New file.
40093         * modules/unicase/u8-is-lowercase: New file.
40094
40095         Tests for module 'unicase/u32-is-uppercase'.
40096         * modules/unicase/u32-is-uppercase-tests: New file.
40097         * tests/unicase/test-u32-is-uppercase.c: New file.
40098
40099         Tests for module 'unicase/u16-is-uppercase'.
40100         * modules/unicase/u16-is-uppercase-tests: New file.
40101         * tests/unicase/test-u16-is-uppercase.c: New file.
40102
40103         Tests for module 'unicase/u8-is-uppercase'.
40104         * modules/unicase/u8-is-uppercase-tests: New file.
40105         * tests/unicase/test-u8-is-uppercase.c: New file.
40106         * tests/unicase/test-is-uppercase.h: New file.
40107
40108         New module 'unicase/u32-is-uppercase'.
40109         * lib/unicase/u32-is-uppercase.c: New file.
40110         * modules/unicase/u32-is-uppercase: New file.
40111
40112         New module 'unicase/u16-is-uppercase'.
40113         * lib/unicase/u16-is-uppercase.c: New file.
40114         * modules/unicase/u16-is-uppercase: New file.
40115
40116         New module 'unicase/u8-is-uppercase'.
40117         * lib/unicase/u8-is-uppercase.c: New file.
40118         * modules/unicase/u8-is-uppercase: New file.
40119
40120         New module 'unicase/u32-is-invariant'.
40121         * lib/unicase/u32-is-invariant.c: New file.
40122         * modules/unicase/u32-is-invariant: New file.
40123
40124         New module 'unicase/u16-is-invariant'.
40125         * lib/unicase/u16-is-invariant.c: New file.
40126         * modules/unicase/u16-is-invariant: New file.
40127
40128         New module 'unicase/u8-is-invariant'.
40129         * lib/unicase/u8-is-invariant.c: New file.
40130         * lib/unicase/invariant.h: New file.
40131         * lib/unicase/u-is-invariant.h: New file.
40132         * modules/unicase/u8-is-invariant: New file.
40133
40134         Tests for module 'unicase/u32-casecoll'.
40135         * modules/unicase/u32-casecoll-tests: New file.
40136         * tests/unicase/test-u32-casecoll.c: New file.
40137
40138         Tests for module 'unicase/u16-casecoll'.
40139         * modules/unicase/u16-casecoll-tests: New file.
40140         * tests/unicase/test-u16-casecoll.c: New file.
40141
40142         Tests for module 'unicase/u8-casecoll'.
40143         * modules/unicase/u8-casecoll-tests: New file.
40144         * tests/unicase/test-u8-casecoll.c: New file.
40145
40146         New module 'unicase/u32-casecoll'.
40147         * lib/unicase/u32-casecoll.c: New file.
40148         * modules/unicase/u32-casecoll: New file.
40149
40150         New module 'unicase/u16-casecoll'.
40151         * lib/unicase/u16-casecoll.c: New file.
40152         * modules/unicase/u16-casecoll: New file.
40153
40154         New module 'unicase/u8-casecoll'.
40155         * lib/unicase/u8-casecoll.c: New file.
40156         * lib/unicase/u-casecoll.h: New file.
40157         * modules/unicase/u8-casecoll: New file.
40158
40159         New module 'unicase/u32-casexfrm'.
40160         * lib/unicase/u32-casexfrm.c: New file.
40161         * modules/unicase/u32-casexfrm: New file.
40162
40163         New module 'unicase/u16-casexfrm'.
40164         * lib/unicase/u16-casexfrm.c: New file.
40165         * modules/unicase/u16-casexfrm: New file.
40166
40167         New module 'unicase/u8-casexfrm'.
40168         * lib/unicase/u8-casexfrm.c: New file.
40169         * lib/unicase/u-casexfrm.h: New file.
40170         * modules/unicase/u8-casexfrm: New file.
40171
40172         Tests for module 'unicase/u32-casecmp'.
40173         * modules/unicase/u32-casecmp-tests: New file.
40174         * tests/unicase/test-u32-casecmp.c: New file.
40175
40176         Tests for module 'unicase/u16-casecmp'.
40177         * modules/unicase/u16-casecmp-tests: New file.
40178         * tests/unicase/test-u16-casecmp.c: New file.
40179
40180         Tests for module 'unicase/u8-casecmp'.
40181         * modules/unicase/u8-casecmp-tests: New file.
40182         * tests/unicase/test-u8-casecmp.c: New file.
40183         * tests/unicase/test-casecmp.h: New file.
40184
40185         New module 'unicase/u32-casecmp'.
40186         * lib/unicase/u32-casecmp.c: New file.
40187         * modules/unicase/u32-casecmp: New file.
40188
40189         New module 'unicase/u16-casecmp'.
40190         * lib/unicase/u16-casecmp.c: New file.
40191         * modules/unicase/u16-casecmp: New file.
40192
40193         New module 'unicase/u8-casecmp'.
40194         * lib/unicase/u8-casecmp.c: New file.
40195         * lib/unicase/u-casecmp.h: New file.
40196         * modules/unicase/u8-casecmp: New file.
40197
40198         Tests for module 'unicase/u32-casefold'.
40199         * modules/unicase/u32-casefold-tests: New file.
40200         * tests/unicase/test-u32-casefold.c: New file.
40201
40202         Tests for module 'unicase/u16-casefold'.
40203         * modules/unicase/u16-casefold-tests: New file.
40204         * tests/unicase/test-u16-casefold.c: New file.
40205
40206         Tests for module 'unicase/u8-casefold'.
40207         * modules/unicase/u8-casefold-tests: New file.
40208         * tests/unicase/test-u8-casefold.c: New file.
40209
40210         New module 'unicase/u32-casefold'.
40211         * lib/unicase/u32-casefold.c: New file.
40212         * modules/unicase/u32-casefold: New file.
40213
40214         New module 'unicase/u16-casefold'.
40215         * lib/unicase/u16-casefold.c: New file.
40216         * modules/unicase/u16-casefold: New file.
40217
40218         New module 'unicase/u8-casefold'.
40219         * lib/unicase/u8-casefold.c: New file.
40220         * lib/unicase/u-casefold.h: New file.
40221         * modules/unicase/u8-casefold: New file.
40222
40223         New module 'unicase/tocasefold'.
40224         * lib/unicase/casefold.h: New file.
40225         * lib/unicase/tocasefold.c: New file.
40226         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40227         * modules/unicase/tocasefold: New file.
40228
40229         Tests for module 'unicase/u32-totitle'.
40230         * modules/unicase/u32-totitle-tests: New file.
40231         * tests/unicase/test-u32-totitle.c: New file.
40232
40233         Tests for module 'unicase/u16-totitle'.
40234         * modules/unicase/u16-totitle-tests: New file.
40235         * tests/unicase/test-u16-totitle.c: New file.
40236
40237         Tests for module 'unicase/u8-totitle'.
40238         * modules/unicase/u8-totitle-tests: New file.
40239         * tests/unicase/test-u8-totitle.c: New file.
40240
40241         New module 'unicase/u32-totitle'.
40242         * lib/unicase/u32-totitle.c: New file.
40243         * modules/unicase/u32-totitle: New file.
40244
40245         New module 'unicase/u16-totitle'.
40246         * lib/unicase/u16-totitle.c: New file.
40247         * modules/unicase/u16-totitle: New file.
40248
40249         New module 'unicase/u8-totitle'.
40250         * lib/unicase/u8-totitle.c: New file.
40251         * lib/unicase/u-totitle.h: New file.
40252         * modules/unicase/u8-totitle: New file.
40253
40254         Tests for module 'unicase/u32-tolower'.
40255         * modules/unicase/u32-tolower-tests: New file.
40256         * tests/unicase/test-u32-tolower.c: New file.
40257
40258         Tests for module 'unicase/u16-tolower'.
40259         * modules/unicase/u16-tolower-tests: New file.
40260         * tests/unicase/test-u16-tolower.c: New file.
40261
40262         Tests for module 'unicase/u8-tolower'.
40263         * modules/unicase/u8-tolower-tests: New file.
40264         * tests/unicase/test-u8-tolower.c: New file.
40265
40266         New module 'unicase/u32-tolower'.
40267         * lib/unicase/u32-tolower.c: New file.
40268         * modules/unicase/u32-tolower: New file.
40269
40270         New module 'unicase/u16-tolower'.
40271         * lib/unicase/u16-tolower.c: New file.
40272         * modules/unicase/u16-tolower: New file.
40273
40274         New module 'unicase/u8-tolower'.
40275         * lib/unicase/u8-tolower.c: New file.
40276         * modules/unicase/u8-tolower: New file.
40277
40278         Tests for module 'unicase/u32-toupper'.
40279         * modules/unicase/u32-toupper-tests: New file.
40280         * tests/unicase/test-u32-toupper.c: New file.
40281
40282         Tests for module 'unicase/u16-toupper'.
40283         * modules/unicase/u16-toupper-tests: New file.
40284         * tests/unicase/test-u16-toupper.c: New file.
40285
40286         Tests for module 'unicase/u8-toupper'.
40287         * modules/unicase/u8-toupper-tests: New file.
40288         * tests/unicase/test-u8-toupper.c: New file.
40289
40290         New module 'unicase/u32-toupper'.
40291         * lib/unicase/u32-toupper.c: New file.
40292         * modules/unicase/u32-toupper: New file.
40293
40294         New module 'unicase/u16-toupper'.
40295         * lib/unicase/u16-toupper.c: New file.
40296         * modules/unicase/u16-toupper: New file.
40297
40298         New module 'unicase/u8-toupper'.
40299         * lib/unicase/u8-toupper.c: New file.
40300         * modules/unicase/u8-toupper: New file.
40301
40302         New module 'unicase/u32-casemap'.
40303         * lib/unicase/u32-casemap.c: New file.
40304         * modules/unicase/u32-casemap: New file.
40305
40306         New module 'unicase/u16-casemap'.
40307         * lib/unicase/u16-casemap.c: New file.
40308         * modules/unicase/u16-casemap: New file.
40309
40310         New module 'unicase/u8-casemap'.
40311         * lib/unicase/unicasemap.h: New file.
40312         * lib/unicase/u8-casemap.c: New file.
40313         * lib/unicase/u-casemap.h: New file.
40314         * modules/unicase/u8-casemap: New file.
40315
40316         New module 'unicase/special-casing'.
40317         * lib/unicase/special-casing.h: New file.
40318         * lib/unicase/special-casing.c: New file.
40319         * lib/unicase/special-casing-table.gperf: New file, generated by
40320         gen-uni-tables.c.
40321         * modules/unicase/special-casing: New file.
40322
40323         Tests for module 'unicase/locale-language'.
40324         * modules/unicase/locale-language-tests: New file.
40325         * tests/unicase/test-locale-language.sh: New file.
40326         * tests/unicase/test-locale-language.c: New file.
40327
40328         New module 'unicase/locale-language'.
40329         * lib/unicase/locale-language.c: New file.
40330         * lib/unicase/locale-languages.gperf: New file.
40331         * modules/unicase/locale-language: New file.
40332
40333         Generate more tables for case conversion and case folding.
40334         * lib/gen-uni-tables.c (SCC_*): New enum items.
40335         (struct special_casing_rule): New type.
40336         (casing_rules, num_casing_rules, allocated_casing_rules): New
40337         variables.
40338         (add_casing_rule, fill_casing_rules): New functions.
40339         (struct casefold_rule): New type.
40340         (casefolding_rules, num_casefolding_rules,
40341         allocated_casefolding_rules): New variables.
40342         (fill_casefolding_rules): New function.
40343         (unicode_casefold): New variable.
40344         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40345         sort_casing_rules, output_casing_rules): New functions.
40346         (main): Accept to more arguments: SpecialCasing.txt and
40347         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40348         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40349         Output mapping for casefolding.
40350
40351         * lib/unicase.h: Include stdbool.h, uninorm.h.
40352         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40353         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40354         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40355         arguments.
40356         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40357         resultp arguments.
40358         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40359         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40360         resultp arguments.
40361         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40362         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40363         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40364         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40365         declarations.
40366         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40367
40368 2009-03-08  Bruno Haible  <bruno@clisp.org>
40369
40370         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40371         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40372         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40373         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40374
40375 2009-03-07  Bruno Haible  <bruno@clisp.org>
40376
40377         Adjust u*_normcmp, u*_normcoll API.
40378         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40379         u16_normcoll, u32_normcoll): Change failure conventions.
40380         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40381         errno and return -1.
40382         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40383
40384 2009-03-07  Bruno Haible  <bruno@clisp.org>
40385
40386         Tests for module 'uninorm/u32-normcoll'.
40387         * modules/uninorm/u32-normcoll-tests: New file.
40388         * tests/uninorm/test-u32-normcoll.c: New file.
40389
40390         Tests for module 'uninorm/u16-normcoll'.
40391         * modules/uninorm/u16-normcoll-tests: New file.
40392         * tests/uninorm/test-u16-normcoll.c: New file.
40393
40394         Tests for module 'uninorm/u8-normcoll'.
40395         * modules/uninorm/u8-normcoll-tests: New file.
40396         * tests/uninorm/test-u8-normcoll.c: New file.
40397
40398 2009-03-07  Bruno Haible  <bruno@clisp.org>
40399
40400         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40401         tests/uninorm/test-u32-normcmp.c.
40402         * tests/uninorm/test-u32-normcmp.c: Include it.
40403         (test_nonascii): New function, extracted from main. Add some more
40404         tests.
40405         (main): Invoke test_ascii and test_nonascii.
40406         * modules/uninorm/u32-normcmp-tests (Files): Add
40407         tests/uninorm/test-u32-normcmp.h.
40408         (Depends-on): Remove uninorm/u32-normcmp.
40409
40410         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40411         tests/uninorm/test-u16-normcmp.c.
40412         * tests/uninorm/test-u16-normcmp.c: Include it.
40413         (test_nonascii): New function, extracted from main. Add some more
40414         tests.
40415         (main): Invoke test_ascii and test_nonascii.
40416         * modules/uninorm/u16-normcmp-tests (Files): Add
40417         tests/uninorm/test-u16-normcmp.h.
40418         (Depends-on): Remove uninorm/u16-normcmp.
40419
40420         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40421         tests/uninorm/test-u8-normcmp.c.
40422         * tests/uninorm/test-u8-normcmp.c: Include it.
40423         (test_nonascii): New function, extracted from main. Add some more
40424         tests.
40425         (main): Invoke test_ascii and test_nonascii.
40426         * modules/uninorm/u8-normcmp-tests (Files): Add
40427         tests/uninorm/test-u8-normcmp.h.
40428         (Depends-on): Remove uninorm/u8-normcmp.
40429
40430 2009-03-07  Bruno Haible  <bruno@clisp.org>
40431
40432         New module 'uninorm/u32-normcoll'.
40433         * lib/uninorm/u32-normcoll.c: New file.
40434         * modules/uninorm/u32-normcoll: New file.
40435
40436         New module 'uninorm/u16-normcoll'.
40437         * lib/uninorm/u16-normcoll.c: New file.
40438         * modules/uninorm/u16-normcoll: New file.
40439
40440         New module 'uninorm/u8-normcoll'.
40441         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40442         declarations.
40443         * lib/uninorm/u8-normcoll.c: New file.
40444         * lib/uninorm/u-normcoll.h: New file.
40445         * modules/uninorm/u8-normcoll: New file.
40446
40447         New module 'uninorm/u32-normxfrm'.
40448         * lib/uninorm/u32-normxfrm.c: New file.
40449         * modules/uninorm/u32-normxfrm: New file.
40450
40451         New module 'uninorm/u16-normxfrm'.
40452         * lib/uninorm/u16-normxfrm.c: New file.
40453         * modules/uninorm/u16-normxfrm: New file.
40454
40455         New module 'uninorm/u8-normxfrm'.
40456         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40457         declarations.
40458         * lib/uninorm/u8-normxfrm.c: New file.
40459         * lib/uninorm/u-normxfrm.h: New file.
40460         * modules/uninorm/u8-normxfrm: New file.
40461
40462 2009-03-07  Bruno Haible  <bruno@clisp.org>
40463
40464         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40465         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40466         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40467
40468 2009-03-07  Bruno Haible  <bruno@clisp.org>
40469
40470         New module 'memxfrm'.
40471         * lib/memxfrm.h: New file.
40472         * lib/memxfrm.c: New file.
40473         * modules/memxfrm: New file.
40474
40475 2009-03-07  Bruno Haible  <bruno@clisp.org>
40476
40477         New module 'memcmp2'.
40478         * lib/memcmp2.h: New file.
40479         * lib/memcmp2.c: New file.
40480         * modules/memcmp2: New file.
40481
40482 2009-03-07  Bruno Haible  <bruno@clisp.org>
40483
40484         Tests for module 'uninorm/decomposing-form'.
40485         * modules/uninorm/decomposing-form-tests: New file.
40486         * tests/uninorm/test-decomposing-form.c: New file.
40487
40488         New module 'uninorm/decomposing-form'.
40489         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40490         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40491         Add 'decomposing_variant' field.
40492         * lib/uninorm/decomposing-form.c: New file.
40493         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40494         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40495         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40496         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40497         * modules/uninorm/decomposing-form: New file.
40498         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40499         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40500
40501 2009-03-07  Bruno Haible  <bruno@clisp.org>
40502
40503         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40504         strings.
40505
40506 2009-03-06  Bruno Haible  <bruno@clisp.org>
40507
40508         Tests for module 'uninorm/u32-normcmp'.
40509         * tests/uninorm/test-u32-normcmp.c: New file.
40510         * modules/uninorm/u32-normcmp-tests: New file.
40511
40512         Tests for module 'uninorm/u16-normcmp'.
40513         * tests/uninorm/test-u16-normcmp.c: New file.
40514         * modules/uninorm/u16-normcmp-tests: New file.
40515
40516         Tests for module 'uninorm/u8-normcmp'.
40517         * tests/uninorm/test-u8-normcmp.c: New file.
40518         * modules/uninorm/u8-normcmp-tests: New file.
40519
40520         New module 'uninorm/u32-normcmp'.
40521         * lib/uninorm/u32-normcmp.c: New file.
40522         * modules/uninorm/u32-normcmp: New file.
40523
40524         New module 'uninorm/u16-normcmp'.
40525         * lib/uninorm/u16-normcmp.c: New file.
40526         * modules/uninorm/u16-normcmp: New file.
40527
40528         New module 'uninorm/u8-normcmp'.
40529         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40530         declarations.
40531         * lib/uninorm/u8-normcmp.c: New file.
40532         * lib/uninorm/u-normcmp.h: New file.
40533         * modules/uninorm/u8-normcmp: New file.
40534
40535 2009-03-06  Bruno Haible  <bruno@clisp.org>
40536
40537         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40538         Reported by Eric Blake.
40539
40540 2009-03-06  Eric Blake  <ebb9@byu.net>
40541             Bruno Haible  <bruno@clisp.org>
40542
40543         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40544         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40545         condition.
40546         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40547         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40548         condition.
40549         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40550
40551 2009-03-06  Eric Blake  <ebb9@byu.net>
40552
40553         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40554         to avoid compiler warnings.
40555         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40556
40557 2009-03-05  Bruno Haible  <bruno@clisp.org>
40558
40559         * tests/test-ftell.c (main): Disable test beyond end of file on
40560         FreeMiNT.
40561         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40562
40563 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40564
40565         * lib/filevercmp.c: Move hidden files up in ordering.
40566         * tests/test-filevercmp.c: Add tests for hidden files.
40567
40568 2009-03-04  Bruno Haible  <bruno@clisp.org>
40569
40570         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40571         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40572         AM_CFLAGS.
40573         Reported by Simon Josefsson.
40574
40575 2009-03-03  Bruno Haible  <bruno@clisp.org>
40576
40577         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40578         Reported by Simon Josefsson.
40579
40580         * doc/ld-version-script.texi: Update node reference.
40581
40582 2009-03-03  Bruno Haible  <bruno@clisp.org>
40583
40584         * modules/visibility (License): Change to 'unlimited'.
40585         Suggested by Simon Josefsson.
40586
40587 2009-03-03  Jim Meyering  <meyering@redhat.com>
40588
40589         unlinkdir: cannot_unlink_dir may modify process state
40590         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40591         it's neither thread-safe nor appropriate for use in a library.
40592
40593 2009-03-03  Eric Blake  <ebb9@byu.net>
40594
40595         test-closein: silence test under Darwin
40596         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40597         care if it dies from EPIPE or EBADF.
40598
40599 2009-03-03  Bruno Haible  <bruno@clisp.org>
40600
40601         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40602         earlier.
40603         * doc/visibility.texi: Fix @node and @section.
40604
40605 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40606
40607         * doc/gnulib.texi: Link to sections for ld version script and
40608         visibility.
40609         * doc/visibility.texi: Add @node and @section.
40610         * modules/ld-version-script: New module.
40611         * m4/ld-version-script.m4: New file.
40612         * doc/ld-version-script.texi: New file.
40613
40614 2009-03-02  David Lutterkort  <lutter@redhat.com>
40615
40616         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40617         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40618
40619 2009-03-02  Bruno Haible  <bruno@clisp.org>
40620
40621         * doc/visibility.texi: Mention libtool's -export-symbols option.
40622
40623 2009-03-02  Jim Meyering  <meyering@redhat.com>
40624
40625         announce-gen: new option: --no-print-checksums
40626         * build-aux/announce-gen (usage): Describe it.
40627         (print_checksums): Print a newline here, not in the [*] footnote.
40628         (main): Honor it.
40629
40630 2009-03-01  Bruno Haible  <bruno@clisp.org>
40631
40632         Use socklen_t in the native Windows replacements prototypes.
40633         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40634         instead of 'int'.
40635         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40636         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40637         * modules/getsockopt (Depends-on): Add socklen.
40638         * modules/setsockopt (Depends-on): Add socklen.
40639
40640 2009-03-01  Bruno Haible  <bruno@clisp.org>
40641
40642         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40643         least 4.2.
40644
40645 2009-03-01  Eric Blake  <ebb9@byu.net>
40646             Bruno Haible  <bruno@clisp.org>
40647
40648         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40649         error messages.
40650         * lib/wait-process.c (wait_subprocess): Omit error message about
40651         deadly signal sent to the child of termsigp != NULL.
40652
40653 2009-03-01  Eric Blake  <ebb9@byu.net>
40654
40655         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40656
40657 2009-03-01  Bruno Haible  <bruno@clisp.org>
40658
40659         Avoid a gcc warning.
40660         * tests/test-sched.c (b): Make global.
40661         Reported by Eric Blake.
40662
40663 2009-01-19  Martin Lambers  <marlam@marlam.de>
40664
40665         Provide POSIX semantics for socket timeout options on W32.
40666         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40667         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40668         * modules/setsockopt: Depend on sys_time module for struct timeval.
40669         * modules/getsockopt: Depend on sys_time module for struct timeval.
40670
40671 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40672
40673         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40674         __USE_GNU, for consistency with netdb.in.h.
40675         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40676
40677 2009-03-01  Bruno Haible  <bruno@clisp.org>
40678
40679         More support for FreeMiNT.
40680         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40681         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40682
40683 2009-03-01  Bruno Haible  <bruno@clisp.org>
40684
40685         More support for FreeMiNT.
40686         * lib/fpurge.c (fpurge): Correct last commit.
40687         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40688
40689 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40690
40691         Fix unportable awk script in vc-list-files.
40692         * build-aux/vc-list-files: In the replacement awk script, use
40693         substr with a second argument of 1, not zero.
40694         Report by Simon Josefsson.
40695
40696 2009-02-28  Bruno Haible  <bruno@clisp.org>
40697
40698         More support for FreeMiNT.
40699         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40700         to FreeMiNT today.
40701         * lib/fwriting.c (fwriting): Likewise.
40702         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40703
40704 2009-02-28  Bruno Haible  <bruno@clisp.org>
40705
40706         * tests/test-freadseek.c (main): Disable test beyond end of file on
40707         FreeMiNT.
40708         * tests/test-ftello.c (main): Likewise.
40709         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40710
40711 2009-02-28  Bruno Haible  <bruno@clisp.org>
40712
40713         Add tentative support for FreeMiNT.
40714         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40715         * lib/fpurge.c (fpurge): Likewise.
40716         * lib/freadable.c (freadable): Likewise.
40717         * lib/freading.c (freading): Likewise.
40718         * lib/freadptr.c (freadptr): Likewise.
40719         * lib/freadseek.c (freadptrinc): Likewise.
40720         * lib/fseeko.c (rpl_fseeko): Likewise.
40721         * lib/fseterr.c (fseterr): Likewise.
40722         * lib/fwritable.c (fwritable): Likewise.
40723         * lib/fwriting.c (fwriting): Likewise.
40724         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40725         Hourihane.
40726         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40727
40728 2009-02-28  Bruno Haible  <bruno@clisp.org>
40729
40730         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40731         SIGCHLD.
40732         Reported by Jim Meyering.
40733
40734 2009-02-28  Bruno Haible  <bruno@clisp.org>
40735
40736         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40737         Mention the results of these tests on various platforms.
40738         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40739         order.
40740         * doc/posix-functions/printf.texi: Likewise.
40741         * doc/posix-functions/snprintf.texi: Likewise.
40742         * doc/posix-functions/sprintf.texi: Likewise.
40743         * doc/posix-functions/vfprintf.texi: Likewise.
40744         * doc/posix-functions/vprintf.texi: Likewise.
40745         * doc/posix-functions/vsnprintf.texi: Likewise.
40746         * doc/posix-functions/vsprintf.texi: Likewise.
40747         * doc/glibc-functions/obstack_printf.texi: Likewise.
40748         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40749
40750 2009-02-28  Bruno Haible  <bruno@clisp.org>
40751
40752         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40753         Reported by Loïc Minier <lool@dooz.org>.
40754
40755 2009-02-27  Bruno Haible  <bruno@clisp.org>
40756
40757         * gnulib-tool (func_import): Make the sed expression used to create the
40758         sed script for updating the .gitignore file POSIX compliant.
40759         Reported by Eric Blake.
40760
40761 2009-02-27  Bruno Haible  <bruno@clisp.org>
40762
40763         * gnulib-tool (sed): Don't alias as "sed --posix".
40764         Reported by Eric Blake.
40765
40766 2009-02-27  Bruno Haible  <bruno@clisp.org>
40767
40768         Avoid test link errors.
40769         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40770         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40771         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40772         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40773         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40774
40775 2009-02-27  Bruno Haible  <bruno@clisp.org>
40776
40777         Avoid spurious "(cached)" in configure output.
40778         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40779         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40780         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40781         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40782         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40783         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40784         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40785         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40786         Reported by Eric Blake.
40787
40788 2009-02-27  Eric Blake  <ebb9@byu.net>
40789
40790         printf: fix regression in previous patch
40791         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40792
40793 2009-02-27  Bruno Haible  <bruno@clisp.org>
40794
40795         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40796         value.
40797         * lib/stdint.in.h: Likewise.
40798         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40799
40800 2009-02-27  Eric Blake  <ebb9@byu.net>
40801
40802         doc: mention more functions added in cygwin 1.7.0
40803         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40804         addition.
40805         * doc/posix-functions/open_wmemstream.texi: Likewise.
40806         * doc/posix-functions/wcsnlen.texi: Likewise.
40807         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40808         * doc/posix-functions/wcstod.texi: Likewise.
40809         * doc/posix-functions/wcstof.texi: Likewise.
40810         * doc/posix-functions/wcstoimax.texi: Likewise.
40811         * doc/posix-functions/wcstok.texi: Likewise.
40812         * doc/posix-functions/wcstoumax.texi: Likewise.
40813
40814         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40815         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40816         * doc/posix-functions/fprintf.texi: Update.
40817         * doc/posix-functions/printf.texi: Update.
40818         * doc/posix-functions/snprintf.texi: Update.
40819         * doc/posix-functions/sprintf.texi: Update.
40820         * doc/posix-functions/vfprintf.texi: Update.
40821         * doc/posix-functions/vprintf.texi: Update.
40822         * doc/posix-functions/vsnprintf.texi: Update.
40823         * doc/posix-functions/vsprintf.texi: Update.
40824         * doc/glibc-functions/obstack_printf.texi: Update.
40825         * doc/glibc-functions/obstack_vprintf.texi: Update.
40826
40827 2009-02-26  Eric Blake  <ebb9@byu.net>
40828
40829         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40830         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40831         compilation bug by using runtime conversion.
40832         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40833         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40834         * modules/ceill-tests (Files): Use nan.h.
40835         * modules/floorl-tests (Files): Likewise.
40836         * modules/frexpl-tests (Files): Likewise.
40837         * modules/isnanl-tests (Files): Likewise.
40838         * modules/ldexpl-tests (Files): Likewise.
40839         * modules/roundl-tests (Files): Likewise.
40840         * modules/truncl-tests (Files): Likewise.
40841         * tests/test-ceill.c (main): Use a working NaN.
40842         * tests/test-floorl.c (main): Likewise.
40843         * tests/test-frexpl.c (main): Likewise.
40844         * tests/test-isnan.c (test_long_double): Likewise.
40845         * tests/test-isnanl.h (main): Likewise.
40846         * tests/test-ldexpl.h (main): Likewise.
40847         * tests/test-roundl.h (main): Likewise.
40848         * tests/test-truncl.h (main): Likewise.
40849         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40850
40851 2009-02-26  Eric Blake  <ebb9@byu.net>
40852             Bruno Haible  <bruno@clisp.org>
40853
40854         Work around a *printf bug with %ls on Solaris.
40855         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40856         precision is specified, sprintf stops converting the wide string
40857         argument when the number of bytes that have been produced by this
40858         conversion equals or exceeds the precision.
40859         * doc/posix-functions/fprintf.texi: Update.
40860         * doc/posix-functions/printf.texi: Update.
40861         * doc/posix-functions/snprintf.texi: Update.
40862         * doc/posix-functions/sprintf.texi: Update.
40863         * doc/posix-functions/vfprintf.texi: Update.
40864         * doc/posix-functions/vprintf.texi: Update.
40865         * doc/posix-functions/vsnprintf.texi: Update.
40866         * doc/posix-functions/vsprintf.texi: Update.
40867         * doc/glibc-functions/obstack_printf.texi: Update.
40868         * doc/glibc-functions/obstack_vprintf.texi: Update.
40869
40870 2009-02-26  Eric Blake  <ebb9@byu.net>
40871
40872         stdlib: favor compiler check of random.h
40873         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40874         to avoid an ObjC random.h installed by Swarm.
40875
40876 2009-02-26  Bruno Haible  <bruno@clisp.org>
40877
40878         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40879         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40880         Reported by Gary V. Vaughan <gary@gnu.org>.
40881
40882 2009-02-26  Bruno Haible  <bruno@clisp.org>
40883
40884         Fix *printf behaviour regarding the %ls directive.
40885         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40886         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40887         NEED_PRINTF_DIRECTIVE_LS.
40888         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40889         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40890         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40891         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40892         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40893         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40894         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40895         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40896         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40897         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40898         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40899         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40900         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40901         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40902         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40903         * doc/posix-functions/fprintf.texi: Update.
40904         * doc/posix-functions/printf.texi: Update.
40905         * doc/posix-functions/snprintf.texi: Update.
40906         * doc/posix-functions/sprintf.texi: Update.
40907         * doc/posix-functions/vfprintf.texi: Update.
40908         * doc/posix-functions/vprintf.texi: Update.
40909         * doc/posix-functions/vsnprintf.texi: Update.
40910         * doc/posix-functions/vsprintf.texi: Update.
40911         * doc/glibc-functions/obstack_printf.texi: Update.
40912         * doc/glibc-functions/obstack_vprintf.texi: Update.
40913         Reported by Eric Blake.
40914
40915 2009-02-25  Bruno Haible  <bruno@clisp.org>
40916
40917         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40918         with known value.
40919         Reported by Gary V. Vaughan <gary@gnu.org>.
40920
40921 2009-02-25  Bruno Haible  <bruno@clisp.org>
40922
40923         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40924         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40925         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40926         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40927         Reported by Gary V. Vaughan <gary@gnu.org>.
40928
40929 2009-02-25  Bruno Haible  <bruno@clisp.org>
40930
40931         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40932         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40933         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40934         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40935         Reported by Gary V. Vaughan <gary@gnu.org>.
40936
40937 2009-02-25  Eric Blake  <ebb9@byu.net>
40938
40939         tests: skip fseek/ftell tests if ungetc is broken
40940         * m4/ungetc.m4: New file.
40941         * modules/fseek-tests: Split test, so ungetc dependency is
40942         separate from rest of test.
40943         * modules/fseeko-tests: Likewise.
40944         * modules/ftell-tests: Likewise.
40945         * modules/ftello-tests: Likewise.
40946         * tests/test-fseek.c (main): Isolate ungetc dependency.
40947         * tests/test-fseeko.c (main): Likewise.
40948         * tests/test-ftell.c (main): Likewise.
40949         * tests/test-ftello.c (main): Likewise.
40950         * tests/test-fseek2.sh: New file.
40951         * tests/test-fseeko2.sh: Likewise.
40952         * tests/test-ftell2.sh: Likewise.
40953         * tests/test-ftello2.sh: Likewise.
40954
40955 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
40956
40957         test-getaddrinfo: fix usage of skip return code 77
40958         * tests/test-gettaddrinfo.c: Return skip code 77 only
40959         for first occurance of skip (4x77 is not 77)
40960
40961 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40962
40963         strtod: avoid C99 decl-after-statement
40964         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40965
40966 2009-02-24  Eric Blake  <ebb9@byu.net>
40967
40968         strtod: detect HP-UX 11.31 bug
40969         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40970         Reported by Gary V. Vaughan.
40971
40972 2009-02-23  Bruno Haible  <bruno@clisp.org>
40973
40974         Fix invalid read past end of memory block.
40975         * lib/vasnprintf.c (DCHAR_SET): Define.
40976         (local_wcslen): Define only when needed.
40977         (local_strnlen, local_wcsnlen): New functions.
40978         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40979         directives that involve a conversion ourselves.
40980         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40981         wcsnlen, mbrtowc, wcrtomb.
40982         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40983         * tests/test-vasprintf-posix.c (test_function): Likewise.
40984         * tests/test-snprintf-posix.h (test_function): Likewise.
40985         * tests/test-sprintf-posix.h (test_function): Likewise.
40986         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40987
40988 2009-02-22  Bruno Haible  <bruno@clisp.org>
40989
40990         Implement new clarified decomposition of Hangul syllables.
40991         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40992         of type LTV, return only a pairwise decomposition.
40993         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40994         Likewise.
40995         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40996         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40997         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40998
40999 2009-02-22  Bruno Haible  <bruno@clisp.org>
41000
41001         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41002         zero-length results and shrink excess allocated memory.
41003         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41004         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41005         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41006         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41007         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41008         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41009         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41010         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41011         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41012         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41013         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41014         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41015
41016 2009-02-21  Bruno Haible  <bruno@clisp.org>
41017
41018         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41019         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41020         spaces after a period. Put a space between a macro name and its
41021         argument list. Trivial rewordings.
41022         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41023         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41024         (main): Return 0 explicitly.
41025
41026 2009-02-21  Bruno Haible  <bruno@clisp.org>
41027
41028         Tests for module 'uninorm/filter'.
41029         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41030         * modules/uninorm/filter-tests: New file.
41031
41032         New module 'uninorm/filter'.
41033         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41034         uninorm_filter_flush, uninorm_filter_free): New declarations.
41035         * lib/uninorm/uninorm-filter.c: New file.
41036         * modules/uninorm/filter: New file.
41037
41038 2009-02-21  Bruno Haible  <bruno@clisp.org>
41039
41040         Tests for module 'uninorm/nfkc'.
41041         * tests/uninorm/test-nfkc.c: New file.
41042         * tests/uninorm/test-u8-nfkc.c: New file.
41043         * tests/uninorm/test-u16-nfkc.c: New file.
41044         * tests/uninorm/test-u32-nfkc.c: New file.
41045         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41046         * tests/uninorm/test-u32-nfkc-big.c: New file.
41047         * modules/uninorm/nfkc-tests: New file.
41048
41049         New module 'uninorm/nfkc'.
41050         * lib/uninorm/nfkc.c: New file.
41051         * modules/uninorm/nfkc: New file.
41052
41053         Tests for module 'uninorm/nfkd'.
41054         * tests/uninorm/test-nfkd.c: New file.
41055         * tests/uninorm/test-u8-nfkd.c: New file.
41056         * tests/uninorm/test-u16-nfkd.c: New file.
41057         * tests/uninorm/test-u32-nfkd.c: New file.
41058         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41059         * tests/uninorm/test-u32-nfkd-big.c: New file.
41060         * modules/uninorm/nfkd-tests: New file.
41061
41062         New module 'uninorm/nfkd'.
41063         * lib/uninorm/nfkd.c: New file.
41064         * modules/uninorm/nfkd: New file.
41065
41066         Tests for module 'uninorm/nfc'.
41067         * tests/uninorm/test-nfc.c: New file.
41068         * tests/uninorm/test-u8-nfc.c: New file.
41069         * tests/uninorm/test-u16-nfc.c: New file.
41070         * tests/uninorm/test-u32-nfc.c: New file.
41071         * tests/uninorm/test-u32-nfc-big.sh: New file.
41072         * tests/uninorm/test-u32-nfc-big.c: New file.
41073         * modules/uninorm/nfc-tests: New file.
41074
41075         New module 'uninorm/nfc'.
41076         * lib/uninorm/nfc.c: New file.
41077         * modules/uninorm/nfc: New file.
41078
41079         Tests for module 'uninorm/nfd'.
41080         * tests/uninorm/test-nfd.c: New file.
41081         * tests/uninorm/test-u8-nfd.c: New file.
41082         * tests/uninorm/test-u16-nfd.c: New file.
41083         * tests/uninorm/test-u32-nfd.c: New file.
41084         * tests/uninorm/test-u32-nfd-big.sh: New file.
41085         * tests/uninorm/test-u32-nfd-big.c: New file.
41086         * tests/uninorm/test-u32-normalize-big.h: New file.
41087         * tests/uninorm/test-u32-normalize-big.c: New file.
41088         * tests/uninorm/NormalizationTest.txt: New file, created from
41089         Unicode 5.1.0 NormalizationTest.txt.
41090         * modules/uninorm/nfd-tests: New file.
41091
41092         New module 'uninorm/nfd'.
41093         * lib/uninorm/nfd.c: New file.
41094         * modules/uninorm/nfd: New file.
41095
41096         New module 'uninorm/u32-normalize'.
41097         * lib/uninorm/u32-normalize.c: New file.
41098         * modules/uninorm/u32-normalize: New file.
41099
41100         New module 'uninorm/u16-normalize'.
41101         * lib/uninorm/u16-normalize.c: New file.
41102         * modules/uninorm/u16-normalize: New file.
41103
41104         New module 'uninorm/u8-normalize'.
41105         * lib/uninorm/u8-normalize.c: New file.
41106         * lib/uninorm/normalize-internal.h: New file.
41107         * lib/uninorm/u-normalize-internal.h: New file.
41108         * modules/uninorm/u8-normalize: New file.
41109
41110         New module 'uninorm/decompose-internal'.
41111         * lib/uninorm/decompose-internal.c: New file.
41112         * modules/uninorm/decompose-internal: New file.
41113
41114         Tests for module 'uninorm/composition'.
41115         * tests/uninorm/test-composition.c: New file.
41116         * modules/uninorm/composition-tests: New file.
41117
41118         New module 'uninorm/composition'.
41119         * lib/uninorm/composition.c: New file.
41120         * lib/uninorm/composition-table.gperf: New file, generated by
41121         gen-uni-tables.
41122         * modules/uninorm/composition: New file.
41123
41124         Tests for module 'uninorm/compat-decomposition'.
41125         * tests/uninorm/test-compat-decomposition.c: New file.
41126         * modules/uninorm/compat-decomposition-tests: New file.
41127
41128         New module 'uninorm/compat-decomposition'.
41129         * lib/uninorm/decompose-internal.h: New file.
41130         * lib/uninorm/compat-decomposition.c: New file.
41131         * modules/uninorm/compat-decomposition: New file.
41132
41133         Tests for module 'uninorm/canonical-decomposition'.
41134         * tests/uninorm/test-canonical-decomposition.c: New file.
41135         * modules/uninorm/canonical-decomposition-tests: New file.
41136
41137         New module 'uninorm/canonical-decomposition'.
41138         * lib/uninorm/canonical-decomposition.c: New file.
41139         * modules/uninorm/canonical-decomposition: New file.
41140
41141         Tests for module 'uninorm/decomposition'.
41142         * tests/uninorm/test-decomposition.c: New file.
41143         * modules/uninorm/decomposition-tests: New file.
41144
41145         New module 'uninorm/decomposition'.
41146         * lib/uninorm/decomposition.c: New file.
41147         * modules/uninorm/decomposition: New file.
41148
41149         New module 'uninorm/decomposition-table'.
41150         * lib/uninorm/decomposition-table.h: New file.
41151         * lib/uninorm/decomposition-table.c: New file.
41152         * lib/uninorm/decomposition-table1.h: New file, generated by
41153         gen-uni-tables.
41154         * lib/uninorm/decomposition-table2.h: New file, generated by
41155         gen-uni-tables.
41156         * modules/uninorm/decomposition-table: New file.
41157
41158         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41159         (UC_DECOMP_*): New enumeration items.
41160         (get_decomposition): New function.
41161         (struct decomp_table): New type.
41162         (output_decomposition, output_decomposition_tables): New functions.
41163         (unicode_composition_exclusions): New variable.
41164         (fill_composition_exclusions, debug_output_composition_tables): New
41165         functions.
41166         (main): Accept one more argument. Invoke fill_composition_exclusions.
41167         Output decomposition and composition tables.
41168
41169         New module 'uninorm/base'.
41170         * lib/uninorm.h: New file.
41171         * lib/unictype.h: Update comment.
41172         * modules/uninorm/base: New file.
41173
41174 2009-02-21  David Lutterkort  <lutter@redhat.com>
41175
41176         Tests for module 'safe-alloc'.
41177         * tests/test-safe-alloc.c: New file.
41178         * modules/safe-alloc-tests: New file.
41179
41180         New module 'safe-alloc'.
41181         * lib/safe-alloc.h: New file.
41182         * lib/safe-alloc.c: New file.
41183         * m4/safe-alloc.m4: New file.
41184         * modules/safe-alloc: New file.
41185         * doc/safe-alloc.texi: New file.
41186         * doc/gnulib.texi: Include it.
41187         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41188         safe-alloc.
41189
41190 2009-02-18  Bruno Haible  <bruno@clisp.org>
41191
41192         Fix link error on non-glibc systems.
41193         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41194         variable.
41195         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41196
41197 2009-02-18  Jim Meyering  <meyering@redhat.com>
41198
41199         fts: avoid used-uninitialized error due to recent change
41200         * lib/fts.c (fts_read): Guard uses of the new member,
41201         parent->fts_n_dirs_remaining, since it's not relevant for
41202         the parent of a directory specified on the command-line.
41203
41204 2009-02-17  James Youngman  <jay@gnu.org>
41205             Bruno Haible  <bruno@clisp.org>
41206
41207         * m4/include_next.m4: Reformulate comment.
41208
41209 2009-02-16  Jim Meyering  <meyering@redhat.com>
41210
41211         fts: add #if guards so that the fts_lgpl module still builds
41212         * lib/fts.c: Guard just-added hash-table-using parts with
41213         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41214         Reported by Simon Josefsson.
41215
41216 2009-02-15  Bruno Haible  <bruno@clisp.org>
41217
41218         * modules/array-mergesort-tests: New file.
41219         * tests/test-array-mergesort.c: New file.
41220
41221         New module 'array-mergesort'.
41222         * modules/array-mergesort: New file.
41223         * lib/array-mergesort.h: New file.
41224
41225 2009-02-15  Bruno Haible  <bruno@clisp.org>
41226
41227         Fix 2009-02-07 commit.
41228         * lib/gen-uni-tables.c (output_predicate, output_category,
41229         output_combclass, output_bidi_category, output_decimal_digit,
41230         output_digit, output_numeric, output_mirror, output_scripts,
41231         output_ident_category, output_simple_mapping): Fix format directives.
41232         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41233
41234 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41235
41236         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41237         fixes are available from IBM.
41238
41239 2009-02-13  Jim Meyering  <meyering@redhat.com>
41240
41241         fts: arrange not to stat non-directories in more cases
41242         This makes GNU find (when it doesn't need to stat each file)
41243         *much* more efficient at traversing reiserfs file systems.
41244         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41245         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41246         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41247         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41248         (leaf_optimization_applies): New function.
41249         (LCO_hash, LCO_compare): New helper functions.
41250         (link_count_optimize_ok): New function.
41251         (fts_stat): Initialize new member (if dir).
41252         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41253         we've just stat'ed a directory.  Skip the stat call when possible.
41254         ---
41255         Note this AFS-related exchange:
41256         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41257         and note find's pioctl call in find/fstype.c.
41258         But that is necessary only if you want to enable the
41259         optimization for AFS, and for now, I don't.
41260
41261         fts: move a function definition "up" (no semantic change)
41262         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41263         "up" to precede upcoming use of a related function.
41264
41265 2009-02-11  Jim Meyering  <meyering@redhat.com>
41266
41267         fts: correct internal computation of nlinks (optimization-related)
41268         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41269         whether the current entry is a directory, so don't test it.
41270
41271 2009-02-10  Bruno Haible  <bruno@clisp.org>
41272
41273         Tests for module 'uniwbrk/ulc-wordbreaks'.
41274         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41275         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41276         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41277
41278         Tests for module 'uniwbrk/u32-wordbreaks'.
41279         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41280         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41281
41282         Tests for module 'uniwbrk/u16-wordbreaks'.
41283         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41284         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41285
41286         Tests for module 'uniwbrk/u8-wordbreaks'.
41287         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41288         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41289
41290 2009-02-10  Bruno Haible  <bruno@clisp.org>
41291
41292         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41293         property.
41294         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41295         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41296         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41297
41298 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41299
41300         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41301         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41302
41303 2009-02-10  Bruno Haible  <bruno@clisp.org>
41304
41305         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41306         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41307         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41308         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41309         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41310         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41311
41312 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41313
41314         * lib/sockets.h (gl_fd_to_handle): New function.
41315
41316         * tests/test-sockets.c: Call gl_fd_to_handle.
41317
41318 2009-02-09  Bruno Haible  <bruno@clisp.org>
41319
41320         * doc/havelib.texi: Document the conventions on bi-arch systems.
41321
41322 2009-02-08  Bruno Haible  <bruno@clisp.org>
41323
41324         Document the AC_LIB_LINKFLAGS macro.
41325         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41326         * doc/gnulib.texi: Include it.
41327
41328 2009-02-08  Bruno Haible  <bruno@clisp.org>
41329
41330         Fix wrong order of sections, compared to TOC.
41331         * doc/gnulib.texi: Include relocatable-maint.texi after the
41332         "Regular expressions" node, not before.
41333
41334 2009-02-08  Bruno Haible  <bruno@clisp.org>
41335
41336         Tests for module 'unicase/totitle'.
41337         * modules/unicase/totitle-tests: New file.
41338
41339         Tests for module 'unicase/tolower'.
41340         * modules/unicase/tolower-tests: New file.
41341
41342         Tests for module 'unicase/toupper'.
41343         * modules/unicase/toupper-tests: New file.
41344         * tests/unicase/test-mapping-part1.h: New file.
41345         * tests/unicase/test-mapping-part2.h: New file.
41346
41347         New module 'unicase/totitle'.
41348         * modules/unicase/totitle: New file.
41349         * lib/unicase/totitle.c: New file.
41350
41351         New module 'unicase/tolower'.
41352         * modules/unicase/tolower: New file.
41353         * lib/unicase/tolower.c: New file.
41354
41355         New module 'unicase/toupper'.
41356         * modules/unicase/toupper: New file.
41357         * lib/unicase/toupper.c: New file.
41358         * lib/unicase/simple-mapping.h: New file.
41359
41360         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41361         (mapping_table): New structure.
41362         (output_simple_mapping): New function.
41363         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41364         * modules/gen-uni-tables (Description): Update.
41365         * lib/unicase/toupper.h: New file, automatically generated by
41366         gen-uni-tables.
41367         * lib/unicase/tolower.h: New file, automatically generated by
41368         gen-uni-tables.
41369         * lib/unicase/totitle.h: New file, automatically generated by
41370         gen-uni-tables.
41371         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41372         gen-uni-tables.
41373         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41374         gen-uni-tables.
41375         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41376         gen-uni-tables.
41377
41378         New module 'unicase/base'.
41379         * modules/unicase/base: New file.
41380         * lib/unicase.h: New file.
41381
41382 2009-02-08  Bruno Haible  <bruno@clisp.org>
41383
41384         New module 'uniwbrk/ulc-wordbreaks'.
41385         * modules/uniwbrk/ulc-wordbreaks: New file.
41386         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41387
41388         New module 'uniwbrk/u32-wordbreaks'.
41389         * modules/uniwbrk/u32-wordbreaks: New file.
41390         * lib/uniwbrk/u32-wordbreaks.c: New file.
41391
41392         New module 'uniwbrk/u16-wordbreaks'.
41393         * modules/uniwbrk/u16-wordbreaks: New file.
41394         * lib/uniwbrk/u16-wordbreaks.c: New file.
41395
41396         New module 'uniwbrk/u8-wordbreaks'.
41397         * modules/uniwbrk/u8-wordbreaks: New file.
41398         * lib/uniwbrk/u8-wordbreaks.c: New file.
41399         * lib/uniwbrk/u-wordbreaks.h: New file.
41400
41401         New module 'uniwbrk/table'.
41402         * modules/uniwbrk/table: New file.
41403         * lib/uniwbrk/wbrktable.h: New file.
41404         * lib/uniwbrk/wbrktable.c: New file.
41405
41406         New module 'uniwbrk/wordbreak-property'.
41407         * modules/uniwbrk/wordbreak-property: New file.
41408         * lib/uniwbrk/wordbreak-property.c: New file.
41409
41410         * lib/gen-uni-tables.c (WBP_*): New enum items.
41411         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41412         (unicode_org_wbp): New variable.
41413         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41414         New functions.
41415         (wbp_table): New structure.
41416         (output_wbp, output_wbrk_tables): New functions.
41417         (main): Accept additional argument. Invoke fill_org_wbp,
41418         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41419         output_wbrk_tables.
41420         * modules/gen-uni-tables (Description): Update.
41421         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41422         gen-uni-tables.
41423
41424         New module 'uniwbrk/base'.
41425         * modules/uniwbrk/base: New file.
41426         * lib/uniwbrk.h: New file.
41427
41428 2009-02-08  Bruno Haible  <bruno@clisp.org>
41429
41430         Update to Unicode 5.1.0.
41431         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41432         U+2185..U+2188.
41433         (is_property_default_ignorable_code_point): Don't include characters
41434         of category Cc or Cs and not-a-characters.
41435         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41436         U+0D79, U+109E, U+109F, U+A60C.
41437         * lib/unictype/bidi_of.h: Regenerated.
41438         * lib/unictype/blocks.h: Regenerated.
41439         * lib/unictype/categ_C.h: Regenerated.
41440         * lib/unictype/categ_Cf.h: Regenerated.
41441         * lib/unictype/categ_Cn.h: Regenerated.
41442         * lib/unictype/categ_L.h: Regenerated.
41443         * lib/unictype/categ_Ll.h: Regenerated.
41444         * lib/unictype/categ_Lm.h: Regenerated.
41445         * lib/unictype/categ_Lo.h: Regenerated.
41446         * lib/unictype/categ_Lu.h: Regenerated.
41447         * lib/unictype/categ_M.h: Regenerated.
41448         * lib/unictype/categ_Mc.h: Regenerated.
41449         * lib/unictype/categ_Me.h: Regenerated.
41450         * lib/unictype/categ_Mn.h: Regenerated.
41451         * lib/unictype/categ_N.h: Regenerated.
41452         * lib/unictype/categ_Nd.h: Regenerated.
41453         * lib/unictype/categ_Nl.h: Regenerated.
41454         * lib/unictype/categ_No.h: Regenerated.
41455         * lib/unictype/categ_P.h: Regenerated.
41456         * lib/unictype/categ_Pd.h: Regenerated.
41457         * lib/unictype/categ_Pe.h: Regenerated.
41458         * lib/unictype/categ_Pf.h: Regenerated.
41459         * lib/unictype/categ_Pi.h: Regenerated.
41460         * lib/unictype/categ_Po.h: Regenerated.
41461         * lib/unictype/categ_Ps.h: Regenerated.
41462         * lib/unictype/categ_S.h: Regenerated.
41463         * lib/unictype/categ_Sk.h: Regenerated.
41464         * lib/unictype/categ_Sm.h: Regenerated.
41465         * lib/unictype/categ_So.h: Regenerated.
41466         * lib/unictype/categ_of.h: Regenerated.
41467         * lib/unictype/combining.h: Regenerated.
41468         * lib/unictype/ctype_alnum.h: Regenerated.
41469         * lib/unictype/ctype_alpha.h: Regenerated.
41470         * lib/unictype/ctype_graph.h: Regenerated.
41471         * lib/unictype/ctype_lower.h: Regenerated.
41472         * lib/unictype/ctype_print.h: Regenerated.
41473         * lib/unictype/ctype_punct.h: Regenerated.
41474         * lib/unictype/ctype_upper.h: Regenerated.
41475         * lib/unictype/decdigit.h: Regenerated.
41476         * lib/unictype/digit.h: Regenerated.
41477         * lib/unictype/mirror.h: Regenerated.
41478         * lib/unictype/numeric.h: Regenerated.
41479         * lib/unictype/pr_alphabetic.h: Regenerated.
41480         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41481         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41482         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41483         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41484         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41485         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41486         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41487         * lib/unictype/pr_combining.h: Regenerated.
41488         * lib/unictype/pr_dash.h: Regenerated.
41489         * lib/unictype/pr_decimal_digit.h: Regenerated.
41490         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41491         * lib/unictype/pr_deprecated.h: Regenerated.
41492         * lib/unictype/pr_diacritic.h: Regenerated.
41493         * lib/unictype/pr_extender.h: Regenerated.
41494         * lib/unictype/pr_format_control.h: Regenerated.
41495         * lib/unictype/pr_grapheme_base.h: Regenerated.
41496         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41497         * lib/unictype/pr_grapheme_link.h: Regenerated.
41498         * lib/unictype/pr_id_continue.h: Regenerated.
41499         * lib/unictype/pr_id_start.h: Regenerated.
41500         * lib/unictype/pr_ideographic.h: Regenerated.
41501         * lib/unictype/pr_ignorable_control.h: Regenerated.
41502         * lib/unictype/pr_lowercase.h: Regenerated.
41503         * lib/unictype/pr_math.h: Regenerated.
41504         * lib/unictype/pr_numeric.h: Regenerated.
41505         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41506         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41507         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41508         * lib/unictype/pr_other_id_continue.h: Regenerated.
41509         * lib/unictype/pr_other_lowercase.h: Regenerated.
41510         * lib/unictype/pr_other_math.h: Regenerated.
41511         * lib/unictype/pr_punctuation.h: Regenerated.
41512         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41513         * lib/unictype/pr_soft_dotted.h: Regenerated.
41514         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41515         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41516         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41517         * lib/unictype/pr_uppercase.h: Regenerated.
41518         * lib/unictype/pr_xid_continue.h: Regenerated.
41519         * lib/unictype/pr_xid_start.h: Regenerated.
41520         * lib/unictype/pr_zero_width.h: Regenerated.
41521         * lib/unictype/scripts.h: Regenerated.
41522         * lib/unictype/scripts_byname.gperf: Regenerated.
41523         * lib/unictype/sy_java_ident.h: Regenerated.
41524         * lib/unilbrk/lbrkprop1.h: Regenerated.
41525         * lib/unilbrk/lbrkprop2.h: Regenerated.
41526         * tests/unictype/test-categ_C.c: Regenerated.
41527         * tests/unictype/test-categ_Cf.c: Regenerated.
41528         * tests/unictype/test-categ_Cn.c: Regenerated.
41529         * tests/unictype/test-categ_L.c: Regenerated.
41530         * tests/unictype/test-categ_Ll.c: Regenerated.
41531         * tests/unictype/test-categ_Lm.c: Regenerated.
41532         * tests/unictype/test-categ_Lo.c: Regenerated.
41533         * tests/unictype/test-categ_Lu.c: Regenerated.
41534         * tests/unictype/test-categ_M.c: Regenerated.
41535         * tests/unictype/test-categ_Mc.c: Regenerated.
41536         * tests/unictype/test-categ_Me.c: Regenerated.
41537         * tests/unictype/test-categ_Mn.c: Regenerated.
41538         * tests/unictype/test-categ_N.c: Regenerated.
41539         * tests/unictype/test-categ_Nd.c: Regenerated.
41540         * tests/unictype/test-categ_Nl.c: Regenerated.
41541         * tests/unictype/test-categ_No.c: Regenerated.
41542         * tests/unictype/test-categ_P.c: Regenerated.
41543         * tests/unictype/test-categ_Pd.c: Regenerated.
41544         * tests/unictype/test-categ_Pe.c: Regenerated.
41545         * tests/unictype/test-categ_Pf.c: Regenerated.
41546         * tests/unictype/test-categ_Pi.c: Regenerated.
41547         * tests/unictype/test-categ_Po.c: Regenerated.
41548         * tests/unictype/test-categ_Ps.c: Regenerated.
41549         * tests/unictype/test-categ_S.c: Regenerated.
41550         * tests/unictype/test-categ_Sk.c: Regenerated.
41551         * tests/unictype/test-categ_Sm.c: Regenerated.
41552         * tests/unictype/test-categ_So.c: Regenerated.
41553         * tests/unictype/test-ctype_alnum.c: Regenerated.
41554         * tests/unictype/test-ctype_alpha.c: Regenerated.
41555         * tests/unictype/test-ctype_graph.c: Regenerated.
41556         * tests/unictype/test-ctype_lower.c: Regenerated.
41557         * tests/unictype/test-ctype_print.c: Regenerated.
41558         * tests/unictype/test-ctype_punct.c: Regenerated.
41559         * tests/unictype/test-ctype_upper.c: Regenerated.
41560         * tests/unictype/test-decdigit.h: Regenerated.
41561         * tests/unictype/test-digit.h: Regenerated.
41562         * tests/unictype/test-numeric.h: Regenerated.
41563         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41564         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41565         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41566         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41567         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41568         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41569         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41570         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41571         * tests/unictype/test-pr_combining.c: Regenerated.
41572         * tests/unictype/test-pr_dash.c: Regenerated.
41573         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41574         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41575         * tests/unictype/test-pr_deprecated.c: Regenerated.
41576         * tests/unictype/test-pr_diacritic.c: Regenerated.
41577         * tests/unictype/test-pr_extender.c: Regenerated.
41578         * tests/unictype/test-pr_format_control.c: Regenerated.
41579         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41580         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41581         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41582         * tests/unictype/test-pr_id_continue.c: Regenerated.
41583         * tests/unictype/test-pr_id_start.c: Regenerated.
41584         * tests/unictype/test-pr_ideographic.c: Regenerated.
41585         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41586         * tests/unictype/test-pr_lowercase.c: Regenerated.
41587         * tests/unictype/test-pr_math.c: Regenerated.
41588         * tests/unictype/test-pr_numeric.c: Regenerated.
41589         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41590         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41591         Regenerated.
41592         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41593         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41594         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41595         * tests/unictype/test-pr_other_math.c: Regenerated.
41596         * tests/unictype/test-pr_punctuation.c: Regenerated.
41597         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41598         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41599         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41600         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41601         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41602         * tests/unictype/test-pr_uppercase.c: Regenerated.
41603         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41604         * tests/unictype/test-pr_xid_start.c: Regenerated.
41605         * tests/unictype/test-pr_zero_width.c: Regenerated.
41606
41607         Update to Unicode 5.1.0.
41608         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41609         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41610         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41611         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41612         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41613         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41614         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41615         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41616         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41617         (nonspacing_table_ind): Update.
41618         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41619
41620         Update to Unicode 5.1.0.
41621         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41622         code transform.
41623         * lib/uniname/uniname.c (unicode_character_name,
41624         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41625         * lib/uniname/uninames.h: Regenerated.
41626         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41627
41628 2009-02-07  Bruno Haible  <bruno@clisp.org>
41629
41630         Merge gen-ctype and gen-lbrk into a single program.
41631         * lib/gen-uni-tables.c: New file, incorporating
41632         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41633         Add directory prefixes to the names of the generated files.
41634         * lib/unictype/gen-ctype.c: Remove file.
41635         * lib/unilbrk/gen-lbrk.c: Remove file.
41636         * modules/gen-uni-tables: New file.
41637         * modules/unictype/gen-ctype: Remove file.
41638         * modules/unilbrk/gen-lbrk: Remove file.
41639
41640 2009-02-07  Bruno Haible  <bruno@clisp.org>
41641
41642         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41643
41644         New module 'unistr/u32-strcoll'.
41645         * modules/unistr/u32-strcoll: New file.
41646         * lib/unistr/u32-strcoll.c: New file.
41647
41648         New module 'unistr/u16-strcoll'.
41649         * modules/unistr/u16-strcoll: New file.
41650         * lib/unistr/u16-strcoll.c: New file.
41651
41652         New module 'unistr/u8-strcoll'.
41653         * modules/unistr/u8-strcoll: New file.
41654         * lib/unistr/u8-strcoll.c: New file.
41655         * lib/unistr/u-strcoll.h: New file.
41656
41657 2009-02-07  Bruno Haible  <bruno@clisp.org>
41658
41659         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41660         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41661         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41662         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41663         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41664         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41665
41666 2009-02-07  Bruno Haible  <bruno@clisp.org>
41667
41668         Make 64-bit clean.
41669         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41670         output_combclass, output_bidi_category, output_decimal_digit,
41671         output_digit, output_numeric, output_mirror, output_scripts,
41672         output_ident_category): Use proper width specifier in format strings.
41673
41674 2009-02-07  Bruno Haible  <bruno@clisp.org>
41675
41676         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41677         failure behaviour.
41678
41679 2009-02-07  Jim Meyering  <meyering@redhat.com>
41680
41681         regex: avoid compilation failure with upcoming gcc-4.4
41682         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41683         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41684         "... error: integer overflow in preprocessor expression".
41685
41686 2009-02-05  Ben Pfaff  <blp@gnu.org>
41687
41688         Fix link errors on Windows when close module is used.
41689         * modules/close: Add $(LIB_CLOSE) to Link section.
41690         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41691         $(LIB_CLOSE) on Windows.
41692
41693 2009-02-05  Jim Meyering  <meyering@redhat.com>
41694
41695         still avoid unused-parameter warnings, but do it cleanly
41696         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41697         (get_fs_usage): Cast to void instead.
41698         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41699         (dev_from_mount_options, read_file_system_list): Cast to void.
41700         Prompted by Bruno Haible.
41701
41702 2009-02-04  Jim Meyering  <meyering@redhat.com>
41703
41704         fsusage.c: correct copyright year
41705         * lib/fsusage.c: Reflect year in which the change is pushed into
41706
41707         avoid misc. warnings
41708         * lib/fsusage.c (UNUSED_PARAM): Define.
41709         (get_fs_usage): Mark parameter "disk" as unused.
41710         * lib/getugroups.c (getgrent): Use "void" in prototype.
41711         * lib/mountlist.c: Mark unused parameters.
41712         (read_file_system_list): Declare a local with "const".
41713         * lib/nanosleep.c (getnow): Declare static.
41714         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41715
41716         dirfd: set errno upon failure
41717         * lib/dirfd.c: Include <errno.h>.
41718         Set errno to ENOTSUP when returning -1.
41719         * modules/dirfd (Depends-on): Add errno.
41720         Suggested by John Kodis <kodis@comcast.net>.
41721
41722 2009-02-01  Bruno Haible  <bruno@clisp.org>
41723
41724         Don't assume sizeof (long) >= sizeof (void *).
41725         * lib/memcmp.c: Include stdint.h.
41726         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41727         srcp2 to 'const byte *'.
41728         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41729         types to uintptr_t.
41730         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41731         * modules/memcmp (Depends-on): Add stdint.
41732         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41733
41734 2009-01-30  Eric Blake  <ebb9@byu.net>
41735
41736         fix more require-before-expand issues
41737         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41738         expand, AC_PROG_AWK.
41739         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41740
41741 2009-01-28  Eric Blake  <ebb9@byu.net>
41742
41743         version-etc: use consistent URL formatting
41744         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41745         Improve formatting.  Use fputs for string without %.
41746
41747 2009-01-28  Jim Meyering  <meyering@redhat.com>
41748
41749         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41750         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41751         "underquoted definition of NAME" from autoconf-2.59.
41752
41753 2009-01-28  Bruno Haible  <bruno@clisp.org>
41754
41755         * doc/gnulib.texi: Add "Obsolete modules" to index.
41756
41757 2009-01-28  Jim Meyering  <meyering@redhat.com>
41758
41759         useless-if-before-free: recognize more variants
41760         * build-aux/useless-if-before-free: Also recognize e.g.,
41761         if (NULL != p) free (p);
41762
41763 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41764
41765         test-getaddrinfo: skip (don't fail) this test when there's no network
41766         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41767         on the presumption that it means you lack network access.
41768
41769 2009-01-26  Jim Meyering  <meyering@redhat.com>
41770
41771         fflush: avoid warnings on modern systems
41772         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41773         pos and result, into scopes where they're used.
41774
41775 2009-01-26  Eric Blake  <ebb9@byu.net>
41776
41777         Silence warning reintroduced by recent extensions patch.
41778         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41779         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41780         autoconf.
41781
41782         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41783         * m4/00gnulib.m4: New file.
41784         * gnulib-tool (func_get_filelist): Always use it.
41785         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41786         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41787
41788 2009-01-25  Bruno Haible  <bruno@clisp.org>
41789
41790         Make test-quotearg work on MacOS X and AIX.
41791         * tests/test-quotearg.sh: New file.
41792         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41793         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41794         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41795         include <libintl.h>.
41796         (fake_locale): Remove variable.
41797         (gettext, dgettext, dcgettext): Remove functions.
41798         (main): Instead of setting a fake locale, set a real locale. Call
41799         textdomain and bindtextdomain.
41800         * modules/quotearg-tests (Files): Add the new files.
41801         (Depends-on): Add gettext, setenv, unsetenv.
41802         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41803         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41804         Augment TESTS_ENVIRONMENT.
41805
41806 2009-01-25  Bruno Haible  <bruno@clisp.org>
41807
41808         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41809         fr_FR.ISO8859-1 locale on MacOS X.
41810         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41811         ja_JP.eucJP locale on MacOS X.
41812         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41813         zh_CN.GB18030 locale on MacOS X.
41814
41815 2009-01-25  Bruno Haible  <bruno@clisp.org>
41816
41817         Avoid link errors on MacOS X 10.3.
41818         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41819         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41820
41821 2009-01-25  Bruno Haible  <bruno@clisp.org>
41822
41823         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41824         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41825         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41826         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41827         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41828         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41829         posix_spawnattr_init, posix_spawnattr_setsigmask,
41830         posix_spawnattr_setflags, posix_spawnattr_destroy.
41831
41832         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41833         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41834         * modules/execute (Files): Remove m4/posix_spawn.m4.
41835         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41836         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41837         posix_spawnattr_init, posix_spawnattr_setsigmask,
41838         posix_spawnattr_setflags, posix_spawnattr_destroy.
41839
41840 2009-01-25  Bruno Haible  <bruno@clisp.org>
41841
41842         * lib/glthread/threadlib.c: Include <stdlib.h>.
41843
41844 2009-01-25  Bruno Haible  <bruno@clisp.org>
41845
41846         * lib/glthread/threadlib.c (dummy): New declaration.
41847
41848 2009-01-25  Bruno Haible  <bruno@clisp.org>
41849
41850         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41851         multibyte characters also for the GB18030 encoding. Don't crash when
41852         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41853
41854 2009-01-25  Bruno Haible  <bruno@clisp.org>
41855
41856         Avoid redefining 'struct random_data' on OSF/1 5.1.
41857         * lib/stdlib.in.h: Include <random.h> if it exists.
41858         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41859         HAVE_RANDOM_H. Include <random.h> when testing whether
41860         'struct random_data' exists.
41861         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41862
41863 2009-01-25  Bruno Haible  <bruno@clisp.org>
41864
41865         Don't install charset.alias on MacOS X >= 10.3.
41866         * lib/localcharset.c (DARWIN7): New macro.
41867         (get_charset_aliases): Hardcode the result for Darwin7.
41868         * modules/localcharset (install-exec-local): Don't install
41869         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41870
41871 2009-01-25  Bruno Haible  <bruno@clisp.org>
41872
41873         Don't install charset.alias on mingw and Cygwin.
41874         * modules/localcharset (install-exec-local): Don't install
41875         charset.alias on mingw and Cygwin, if the file does not yet exist.
41876         The result for these platforms is hardcoded in localcharset.c.
41877
41878 2009-01-25  Bruno Haible  <bruno@clisp.org>
41879
41880         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41881         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41882         before requiring AC_USE_SYSTEM_EXTENSIONS.
41883
41884 2009-01-25  Jim Meyering  <meyering@redhat.com>
41885
41886         c-strtod: avoid warnings
41887         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41888         "assignment discards qualifiers from pointer target type" warnings.
41889
41890 2009-01-24  Bruno Haible  <bruno@clisp.org>
41891
41892         Add support for non-UTF-8 locales on MacOS X.
41893         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41894         canonical encodings. For Darwin 7 and newer, don't map traditional
41895         encodings to UTF-8.
41896         Reported by Vincent Lefevre <vincent@vinc17.org>
41897         at <http://savannah.gnu.org/bugs/?25235>.
41898
41899 2009-01-24  Bruno Haible  <bruno@clisp.org>
41900
41901         * doc/gnulib.texi (Obsolete modules): New section.
41902         Reported by Mike Frysinger <vapier@gentoo.org>.
41903
41904 2009-01-24  Bruno Haible  <bruno@clisp.org>
41905
41906         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41907         (%.dvi): New rule.
41908
41909 2009-01-24  Bruno Haible  <bruno@clisp.org>
41910
41911         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41912         Reported by Eric Blake.
41913
41914 2009-01-24  Bruno Haible  <bruno@clisp.org>
41915
41916         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41917         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41918         Reported by Gary V. Vaughan <gary@gnu.org>.
41919
41920 2009-01-24  Bruno Haible  <bruno@clisp.org>
41921
41922         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41923
41924 2009-01-23  Bruno Haible  <bruno@clisp.org>
41925
41926         Make c-strtod, c-strtold usable in libraries.
41927         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41928         (C_STRTOD): Call strdup instead of xstrdup.
41929         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41930         * modules/c-strtold (Depends-on): Likewise.
41931         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41932         * NEWS: Mention the change.
41933         Reported by Michael Gold <mgold@ncf.ca>.
41934
41935 2009-01-23  Jim Meyering  <meyering@redhat.com>
41936
41937         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41938         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41939         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41940
41941 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41942
41943         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41944         GNU CoreUtils.
41945         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41946         * modules/version-etc (Description): Update.
41947
41948 2009-01-22  Bruno Haible  <bruno@clisp.org>
41949
41950         Cache the C locale object.
41951         * lib/c-strtod.c (c_locale_cache): New variable.
41952         (c_locale): New function.
41953         (C_STRTOD): Use it, and don't call freelocale.
41954         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41955         Suggested by Paolo Bonzini.
41956
41957 2009-01-21  Bruno Haible  <bruno@clisp.org>
41958
41959         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41960         conditions other than overflow.
41961
41962 2009-01-21  Bruno Haible  <bruno@clisp.org>
41963
41964         * lib/c-strtod.c: Include errno.h.
41965         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41966         value from STRTOD_L and STRTOD.
41967
41968 2009-01-21  Bruno Haible  <bruno@clisp.org>
41969         and Jim Meyering  <meyering@redhat.com>
41970
41971         nanosleep: skip configure test (fail it) for apple universal builds
41972         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41973         universal builds, assume that nanosleep does not work.
41974         * modules/nanosleep (Depends-on): Add multiarch.
41975
41976         mktime: skip configure test (fail it) for apple universal builds
41977         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41978         universal builds, assume that mktime does not work.
41979         * modules/mktime (Depends-on): Add multiarch.
41980
41981 2009-01-21  Eric Blake  <ebb9@byu.net>
41982
41983         multiarch: avoid expand-before-require warning
41984         * modules/multiarch (configure.ac): Require, rather than expand,
41985         gl_MULTIARCH.
41986         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41987         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41988         enforce that all clients require it.  Partial reversion of
41989         2008-12-29 patch.
41990
41991         error: avoid expand-before-require warning
41992         * modules/errno (configure.ac): Require, rather than expand,
41993         gl_HEADER_ERRNO_H.
41994         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41995         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41996         enforce that all clients require it.
41997
41998         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41999         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42000         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42001         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42002
42003 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42004
42005         Revert:
42006         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42007
42008         regex: do not depend on obsolete modules.
42009         * modules/regex: Remove memcmp and memmove.
42010
42011 2009-01-20  Bruno Haible  <bruno@clisp.org>
42012
42013         Make the 'link' module link on Windows NT 4.
42014         * lib/link.c (_WIN32_WINNT): Don't define.
42015         (CreateHardLinkFuncType): New type.
42016         (CreateHardLinkFunc, initialized): New variables.
42017         (initialize): New function.
42018         (link): Invoke CreateHardLink indirectly through the function pointer.
42019
42020 2009-01-20  Bruno Haible  <bruno@clisp.org>
42021
42022         Fix compilation failure on mingw.
42023         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42024
42025 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42026
42027         * doc/c-strtod.texi: Mention a couple of restrictions.
42028
42029 2009-01-20  Jim Meyering  <meyering@redhat.com>
42030
42031         gettimeofday: move more declarations out of functions
42032         * lib/gettimeofday.c: Move extern declarations of tzset and
42033         gmtime out of containing functions.  Prompted by Bruno Haible.
42034
42035 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42036
42037         regex: do not depend on obsolete modules.
42038         * modules/regex: Remove memcmp and memmove.
42039
42040 2009-01-19  Bruno Haible  <bruno@clisp.org>
42041
42042         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42043         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42044         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42045         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42046         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42047
42048 2009-01-19  Bruno Haible  <bruno@clisp.org>
42049
42050         * tests/test-link.c: Include <errno.h>.
42051         (main): Exit with code 77 when a hard link cannot be created due to
42052         the file system.
42053         * tests/test-link.sh: Skip test when a hard link cannot be created due
42054         to the file system.
42055         Suggested by Eric Blake.
42056
42057 2009-01-19  Martin Lambers  <marlam@marlam.de>
42058
42059         * modules/link-tests: New file.
42060         * tests/test-link.sh: New file.
42061         * tests/test-link.c: New file.
42062
42063 2009-01-19  Eric Blake  <ebb9@byu.net>
42064
42065         doc: mention another function added in cygwin 1.7.0
42066         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42067         Another new function in cygwin 1.7.
42068
42069 2009-01-19  Bruno Haible  <bruno@clisp.org>
42070
42071         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42072         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42073         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42074         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42075         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42076         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42077         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42078         * m4/md4.m4 (gl_MD4): Likewise.
42079         * m4/md5.m4 (gl_MD5): Likewise.
42080         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42081         * m4/sha1.m4 (gl_SHA1): Likewise.
42082         * m4/sha256.m4 (gl_SHA256): Likewise.
42083         * m4/sha512.m4 (gl_SHA512): Likewise.
42084
42085 2009-01-19  Bruno Haible  <bruno@clisp.org>
42086
42087         * modules/uniname/uniname-tests (Depends-on): Add progname.
42088         * tests/uniname/test-uninames.c: Include progname.h.
42089         (main): Call set_program_name.
42090
42091         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42092         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42093         (main): Call set_program_name.
42094
42095         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42096         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42097         (main): Call set_program_name.
42098
42099         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42100         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42101         (main): Call set_program_name.
42102
42103         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42104         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42105         (main): Call set_program_name.
42106
42107         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42108         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42109         (main): Call set_program_name.
42110
42111         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42112         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42113         (main): Call set_program_name.
42114
42115         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42116         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42117         (main): Call set_program_name.
42118
42119         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42120         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42121         (main): Call set_program_name.
42122
42123 2009-01-19  Eric Blake  <ebb9@byu.net>
42124
42125         test-unistd: test previous patch
42126         * tests/test-unistd.c: Test *_FILENO macros.
42127
42128         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42129         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42130         Guarantee a definition.
42131         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42132         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42133         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42134         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42135         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42136         Likewise.
42137         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42138         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42139         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42140         Likewise.
42141         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42142         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42143         (STDERR_FILENO): Likewise.
42144         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42145         (STDERR_FILENO): Likewise.
42146         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42147         (STDERR_FILENO): Likewise.
42148         Reported by Elbert Pol.
42149
42150 2009-01-19  Eric Blake  <ebb9@byu.net>
42151
42152         doc: mention more functions added in cygwin 1.7.0
42153         * doc/posix-functions/abort.texi (abort): Update wording related
42154         to cygwin.
42155         * doc/posix-functions/daylight.texi (daylight): Likewise.
42156         * doc/posix-functions/optarg.texi (optarg): Likewise.
42157         * doc/posix-functions/optarg.texi (opterr): Likewise.
42158         * doc/posix-functions/optarg.texi (optind): Likewise.
42159         * doc/posix-functions/optarg.texi (optopt): Likewise.
42160         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42161         worked in 1.5.x, and was withdrawn in 1.7.
42162         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42163         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42164         cygwin versions.
42165         * doc/posix-functions/perror.texi (perror): Likewise.
42166         * doc/posix-functions/printf.texi (printf): Likewise.
42167         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42168         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42169         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42170         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42171         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42172         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42173         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42174         Likewise.
42175         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42176         Likewise.
42177         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42178         this function.
42179         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42180         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42181         Likewise.
42182         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42183         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42184         * doc/posix-functions/confstr.texi (confstr): Likewise.
42185         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42186         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42187         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42188         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42189         * doc/posix-functions/fputws.texi (fputws): Likewise.
42190         * doc/posix-functions/fwide.texi (fwide): Likewise.
42191         * doc/posix-functions/getwc.texi (getwc): Likewise.
42192         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42193         * doc/posix-functions/putwc.texi (putwc): Likewise.
42194         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42195         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42196         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42197         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42198         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42199         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42200         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42201         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42202         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42203         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42204         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42205
42206 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42207
42208         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42209         * lib/ioctl.c: Include <sys/ioctl.h>.
42210
42211 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42212
42213         * modules/getdate-tests (Depends-on): Add progname.
42214         * tests/test-getdate.c: Use progname module, to avoid link errors
42215         on non-glibc systems.
42216
42217 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42218
42219         * modules/filenamecat-tests (Depends-on): Add progname.
42220         * modules/fstrcmp-tests (Depends-on): Likewise.
42221
42222         * tests/test-filenamecat.c: Use progname module, to avoid link
42223         errors on non-glibc systems.
42224         * tests/test-fstrcmp.c: Likewise.
42225
42226 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42227
42228         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42229         * lib/gettimeofday.c: Move extern declaration out of function.
42230
42231 2009-01-18  Bruno Haible  <bruno@clisp.org>
42232
42233         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42234         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42235         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42236
42237 2009-01-18  Bruno Haible  <bruno@clisp.org>
42238
42239         * lib/strftime.c (MEMPCPY): Remove unused macro.
42240         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42241
42242 2009-01-18  Martin Lambers  <marlam@marlam.de>
42243
42244         New module 'link'.
42245         * lib/unistd.in.h (link): New declaration.
42246         * lib/link.c: New file.
42247         * m4/link.m4: New file.
42248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42249         HAVE_LINK.
42250         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42251         * modules/link: New file.
42252         * doc/posix-functions/link.texi: Mention the new module.
42253
42254 2009-01-18  Bruno Haible  <bruno@clisp.org>
42255
42256         * tests/test-avltree_list.c (main): Call set_program_name.
42257         * tests/test-avltree_oset.c (main): Likewise.
42258         * tests/test-obstack-printf.c: Include progname.h.
42259         (main): Call set_program_name.
42260         * tests/test-quotearg.c: Include progname.h.
42261         (main): Call set_program_name.
42262         * tests/test-xmemdup0.c: Include progname.h.
42263         (main): Call set_program_name.
42264
42265 2009-01-18  Bruno Haible  <bruno@clisp.org>
42266
42267         New module 'alphasort'.
42268         * lib/dirent.in.h (alphasort): New declaration.
42269         * lib/alphasort.c: New file, from glibc with modifications.
42270         * m4/alphasort.m4: New file.
42271         * modules/alphasort: New file.
42272         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42273         HAVE_ALPHASORT.
42274         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42275         HAVE_ALPHASORT.
42276         * doc/posix-functions/alphasort.texi: Mention the new module and the
42277         portability problems.
42278
42279 2009-01-18  Bruno Haible  <bruno@clisp.org>
42280
42281         New module 'scandir'.
42282         * lib/dirent.in.h (scandir): New declaration.
42283         * lib/scandir.c: New file, from glibc with modifications.
42284         * m4/scandir.m4: New file.
42285         * modules/scandir: New file.
42286         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42287         HAVE_SCANDIR.
42288         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42289         HAVE_SCANDIR.
42290         * doc/posix-functions/scandir.texi: Mention the new module and the
42291         portability problems.
42292
42293 2009-01-17  Bruno Haible  <bruno@clisp.org>
42294
42295         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42296         Update documentation.
42297         (func_remove_suffix): Escape all dots in the suffix. Update
42298         documentation.
42299         (func_filter_filelist): Update documentation.
42300         Reported by Ralf Wildenhues.
42301
42302 2009-01-17  Bruno Haible  <bruno@clisp.org>
42303
42304         * modules/dprintf-posix-tests: New file.
42305         * tests/test-dprintf-posix.sh: New file.
42306         * tests/test-dprintf-posix.c: New file.
42307
42308         New modules 'dprintf', 'dprintf-posix'.
42309         * lib/stdio.in.h (dprintf): New declaration.
42310         * lib/dprintf.c: New file.
42311         * m4/dprintf.m4: New file.
42312         * m4/dprintf-posix.m4: New file.
42313         * modules/dprintf: New file.
42314         * modules/dprintf-posix: New file.
42315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42316         HAVE_DPRINTF, REPLACE_DPRINTF.
42317         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42318         HAVE_DPRINTF, REPLACE_DPRINTF.
42319         * doc/posix-functions/dprintf.texi: Mention the new modules.
42320
42321 2009-01-17  Bruno Haible  <bruno@clisp.org>
42322
42323         * modules/vdprintf-posix-tests: New file.
42324         * tests/test-vdprintf-posix.sh: New file.
42325         * tests/test-vdprintf-posix.c: New file.
42326
42327         New modules 'vdprintf', 'vdprintf-posix'.
42328         * lib/stdio.in.h (vdprintf): New declaration.
42329         * lib/vdprintf.c: New file.
42330         * m4/vdprintf.m4: New file.
42331         * m4/vdprintf-posix.m4: New file.
42332         * modules/vdprintf: New file.
42333         * modules/vdprintf-posix: New file.
42334         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42335         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42336         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42337         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42338         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42339
42340 2009-01-17  Bruno Haible  <bruno@clisp.org>
42341
42342         Fix replacement of fopen on mingw.
42343         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42344         mingw.
42345
42346 2009-01-17  Bruno Haible  <bruno@clisp.org>
42347
42348         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42349         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42350
42351 2009-01-17  Bruno Haible  <bruno@clisp.org>
42352
42353         Avoid test-fflush2.sh failure on mingw.
42354         * tests/test-fflush2.c: Include binary-io.h.
42355         (main): Put standard input into binary mode.
42356         * modules/fflush-tests (Depends-on): Add binary-io.
42357
42358 2009-01-17  Bruno Haible  <bruno@clisp.org>
42359
42360         * lib/wchar.in.h: In another particular situation, include only the
42361         system's <wchar.h> file.
42362         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42363         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42364         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42365
42366 2009-01-17  Bruno Haible  <bruno@clisp.org>
42367
42368         Support for stripping executables in --enable-relocatable.
42369         * build-aux/install-reloc: Expect one more argument, or an environment
42370         variable RELOC_STRIP_PROG. If set, strip the destination program and
42371         its wrapper.
42372         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42373         RELOC_STRIP_PROG.
42374         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42375         to set RELOCATABLE_STRIP.
42376         * NEWS: Mention the new Makefile requirement.
42377
42378 2009-01-17  Bruno Haible  <bruno@clisp.org>
42379
42380         * build-aux/install-reloc: Remove debugging information left over by
42381         C compiler on MacOS X.
42382
42383 2009-01-17  Bruno Haible  <bruno@clisp.org>
42384
42385         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42386         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42387         _NSGetExecutablePath.
42388
42389 2009-01-16  Jim Meyering  <meyering@redhat.com>
42390
42391         strerror: avoid warnings about discarding "const"
42392         * lib/strerror.c (rpl_strerror): Instead of returning a const
42393         string from each and every "case", use a variable, and add a single
42394         cast after the switch.
42395
42396 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42397
42398         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42399
42400 2009-01-16  Bruno Haible  <bruno@clisp.org>
42401
42402         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42403         array initializer syntax that also works in C++ mode.
42404         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42405
42406 2009-01-16  Jim Meyering  <meyering@redhat.com>
42407
42408         poll: suppress a warning
42409         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42410         to ignore "...unsigned expression < 0 is always false" warnings.
42411
42412 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42413
42414         poll: remove declarations of unused variables
42415         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42416         sockbuf and optlen.
42417
42418 2009-01-15  Bruno Haible  <bruno@clisp.org>
42419
42420         Make fflush-after-ungetc POSIX compliant on BSD systems.
42421         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42422         (clear_ungetc_buffer): Implement also for other systems.
42423         (rpl_fflush): On glibc systems, invoke
42424         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42425         clear_ungetc_buffer after fetching the stream's position, not before.
42426
42427 2009-01-15  Bruno Haible  <bruno@clisp.org>
42428
42429         Make fflush-after-ungetc POSIX compliant on glibc systems.
42430         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42431         after ungetc.
42432         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42433         (rpl_fflush): On glibc systems, simply call the system's fflush
42434         function after clearing the ungetc buffer.
42435         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42436         Instead, lseek only to the end of file, then use the system's fseeko
42437         for the rest. On glibc systems, reset the EOF indicator bit.
42438
42439 2009-01-15  Jim Meyering  <meyering@redhat.com>
42440
42441         openmp.m4: revert quote-adding change, for portability to older autoconf
42442         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42443         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42444         Simon Josefsson noticed the problem when using autoconf-2.61.
42445
42446 2009-01-15  Bruno Haible  <bruno@clisp.org>
42447
42448         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42449         * tests/test-fflush2.c (ASSERT): Always fail.
42450         (main): Add two tests for fflush() after ungetc(), taking into account
42451         the Austin Group's clarification.
42452         Suggested by Eric Blake.
42453
42454 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42455
42456         mktime.m4: remove K&R-style function prototypes
42457         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42458         for the Sun C++ compiler.
42459
42460 2009-01-14  Bruno Haible  <bruno@clisp.org>
42461
42462         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42463         while including <wchar.h>.
42464         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42465         the system's <wchar.h> file.
42466         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42467
42468 2009-01-14  Bruno Haible  <bruno@clisp.org>
42469
42470         * m4/csharp.m4: Don't mention gettext on the serial number line.
42471         * m4/csharpexec.m4: Likewise.
42472         * m4/eaccess.m4: Likewise.
42473         * m4/javaexec.m4: Likewise.
42474         * m4/sig_atomic_t.m4: Likewise.
42475         * m4/tmpdir.m4: Likewise.
42476         * m4/intldir.m4: Bump gettext version.
42477         * m4/lib-ld.m4: Likewise.
42478
42479 2009-01-14  Bruno Haible  <bruno@clisp.org>
42480
42481         * lib/progname.c (set_program_name): Add more comments.
42482         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42483
42484 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42485
42486         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42487         were sys/stat.h does not define it.
42488
42489 2009-01-14  Jim Meyering  <meyering@redhat.com>
42490
42491         many *.m4 files: improve m4 quoting
42492         99% of this change was performed by running the following commands:
42493         git ls-files | grep '\.m4$' | xargs perl -pi \
42494           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42495           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42496           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42497           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42498         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42499         The remainder were to add Copyright dates, increment serial numbers,
42500         undo some changes in comments, exclude m4/intl.m4, and add quotes
42501         around the "1" in ",1" where the unusual spacing prohibited the
42502         above regexps from doing the job.  For more details, see
42503         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42504         * m4/acl.m4: Modified.
42505         * m4/afs.m4: Likewise.
42506         * m4/alloca.m4: Likewise.
42507         * m4/argp.m4: Likewise.
42508         * m4/argz.m4: Likewise.
42509         * m4/atexit.m4: Likewise.
42510         * m4/bison-i18n.m4: Likewise.
42511         * m4/bison.m4: Likewise.
42512         * m4/byteswap.m4: Likewise.
42513         * m4/c-stack.m4: Likewise.
42514         * m4/c-strtod.m4: Likewise.
42515         * m4/calloc.m4: Likewise.
42516         * m4/canonicalize-lgpl.m4: Likewise.
42517         * m4/chown.m4: Likewise.
42518         * m4/clock_time.m4: Likewise.
42519         * m4/codeset.m4: Likewise.
42520         * m4/copy-file.m4: Likewise.
42521         * m4/csharp.m4: Likewise.
42522         * m4/csharpcomp.m4: Likewise.
42523         * m4/csharpexec.m4: Likewise.
42524         * m4/d-ino.m4: Likewise.
42525         * m4/d-type.m4: Likewise.
42526         * m4/dirfd.m4: Likewise.
42527         * m4/double-slash-root.m4: Likewise.
42528         * m4/eaccess.m4: Likewise.
42529         * m4/eealloc.m4: Likewise.
42530         * m4/environ.m4: Likewise.
42531         * m4/errno_h.m4: Likewise.
42532         * m4/euidaccess.m4: Likewise.
42533         * m4/execute.m4: Likewise.
42534         * m4/fatal-signal.m4: Likewise.
42535         * m4/fchdir.m4: Likewise.
42536         * m4/fcntl_h.m4: Likewise.
42537         * m4/fileblocks.m4: Likewise.
42538         * m4/filenamecat.m4: Likewise.
42539         * m4/findprog.m4: Likewise.
42540         * m4/flexmember.m4: Likewise.
42541         * m4/fnmatch.m4: Likewise.
42542         * m4/fopen.m4: Likewise.
42543         * m4/fpending.m4: Likewise.
42544         * m4/fprintf-posix.m4: Likewise.
42545         * m4/free.m4: Likewise.
42546         * m4/frexp.m4: Likewise.
42547         * m4/frexpl.m4: Likewise.
42548         * m4/fsusage.m4: Likewise.
42549         * m4/ftruncate.m4: Likewise.
42550         * m4/gc-camellia.m4: Likewise.
42551         * m4/gc-random.m4: Likewise.
42552         * m4/gc.m4: Likewise.
42553         * m4/getaddrinfo.m4: Likewise.
42554         * m4/getcwd-abort-bug.m4: Likewise.
42555         * m4/getcwd-path-max.m4: Likewise.
42556         * m4/getdate.m4: Likewise.
42557         * m4/getdomainname.m4: Likewise.
42558         * m4/getgroups.m4: Likewise.
42559         * m4/gethostname.m4: Likewise.
42560         * m4/gethrxtime.m4: Likewise.
42561         * m4/getline.m4: Likewise.
42562         * m4/getloadavg.m4: Likewise.
42563         * m4/getndelim2.m4: Likewise.
42564         * m4/getpass.m4: Likewise.
42565         * m4/gettext.m4: Likewise.
42566         * m4/gettime.m4: Likewise.
42567         * m4/gettimeofday.m4: Likewise.
42568         * m4/gnulib-common.m4: Likewise.
42569         * m4/group-member.m4: Likewise.
42570         * m4/host-os.m4: Likewise.
42571         * m4/iconv.m4: Likewise.
42572         * m4/iconv_open.m4: Likewise.
42573         * m4/inet_ntop.m4: Likewise.
42574         * m4/inet_pton.m4: Likewise.
42575         * m4/inline.m4: Likewise.
42576         * m4/intldir.m4: Likewise.
42577         * m4/intlmacosx.m4: Likewise.
42578         * m4/intmax.m4: Likewise.
42579         * m4/intmax_t.m4: Likewise.
42580         * m4/inttypes.m4: Likewise.
42581         * m4/inttypes_h.m4: Likewise.
42582         * m4/inttypes-pri.m4: Likewise.
42583         * m4/isapipe.m4: Likewise.
42584         * m4/isnand.m4: Likewise.
42585         * m4/isnanf.m4: Likewise.
42586         * m4/isnanl.m4: Likewise.
42587         * m4/javacomp.m4: Likewise.
42588         * m4/javaexec.m4: Likewise.
42589         * m4/jm-winsz1.m4: Likewise.
42590         * m4/jm-winsz2.m4: Likewise.
42591         * m4/lchown.m4: Likewise.
42592         * m4/lcmessage.m4: Likewise.
42593         * m4/ldexpl.m4: Likewise.
42594         * m4/lib-ld.m4: Likewise.
42595         * m4/lib-link.m4: Likewise.
42596         * m4/libsigsegv.m4: Likewise.
42597         * m4/link-follow.m4: Likewise.
42598         * m4/localcharset.m4: Likewise.
42599         * m4/locale-fr.m4: Likewise.
42600         * m4/locale-ja.m4: Likewise.
42601         * m4/locale-tr.m4: Likewise.
42602         * m4/locale-zh.m4: Likewise.
42603         * m4/lock.m4: Likewise.
42604         * m4/longlong.m4: Likewise.
42605         * m4/ls-mntd-fs.m4: Likewise.
42606         * m4/lstat.m4: Likewise.
42607         * m4/malloc.m4: Likewise.
42608         * m4/mathl.m4: Likewise.
42609         * m4/mbrtowc.m4: Likewise.
42610         * m4/mbstate_t.m4: Likewise.
42611         * m4/mbswidth.m4: Likewise.
42612         * m4/memchr.m4: Likewise.
42613         * m4/memcmp.m4: Likewise.
42614         * m4/memcpy.m4: Likewise.
42615         * m4/memmem.m4: Likewise.
42616         * m4/memmove.m4: Likewise.
42617         * m4/mempcpy.m4: Likewise.
42618         * m4/memrchr.m4: Likewise.
42619         * m4/memset.m4: Likewise.
42620         * m4/minmax.m4: Likewise.
42621         * m4/mkdir-slash.m4: Likewise.
42622         * m4/mkdtemp.m4: Likewise.
42623         * m4/mktime.m4: Likewise.
42624         * m4/mmap-anon.m4: Likewise.
42625         * m4/mountlist.m4: Likewise.
42626         * m4/nanosleep.m4: Likewise.
42627         * m4/nls.m4: Likewise.
42628         * m4/nocrash.m4: Likewise.
42629         * m4/open.m4: Likewise.
42630         * m4/openat.m4: Likewise.
42631         * m4/openmp.m4: Likewise.
42632         * m4/pathmax.m4: Likewise.
42633         * m4/perl.m4: Likewise.
42634         * m4/physmem.m4: Likewise.
42635         * m4/pipe.m4: Likewise.
42636         * m4/po.m4: Likewise.
42637         * m4/poll.m4: Likewise.
42638         * m4/posixtm.m4: Likewise.
42639         * m4/posixver.m4: Likewise.
42640         * m4/printf-frexp.m4: Likewise.
42641         * m4/printf-frexpl.m4: Likewise.
42642         * m4/printf-posix.m4: Likewise.
42643         * m4/printf-posix-rpl.m4: Likewise.
42644         * m4/printf.m4: Likewise.
42645         * m4/progtest.m4: Likewise.
42646         * m4/putenv.m4: Likewise.
42647         * m4/readline.m4: Likewise.
42648         * m4/readlink.m4: Likewise.
42649         * m4/readutmp.m4: Likewise.
42650         * m4/realloc.m4: Likewise.
42651         * m4/regex.m4: Likewise.
42652         * m4/relocatable.m4: Likewise.
42653         * m4/relocatable-lib.m4: Likewise.
42654         * m4/rename-dest-slash.m4: Likewise.
42655         * m4/rename.m4: Likewise.
42656         * m4/rmdir-errno.m4: Likewise.
42657         * m4/rmdir.m4: Likewise.
42658         * m4/roundf.m4: Likewise.
42659         * m4/roundl.m4: Likewise.
42660         * m4/rpmatch.m4: Likewise.
42661         * m4/save-cwd.m4: Likewise.
42662         * m4/selinux-selinux-h.m4: Likewise.
42663         * m4/setenv.m4: Likewise.
42664         * m4/settime.m4: Likewise.
42665         * m4/sig2str.m4: Likewise.
42666         * m4/sig_atomic_t.m4: Likewise.
42667         * m4/signalblocking.m4: Likewise.
42668         * m4/signbit.m4: Likewise.
42669         * m4/sigpipe.m4: Likewise.
42670         * m4/sockets.m4: Likewise.
42671         * m4/sockpfaf.m4: Likewise.
42672         * m4/st_dm_mode.m4: Likewise.
42673         * m4/stat-time.m4: Likewise.
42674         * m4/stdbool.m4: Likewise.
42675         * m4/stdint.m4: Likewise.
42676         * m4/stdint_h.m4: Likewise.
42677         * m4/stpcpy.m4: Likewise.
42678         * m4/stpncpy.m4: Likewise.
42679         * m4/strcase.m4: Likewise.
42680         * m4/strchrnul.m4: Likewise.
42681         * m4/strcspn.m4: Likewise.
42682         * m4/strdup.m4: Likewise.
42683         * m4/strftime.m4: Likewise.
42684         * m4/strndup.m4: Likewise.
42685         * m4/strnlen.m4: Likewise.
42686         * m4/strpbrk.m4: Likewise.
42687         * m4/strptime.m4: Likewise.
42688         * m4/strsep.m4: Likewise.
42689         * m4/strtod.m4: Likewise.
42690         * m4/strtoimax.m4: Likewise.
42691         * m4/strtok_r.m4: Likewise.
42692         * m4/strtol.m4: Likewise.
42693         * m4/strtoll.m4: Likewise.
42694         * m4/strtoul.m4: Likewise.
42695         * m4/strtoull.m4: Likewise.
42696         * m4/strtoumax.m4: Likewise.
42697         * m4/strverscmp.m4: Likewise.
42698         * m4/threadlib.m4: Likewise.
42699         * m4/timegm.m4: Likewise.
42700         * m4/tm_gmtoff.m4: Likewise.
42701         * m4/tmpdir.m4: Likewise.
42702         * m4/tmpfile.m4: Likewise.
42703         * m4/tzset.m4: Likewise.
42704         * m4/uintmax_t.m4: Likewise.
42705         * m4/unlinkdir.m4: Likewise.
42706         * m4/unlocked-io.m4: Likewise.
42707         * m4/uptime.m4: Likewise.
42708         * m4/userspec.m4: Likewise.
42709         * m4/utimbuf.m4: Likewise.
42710         * m4/utime.m4: Likewise.
42711         * m4/utimes-null.m4: Likewise.
42712         * m4/utimes.m4: Likewise.
42713         * m4/vararrays.m4: Likewise.
42714         * m4/vasnprintf.m4: Likewise.
42715         * m4/vfprintf-posix.m4: Likewise.
42716         * m4/vprintf-posix.m4: Likewise.
42717         * m4/wait-process.m4: Likewise.
42718         * m4/wchar_t.m4: Likewise.
42719         * m4/wint_t.m4: Likewise.
42720         * m4/write-any-file.m4: Likewise.
42721         * m4/yield.m4: Likewise.
42722
42723 2009-01-13  Bruno Haible  <bruno@clisp.org>
42724
42725         Avoid test-copy-file.sh failures when ACL support insufficient.
42726         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42727         TESTS_ENVIRONMENT.
42728         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42729         Reported by Jim Meyering.
42730
42731 2009-01-13  Bruno Haible  <bruno@clisp.org>
42732
42733         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42734         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42735         * modules/unistdio/u8-printf-parse (Files): Likewise.
42736         * modules/unistdio/u32-printf-parse (Files): Likewise.
42737         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42738
42739 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42740
42741         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42742         and m4/inttypes_h.m4 too.
42743
42744 2009-01-12  Eric Blake  <ebb9@byu.net>
42745
42746         tests: IRIX 6.2 cc can't compile -0.0 into .data
42747         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42748         rather than at compile-time.
42749         * tests/test-floorl.c (minus_zero): Likewise.
42750         * tests/test-frexpl.c (minus_zero): Likewise.
42751         * tests/test-isnan.c (minus_zerol): Likewise.
42752         * tests/test-isnanl.h (minus_zero): Likewise.
42753         * tests/test-ldexpl.c (minus_zero): Likewise.
42754         * tests/test-roundl.c (minus_zero): Likewise.
42755         * tests/test-signbit.c (minus_zerol): Likewise.
42756         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42757         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42758         * tests/test-truncl.c (minus_zero): Likewise.
42759         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42760         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42761         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42762
42763 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42764
42765         regex: fix glibc bug 9697
42766         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42767         handling.
42768
42769 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42770
42771         regex: fix glibc bug 697
42772         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42773         being NULL also if there are no backreferences.
42774
42775 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42776
42777         regex: merge glibc changes
42778         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42779         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42780         re_string_skip_chars, re_string_reconstruct): Likewise.
42781         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42782
42783 2009-01-07  Jim Meyering  <meyering@redhat.com>
42784
42785         poll: filter through cppi
42786         * lib/poll.c: Indent cpp directives to reflect nesting.
42787
42788 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42789
42790         poll: don't return uninitialized
42791         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42792
42793 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42794
42795         avoid compile failure on AIX 6.1
42796         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42797         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42798
42799 2009-01-04  Jim Meyering  <meyering@redhat.com>
42800
42801         remove duplicate inclusion of <stdio.h>
42802         * tests/test-fprintf-posix.c: Likewise.
42803         * tests/test-printf-posix.c: Likewise.
42804         * tests/test-snprintf-posix.c: Likewise.
42805         * tests/test-sprintf-posix.c: Likewise.
42806         * tests/test-vasprintf-posix.c: Likewise.
42807         * tests/test-vfprintf-posix.c: Likewise.
42808         * tests/test-vprintf-posix.c: Likewise.
42809         * tests/test-vsnprintf-posix.c: Likewise.
42810         * tests/test-vsprintf-posix.c: Likewise.
42811
42812 2009-01-03  Jim Meyering  <meyering@redhat.com>
42813
42814         gnulib-tool: fix sed-based filtering
42815         * gnulib-tool (func_filter_filelist): Remove extra backslash
42816         in sed_fff_filter definition.
42817
42818 2009-01-02  Jim Meyering  <meyering@redhat.com>
42819
42820         strftime: avoid compilation failure on Solaris 2.6
42821         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42822         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42823         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42824         be available.  Reported by Tom G. Christensen.  Details in
42825         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42826
42827 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42828             Bruno Haible  <bruno@clisp.org>
42829
42830         Speed up gnulib-tool by doing more string processing through shell
42831         built-ins.
42832         * gnulib-tool (fast_func_append): New variable.
42833         (func_remove_prefix, func_remove_suffix): New functions.
42834         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42835         (func_filter_filelist): New function.
42836         (func_get_dependencies): Use func_remove_suffix instead of sed.
42837         (func_get_automake_snippet): Use func_filter_filelist instead of a
42838         subshell and sed invocation.
42839
42840 2009-01-01  Bruno Haible  <bruno@clisp.org>
42841
42842         Fix a security bug.
42843         * gnulib-tool (func_import, import, update): Don't allow the characters
42844         '"', '$', '`', '\' in macro arguments that become part of commands that
42845         are evaluated.
42846
42847 2009-01-01  Bruno Haible  <bruno@clisp.org>
42848
42849         * gnulib-tool (func_reset_sigpipe): Add more comments.
42850
42851 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42852
42853         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42854         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42855         already know the answer.
42856
42857 2009-01-01  Jim Meyering  <meyering@redhat.com>
42858
42859         * lib/version-etc.c (version_etc_va): Update copyright year.
42860
42861 2008-12-30  Bruno Haible  <bruno@clisp.org>
42862
42863         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42864         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42865         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42866
42867 2008-12-29  Eric Blake  <ebb9@byu.net>
42868
42869         multiarch: avoid autoconf AC_REQUIRE bug
42870         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42871         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42872         2.63 and older.
42873         Reported by Bruno Haible, and analyzed in
42874         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42875
42876 2008-12-29  Bruno Haible  <bruno@clisp.org>
42877
42878         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42879         files in subdirectories correctly.
42880         Reported by Ralf Wildenhues.
42881
42882 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42883
42884         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42885         rather than 'join FILE -', for Solaris join.
42886
42887 2008-12-29  Bruno Haible  <bruno@clisp.org>
42888
42889         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42890         quoting.
42891         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42892         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42893         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42894         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42895         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42896         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42897         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42898         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42899         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42900         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42901         * m4/nls.m4 (AM_NLS): Likewise.
42902         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42903         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42904         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42905         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42906         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42907         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42908         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42909         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42910         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42911         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42912         * m4/xsize.m4 (gl_XSIZE): Likewise.
42913         Suggested by Jim Meyering.
42914
42915 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42916
42917         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42918         * lib/parse-duration.c: use a switch instead of cascading if's.
42919
42920 2008-12-29  Eric Blake  <ebb9@byu.net>
42921
42922         wchar.h: supply WEOF on Irix 5.3
42923         * lib/wchar.in.h (wint_t): Also supply WEOF.
42924         * lib/wctype.in.h (wint_t): Likewise.
42925         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42926         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42927         Reported by Tom G. Christensen.
42928
42929 2008-12-26  Bruno Haible  <bruno@clisp.org>
42930
42931         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42932         i486, i586, i686.
42933
42934 2008-12-26  Bruno Haible  <bruno@clisp.org>
42935
42936         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42937
42938 2008-12-26  Bruno Haible  <bruno@clisp.org>
42939
42940         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42941         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42942         not __STDC_CONSTANT_MACROS.
42943         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42944
42945 2008-12-25  Bruno Haible  <bruno@clisp.org>
42946
42947         Add support for universal builds to vasnprintf.
42948         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42949         universal builds, guess no.
42950         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42951         * modules/vasprintf-posix (Depends-on): Likewise.
42952         * modules/fprintf-posix (Depends-on): Likewise.
42953         * modules/vfprintf-posix (Depends-on): Likewise.
42954         * modules/snprintf-posix (Depends-on): Likewise.
42955         * modules/vsnprintf-posix (Depends-on): Likewise.
42956         * modules/sprintf-posix (Depends-on): Likewise.
42957         * modules/vsprintf-posix (Depends-on): Likewise.
42958         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42959         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42960         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42961         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42962         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42963         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42964         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42965
42966         Add support for universal builds to <inttypes.h>.
42967         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42968         _SCNu64_PREFIX): In Apple
42969         universal builds, define directly, using _LP64.
42970         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42971         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42972         * modules/inttypes (Depends-on): Add multiarch.
42973         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42974
42975         Add support for universal builds to <stdint.h>.
42976         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42977         universal builds, define directly, using _LP64.
42978         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42979         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42980         and size_t.
42981         * modules/stdint (Depends-on): Add multiarch.
42982         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42983
42984         New module 'multiarch'.
42985         * modules/multiarch: New file.
42986         * m4/multiarch.m4: New file.
42987
42988 2008-12-25  Bruno Haible  <bruno@clisp.org>
42989
42990         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42991
42992 2008-12-25  Bruno Haible  <bruno@clisp.org>
42993
42994         * modules/btowc (License): Relicense under LGPLv2+.
42995         * modules/mbsinit (License): Likewise.
42996         * modules/mbrtowc (License): Likewise.
42997         * modules/wcrtomb (License): Likewise.
42998         * modules/streq (License): Likewise.
42999         Reported by David Lutterkort <lutter@redhat.com>.
43000
43001 2008-12-23  Bruno Haible  <bruno@clisp.org>
43002
43003         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43004
43005 2008-12-23  Bruno Haible  <bruno@clisp.org>
43006
43007         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43008         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43009         GETADDRINFO_LIB, not in LIBS.
43010         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43011         * modules/canon-host (Link): Likewise.
43012         * NEWS: Mention the change.
43013         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43014         GETADDRINFO_LIB.
43015
43016 2008-12-22  Bruno Haible  <bruno@clisp.org>
43017
43018         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43019         * doc/posix-functions/iswalpha_l.texi: Likewise.
43020         * doc/posix-functions/iswblank_l.texi: Likewise.
43021         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43022         * doc/posix-functions/iswctype_l.texi: Likewise.
43023         * doc/posix-functions/iswdigit_l.texi: Likewise.
43024         * doc/posix-functions/iswgraph_l.texi: Likewise.
43025         * doc/posix-functions/iswlower_l.texi: Likewise.
43026         * doc/posix-functions/iswprint_l.texi: Likewise.
43027         * doc/posix-functions/iswpunct_l.texi: Likewise.
43028         * doc/posix-functions/iswspace_l.texi: Likewise.
43029         * doc/posix-functions/iswupper_l.texi: Likewise.
43030         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43031         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43032         * doc/posix-functions/open_wmemstream.texi: Likewise.
43033         * doc/posix-functions/swscanf.texi: Likewise.
43034         * doc/posix-functions/towctrans_l.texi: Likewise.
43035         * doc/posix-functions/towlower.texi: Likewise.
43036         * doc/posix-functions/towlower_l.texi: Likewise.
43037         * doc/posix-functions/towupper.texi: Likewise.
43038         * doc/posix-functions/towupper_l.texi: Likewise.
43039         * doc/posix-functions/vfwprintf.texi: Likewise.
43040         * doc/posix-functions/vfwscanf.texi: Likewise.
43041         * doc/posix-functions/vswscanf.texi: Likewise.
43042         * doc/posix-functions/vwprintf.texi: Likewise.
43043         * doc/posix-functions/vwscanf.texi: Likewise.
43044         * doc/posix-functions/wcpcpy.texi: Likewise.
43045         * doc/posix-functions/wcpncpy.texi: Likewise.
43046         * doc/posix-functions/wcscasecmp.texi: Likewise.
43047         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43048         * doc/posix-functions/wcscoll_l.texi: Likewise.
43049         * doc/posix-functions/wcsdup.texi: Likewise.
43050         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43051         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43052         * doc/posix-functions/wcsnlen.texi: Likewise.
43053         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43054         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43055         * doc/posix-functions/wctrans_l.texi: Likewise.
43056         * doc/posix-functions/wctype_l.texi: Likewise.
43057         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43058         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43059         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43060         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43061         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43062         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43063         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43064         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43065         * doc/glibc-functions/wcschrnul.texi: Likewise.
43066         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43067         * doc/glibc-functions/wcstod_l.texi: Likewise.
43068         * doc/glibc-functions/wcstof_l.texi: Likewise.
43069         * doc/glibc-functions/wcstol_l.texi: Likewise.
43070         * doc/glibc-functions/wcstold_l.texi: Likewise.
43071         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43072         * doc/glibc-functions/wcstoq.texi: Likewise.
43073         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43074         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43075         * doc/glibc-functions/wcstouq.texi: Likewise.
43076         * doc/glibc-functions/wmempcpy.texi: Likewise.
43077
43078 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43079             Eric Blake  <ebb9@byu.net>
43080             Paolo Bonzini  <bonzini@gnu.org>
43081             Bruno Haible  <bruno@clisp.org>
43082
43083         Make c-stack work on Haiku.
43084         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43085         (c_stack_action): Use SA_ONSTACK flag.
43086
43087 2008-12-22  Bruno Haible  <bruno@clisp.org>
43088
43089         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43090
43091 2008-12-22  Bruno Haible  <bruno@clisp.org>
43092
43093         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43094         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43095         being overridden.
43096         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43097         New macros.
43098         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43099         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43100         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43101         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43102
43103 2008-12-22  Bruno Haible  <bruno@clisp.org>
43104
43105         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43106         from test code.
43107
43108 2008-12-22  Eric Blake  <ebb9@byu.net>
43109
43110         Avoid gcc warnings on cygwin.
43111         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43112         Avoid unused variable.
43113         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43114         Likewise.
43115
43116 2008-12-22  Bruno Haible  <bruno@clisp.org>
43117
43118         Remove HAVE_MBRTOWC conditionals.
43119         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43120         (mbscasecmp): Assume mbrtowc function.
43121         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43122         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43123         * lib/mbschr.c: Include mbuiter.h unconditionally.
43124         (mbschr): Assume mbrtowc function.
43125         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43126         (mbscspn): Assume mbrtowc function.
43127         * lib/mbslen.c: Include mbuiter.h unconditionally.
43128         (mbslen): Assume mbrtowc function.
43129         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43130         (mbsncasecmp): Assume mbrtowc function.
43131         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43132         (mbsnlen): Assume mbrtowc function.
43133         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43134         (mbspbrk): Assume mbrtowc function.
43135         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43136         (mbspcasecmp): Assume mbrtowc function.
43137         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43138         (mbsrchr): Assume mbrtowc function.
43139         * lib/mbssep.c: Include mbuiter.h unconditionally.
43140         (mbssep): Assume mbrtowc function.
43141         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43142         (mbsspn): Assume mbrtowc function.
43143         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43144         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43145         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43146         (mbstok_r): Assume mbrtowc function.
43147         * lib/propername.c: Include mbuiter.h unconditionally.
43148         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43149         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43150         (trim2): Assume mbrtowc function.
43151         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43152         (mbsnwidth): Assume mbrtowc function.
43153         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43154         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43155         fallback definitions.
43156         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43157
43158 2008-12-22  Bruno Haible  <bruno@clisp.org>
43159
43160         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43161
43162 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43163
43164         * modules/regex: Request emulations for the mb*/wc* functions we need.
43165         * m4/regex.m4: Don't look for those functions here.
43166         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43167
43168 2008-12-22  Bruno Haible  <bruno@clisp.org>
43169
43170         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43171
43172 2008-12-21  Bruno Haible  <bruno@clisp.org>
43173
43174         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43175         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43176         (Include): Remove conditionalization.
43177         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43178         (Include): Remove conditionalization.
43179         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43180         (Include): Remove conditionalization.
43181         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43182         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43183         * NEWS: Mention the change.
43184         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43185         via Sergey Poznyakoff <gray@gnu.org.ua>.
43186
43187 2008-12-21  Bruno Haible  <bruno@clisp.org>
43188
43189         * MODULES.html.sh (Extended multibyte and wide character utilities
43190         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43191         wcrtomb, wcsrtombs.
43192         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43193         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43194         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43195         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43196
43197 2008-12-21  Bruno Haible  <bruno@clisp.org>
43198
43199         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43200
43201 2008-12-21  Bruno Haible  <bruno@clisp.org>
43202
43203         * modules/wcsnrtombs-tests: New file.
43204         * tests/test-wcsnrtombs1.sh: New file.
43205         * tests/test-wcsnrtombs2.sh: New file.
43206         * tests/test-wcsnrtombs3.sh: New file.
43207         * tests/test-wcsnrtombs4.sh: New file.
43208         * tests/test-wcsnrtombs.c: New file.
43209
43210         New module 'wcsnrtombs'.
43211         * lib/wchar.in.h (wcsnrtombs): New declaration.
43212         * lib/wcsnrtombs.c: New file.
43213         * lib/wcsrtombs-state.c: New file.
43214         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43215         (internal_state): Remove variable.
43216         * m4/wcsnrtombs.m4: New file.
43217         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43218         compilation units.
43219         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43220         HAVE_WCSNRTOMBS.
43221         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43222         HAVE_WCSNRTOMBS.
43223         * modules/wcsnrtombs: New file.
43224         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43225         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43226
43227 2008-12-21  Bruno Haible  <bruno@clisp.org>
43228
43229         * modules/wcsrtombs-tests: New file.
43230         * tests/test-wcsrtombs1.sh: New file.
43231         * tests/test-wcsrtombs2.sh: New file.
43232         * tests/test-wcsrtombs3.sh: New file.
43233         * tests/test-wcsrtombs4.sh: New file.
43234         * tests/test-wcsrtombs.c: New file.
43235
43236         New module 'wcsrtombs'.
43237         * lib/wchar.in.h (wcsrtombs): New declaration.
43238         * lib/wcsrtombs.c: New file.
43239         * m4/wcsrtombs.m4: New file.
43240         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43241         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43242         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43243         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43244         * modules/wcsrtombs: New file.
43245         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43246         bugs.
43247
43248 2008-12-21  Bruno Haible  <bruno@clisp.org>
43249
43250         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43251         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43252         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43253         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43254         if not correct.
43255         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43256         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43257         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43258         m4/locale-zh.m4, m4/codeset.m4.
43259         * doc/posix-functions/wcrtomb.texi: Document the bug.
43260
43261 2008-12-21  Bruno Haible  <bruno@clisp.org>
43262
43263         Work around a btowc() bug on IRIX 6.5.
43264         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43265         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43266         REPLACE_WTOBC if not.
43267         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43268         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43269         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43270
43271 2008-12-21  Bruno Haible  <bruno@clisp.org>
43272
43273         * modules/wcrtomb-tests: New file.
43274         * tests/test-wcrtomb.sh: New file.
43275         * tests/test-wcrtomb.c: New file.
43276
43277         New module 'wcrtomb'.
43278         * lib/wchar.in.h (wcrtomb): New declaration.
43279         * lib/wcrtomb.c: New file.
43280         * m4/wcrtomb.m4: New file.
43281         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43282         HAVE_WCRTOMB.
43283         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43284         HAVE_WCRTOMB.
43285         * modules/wcrtomb: New file.
43286         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43287
43288 2008-12-21  Bruno Haible  <bruno@clisp.org>
43289
43290         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43291         * modules/mbsrtowcs (Files): Likewise.
43292         * modules/wctob (Files): Likewise.
43293         * modules/c-strcase-tests (Files): Likewise.
43294         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43295         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43296         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43297         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43298         * modules/vasnprintf-posix-tests (Files): Likewise.
43299
43300 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43301
43302         gitlog-to-changelog: pass all command-line arguments to git-log
43303         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43304         it is sometimes convenient to filter the commits in various ways.
43305         gitlog-to-changelog only allows --since to specify a start date,
43306         but git-log itself supports many other filtering mechanisms.
43307         At the moment, I want to filter by branch name.  Rather than
43308         adding a --branch option to gitlog-to-changelog, it seems more
43309         flexible to simply pass all options directly to git-log and let
43310         git do the work.  Notice that this effectively makes --since a
43311         redundant option for gitlog-to-changelog, but removing it would
43312         require current usage to change since calls would then require
43313         an additional '--'.
43314
43315 2008-12-21  Bruno Haible  <bruno@clisp.org>
43316
43317         * modules/mbsnrtowcs-tests: New file.
43318         * tests/test-mbsnrtowcs1.sh: New file.
43319         * tests/test-mbsnrtowcs2.sh: New file.
43320         * tests/test-mbsnrtowcs3.sh: New file.
43321         * tests/test-mbsnrtowcs4.sh: New file.
43322         * tests/test-mbsnrtowcs.c: New file.
43323
43324         New module 'mbsnrtowcs'.
43325         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43326         * lib/mbsnrtowcs.c: New file.
43327         * lib/mbsrtowcs-state.c: New file.
43328         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43329         (internal_state): Remove variable.
43330         * m4/mbsnrtowcs.m4: New file.
43331         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43332         compilation units.
43333         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43334         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43335         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43336         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43337         * modules/mbsnrtowcs: New file.
43338         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43339         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43340         portability problem.
43341
43342 2008-12-21  Bruno Haible  <bruno@clisp.org>
43343
43344         Work around mbsrtowcs bug.
43345         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43346         (gl_FUNC_MBSRTOWCS): Invoke it.
43347         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43348         m4/locale-zh.m4.
43349         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43350
43351 2008-12-21  Bruno Haible  <bruno@clisp.org>
43352
43353         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43354
43355 2008-12-21  Bruno Haible  <bruno@clisp.org>
43356
43357         Update doc for AIX.
43358         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43359         16-bit wchar_t type.
43360         * doc/posix-functions/btowc.texi: Likewise.
43361         * doc/posix-functions/fgetwc.texi: Likewise.
43362         * doc/posix-functions/fgetws.texi: Likewise.
43363         * doc/posix-functions/fputwc.texi: Likewise.
43364         * doc/posix-functions/fputws.texi: Likewise.
43365         * doc/posix-functions/fwide.texi: Likewise.
43366         * doc/posix-functions/fwprintf.texi: Likewise.
43367         * doc/posix-functions/fwscanf.texi: Likewise.
43368         * doc/posix-functions/getwchar.texi: Likewise.
43369         * doc/posix-functions/getwc.texi: Likewise.
43370         * doc/posix-functions/iswalnum.texi: Likewise.
43371         * doc/posix-functions/iswalpha.texi: Likewise.
43372         * doc/posix-functions/iswblank.texi: Likewise.
43373         * doc/posix-functions/iswcntrl.texi: Likewise.
43374         * doc/posix-functions/iswctype.texi: Likewise.
43375         * doc/posix-functions/iswdigit.texi: Likewise.
43376         * doc/posix-functions/iswgraph.texi: Likewise.
43377         * doc/posix-functions/iswlower.texi: Likewise.
43378         * doc/posix-functions/iswprint.texi: Likewise.
43379         * doc/posix-functions/iswpunct.texi: Likewise.
43380         * doc/posix-functions/iswspace.texi: Likewise.
43381         * doc/posix-functions/iswupper.texi: Likewise.
43382         * doc/posix-functions/iswxdigit.texi: Likewise.
43383         * doc/posix-functions/mbrtowc.texi: Likewise.
43384         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43385         * doc/posix-functions/mbstowcs.texi: Likewise.
43386         * doc/posix-functions/mbtowc.texi: Likewise.
43387         * doc/posix-functions/putwchar.texi: Likewise.
43388         * doc/posix-functions/putwc.texi: Likewise.
43389         * doc/posix-functions/swprintf.texi: Likewise.
43390         * doc/posix-functions/tolower.texi: Likewise.
43391         * doc/posix-functions/toupper.texi: Likewise.
43392         * doc/posix-functions/towctrans.texi: Likewise.
43393         * doc/posix-functions/ungetwc.texi: Likewise.
43394         * doc/posix-functions/vswprintf.texi: Likewise.
43395         * doc/posix-functions/wcrtomb.texi: Likewise.
43396         * doc/posix-functions/wcscat.texi: Likewise.
43397         * doc/posix-functions/wcschr.texi: Likewise.
43398         * doc/posix-functions/wcscmp.texi: Likewise.
43399         * doc/posix-functions/wcscoll.texi: Likewise.
43400         * doc/posix-functions/wcscpy.texi: Likewise.
43401         * doc/posix-functions/wcscspn.texi: Likewise.
43402         * doc/posix-functions/wcsftime.texi: Likewise.
43403         * doc/posix-functions/wcslen.texi: Likewise.
43404         * doc/posix-functions/wcsncat.texi: Likewise.
43405         * doc/posix-functions/wcsncmp.texi: Likewise.
43406         * doc/posix-functions/wcsncpy.texi: Likewise.
43407         * doc/posix-functions/wcspbrk.texi: Likewise.
43408         * doc/posix-functions/wcsrchr.texi: Likewise.
43409         * doc/posix-functions/wcsrtombs.texi: Likewise.
43410         * doc/posix-functions/wcsspn.texi: Likewise.
43411         * doc/posix-functions/wcsstr.texi: Likewise.
43412         * doc/posix-functions/wcstod.texi: Likewise.
43413         * doc/posix-functions/wcstof.texi: Likewise.
43414         * doc/posix-functions/wcstoimax.texi: Likewise.
43415         * doc/posix-functions/wcstok.texi: Likewise.
43416         * doc/posix-functions/wcstold.texi: Likewise.
43417         * doc/posix-functions/wcstoll.texi: Likewise.
43418         * doc/posix-functions/wcstol.texi: Likewise.
43419         * doc/posix-functions/wcstombs.texi: Likewise.
43420         * doc/posix-functions/wcstoull.texi: Likewise.
43421         * doc/posix-functions/wcstoul.texi: Likewise.
43422         * doc/posix-functions/wcstoumax.texi: Likewise.
43423         * doc/posix-functions/wcswidth.texi: Likewise.
43424         * doc/posix-functions/wcsxfrm.texi: Likewise.
43425         * doc/posix-functions/wctob.texi: Likewise.
43426         * doc/posix-functions/wctomb.texi: Likewise.
43427         * doc/posix-functions/wctrans.texi: Likewise.
43428         * doc/posix-functions/wctype.texi: Likewise.
43429         * doc/posix-functions/wcwidth.texi: Likewise.
43430         * doc/posix-functions/wmemchr.texi: Likewise.
43431         * doc/posix-functions/wmemcmp.texi: Likewise.
43432         * doc/posix-functions/wmemcpy.texi: Likewise.
43433         * doc/posix-functions/wmemmove.texi: Likewise.
43434         * doc/posix-functions/wmemset.texi: Likewise.
43435         * doc/posix-functions/wprintf.texi: Likewise.
43436         * doc/posix-functions/wscanf.texi: Likewise.
43437
43438 2008-12-21  Bruno Haible  <bruno@clisp.org>
43439
43440         Update doc for HP-UX 11.11.
43441         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43442         in HP-UX version 11.00, not in all versions of HP-UX 11.
43443         * doc/posix-functions/fwide.texi: Likewise.
43444         * doc/posix-functions/fwprintf.texi: Likewise.
43445         * doc/posix-functions/fwscanf.texi: Likewise.
43446         * doc/posix-functions/inet_ntop.texi: Likewise.
43447         * doc/posix-functions/inet_pton.texi: Likewise.
43448         * doc/posix-functions/mbrlen.texi: Likewise.
43449         * doc/posix-functions/mbrtowc.texi: Likewise.
43450         * doc/posix-functions/mbsinit.texi: Likewise.
43451         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43452         * doc/posix-functions/swprintf.texi: Likewise.
43453         * doc/posix-functions/swscanf.texi: Likewise.
43454         * doc/posix-functions/towctrans.texi: Likewise.
43455         * doc/posix-functions/vfwprintf.texi: Likewise.
43456         * doc/posix-functions/vswprintf.texi: Likewise.
43457         * doc/posix-functions/vwprintf.texi: Likewise.
43458         * doc/posix-functions/wcrtomb.texi: Likewise.
43459         * doc/posix-functions/wcsrtombs.texi: Likewise.
43460         * doc/posix-functions/wcsstr.texi: Likewise.
43461         * doc/posix-functions/wctob.texi: Likewise.
43462         * doc/posix-functions/wctrans.texi: Likewise.
43463         * doc/posix-functions/wmemchr.texi: Likewise.
43464         * doc/posix-functions/wmemcmp.texi: Likewise.
43465         * doc/posix-functions/wmemcpy.texi: Likewise.
43466         * doc/posix-functions/wmemmove.texi: Likewise.
43467         * doc/posix-functions/wmemset.texi: Likewise.
43468         * doc/posix-functions/wprintf.texi: Likewise.
43469         * doc/posix-functions/wscanf.texi: Likewise.
43470
43471 2008-12-21  Bruno Haible  <bruno@clisp.org>
43472
43473         Work around a portability problem.
43474         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43475         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43476
43477 2008-12-20  Bruno Haible  <bruno@clisp.org>
43478
43479         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43480         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43481         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43482         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43483         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43484
43485         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43486         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43487         set.
43488         (GNULIB_defined_mbstate_t): New macro.
43489         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43490         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43491         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43492         reuses the system's mbrtowc function but works around the bugs.
43493         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43494         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43495         macros.
43496         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43497         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43498         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43499         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43500         REPLACE_MBSINIT if mbsinit needs to be overridden.
43501         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43502         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43503         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43504         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43505         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43506         m4/locale-zh.m4.
43507         (Depends): Add mbsinit.
43508         * modules/mbsinit (Depends): Add mbrtowc.
43509         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43510
43511 2008-12-20  Bruno Haible  <bruno@clisp.org>
43512
43513         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43514         so that there are no conversion errors on AIX.
43515         * tests/test-mbsrtowcs.c (main): LIkewise.
43516
43517 2008-12-20  Bruno Haible  <bruno@clisp.org>
43518
43519         Work around wctob bug on Solaris <= 9.
43520         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43521         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43522         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43523         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43524         * modules/wctob (Files): Add m4/locale-fr.m4.
43525         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43526
43527 2008-12-20  Bruno Haible  <bruno@clisp.org>
43528
43529         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43530         /dev/null.
43531         * tests/test-select-in.sh: Likewise.
43532         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43533
43534 2008-12-20  Bruno Haible  <bruno@clisp.org>
43535
43536         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43537         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43538         Cygwin 1.5.x.
43539
43540 2008-12-20  Bruno Haible  <bruno@clisp.org>
43541
43542         Ensure mbstate_t is defined on HP-UX 11.11.
43543         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43544         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43545         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43546         AC_USE_SYSTEM_EXTENSIONS.
43547         * modules/fnmatch (Depends-on): Add extensions.
43548         * modules/mbrlen (Depends-on): Likewise.
43549         * modules/mbrtowc (Depends-on): Likewise.
43550         * modules/mbsinit (Depends-on): Likewise.
43551         * modules/mbsrtowcs (Depends-on): Likewise.
43552         * modules/mbswidth (Depends-on): Likewise.
43553         * modules/quotearg (Depends-on): Likewise.
43554         * modules/strftime (Depends-on): Likewise.
43555
43556 2008-12-20  Bruno Haible  <bruno@clisp.org>
43557
43558         Ensure wctob is declared on IRIX 6.5.
43559         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43560         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43561         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43562         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43563         of HAVE_WCTOB.
43564         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43565         HAVE_WCTOB.
43566         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43567
43568 2008-12-19  Bruno Haible  <bruno@clisp.org>
43569
43570         * modules/mbsrtowcs-tests: New file.
43571         * tests/test-mbsrtowcs1.sh: New file.
43572         * tests/test-mbsrtowcs2.sh: New file.
43573         * tests/test-mbsrtowcs3.sh: New file.
43574         * tests/test-mbsrtowcs4.sh: New file.
43575         * tests/test-mbsrtowcs.c: New file.
43576
43577         New module 'mbsrtowcs'.
43578         * lib/wchar.in.h (mbsrtowcs): New declaration.
43579         * lib/mbsrtowcs.c: New file.
43580         * m4/mbsrtowcs.m4: New file.
43581         * modules/mbsrtowcs: New file.
43582         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43583         HAVE_MBSRTOWCS.
43584         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43585         HAVE_MBSRTOWCS.
43586         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43587
43588 2008-12-19  Bruno Haible  <bruno@clisp.org>
43589
43590         New module 'mbrlen'.
43591         * lib/wchar.in.h (mbrlen): New declaration.
43592         * lib/mbrlen.c: New file.
43593         * m4/mbrlen.m4: New file.
43594         * modules/mbrlen: New file.
43595         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43596         HAVE_MBRLEN.
43597         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43598         HAVE_MBRLEN.
43599         * doc/posix-functions/mbrlen.texi: Document the new module.
43600
43601 2008-12-19  Bruno Haible  <bruno@clisp.org>
43602
43603         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43604         * modules/mbrtowc (Depends-on): Add verify.
43605         Suggested by Paul Eggert.
43606
43607 2008-12-18  Bruno Haible  <bruno@clisp.org>
43608
43609         * modules/mbsinit-tests: New file.
43610         * tests/test-mbsinit.sh: New file.
43611         * tests/test-mbsinit.c: New file.
43612
43613 2008-12-18  Bruno Haible  <bruno@clisp.org>
43614
43615         * modules/mbrtowc-tests: New file.
43616         * tests/test-mbrtowc1.sh: New file.
43617         * tests/test-mbrtowc2.sh: New file.
43618         * tests/test-mbrtowc3.sh: New file.
43619         * tests/test-mbrtowc4.sh: New file.
43620         * tests/test-mbrtowc.c: New file.
43621
43622         New module 'mbrtowc'.
43623         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43624         mbsinit and mbrtowc.
43625         (mbrtowc): New declaration.
43626         * lib/mbrtowc.c: New file.
43627         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43628         * modules/mbrtowc: New file.
43629         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43630         HAVE_MBRTOWC.
43631         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43632         HAVE_MBRTOWC.
43633         * doc/posix-functions/mbrtowc.texi: Document the new module.
43634
43635 2008-12-18  Bruno Haible  <bruno@clisp.org>
43636
43637         New module 'wctob'.
43638         * lib/wchar.in.h (wctob): New declaration.
43639         * lib/wctob.c: New file.
43640         * m4/wctob.m4: New file.
43641         * modules/wctob: New file.
43642         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43643         HAVE_WCTOB.
43644         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43645         * doc/posix-functions/wctob.texi: Document the new module.
43646
43647 2008-12-18  Bruno Haible  <bruno@clisp.org>
43648
43649         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43650         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43651
43652 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43653
43654         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43655         G. Christensen" <tgc@jupiterrise.com>.
43656
43657         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43658         G. Christensen" <tgc@jupiterrise.com>.
43659
43660         * lib/flock.c: Need to include string.h.  Reported by "Tom
43661         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43662         <ebb9@byu.net>.
43663
43664 2008-12-18  Bruno Haible  <bruno@clisp.org>
43665
43666         * m4/locale-ja.m4: New file, from GNU gettext.
43667
43668 2008-12-17  Bruno Haible  <bruno@clisp.org>
43669
43670         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43671         Suggested by Eric Blake.
43672
43673 2008-12-17  Bruno Haible  <bruno@clisp.org>
43674
43675         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43676
43677 2008-12-17  Bruno Haible  <bruno@clisp.org>
43678
43679         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43680         * modules/mbsinit (Depends-on): Add verify.
43681         Suggested by Paul Eggert.
43682
43683 2008-12-17  Bruno Haible  <bruno@clisp.org>
43684
43685         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43686         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43687         gl_FUNC_MBRTOWC.
43688         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43689         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43690         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43691         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43692         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43693         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43694         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43695         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43696         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43697         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43698         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43699         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43700         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43701         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43702         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43703         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43704         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43705         * modules/trim (configure.ac): Likewise.
43706
43707 2008-12-17  Bruno Haible  <bruno@clisp.org>
43708
43709         * modules/btowc-tests: New file.
43710         * tests/test-btowc1.sh: New file.
43711         * tests/test-btowc2.sh: New file.
43712         * tests/test-btowc.c: New file.
43713
43714         New module 'btowc'.
43715         * lib/wchar.in.h (btowc): New declaration.
43716         * lib/btowc.c: New file.
43717         * m4/btowc.m4: New file.
43718         * modules/btowc: New file.
43719         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43720         HAVE_BTOWC.
43721         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43722         * doc/posix-functions/btowc.texi: Document the new module.
43723
43724 2008-12-17  Bruno Haible  <bruno@clisp.org>
43725
43726         New module 'mbsinit'.
43727         * lib/wchar.in.h (mbsinit): New declaration.
43728         * lib/mbsinit.c: New file.
43729         * m4/mbsinit.m4: New file.
43730         * modules/mbsinit: New file.
43731         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43732         HAVE_MBSINIT.
43733         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43734         HAVE_MBSINIT.
43735         * doc/posix-functions/mbsinit.texi: Document the new module.
43736
43737 2008-12-16  Bruno Haible  <bruno@clisp.org>
43738
43739         * lib/unistd.in.h: Add comment.
43740         * tests/test-environ.c: Don't include <stdlib.h>.
43741
43742 2008-12-16  Bruno Haible  <bruno@clisp.org>
43743
43744         * lib/parse-duration.h (parse_duration): Document return value
43745         convention.
43746         * lib/parse-duration.c: Include specification header first. Add
43747         comments.
43748         (_): Remove macro.
43749         (parse_year_month_day, parse_hour_minute_second): Move side effects
43750         outside of strchr call.
43751         (parse_non_iso8601): Move side effects outside of isspace call.
43752         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43753         call.
43754
43755 2008-12-16  Bruno Haible  <bruno@clisp.org>
43756
43757         * tests/test-parse-duration.sh: Produce no output when the test
43758         succeeds.
43759
43760 2008-12-16  Bruno Haible  <bruno@clisp.org>
43761
43762         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43763         expressions.
43764
43765 2008-12-15  Bruno Haible  <bruno@clisp.org>
43766
43767         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43768         * doc/glibc-functions/flistxattr.texi: Likewise.
43769         * doc/glibc-functions/fopencookie.texi: Likewise.
43770         * doc/glibc-functions/fremovexattr.texi: Likewise.
43771         * doc/glibc-functions/fsetxattr.texi: Likewise.
43772         * doc/glibc-functions/getxattr.texi: Likewise.
43773         * doc/glibc-functions/lgetxattr.texi: Likewise.
43774         * doc/glibc-functions/listxattr.texi: Likewise.
43775         * doc/glibc-functions/llistxattr.texi: Likewise.
43776         * doc/glibc-functions/lremovexattr.texi: Likewise.
43777         * doc/glibc-functions/lsetxattr.texi: Likewise.
43778         * doc/glibc-functions/removexattr.texi: Likewise.
43779         * doc/glibc-functions/setxattr.texi: Likewise.
43780         * doc/posix-functions/open_memstream.texi: Likewise.
43781
43782 2008-12-15  Eric Blake  <ebb9@byu.net>
43783
43784         Update doc for cygwin 1.7.
43785         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43786         functions.
43787         * doc/posix-functions/fchmodat.texi: Likewise.
43788         * doc/posix-functions/fchownat.texi: Likewise.
43789         * doc/posix-functions/fdopendir.texi: Likewise.
43790         * doc/posix-functions/fmemopen.texi: Likewise.
43791         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43792         * doc/posix-functions/fstatat.texi: Likewise.
43793         * doc/posix-functions/futimens.texi: Likewise.
43794         * doc/posix-functions/gai_strerror.texi: Likewise.
43795         * doc/posix-functions/getaddrinfo.texi: Likewise.
43796         * doc/posix-functions/getnameinfo.texi: Likewise.
43797         * doc/posix-functions/if_freenameindex.texi: Likewise.
43798         * doc/posix-functions/if_indextoname.texi: Likewise.
43799         * doc/posix-functions/if_nameindex.texi: Likewise.
43800         * doc/posix-functions/if_nametoindex.texi: Likewise.
43801         * doc/posix-functions/insque.texi: Likewise.
43802         * doc/posix-functions/linkat.texi: Likewise.
43803         * doc/posix-functions/llrint.texi: Likewise.
43804         * doc/posix-functions/llrintf.texi: Likewise.
43805         * doc/posix-functions/llrintl.texi: Likewise.
43806         * doc/posix-functions/lockf.texi: Likewise.
43807         * doc/posix-functions/lrintl.texi: Likewise.
43808         * doc/posix-functions/mkdirat.texi: Likewise.
43809         * doc/posix-functions/mkfifoat.texi: Likewise.
43810         * doc/posix-functions/mknodat.texi: Likewise.
43811         * doc/posix-functions/mq_close.texi: Likewise.
43812         * doc/posix-functions/mq_getattr.texi: Likewise.
43813         * doc/posix-functions/mq_notify.texi: Likewise.
43814         * doc/posix-functions/mq_open.texi: Likewise.
43815         * doc/posix-functions/mq_receive.texi: Likewise.
43816         * doc/posix-functions/mq_send.texi: Likewise.
43817         * doc/posix-functions/mq_setattr.texi: Likewise.
43818         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43819         * doc/posix-functions/mq_timedsend.texi: Likewise.
43820         * doc/posix-functions/mq_unlink.texi: Likewise.
43821         * doc/posix-functions/open_memstream.texi: Likewise.
43822         * doc/posix-functions/openat.texi: Likewise.
43823         * doc/posix-functions/posix_fadvise.texi: Likewise.
43824         * doc/posix-functions/posix_fallocate.texi: Likewise.
43825         * doc/posix-functions/posix_madvise.texi: Likewise.
43826         * doc/posix-functions/posix_memalign.texi: Likewise.
43827         * doc/posix-functions/posix_openpt.texi: Likewise.
43828         * doc/posix-functions/readlinkat.texi: Likewise.
43829         * doc/posix-functions/remque.texi: Likewise.
43830         * doc/posix-functions/renameat.texi: Likewise.
43831         * doc/posix-functions/rintl.texi: Likewise.
43832         * doc/posix-functions/sem_unlink.texi: Likewise.
43833         * doc/posix-functions/shm_open.texi: Likewise.
43834         * doc/posix-functions/shm_unlink.texi: Likewise.
43835         * doc/posix-functions/signgam.texi: Likewise.
43836         * doc/posix-functions/sigset.texi: Likewise.
43837         * doc/posix-functions/stpcpy.texi: Likewise.
43838         * doc/posix-functions/stpncpy.texi: Likewise.
43839         * doc/posix-functions/strerror.texi: Likewise.
43840         * doc/posix-functions/strtod.texi: Likewise.
43841         * doc/posix-functions/symlinkat.texi: Likewise.
43842         * doc/posix-functions/unlinkat.texi: Likewise.
43843         * doc/posix-functions/utimensat.texi: Likewise.
43844         * doc/glibc-functions/bindresvport.texi: Likewise.
43845         * doc/glibc-functions/dn_expand.texi: Likewise.
43846         * doc/glibc-functions/exp10.texi: Likewise.
43847         * doc/glibc-functions/exp10f.texi: Likewise.
43848         * doc/glibc-functions/fgetxattr.texi: Likewise.
43849         * doc/glibc-functions/flistxattr.texi: Likewise.
43850         * doc/glibc-functions/fopencookie.texi: Likewise.
43851         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43852         * doc/glibc-functions/fremovexattr.texi: Likewise.
43853         * doc/glibc-functions/fsetxattr.texi: Likewise.
43854         * doc/glibc-functions/getifaddrs.texi: Likewise.
43855         * doc/glibc-functions/getxattr.texi: Likewise.
43856         * doc/glibc-functions/lgetxattr.texi: Likewise.
43857         * doc/glibc-functions/listxattr.texi: Likewise.
43858         * doc/glibc-functions/llistxattr.texi: Likewise.
43859         * doc/glibc-functions/lremovexattr.texi: Likewise.
43860         * doc/glibc-functions/lsetxattr.texi: Likewise.
43861         * doc/glibc-functions/pow10.texi: Likewise.
43862         * doc/glibc-functions/pow10f.texi: Likewise.
43863         * doc/glibc-functions/rcmd_af.texi: Likewise.
43864         * doc/glibc-functions/removexattr.texi: Likewise.
43865         * doc/glibc-functions/res_init.texi: Likewise.
43866         * doc/glibc-functions/res_mkquery.texi: Likewise.
43867         * doc/glibc-functions/res_query.texi: Likewise.
43868         * doc/glibc-functions/res_querydomain.texi: Likewise.
43869         * doc/glibc-functions/res_send.texi: Likewise.
43870         * doc/glibc-functions/rresvport_af.texi: Likewise.
43871         * doc/glibc-functions/setxattr.texi: Likewise.
43872         * doc/glibc-functions/strcasestr.texi: Likewise.
43873
43874 2008-12-15  Bruno Haible  <bruno@clisp.org>
43875
43876         Fix compilation error on OSF/1 4.0.
43877         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43878         <sys/time.h>, simply delegate to the system header.
43879         Reported by Daniel Richard G. <oss@teragram.com>.
43880
43881 2008-12-15  Bruno Haible  <bruno@clisp.org>
43882
43883         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43884         * doc/posix-functions/fchmodat.texi: Likewise.
43885         * doc/posix-functions/fchownat.texi: Likewise.
43886         * doc/posix-functions/fdopendir.texi: Likewise.
43887         * doc/posix-functions/fstatat.texi: Likewise.
43888         * doc/posix-functions/mkdirat.texi: Likewise.
43889         * doc/posix-functions/unlinkat.texi: Likewise.
43890
43891 2008-12-14  Bruno Haible  <bruno@clisp.org>
43892
43893         Update doc for POSIX:2008.
43894         * doc/posix-functions/faccessat.texi: New file.
43895         * doc/posix-functions/fchmodat.texi: New file.
43896         * doc/posix-functions/fchownat.texi: New file.
43897         * doc/posix-functions/fdopendir.texi: New file.
43898         * doc/posix-functions/fstatat.texi: New file.
43899         * doc/posix-functions/futimens.texi: New file.
43900         * doc/posix-functions/linkat.texi: New file.
43901         * doc/posix-functions/mkdirat.texi: New file.
43902         * doc/posix-functions/mkfifoat.texi: New file.
43903         * doc/posix-functions/mknodat.texi: New file.
43904         * doc/posix-functions/open_wmemstream.texi: New file.
43905         * doc/posix-functions/openat.texi: New file.
43906         * doc/posix-functions/psiginfo.texi: New file.
43907         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43908         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43909         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43910         * doc/posix-functions/readlinkat.texi: New file.
43911         * doc/posix-functions/renameat.texi: New file.
43912         * doc/posix-functions/strerror_l.texi: New file.
43913         * doc/posix-functions/symlinkat.texi: New file.
43914         * doc/posix-functions/unlinkat.texi: New file.
43915         * doc/posix-functions/utimensat.texi: New file.
43916         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43917
43918 2008-12-14  Bruno Haible  <bruno@clisp.org>
43919
43920         Update doc for POSIX:2008.
43921         * doc/posix-functions/alphasort.texi: Renamed from
43922         doc/glibc-functions/alphasort.texi.
43923         * doc/posix-functions/dirfd.texi: Renamed from
43924         doc/glibc-functions/dirfd.texi.
43925         * doc/posix-functions/dprintf.texi: Renamed from
43926         doc/glibc-functions/dprintf.texi.
43927         * doc/posix-functions/duplocale.texi: Renamed from
43928         doc/glibc-functions/duplocale.texi.
43929         * doc/posix-functions/fexecve.texi: Renamed from
43930         doc/glibc-functions/fexecve.texi.
43931         * doc/posix-functions/fmemopen.texi: Renamed from
43932         doc/glibc-functions/fmemopen.texi.
43933         * doc/posix-functions/freelocale.texi: Renamed from
43934         doc/glibc-functions/freelocale.texi.
43935         * doc/posix-functions/getdate_err.texi: Renamed from
43936         doc/glibc-functions/getdate_err.texi.
43937         * doc/posix-functions/isalnum_l.texi: Renamed from
43938         doc/glibc-functions/isalnum_l.texi.
43939         * doc/posix-functions/isalpha_l.texi: Renamed from
43940         doc/glibc-functions/isalpha_l.texi.
43941         * doc/posix-functions/isblank_l.texi: Renamed from
43942         doc/glibc-functions/isblank_l.texi.
43943         * doc/posix-functions/iscntrl_l.texi: Renamed from
43944         doc/glibc-functions/iscntrl_l.texi.
43945         * doc/posix-functions/isdigit_l.texi: Renamed from
43946         doc/glibc-functions/isdigit_l.texi.
43947         * doc/posix-functions/isgraph_l.texi: Renamed from
43948         doc/glibc-functions/isgraph_l.texi.
43949         * doc/posix-functions/islower_l.texi: Renamed from
43950         doc/glibc-functions/islower_l.texi.
43951         * doc/posix-functions/isprint_l.texi: Renamed from
43952         doc/glibc-functions/isprint_l.texi.
43953         * doc/posix-functions/ispunct_l.texi: Renamed from
43954         doc/glibc-functions/ispunct_l.texi.
43955         * doc/posix-functions/isspace_l.texi: Renamed from
43956         doc/glibc-functions/isspace_l.texi.
43957         * doc/posix-functions/isupper_l.texi: Renamed from
43958         doc/glibc-functions/isupper_l.texi.
43959         * doc/posix-functions/iswalnum_l.texi: Renamed from
43960         doc/glibc-functions/iswalnum_l.texi.
43961         * doc/posix-functions/iswalpha_l.texi: Renamed from
43962         doc/glibc-functions/iswalpha_l.texi.
43963         * doc/posix-functions/iswblank_l.texi: Renamed from
43964         doc/glibc-functions/iswblank_l.texi.
43965         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43966         doc/glibc-functions/iswcntrl_l.texi.
43967         * doc/posix-functions/iswctype_l.texi: Renamed from
43968         doc/glibc-functions/iswctype_l.texi.
43969         * doc/posix-functions/iswdigit_l.texi: Renamed from
43970         doc/glibc-functions/iswdigit_l.texi.
43971         * doc/posix-functions/iswgraph_l.texi: Renamed from
43972         doc/glibc-functions/iswgraph_l.texi.
43973         * doc/posix-functions/iswlower_l.texi: Renamed from
43974         doc/glibc-functions/iswlower_l.texi.
43975         * doc/posix-functions/iswprint_l.texi: Renamed from
43976         doc/glibc-functions/iswprint_l.texi.
43977         * doc/posix-functions/iswpunct_l.texi: Renamed from
43978         doc/glibc-functions/iswpunct_l.texi.
43979         * doc/posix-functions/iswspace_l.texi: Renamed from
43980         doc/glibc-functions/iswspace_l.texi.
43981         * doc/posix-functions/iswupper_l.texi: Renamed from
43982         doc/glibc-functions/iswupper_l.texi.
43983         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43984         doc/glibc-functions/iswxdigit_l.texi.
43985         * doc/posix-functions/isxdigit_l.texi: Renamed from
43986         doc/glibc-functions/isxdigit_l.texi.
43987         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43988         doc/glibc-functions/mbsnrtowcs.texi.
43989         * doc/posix-functions/mkdtemp.texi: Renamed from
43990         doc/glibc-functions/mkdtemp.texi.
43991         * doc/posix-functions/newlocale.texi: Renamed from
43992         doc/glibc-functions/newlocale.texi.
43993         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43994         doc/glibc-functions/nl_langinfo_l.texi.
43995         * doc/posix-functions/open_memstream.texi: Renamed from
43996         doc/glibc-functions/open_memstream.texi.
43997         * doc/posix-functions/opterr.texi: Renamed from
43998         doc/glibc-functions/opterr.texi.
43999         * doc/posix-functions/optind.texi: Renamed from
44000         doc/glibc-functions/optind.texi.
44001         * doc/posix-functions/optopt.texi: Renamed from
44002         doc/glibc-functions/optopt.texi.
44003         * doc/posix-functions/psignal.texi: Renamed from
44004         doc/glibc-functions/psignal.texi.
44005         * doc/posix-functions/scandir.texi: Renamed from
44006         doc/glibc-functions/scandir.texi.
44007         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44008         doc/glibc-functions/sched_get_priority_min.texi.
44009         * doc/posix-functions/signgam.texi: Renamed from
44010         doc/glibc-functions/signgam.texi.
44011         * doc/posix-functions/stpcpy.texi: Renamed from
44012         doc/glibc-functions/stpcpy.texi.
44013         * doc/posix-functions/stpncpy.texi: Renamed from
44014         doc/glibc-functions/stpncpy.texi.
44015         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44016         doc/glibc-functions/strcasecmp_l.texi.
44017         * doc/posix-functions/strcoll_l.texi: Renamed from
44018         doc/glibc-functions/strcoll_l.texi.
44019         * doc/posix-functions/strfmon_l.texi: Renamed from
44020         doc/glibc-functions/strfmon_l.texi.
44021         * doc/posix-functions/strftime_l.texi: Renamed from
44022         doc/glibc-functions/strftime_l.texi.
44023         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44024         doc/glibc-functions/strncasecmp_l.texi.
44025         * doc/posix-functions/strndup.texi: Renamed from
44026         doc/glibc-functions/strndup.texi.
44027         * doc/posix-functions/strnlen.texi: Renamed from
44028         doc/glibc-functions/strnlen.texi.
44029         * doc/posix-functions/strsignal.texi: Renamed from
44030         doc/glibc-functions/strsignal.texi.
44031         * doc/posix-functions/strxfrm_l.texi: Renamed from
44032         doc/glibc-functions/strxfrm_l.texi.
44033         * doc/posix-functions/timer_gettime.texi: Renamed from
44034         doc/glibc-functions/timer_gettime.texi.
44035         * doc/posix-functions/tolower_l.texi: Renamed from
44036         doc/glibc-functions/tolower_l.texi.
44037         * doc/posix-functions/toupper_l.texi: Renamed from
44038         doc/glibc-functions/toupper_l.texi.
44039         * doc/posix-functions/towctrans_l.texi: Renamed from
44040         doc/glibc-functions/towctrans_l.texi.
44041         * doc/posix-functions/towlower_l.texi: Renamed from
44042         doc/glibc-functions/towlower_l.texi.
44043         * doc/posix-functions/towupper_l.texi: Renamed from
44044         doc/glibc-functions/towupper_l.texi.
44045         * doc/posix-functions/uselocale.texi: Renamed from
44046         doc/glibc-functions/uselocale.texi.
44047         * doc/posix-functions/vdprintf.texi: Renamed from
44048         doc/glibc-functions/vdprintf.texi.
44049         * doc/posix-functions/wcpcpy.texi:
44050         Renamed from doc/glibc-functions/wcpcpy.texi.
44051         * doc/posix-functions/wcpncpy.texi: Renamed from
44052         doc/glibc-functions/wcpncpy.texi.
44053         * doc/posix-functions/wcscasecmp.texi: Renamed from
44054         doc/glibc-functions/wcscasecmp.texi.
44055         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44056         doc/glibc-functions/wcscasecmp_l.texi.
44057         * doc/posix-functions/wcscoll_l.texi: Renamed from
44058         doc/glibc-functions/wcscoll_l.texi.
44059         * doc/posix-functions/wcsdup.texi: Renamed from
44060         doc/glibc-functions/wcsdup.texi.
44061         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44062         doc/glibc-functions/wcsncasecmp.texi.
44063         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44064         doc/glibc-functions/wcsncasecmp_l.texi.
44065         * doc/posix-functions/wcsnlen.texi: Renamed from
44066         doc/glibc-functions/wcsnlen.texi.
44067         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44068         doc/glibc-functions/wcsnrtombs.texi.
44069         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44070         doc/glibc-functions/wcsxfrm_l.texi.
44071         * doc/posix-functions/wctrans_l.texi: Renamed from
44072         doc/glibc-functions/wctrans_l.texi.
44073         * doc/posix-functions/wctype_l.texi: Renamed from
44074         doc/glibc-functions/wctype_l.texi.
44075         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44076         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44077         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44078         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44079         these subsections.
44080         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44081         Remove sections.
44082
44083 2008-12-14  Bruno Haible  <bruno@clisp.org>
44084
44085         Update doc for POSIX:2008.
44086         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44087
44088 2008-12-14  Bruno Haible  <bruno@clisp.org>
44089
44090         Update doc for POSIX:2008.
44091         * doc/pastposix-functions/bcmp.texi: Renamed from
44092         doc/posix-functions/bcmp.texi.
44093         * doc/pastposix-functions/bcopy.texi: Renamed from
44094         doc/posix-functions/bcopy.texi.
44095         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44096         doc/posix-functions/bsd_signal.texi.
44097         * doc/pastposix-functions/bzero.texi: Renamed from
44098         doc/posix-functions/bzero.texi.
44099         * doc/pastposix-functions/ecvt.texi: Renamed from
44100         doc/posix-functions/ecvt.texi.
44101         * doc/pastposix-functions/fcvt.texi: Renamed from
44102         doc/posix-functions/fcvt.texi.
44103         * doc/pastposix-functions/ftime.texi: Renamed from
44104         doc/posix-functions/ftime.texi.
44105         * doc/pastposix-functions/gcvt.texi: Renamed from
44106         doc/posix-functions/gcvt.texi.
44107         * doc/pastposix-functions/getcontext.texi: Renamed from
44108         doc/posix-functions/getcontext.texi.
44109         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44110         doc/posix-functions/gethostbyaddr.texi.
44111         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44112         doc/posix-functions/gethostbyname.texi.
44113         * doc/pastposix-functions/getwd.texi: Renamed from
44114         doc/posix-functions/getwd.texi.
44115         * doc/pastposix-functions/h_errno.texi: Renamed from
44116         doc/posix-functions/h_errno.texi.
44117         * doc/pastposix-functions/index.texi: Renamed from
44118         doc/posix-functions/index.texi.
44119         * doc/pastposix-functions/makecontext.texi: Renamed from
44120         doc/posix-functions/makecontext.texi.
44121         * doc/pastposix-functions/mktemp.texi: Renamed from
44122         doc/posix-functions/mktemp.texi.
44123         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44124         doc/posix-functions/pthread_attr_getstackaddr.texi.
44125         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44126         doc/posix-functions/pthread_attr_setstackaddr.texi.
44127         * doc/pastposix-functions/rindex.texi: Renamed from
44128         doc/posix-functions/rindex.texi.
44129         * doc/pastposix-functions/scalb.texi: Renamed from
44130         doc/posix-functions/scalb.texi.
44131         * doc/pastposix-functions/setcontext.texi: Renamed from
44132         doc/posix-functions/setcontext.texi.
44133         * doc/pastposix-functions/swapcontext.texi: Renamed from
44134         doc/posix-functions/swapcontext.texi.
44135         * doc/pastposix-functions/ualarm.texi: Renamed from
44136         doc/posix-functions/ualarm.texi.
44137         * doc/pastposix-functions/usleep.texi: Renamed from
44138         doc/posix-functions/usleep.texi.
44139         * doc/pastposix-functions/vfork.texi: Renamed from
44140         doc/posix-functions/vfork.texi.
44141         * doc/pastposix-functions/wcswcs.texi: Renamed from
44142         doc/posix-functions/wcswcs.texi.
44143         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44144         (Function Substitutes): Update.
44145
44146 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44147
44148         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44149         m4/strerror.m4.
44150
44151 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44152             Bruno Haible  <bruno@clisp.org>
44153
44154         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44155
44156 2008-12-13  Bruno Haible  <bruno@clisp.org>
44157
44158         * modules/strtoull (Depends-on): Remove unistd.
44159
44160 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44161
44162         * modules/strtoull (Depends-on): Add stdlib.
44163
44164 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44165
44166         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44167
44168 2008-12-10  Jim Meyering  <meyering@redhat.com>
44169
44170         gl_ASSERT: don't say assertions are disabled when they're not
44171         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44172         "checking whether to enable assertions... no", when they are in
44173         fact enabled.  This is solely a bug in the output of configure.
44174         In spite of saying "no", NDEBUG was not defined in that case.
44175         Also, as noted by Eric Blake, leave assertions enabled upon
44176         --enable-assert=INVALID.
44177
44178 2008-12-10  Bruno Haible  <bruno@clisp.org>
44179
44180         Change MODULES.html to refer to POSIX:2008 where possible.
44181         * MODULES.html.sh (POSIX2008_URL): New variable.
44182         (posix_headers): Remove sys/timeb, ucontext.
44183         (posix2001_headers): New variable.
44184         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44185         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44186         index, makecontext, mktemp, pthread_attr_getstackaddr,
44187         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44188         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44189         (posix2001_functions): New variable.
44190         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44191         otherwise.
44192
44193 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44194
44195         add missing include to parse-duration.c
44196         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44197         * modules/parse-duration (Depends-on): Add xalloc.
44198
44199         fix sed script reading maint.mk
44200         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44201         (syntax-check-rules): Use it.
44202
44203 2008-12-09  Bruno Haible  <bruno@clisp.org>
44204
44205         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44206         MacOS X 10.4/PowerPC.
44207         Reported by Simon Josefsson.
44208
44209 2008-12-08  Jim Meyering  <meyering@redhat.com>
44210
44211         work around mingw's lack of some S_IF definitions
44212         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44213         Reported by Simon Josefsson.
44214
44215 2008-12-08  Bruno Haible  <bruno@clisp.org>
44216
44217         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44218         applied to variables. Needed on MacOS X 10.4/PowerPC.
44219         Reported by Simon Josefsson.
44220
44221 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44222         and Eric Blake  <ebb9@byu.net>
44223
44224         assert: honor --enable-assert
44225         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44226         order to honor --enable-assert, rather than treating it as a
44227         synonym for --disable-assert.
44228
44229 2008-12-08  Jim Meyering  <meyering@redhat.com>
44230
44231         * lib/posixtm.c: Remove now-useless declaration of mktime.
44232
44233         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44234
44235 2008-12-07  Bruno Haible  <bruno@clisp.org>
44236
44237         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44238         test_once): Mark functions as static.
44239         * tests/test-tls.c (test_tls): Likewise.
44240
44241 2008-12-07  Bruno Haible  <bruno@clisp.org>
44242
44243         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44244         iconv_register_autodetect.
44245
44246 2008-12-07  Jim Meyering  <meyering@redhat.com>
44247
44248         posixtm.c: avoid a warning
44249         * lib/posixtm.c (posixtime): Don't initialize tm0.
44250         It's no longer needed to placate gcc4's -Wuninitialized,
44251         and the attempt to placate would elicit a new warning.
44252
44253         unicodeio.c: mark unused parameters
44254         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44255         (fallback_failure_callback): Likewise.
44256
44257 2008-12-07  Bruno Haible  <bruno@clisp.org>
44258
44259         * gnulib-tool (func_create_testdir): When building the tests
44260         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44261         Reported by Simon Josefsson.
44262
44263 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44264
44265         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44266
44267 2008-12-06  Bruno Haible  <bruno@clisp.org>
44268
44269         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44270         Suggested by Eric Blake.
44271
44272 2008-12-06  Bruno Haible  <bruno@clisp.org>
44273
44274         Fix a c-stack test failure on MacOS X.
44275         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44276         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44277         handler for SIGBUS as well.
44278         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44279         install a signal handler for SIGBUS as well.
44280         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44281
44282 2008-12-06  Bruno Haible  <bruno@clisp.org>
44283
44284         Advocacy documentation.
44285         * doc/gnulib-intro.texi (Benefits): New section.
44286         * doc/gnulib.texi: Update.
44287
44288 2008-12-06  Bruno Haible  <bruno@clisp.org>
44289
44290         Document the 'manywarnings' module.
44291         * doc/manywarnings.texi: New file.
44292         * doc/gnulib.texi: Include it.
44293
44294 2008-12-05  Eric Blake  <ebb9@byu.net>
44295
44296         tests: silence some gcc warnings
44297         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44298         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44299         type mismatches.
44300
44301 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44302             Bruno Haible  <bruno@clisp.org>
44303
44304         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44305
44306 2008-11-29  Jim Meyering  <meyering@redhat.com>
44307
44308         unicodeio.c: mark unused parameters
44309         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44310         (fallback_failure_callback): Likewise.
44311
44312         fts: fix a thinko
44313         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44314         (set_stat_type): Return S_IF*-valued "type" directly.
44315         Prompted by James Youngman's spotting a related bug.
44316         Confirmed by further testing through find.
44317
44318         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44319         * lib/fts.c (D_TYPE): Define.
44320         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44321         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44322         (s_ifmt_shift_bits): New function.
44323         (set_stat_type): New function.
44324         (fts_build): When not calling fts_stat, call set_stat_type
44325         to propagate dirent.d_type info to fts_read caller.
44326         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44327         fts_statp->st_mode type information may be valid.
44328
44329 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44330
44331         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44332         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44333         <sds@gnu.org>.
44334
44335 2008-11-20  Bruno Haible  <bruno@clisp.org>
44336
44337         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44338         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44339         INCLUDE_NEXT.
44340         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44341         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44342         * modules/math (Makefile.am): Substitute
44343         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44344         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44345
44346 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44347             Bruno Haible  <bruno@clisp.org>
44348
44349         * lib/stdint.in.h: Define all type macros so that their expansion is
44350         a single typedef'ed token. Fixes a compilation failure in Boost which
44351         does "using ::int8_t;".
44352
44353 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44354
44355         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44356         gl_MANYWARN_ALL_GCC.
44357         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44358         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44359         * modules/manywarnings: New file.
44360         * MODULES.html.sh: Mention manywarnings module.
44361
44362 2008-11-18  Bruno Haible  <bruno@clisp.org>
44363
44364         * doc/gnulib-tool.texi (Unit tests): New section.
44365
44366 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44367
44368         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44369         paths like 'lib/po/foo.po'.
44370
44371 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44372
44373         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44374         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44375
44376 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44377
44378         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44379         parameter works.
44380
44381 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44382
44383         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44384
44385 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44386
44387         * modules/parse-duration-tests: New file.
44388         * tests/test-parse-duration.sh: New file.
44389         * tests/test-parse-duration.c: New file.
44390
44391         New module 'parse-duration'.
44392         * lib/parse-duration.h: New file.
44393         * lib/parse-duration.c: New file.
44394         * modules/parse-duration: New file.
44395
44396 2008-11-17  Bruno Haible  <bruno@clisp.org>
44397
44398         * tests/test-select-out.sh: Comment out the first pipe test.
44399         Reported by Simon Josefsson.
44400
44401 2008-11-17  Bruno Haible  <bruno@clisp.org>
44402
44403         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44404         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44405         gl_HOSTENT.
44406
44407 2008-11-17  Bruno Haible  <bruno@clisp.org>
44408
44409         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44410         -lnetwork and -lnet. Needed for Haiku and BeOS.
44411
44412 2008-11-16  Bruno Haible  <bruno@clisp.org>
44413
44414         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44415
44416 2008-11-16  Bruno Haible  <bruno@clisp.org>
44417
44418         Avoid test failure on Haiku.
44419         * tests/test-fsync.c: Include <errno.h>.
44420         (main): Don't require that fsync (0) fails.
44421
44422 2008-11-15  Bruno Haible  <bruno@clisp.org>
44423
44424         New module 'hostent'.
44425         * modules/hostent: New file.
44426         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44427
44428 2008-11-15  Bruno Haible  <bruno@clisp.org>
44429
44430         New module 'servent'.
44431         * modules/servent: New file.
44432         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44433
44434 2008-11-15  Bruno Haible  <bruno@clisp.org>
44435
44436         Avoid generating same test program with two different rules.
44437         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44438         test-frexp to test-frexp-nolibm.
44439         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44440         test-frexpl to test-frexpl-nolibm.
44441
44442 2008-11-15  Bruno Haible  <bruno@clisp.org>
44443
44444         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44445         $(FREXPL_LIBM).
44446
44447 2008-11-15  Bruno Haible  <bruno@clisp.org>
44448
44449         * lib/netdb.in.h: Activate the definitions also when the system's
44450         <netdb.h> has 'struct addrinfo'.
44451         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44452         EAI_OVERFLOW or AI_NUMERICSERV.
44453         * doc/posix-headers/netdb.texi: Document the problem.
44454
44455 2008-11-15  Bruno Haible  <bruno@clisp.org>
44456
44457         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44458
44459         Make the 'sched' module work on platforms where <sched.h> exists but
44460         is incomplete (such as Haiku).
44461         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44462         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44463         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44464         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44465         HAVE_STRUCT_SCHED_PARAM.
44466         * modules/sched (Depends-on): Add include_next.
44467         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44468         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44469         * doc/posix-headers/sched.texi: Document the issue.
44470
44471 2008-11-13  Jim Meyering  <meyering@redhat.com>
44472
44473         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44474         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44475         test would fail due to the difference in the Report bugs to ...
44476         line.  The expected address is empty, "<>", while the actual
44477         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44478
44479 2008-11-12  Bruno Haible  <bruno@clisp.org>
44480
44481         lstat: don't compile lstat.c on systems lacking lstat
44482         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44483         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44484         Reported by Daniel P. Berrange via Jim Meyering.
44485
44486 2008-11-12  Jim Meyering  <meyering@redhat.com>
44487
44488         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44489
44490 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44491
44492         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44493         instead.
44494
44495 2008-11-12  Bruno Haible  <bruno@clisp.org>
44496
44497         * lib/unicodeio.c: Include unistr.h.
44498         (utf8_wctomb): Remove function.
44499         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44500
44501 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44502
44503         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44504         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44505         <bruno@clisp.org>.
44506         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44507
44508 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44509
44510         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44511         * doc/gnulib.texi: Add section for warnings.
44512
44513 2008-11-11  Bruno Haible  <bruno@clisp.org>
44514
44515         * lib/sockets.h: Add a comment.
44516
44517 2008-11-11  Karl Berry  <karl@gnu.org>
44518
44519         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44520
44521 2008-11-11  Eric Blake  <ebb9@byu.net>
44522
44523         fdl.texi: avoid git symlinks
44524         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44525
44526 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44527
44528         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44529
44530 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44531
44532         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44533         (gl_WARN_ADD): Substitute $2 if literal.
44534
44535 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44536
44537         * m4/warning.m4: Remove.
44538
44539 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44540
44541         * m4/warnings.m4: Almost complete rewrite. :-)
44542
44543 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44544
44545         * modules/warnings: New module.
44546         * m4/warnings.m4: New file.
44547         * MODULES.html.sh: Mention warnings module.
44548         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44549         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44550
44551 2008-11-10  Eric Blake  <ebb9@byu.net>
44552
44553         fdl.texi: make a symlink to the latest version
44554         * doc/standards.texi: Revert today's earlier change.
44555         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44556         * doc/fdl.texi: ...and replace this with a symlink to the newer
44557         fdl-1.3.texi.
44558
44559 2008-11-10  Bruno Haible  <bruno@clisp.org>
44560
44561         * tests/test-select-fd.c (main): Accept the result file name as fourth
44562         argument.
44563         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44564         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44565
44566 2008-11-10  Bruno Haible  <bruno@clisp.org>
44567
44568         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44569         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44570         as autoconf-substituted macros.
44571         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44572         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44573         gl_NETDB_H_DEFAULTS. Set these variables.
44574         * modules/netdb (Makefile.am): Substitute these variables.
44575
44576 2008-11-10  Eric Blake  <ebb9@byu.net>
44577
44578         standards.texi: include correct file for FDL 1.3
44579         * doc/standards.texi (GNU Free Documentation License): Change
44580         include file to pull in FDL 1.3, not 1.2.
44581
44582         fdl.texi: revert accidental change to license
44583         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44584
44585 2008-11-10  Bruno Haible  <bruno@clisp.org>
44586
44587         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44588         cross-compiling guesses also when the native compile gives no result.
44589
44590 2008-11-10  Bruno Haible  <bruno@clisp.org>
44591
44592         * lib/spawni.c (__spawni): Force variable into the stack.
44593
44594 2008-11-10  Bruno Haible  <bruno@clisp.org>
44595
44596         Add support for Haiku.
44597         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44598         glibc and BeOS, but also on Haiku.
44599         * lib/fpurge.c (fpurge): Likewise.
44600         * lib/freadable.c (freadable): Likewise.
44601         * lib/freadahead.c (freadahead): Likewise.
44602         * lib/freading.c (freading): Likewise.
44603         * lib/freadptr.c (freadptr): Likewise.
44604         * lib/freadseek.c (freadptrinc): Likewise.
44605         * lib/fseeko.c (rpl_fseeko): Likewise.
44606         * lib/fseterr.c (fseterr): Likewise.
44607         * lib/fwritable.c (fwritable): Likewise.
44608         * lib/fwriting.c (fwriting): Likewise.
44609         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44610
44611 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44612
44613         * lib/config.charset: Treat Haiku like BeOS.
44614
44615 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44616
44617         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44618         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44619
44620 2008-11-08  Bruno Haible  <bruno@clisp.org>
44621
44622         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44623         AC_CACHE_CHECK.
44624
44625 2008-11-08  Bruno Haible  <bruno@clisp.org>
44626
44627         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44628
44629 2008-11-08  Bruno Haible  <bruno@clisp.org>
44630
44631         * tests/test-select-fd.c: New file.
44632         * tests/test-select-in.sh: New file.
44633         * tests/test-select-out.sh: New file.
44634         * tests/test-select-stdin.c: New file.
44635         * modules/select-tests (Files): Add the new files.
44636         (Depends-on): Add gettimeofday.
44637         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44638         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44639         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44640
44641 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44642             Bruno Haible  <bruno@clisp.org>
44643
44644         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44645
44646 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44647
44648         * build-aux/pmccabe2html: Added support for C++ source files.
44649
44650 2008-11-05  Ben Pfaff  <blp@gnu.org>
44651
44652         Fix lib/close.c build on Windows.
44653         * modules/close (Files): Add lib/w32sock.h.
44654
44655 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44656
44657         Accept Bison's NEWS format.
44658         * build-aux/announce-gen (print_news_deltas): Tweak
44659         $re_prefix.
44660
44661 2008-11-04  Bruno Haible  <bruno@clisp.org>
44662
44663         * modules/random_r (Maintainer): Add glibc.
44664
44665 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44666
44667         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44668         by karl@freefriends.org (Karl Berry).
44669         * doc/alloca.texi: Likewise.
44670         * doc/c-ctype.texi: Likewise.
44671         * doc/c-strcase.texi: Likewise.
44672         * doc/c-strcaseeq.texi: Likewise.
44673         * doc/c-strcasestr.texi: Likewise.
44674         * doc/c-strstr.texi: Likewise.
44675         * doc/c-strtod.texi: Likewise.
44676         * doc/c-strtold.texi: Likewise.
44677         * doc/ctime.texi: Likewise.
44678         * doc/error.texi: Likewise.
44679         * doc/fdl.texi: Likewise.
44680         * doc/gcd.texi: Likewise.
44681         * doc/getdate.texi: Likewise.
44682         * doc/gnulib-intro.texi: Likewise.
44683         * doc/gnulib-tool.texi: Likewise.
44684         * doc/gnulib.texi: Likewise.
44685         * doc/inet_ntoa.texi: Likewise.
44686         * doc/maintain.texi: Likewise.
44687         * doc/make-stds.texi: Likewise.
44688         * doc/quote.texi: Likewise.
44689         * doc/regexprops-generic.texi: Likewise.
44690         * doc/standards.texi: Likewise.
44691         * doc/verify.texi: Likewise.
44692         * doc/visibility.texi: Likewise.
44693         * doc/gnulib.texi (GNU Free Documentation License): Include
44694         fdl-1.3.texi instead of fdl.texi.
44695
44696 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44697
44698         * doc/fdl-1.3.texi: New file, from
44699         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44700         * modules/fdl-1.3: Add.
44701         * MODULES.html.sh: Add fdl-1.3.
44702
44703 2008-11-03  Bruno Haible  <bruno@clisp.org>
44704
44705         Make determination of absolute name of header file work with AIX xlc.
44706         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44707         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44708         preprocessing.
44709         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44710         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44711
44712 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44713
44714         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44715         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44716         <ludo@gnu.org>.
44717
44718 2008-11-02  Bruno Haible  <bruno@clisp.org>
44719
44720         Mark 'strpbrk' obsolete.
44721         * modules/strpbrk (Status, Notice): New sections.
44722         * modules/strtok_r (Depends-on): Add strpbrk.
44723
44724 2008-11-02  Bruno Haible  <bruno@clisp.org>
44725
44726         Mark 'strdup' obsolete.
44727         * modules/strdup (Status, Notice): New sections.
44728         * modules/findprog (Depends-on): Add strdup.
44729         * modules/getaddrinfo (Depends-on): Likewise.
44730         * modules/localename (Depends-on): Likewise.
44731         * modules/relocatable-lib (Depends-on): Likewise.
44732         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44733         * modules/relocatable-prog (Depends-on): Likewise.
44734         * modules/trim (Depends-on): Likewise.
44735         * modules/unictype/gen-ctype (Depends-on): Likewise.
44736         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44737
44738 2008-11-02  Bruno Haible  <bruno@clisp.org>
44739
44740         Mark 'strcspn' obsolete.
44741         * modules/strcspn (Status, Notice): New sections.
44742
44743 2008-11-02  Bruno Haible  <bruno@clisp.org>
44744
44745         Mark 'rmdir' obsolete.
44746         * modules/rmdir (Status, Notice): New sections.
44747         * modules/clean-temp (Depends-on): Add rmdir.
44748         * modules/openat (Depends-on): Likewise.
44749
44750 2008-11-02  Bruno Haible  <bruno@clisp.org>
44751
44752         Mark 'raise' obsolete.
44753         * modules/raise (Status, Notice): New sections.
44754         (Include): Specify <signal.h>.
44755         * modules/stdio (Depends-on): Add raise.
44756         * modules/write (Depends-on): Likewise.
44757
44758 2008-11-02  Bruno Haible  <bruno@clisp.org>
44759
44760         Mark 'memset' obsolete.
44761         * modules/memset (Status, Notice): New sections.
44762
44763 2008-11-02  Bruno Haible  <bruno@clisp.org>
44764
44765         Mark 'memmove' obsolete.
44766         * modules/memmove (Status, Notice): New sections.
44767         * modules/argp (Depends-on): Add memmove.
44768         * modules/argz (Depends-on): Likewise.
44769         * modules/canonicalize (Depends-on): Likewise.
44770         * modules/canonicalize-lgpl (Depends-on): Likewise.
44771         * modules/fts (Depends-on): Likewise.
44772         * modules/getcwd (Depends-on): Likewise.
44773         * modules/human (Depends-on): Likewise.
44774         * modules/regex (Depends-on): Likewise.
44775         * modules/striconveh (Depends-on): Likewise.
44776         * modules/trim (Depends-on): Likewise.
44777         * modules/unistr/u8-move (Depends-on): Likewise.
44778         * modules/unistr/u16-move (Depends-on): Likewise.
44779         * modules/unistr/u32-move (Depends-on): Likewise.
44780
44781 2008-11-02  Bruno Haible  <bruno@clisp.org>
44782
44783         Mark 'memcpy' obsolete.
44784         * modules/memcpy (Status, Notice): New sections.
44785
44786 2008-11-02  Bruno Haible  <bruno@clisp.org>
44787
44788         Mark 'memcmp' obsolete.
44789         * modules/memcmp (Status, Notice): New sections.
44790         * modules/argmatch (Depends-on): Add memchr.
44791         * modules/backupfile (Depends-on): Likewise.
44792         * modules/c-strcasestr (Depends-on): Likewise.
44793         * modules/crypto/des (Depends-on): Likewise.
44794         * modules/csharpcomp (Depends-on): Likewise.
44795         * modules/fnmatch (Depends-on): Likewise.
44796         * modules/git-merge-changelog (Depends-on): Likewise.
44797         * modules/isnand (Depends-on): Likewise.
44798         * modules/isnand-nolibm (Depends-on): Likewise.
44799         * modules/isnanf (Depends-on): Likewise.
44800         * modules/isnanf-nolibm (Depends-on): Likewise.
44801         * modules/isnanl (Depends-on): Likewise.
44802         * modules/isnanl-nolibm (Depends-on): Likewise.
44803         * modules/mbchar (Depends-on): Likewise.
44804         * modules/memcoll (Depends-on): Likewise.
44805         * modules/quotearg (Depends-on): Likewise.
44806         * modules/regex (Depends-on): Likewise.
44807         * modules/relocatable-prog (Depends-on): Likewise.
44808         * modules/same (Depends-on): Likewise.
44809         * modules/signbit (Depends-on): Likewise.
44810         * modules/strcasestr-simple (Depends-on): Likewise.
44811         * modules/unictype/gen-ctype (Depends-on): Likewise.
44812         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44813         * modules/uniname/uniname (Depends-on): Likewise.
44814         * modules/unistr/u8-cmp (Depends-on): Likewise.
44815
44816 2008-11-02  Bruno Haible  <bruno@clisp.org>
44817
44818         Mark 'memchr' obsolete.
44819         * modules/memchr (Status, Notice): New sections.
44820         * modules/argp (Depends-on): Add memchr.
44821         * modules/base64 (Depends-on): Likewise.
44822         * modules/c-strcasestr (Depends-on): Likewise.
44823         * modules/chdir-long (Depends-on): Likewise.
44824         * modules/fnmatch (Depends-on): Likewise.
44825         * modules/getsubopt (Depends-on): Likewise.
44826         * modules/git-merge-changelog (Depends-on): Likewise.
44827         * modules/glob (Depends-on): Likewise.
44828         * modules/strcasestr-simple (Depends-on): Likewise.
44829         * modules/strnlen (Depends-on): Likewise.
44830
44831 2008-11-02  Bruno Haible  <bruno@clisp.org>
44832
44833         Mark 'atexit' obsolete.
44834         * modules/atexit (Status, Notice): New sections.
44835         * modules/chdir-long (Depends-on): Add atexit.
44836         * modules/wait-process (Depends-on): Likewise.
44837
44838 2008-11-02  Bruno Haible  <bruno@clisp.org>
44839
44840         * gnulib-tool: New option --with-obsolete.
44841         (func_usage): Document it.
44842         (func_modules_transitive_closure): Drop obsolete dependencies if
44843         incobsolete is not true.
44844         (func_import): Read and save the incobsolete variable to the cache.
44845
44846 2008-11-02  Bruno Haible  <bruno@clisp.org>
44847
44848         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44849         * gnulib-tool: New option --extract-status.
44850         (func_usage): Document it.
44851         (sed_extract_prog): Recognize it.
44852         (func_get_status): New function.
44853
44854 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44855
44856         * modules/sockets (License): Change from LGPL to LGPLv2+.
44857
44858 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44859
44860         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44861
44862 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44863
44864         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44865         Mention times and sys_times.
44866         * modules/sys_times, modules/sys_times-tests: New modules.
44867         * modules/times, modules/times-tests: Likewise
44868         * m4/sys_times_h.m4: New file.
44869         * lib/sys_times.in.h: Likewise
44870         * lib/times.c: Likewise.
44871         * tests/test-sys_times.c: Likewise.
44872         * tests/test-times.c: Likewise.
44873         * doc/posix-headers/sys_times.texi: Update.
44874         * doc/posix-functions/times.texi: Update.
44875
44876 2008-10-28  Jim Meyering  <meyering@redhat.com>
44877
44878         * modules/tempname (Depends-on): Add lstat.
44879
44880         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44881
44882 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44883
44884         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44885         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44886         using idiom used elsewhere in gnulib.
44887
44888 2008-10-27  Jim Meyering  <meyering@redhat.com>
44889
44890         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44891
44892 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44893
44894         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44895         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44896         programs.
44897         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44898
44899 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44900
44901         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44902
44903 2008-10-27  Bruno Haible  <bruno@clisp.org>
44904
44905         * tests/test-lstat.c: Include <stdio.h>.
44906
44907 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44908
44909         * modules/lstat-tests: New module.
44910         * tests/test-lstat.c: New file.
44911
44912 2008-10-26  Jim Meyering  <meyering@redhat.com>
44913
44914         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44915
44916 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44917             Bruno Haible  <bruno@clisp.org>
44918
44919         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44920         * modules/configmake (Include): Add a note that the include must come
44921         after all system headers.
44922         * lib/javaversion.c: Include configmake.h after all other includes.
44923
44924 2008-10-26  Bruno Haible  <bruno@clisp.org>
44925
44926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44927         HAVE_STRUCT_RANDOM_DATA to 1.
44928         (gl_STDLIB_H): Simplify.
44929
44930 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44931
44932         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44933         substitute HAVE_STRUCT_RANDOM_DATA.
44934         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44935         random_data.
44936         * modules/stdlib (Makefile.am): Substitute
44937         HAVE_STRUCT_RANDOM_DATA.
44938
44939 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44940
44941         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44942         * doc/gnulib-intro.texi (Copyright): Likewise.
44943
44944 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44945
44946         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44947         findings.
44948
44949 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44950             Bruno Haible  <bruno@clisp.org>
44951
44952         * lib/unistd.in.h: Include <winsock2.h>.
44953         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44954         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44955         Provide dummy declarations.
44956         (gethostname): Override.
44957         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44958         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44959         gl_PREREQ_SYS_H_WINSOCK2.
44960         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44961         * doc/posix-functions/gethostname.texi: More details.
44962
44963 2008-10-25  Bruno Haible  <bruno@clisp.org>
44964
44965         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44966         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44967         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44968
44969         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44970         here ...
44971         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44972         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44973         gl_UNISTD_H_DEFAULTS.
44974
44975 2008-10-25  Eric Blake  <ebb9@byu.net>
44976
44977         signbit: avoid spurious compiler failure
44978         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44979         declarations inside function.
44980
44981 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44982             Bruno Haible  <bruno@clisp.org>
44983
44984         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44985         * modules/random_r (Depends-on): Add stdint.
44986
44987 2008-10-24  Bruno Haible  <bruno@clisp.org>
44988
44989         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44990         Eggert.
44991         * modules/strerror (License): Likewise.
44992
44993 2008-10-24  Jim Meyering  <meyering@redhat.com>
44994
44995         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44996         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44997
44998 2008-10-24  Eric Blake  <ebb9@byu.net>
44999
45000         getgroups: fix compilation when getgroups is available
45001         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45002         but with <config.h> override of getgroups disabled.
45003
45004 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45005
45006         * doc/gnulib.texi (Header files): Add note about C++ problems.
45007         Explained by Bruno Haible <bruno@clisp.org>.
45008
45009 2008-10-23  Bruno Haible  <bruno@clisp.org>
45010
45011         Define a dummy SA_NODEFER macro on Interix.
45012         * lib/signal.in.h (SA_NODEFER): Define fallback.
45013         Reported by Aleksey Cheusov <cheusov@tut.by> via
45014         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45015
45016 2008-10-23  Bruno Haible  <bruno@clisp.org>
45017
45018         * modules/freadahead (License): Change to LGPLv2+.
45019         Suggested by Simon Josefsson.
45020
45021 2008-10-23  Jim Meyering  <meyering@redhat.com>
45022
45023         random_r: new module
45024         * modules/random_r: New file.
45025         * m4/random_r.m4: New file.
45026         * lib/random_r.c: New file, from glibc.
45027         * modules/random_r-tests: New file.
45028         * tests/test-random_r.c: New file.
45029         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45030          Declare.
45031         (RAND_MAX): Define.
45032         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45033         * modules/stdlib: Substitute them, too.
45034         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45035         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45036         * doc/glibc-functions/random_r.texi: Likewise.
45037         * doc/glibc-functions/setstate_r.texi: Likewise.
45038         * doc/glibc-functions/srandom_r.texi: Likewise.
45039         * config/srclist.txt: Mention it.
45040
45041 2008-10-23  David Lutterkort  <lutter@redhat.com>
45042
45043         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45044         link requirement
45045
45046 2008-10-23  Jim Meyering  <meyering@redhat.com>
45047
45048         selinux-h: mark parameters of stub functions as intentionally unused
45049         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45050         * lib/se-context.in.h: Likewise.
45051
45052 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45053
45054         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45055
45056 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45057
45058         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45059
45060 2008-10-22  Eric Blake  <ebb9@byu.net>
45061
45062         glthread/thread: avoid compiler warning
45063         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45064         Add unreachable abort to silence compiler.
45065
45066 2008-10-22  Eric Blake  <ebb9@byu.net>
45067
45068         netdb: also supply struct addrinfo for cygwin 1.5.x
45069         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45070         older cygwin.
45071         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45072         cygwin.
45073         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45074
45075 2008-10-22  Bruno Haible  <bruno@clisp.org>
45076
45077         * users.txt: Update entry about pspp.
45078
45079 2008-10-21  Bruno Haible  <bruno@clisp.org>
45080
45081         Simplification.
45082         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45083         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45084
45085         Simplification.
45086         * lib/ioctl.c (ioctl): Don't undefine.
45087         * lib/socket.c (socket): Don't undefine.
45088
45089         Remove unused module indicator macros.
45090         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45091         GNULIB_$1 as a C macro.
45092
45093         * doc/posix-functions/close.texi: Undo last change.
45094         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45095         Windows platforms.
45096
45097 2008-10-21  Bruno Haible  <bruno@clisp.org>
45098
45099         Add gethostname() declaration to <unistd.h>.
45100         * lib/unistd.in.h (gethostname): New declaration.
45101         * lib/gethostname.c: Include <unistd.h>.
45102         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45103         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45105         and HAVE_GETHOSTNAME.
45106         * modules/gethostname (Depends-on): Add unistd.
45107         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45108         (Include): Specify <unistd.h>.
45109         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45110         HAVE_GETHOSTNAME.
45111         * tests/test-gethostname.c: Include <unistd.h> first.
45112
45113 2008-10-21  Bruno Haible  <bruno@clisp.org>
45114
45115         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45116         * modules/select-tests (Depends-on): Likewise.
45117         Reported by Simon Josefsson.
45118
45119 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45120
45121         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45122         * lib/accept.c: New file, based on winsock.c.
45123         * lib/bind.c: New file, based on winsock.c.
45124         * lib/connect.c: New file, based on winsock.c.
45125         * lib/getpeername.c: New file, based on winsock.c.
45126         * lib/getsockname.c: New file, based on winsock.c.
45127         * lib/getsockopt.c: New file, based on winsock.c.
45128         * lib/ioctl.c: New file, based on winsock.c.
45129         * lib/listen.c: New file, based on winsock.c.
45130         * lib/recv.c: New file, based on winsock.c.
45131         * lib/recvfrom.c: New file, based on winsock.c.
45132         * lib/send.c: New file, based on winsock.c.
45133         * lib/sendto.c: New file, based on winsock.c.
45134         * lib/setsockopt.c: New file, based on winsock.c.
45135         * lib/shutdown.c: New file, based on winsock.c.
45136         * lib/socket.c: New file, based on winsock.c.
45137         * lib/w32sock.h: New file, based on winsock.c.
45138         * lib/winsock.c: Remove file.
45139         * modules/accept: Likewise.
45140         * modules/bind: Likewise.
45141         * modules/connect: Likewise.
45142         * modules/getpeername: Likewise.
45143         * modules/getsockname: Likewise.
45144         * modules/getsockopt: Likewise.
45145         * modules/ioctl: Likewise.
45146         * modules/listen: Likewise.
45147         * modules/recv: Likewise.
45148         * modules/recvfrom: Likewise.
45149         * modules/send: Likewise.
45150         * modules/sendto: Likewise.
45151         * modules/setsockopt: Likewise.
45152         * modules/shutdown: Likewise.
45153         * modules/socket: Use socket.c instead of winsock.c.
45154         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45155         * doc/posix-functions/accept.texi: Doc fix.
45156         * doc/posix-functions/bind.texi: Doc fix.
45157         * doc/posix-functions/close.texi: Doc fix.
45158         * doc/posix-functions/connect.texi: Doc fix.
45159         * doc/posix-functions/getpeername.texi: Doc fix.
45160         * doc/posix-functions/getsockname.texi: Doc fix.
45161         * doc/posix-functions/getsockopt.texi: Doc fix.
45162         * doc/posix-functions/ioctl.texi: Doc fix.
45163         * doc/posix-functions/listen.texi: Doc fix.
45164         * doc/posix-functions/recv.texi: Doc fix.
45165         * doc/posix-functions/recvfrom.texi: Doc fix.
45166         * doc/posix-functions/send.texi: Doc fix.
45167         * doc/posix-functions/sendto.texi: Doc fix.
45168         * doc/posix-functions/setsockopt.texi: Doc fix.
45169         * doc/posix-functions/shutdown.texi: Doc fix.
45170         * doc/posix-functions/socket.texi: Doc fix.
45171
45172 2008-10-20  Bruno Haible  <bruno@clisp.org>
45173
45174         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45175         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45176         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45177         as an alias for SIGABRT.
45178         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45179         (sigaction): Map it to SIGABRT.
45180         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45181
45182 2008-10-20  Bruno Haible  <bruno@clisp.org>
45183
45184         * lib/fts.c: Don't include lstat.h.
45185         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45186
45187         Move the lstat() declaration to <sys/stat.h>.
45188         * lib/lstat.h: Remove file.
45189         * lib/sys_stat.in.h: Add special invocation convention.
45190         (lstat): New declaration.
45191         * lib/lstat.c (orig_lstat): New function.
45192         (rpl_lstat): Use orig_lstat instead of lstat.
45193         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45194         AC_C_INLINE. Set REPLACE_LSTAT.
45195         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45196         and REPLACE_LSTAT.
45197         * modules/lstat (Files): Remove lib/lstat.h.
45198         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45199         (Include): Specify <sys/stat.h> instead of lstat.h.
45200         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45201         REPLACE_LSTAT.
45202         * NEWS: Mention the change.
45203
45204 2008-10-20  Bruno Haible  <bruno@clisp.org>
45205
45206         * modules/posix_spawn-tests: New file.
45207         * tests/test-posix_spawn3.c: New file.
45208
45209 2008-10-20  Bruno Haible  <bruno@clisp.org>
45210
45211         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45212         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45213         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45214         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45215         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45216
45217 2008-10-20  Bruno Haible  <bruno@clisp.org>
45218
45219         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45220         of posix_spawn on AIX 5.3.
45221
45222 2008-10-20  Bruno Haible  <bruno@clisp.org>
45223
45224         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45225
45226 2008-10-20  Bruno Haible  <bruno@clisp.org>
45227
45228         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45229         of AC_LANG_PROGRAM.
45230
45231 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45232
45233         * lib/netdb.in.h: Don't define GNU specific constants until they
45234         are supported or needed.  Reported by Bruno Haible
45235         <bruno@clisp.org>.
45236
45237 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45238
45239         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45240
45241 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45242
45243         * lib/getaddrinfo.h: Remove file.
45244         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45245         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45246         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45247         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45248         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45249         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45250         * tests/test-getaddrinfo.c: Likewise.
45251         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45252         * NEWS: Mention change.
45253
45254 2008-10-19  Bruno Haible  <bruno@clisp.org>
45255
45256         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45257
45258 2008-10-19  Bruno Haible  <bruno@clisp.org>
45259
45260         * lib/wait-process.c: Include simply <sys/wait.h>.
45261         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45262         WIFSTOPPED): Remove fallback definitions.
45263         * modules/wait-process (Depends-on): Add sys_wait.
45264
45265         New module 'sys_wait'.
45266         * modules/sys_wait: New file.
45267         * lib/sys_wait.in.h: New file, partially copied from
45268         lib/wait-process.c.
45269         * m4/sys_wait_h.m4: New file.
45270         * doc/posix-headers/sys_wait.texi: Mention the new module.
45271
45272 2008-10-19  Bruno Haible  <bruno@clisp.org>
45273
45274         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45275
45276 2008-10-19  Bruno Haible  <bruno@clisp.org>
45277
45278         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45279         * lib/wait-process.c (WAIT_T): Remove type.
45280         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45281         (wait_subprocess): Update.
45282
45283 2008-10-19  Bruno Haible  <bruno@clisp.org>
45284
45285         New module 'atoll'.
45286         * modules/atoll: New file.
45287         * lib/stdlib.in.h (atoll): New declaration.
45288         * lib/atoll.c: New file, from glibc with modifications.
45289         * m4/atoll.m4: New file.
45290         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45291         HAVE_ATOLL.
45292         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45293         * doc/posix-functions/atoll.texi: Mention the new module.
45294
45295 2008-10-19  Bruno Haible  <bruno@clisp.org>
45296
45297         Add strtoull() declaration to <stdlib.h>.
45298         * lib/stdlib.in.h (strtoull): New declaration.
45299         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45300         Set HAVE_STRTOULL.
45301         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45302         HAVE_STRTOULL.
45303         * modules/strtoull (Depends-on): Add stdlib.
45304         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45305         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45306         HAVE_STRTOULL.
45307
45308 2008-10-19  Bruno Haible  <bruno@clisp.org>
45309
45310         Add strtoll() declaration to <stdlib.h>.
45311         * lib/stdlib.in.h (strtoll): New declaration.
45312         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45313         Set HAVE_STRTOLL.
45314         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45315         HAVE_STRTOLL.
45316         * modules/strtoll (Depends-on): Add stdlib.
45317         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45318         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45319
45320 2008-10-19  Bruno Haible  <bruno@clisp.org>
45321
45322         * modules/bcopy (Depends-on): Add strings.
45323         (Include): Specify <strings.h>.
45324
45325 2008-10-19  Bruno Haible  <bruno@clisp.org>
45326
45327         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45328
45329 2008-10-19  Bruno Haible  <bruno@clisp.org>
45330
45331         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45332         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45333         mingw.
45334
45335 2008-10-19  Bruno Haible  <bruno@clisp.org>
45336
45337         * lib/atanl.c: Don't include isnanl.h.
45338         * lib/cosl.c: Likewise.
45339         * lib/ldexpl.c: Likewise.
45340         * lib/logl.c: Likewise.
45341         * lib/sinl.c: Likewise.
45342         * lib/sqrtl.c: Likewise.
45343         * lib/tanl.c: Likewise.
45344
45345         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45346         * lib/isnanf.h: Remove file.
45347         * lib/isnand.h: Remove file.
45348         * lib/isnanl.h: Remove file.
45349         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45350         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45351         macros.
45352         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45353         HAVE_ISNANF, don't define it as a C macro.
45354         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45355         HAVE_ISNAND, don't define it as a C macro.
45356         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45357         HAVE_ISNANL, don't define it as a C macro.
45358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45359         HAVE_ISNAN[FDL].
45360         * modules/isnanf (Files): Remove lib/isnanf.h.
45361         (Depends-on): Add math.
45362         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45363         (Include): Specify <math.h> instead of isnanf.h.
45364         * modules/isnand (Files): Remove lib/isnand.h.
45365         (Depends-on): Add math.
45366         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45367         (Include): Specify <math.h> instead of isnand.h.
45368         * modules/isnanl (Files): Remove lib/isnanl.h.
45369         (Depends-on): Add math.
45370         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45371         (Include): Specify <math.h> instead of isnanl.h.
45372         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45373         HAVE_ISNAN[FDL].
45374         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45375         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45376         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45377         * NEWS: Mention the change.
45378
45379 2008-10-18  Bruno Haible  <bruno@clisp.org>
45380
45381         Add getusershell(), setusershell(), endusershell() declarations to
45382         <unistd.h>.
45383         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45384         declarations.
45385         * lib/getusershell.c: Include unistd.h.
45386         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45387         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45388         HAVE_GETUSERSHELL.
45389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45390         and HAVE_GETUSERSHELL.
45391         * modules/getusershell (Depends-on): Add unistd, extensions.
45392         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45393         (Include): Specify <unistd.h>.
45394         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45395         HAVE_GETUSERSHELL.
45396
45397 2008-10-18  Bruno Haible  <bruno@clisp.org>
45398
45399         Add a getloadavg() declaration to <stdlib.h>.
45400         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45401         getloadavg declaration.
45402         (getloadavg): New declaration.
45403         * lib/getloadavg.c: Include <stdlib.h> first.
45404         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45405         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45406         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45407         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45408         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45409         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45410         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45411         (Include): Specify <stdlib.h>.
45412         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45413         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45414
45415 2008-10-18  Bruno Haible  <bruno@clisp.org>
45416
45417         * lib/dirchownmod.c: Don't include lchmod.h.
45418
45419         Move the lchmod() declaration to <sys/stat.h>.
45420         * lib/lchmod.h: Remove file.
45421         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45422         (lchmod): New declaration, moved here from lib/lchown.h.
45423         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45424         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45425         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45426         and HAVE_LCHMOD.
45427         * modules/lchmod (Files): Remove lib/lchmod.h.
45428         (Depends-on): Add sys_stat, extensions.
45429         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45430         (Include): Specify <sys/stat.h> instead of lchmod.h.
45431         * modules/sys_stat (Depends-on): Add link-warning.
45432         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45433         definition of GL_LINK_WARNING.
45434         * NEWS: Mention the change.
45435
45436 2008-10-18  Bruno Haible  <bruno@clisp.org>
45437
45438         * lib/fchdir.c: Don't include dirfd.h.
45439         * lib/fts.c: Likewise.
45440         * lib/getcwd.c: Likewise.
45441         * lib/glob.c: Likewise.
45442
45443         Move the dirfd() declaration to <dirent.h>.
45444         * lib/dirfd.h: Remove file.
45445         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45446         (dirfd): New declaration.
45447         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45448         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45449         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45450         HAVE_DECL_DIRFD.
45451         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45452         HAVE_DECL_DIRFD.
45453         * modules/dirfd (Files): Remove lib/dirfd.h.
45454         (Depends-on): Add dirent, extensions.
45455         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45456         (Include): Specify <dirent.h> instead of dirfd.h.
45457         * modules/dirent (Depends-on): Add link-warning.
45458         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45459         definition of GL_LINK_WARNING.
45460         * NEWS: Mention the change.
45461
45462 2008-10-18  Bruno Haible  <bruno@clisp.org>
45463
45464         Move the euidaccess() declaration to <unistd.h>.
45465         * lib/euidaccess.h: Remove file.
45466         * lib/unistd.in.h (euidaccess): New declaration.
45467         * lib/euidaccess.c: Don't include euidaccess.h.
45468         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45469         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45471         and HAVE_EUIDACCESS.
45472         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45473         (Depends-on): Add unistd.
45474         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45475         (Include): Specify <unistd.h> instead of euidaccess.h.
45476         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45477         HAVE_EUIDACCESS.
45478         * NEWS: Mention the change.
45479
45480 2008-10-18  Bruno Haible  <bruno@clisp.org>
45481
45482         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45483
45484         Move the getdomainname() declaration to <unistd.h>.
45485         * lib/getdomainname.h: Remove file.
45486         * lib/unistd.in.h (getdomainname): New declaration.
45487         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45488         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45489         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45490         HAVE_GETDOMAINNAME.
45491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45492         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45493         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45494         (Depends-on): Add unistd, extensions.
45495         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45496         (Includes): Specify <unistd.h> instead of getdomainname.h.
45497         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45498         HAVE_GETDOMAINNAME.
45499         * NEWS: Mention the change.
45500
45501 2008-10-18  Bruno Haible  <bruno@clisp.org>
45502
45503         * modules/dirent: New file.
45504         * m4/dirent_h.m4: New file.
45505         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45506         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45507         * modules/fchdir (Files): Remove lib/dirent.in.h.
45508         (Depends-on): Add dirent.
45509         (Makefile.am): Move rules to modules/dirent.
45510         * doc/posix-headers/dirent.texi: Mention the new module.
45511
45512 2008-10-18  Bruno Haible  <bruno@clisp.org>
45513
45514         Avoid -Wunused-parameter warnings in public gnulib header files.
45515         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45516         macro.
45517         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45518
45519 2008-10-18  Bruno Haible  <bruno@clisp.org>
45520
45521         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45522         * doc/glibc-functions/error.texi: Mention the module 'error'.
45523         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45524         * doc/glibc-functions/getdomainname.texi: Mention the module
45525         'getdomainname'.
45526         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45527         * doc/glibc-functions/getpagesize.texi: Mention the module
45528         'getpagesize'.
45529         * doc/glibc-functions/getusershell.texi: Mention the module
45530         'getusershell'.
45531         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45532         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45533         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45534         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45535         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45536         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45537         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45538         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45539         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45540         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45541         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45542         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45543         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45544         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45545
45546 2008-10-17  Bruno Haible  <bruno@clisp.org>
45547
45548         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45549         HP-UX and IRIX, use -0.0L.
45550         * tests/test-ceill.c (minus_zero): Likewise.
45551         * tests/test-floorl.c (minus_zero): Likewise.
45552         * tests/test-frexpl.c (minus_zero): Likewise.
45553         * tests/test-isnan.c (minus_zerol): Likewise.
45554         * tests/test-isnanl.h (minus_zero): Likewise.
45555         * tests/test-ldexpl.c (minus_zero): Likewise.
45556         * tests/test-roundl.c (minus_zero): Likewise.
45557         * tests/test-signbit.c (minus_zerol): Likewise.
45558         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45559         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45560         * tests/test-truncl.c (minus_zero): Likewise.
45561         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45562         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45563         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45564         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45565
45566 2008-10-17  Bruno Haible  <bruno@clisp.org>
45567
45568         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45569         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45570         that it gets activated only for gcc >= 3.0.
45571         * lib/dirent.in.h: Likewise.
45572         * lib/errno.in.h: Likewise.
45573         * lib/fcntl.in.h: Likewise.
45574         * lib/float.in.h: Likewise.
45575         * lib/iconv.in.h: Likewise.
45576         * lib/inttypes.in.h: Likewise.
45577         * lib/locale.in.h: Likewise.
45578         * lib/math.in.h: Likewise.
45579         * lib/netdb.in.h: Likewise.
45580         * lib/netinet_in.in.h: Likewise.
45581         * lib/search.in.h: Likewise.
45582         * lib/signal.in.h: Likewise.
45583         * lib/spawn.in.h: Likewise.
45584         * lib/stdarg.in.h: Likewise.
45585         * lib/stdint.in.h: Likewise.
45586         * lib/stdio.in.h: Likewise.
45587         * lib/stdlib.in.h: Likewise.
45588         * lib/string.in.h: Likewise.
45589         * lib/strings.in.h: Likewise.
45590         * lib/sys_file.in.h: Likewise.
45591         * lib/sys_ioctl.in.h: Likewise.
45592         * lib/sys_select.in.h: Likewise.
45593         * lib/sys_socket.in.h: Likewise.
45594         * lib/sys_stat.in.h: Likewise.
45595         * lib/sys_time.in.h: Likewise.
45596         * lib/sysexits.in.h: Likewise.
45597         * lib/time.in.h: Likewise.
45598         * lib/unistd.in.h: Likewise.
45599         * lib/wchar.in.h: Likewise.
45600         * lib/wctype.in.h: Likewise.
45601         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45602
45603 2008-10-17  Jim Meyering  <meyering@redhat.com>
45604
45605         ignore-value: don't depend on inline module
45606         * modules/ignore-value (Depends-on): Remove 'inline'.
45607         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45608         Suggestion from Bruno Haible.
45609
45610 2008-10-17  Bruno Haible  <bruno@clisp.org>
45611
45612         New implementation of condition variables for Win32.
45613         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45614         (gl_linked_waitqueue_t): New type.
45615         (gl_cond_t): Use it.
45616         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45617         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45618         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45619         (glthread_cond_init_func, glthread_cond_wait_func,
45620         glthread_cond_timedwait_func, glthread_cond_signal_func,
45621         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45622         Reimplemented on the basis of gl_linked_waitqueue_t.
45623         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45624         gl_waitqueue_t.
45625         (gl_rwlock_t): Update.
45626         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45627
45628 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45629
45630         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45631         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45632
45633 2008-10-17  Jim Meyering  <meyering@redhat.com>
45634
45635         ignore-value: new module
45636         * modules/ignore-value: New file.
45637         * lib/ignore-value.h: New file.
45638         * MODULES.html.sh (Compiler warning management): New section,
45639         just for this module.  More to come.
45640
45641 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45642
45643         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45644         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45645         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45646
45647 2008-10-16  Jim Meyering  <meyering@redhat.com>
45648
45649         openat-die.c: avoid 'no previous prototype' warning
45650         * lib/openat-die.c: Include "openat.h".
45651         Reported by Reuben Thomas <rrt@sc3d.org>.
45652
45653 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45654
45655         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45656         * lib/netdb.in.h: Fix typo.
45657         Reported by Bruno Haible  <bruno@clisp.org>
45658
45659         * lib/netdb.in.h: Include sys/socket.h for platforms without
45660         netdb.h, to get structures like hostent on MinGW.
45661         * modules/netdb (Depends-on): Add sys_socket.
45662
45663 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45664
45665         * modules/netdb, modules/netdb-tests: New file.
45666         * m4/netdb_h.m4: New file.
45667         * lib/netdb.in.h: Add, currently just an empty file pending
45668         definitions.
45669         * tests/test-netdb.c: New file.
45670         * doc/posix-headers/netdb.texi: Mention that we replace it if
45671         needed.
45672         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45673         netdb.
45674
45675 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45676
45677         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45678         with code.
45679
45680 2008-10-13  Bruno Haible  <bruno@clisp.org>
45681
45682         * lib/glthread/cond.c (glthread_cond_wait_func,
45683         glthread_cond_timedwait_func): Add a comment.
45684
45685 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45686
45687         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45688         * tests/test-select.c: Likewise,
45689
45690 2008-10-13  Bruno Haible  <bruno@clisp.org>
45691
45692         * lib/glthread/cond.c (glthread_cond_wait_func,
45693         glthread_cond_timedwait_func): Fix variable name.
45694         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45695
45696 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45697
45698         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45699         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45700         struct sockaddr.sa_len.
45701         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45702
45703 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45704
45705         * build-aux/pmccabe2html: Add css and css_url parameters.
45706
45707 2008-10-12  Bruno Haible  <bruno@clisp.org>
45708
45709         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45710         calling aclx_get.
45711         Reported by Rainer Tammer <tammer@tammer.net>.
45712
45713 2008-10-12  Bruno Haible  <bruno@clisp.org>
45714
45715         Use msvcrt aware primitives for creation/termination of Win32 threads.
45716         * lib/glthread/thread.c: Include <process.h>.
45717         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45718         (wrapper_func): Update signature.
45719         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45720
45721 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45722             Bruno Haible  <bruno@clisp.org>
45723
45724         Provide a Win32 implementation of the 'cond' module.
45725         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45726         * lib/glthread/cond.c (glthread_cond_init_func,
45727         glthread_cond_wait_func, glthread_cond_timedwait_func,
45728         glthread_cond_signal_func, glthread_cond_broadcast_func,
45729         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45730         * modules/cond (Dependencies): Add gettimeofday.
45731
45732 2008-10-11  Bruno Haible  <bruno@clisp.org>
45733
45734         Make sleep work on older versions of mingw.
45735         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45736         only whether it exists.
45737         * doc/posix-functions/sleep.texi: Mention the problem with older
45738         versions of mingw.
45739
45740 2008-10-11  Bruno Haible  <bruno@clisp.org>
45741
45742         New module 'shutdown'.
45743         * modules/shutdown: New file.
45744         * lib/sys_socket.in.h (shutdown): New declaration.
45745         * lib/winsock.c (shutdown): New function.
45746         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45747         GNULIB_SHUTDOWN.
45748         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45749         * doc/posix-functions/shutdown.texi: Document the new module.
45750
45751 2008-10-11  Jim Meyering  <meyering@redhat.com>
45752
45753         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45754
45755 2008-10-11  Bruno Haible  <bruno@clisp.org>
45756
45757         New module 'fclose'.
45758         * modules/fclose: New file.
45759         * lib/stdio.in.h (fclose): New declaration.
45760         * lib/fclose.c: New file.
45761         * m4/fclose.m4: New file.
45762         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45763         REPLACE_FCLOSE.
45764         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45765         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45766         REPLACE_FCLOSE.
45767         * modules/close (Depends-on): fclose.
45768         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45769
45770 2008-10-11  Bruno Haible  <bruno@clisp.org>
45771
45772         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45773         set errno and don't call _close.
45774
45775 2008-10-10  Bruno Haible  <bruno@clisp.org>
45776
45777         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45778         ACL, not afterwards. Fixes test failure on Cygwin.
45779
45780 2008-10-09  Ben Pfaff  <blp@gnu.org>
45781
45782         * build-aux/announce-gen: Fix gnulib version related part of usage
45783         message.  Die with a useful error message if no tarballs are
45784         found.
45785
45786 2008-10-10  Jim Meyering  <meyering@redhat.com>
45787
45788         bootstrap: use git's --depth=N option only if it's supported
45789         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45790         recognize the --depth option.  Reported by Pádraig Brady.
45791
45792 2008-10-09  Bruno Haible  <bruno@clisp.org>
45793
45794         New module 'ioctl'.
45795         * modules/ioctl: New file.
45796         * lib/sys_socket.in.h (ioctl): Remove declaration.
45797         * lib/winsock.c: Include <sys/ioctl.h>.
45798         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45799         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45800         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45801         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45802         * doc/posix-functions/ioctl.texi: Mention the new module.
45803
45804 2008-10-09  Bruno Haible  <bruno@clisp.org>
45805
45806         New module 'sys_ioctl'.
45807         * lib/sys_ioctl.in.h: New file.
45808         * m4/sys_ioctl_h.m4: New file.
45809         * modules/sys_ioctl: New file.
45810         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45811
45812 2008-10-09  Bruno Haible  <bruno@clisp.org>
45813
45814         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45815         * lib/winsock.c: Include <stdarg.h>.
45816         (rpl_ioctl): Change to second argument 'int' and then varargs.
45817
45818 2008-10-09  Bruno Haible  <bruno@clisp.org>
45819
45820         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45821         when the sys_socket module is present and the system has <winsock2.h>.
45822
45823 2008-10-09  Bruno Haible  <bruno@clisp.org>
45824
45825         * doc/posix-functions/close.texi: Mention module 'close' instead of
45826         module 'sys_socket'.
45827
45828 2008-10-09  Bruno Haible  <bruno@clisp.org>
45829
45830         * doc/glibc-headers/sys_ioctl.texi: New file.
45831         * doc/gnulib.texi: Include it.
45832
45833 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45834             Bruno Haible  <bruno@clisp.org>
45835
45836         Combine the two replacements of 'close'.
45837         * lib/sys_socket.in.h (close): Define to a reminder to include
45838         <unistd.h>.
45839         (_gl_close_fd_maybe_socket): New declaration.
45840         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45841         * lib/winsock.c (close): Remove undefinition.
45842         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45843         needed for the gnulib module 'close'.
45844         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45845         define to an error symbol or to a warning, if suitable.
45846         * lib/close.c: Include <sys/socket.h>.
45847         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45848         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45849         UNISTD_H_HAVE_WINSOCK2_H.
45850         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45852         UNISTD_H_HAVE_WINSOCK2_H.
45853         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45854         (configure.ac): Set a module indicator.
45855         (Makefile.am): Substitute GNULIB_CLOSE.
45856         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45857         * modules/poll-tests (Depends-on): Add close.
45858         * modules/select-tests (Depends-on): Likewise.
45859
45860 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45861             Bruno Haible  <bruno@clisp.org>
45862
45863         New module 'close'.
45864         * modules/close: New file.
45865         * lib/unistd.in.h (close): Move declaration out of the
45866         FCHDIR_REPLACEMENT scope.
45867         (_gl_unregister_fd): New declaration.
45868         * lib/close.c: New file.
45869         * lib/fchdir.c (rpl_close): Remove function.
45870         * m4/close.m4: New file.
45871         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45872         close.
45873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45874         REPLACE_CLOSE.
45875         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45876         REPLACE_CLOSE.
45877         * modules/fchdir (Depends-on): Add close.
45878
45879 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45880             Bruno Haible  <bruno@clisp.org>
45881
45882         * lib/fcntl.in.h (open): Simplify conditionals.
45883         (_gl_register_fd): New declaration.
45884         * lib/fchdir.c (rpl_open): Remove function.
45885         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45886         also.
45887         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45888         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45889         open.
45890
45891 2008-10-09  Jim Meyering  <meyering@redhat.com>
45892
45893         GNUmakefile: use the more name-space-friendly "_version"
45894         * top/GNUmakefile (_dummy): Update.
45895         (_version): Rename from "version".
45896
45897 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45898             Bruno Haible  <bruno@clisp.org>
45899
45900         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45901         rpl_close.
45902         (_gl_register_fd): New function, extracted from rpl_open.
45903         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45904         (rpl_open, rpl_opendir): Use _gl_register_fd.
45905
45906 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45907
45908         Fix organization of 'open' replacement.
45909         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45910         (gl_FUNC_OPEN): Use it.
45911         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45912
45913 2008-10-08  Bruno Haible  <bruno@clisp.org>
45914
45915         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45916
45917 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45918
45919         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45920         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45921         listen).
45922
45923 2008-10-08  Eric Blake  <ebb9@byu.net>
45924
45925         GNUmakefile: add 'make version' target
45926         * top/GNUmakefile (_curr-ver): Split version update rules...
45927         (version): ...into a target.
45928
45929 2008-10-07  Bruno Haible  <bruno@clisp.org>
45930
45931         Use a more portable replacement expression for -0.0L.
45932         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45933         instead of -0.0L. Fix m4 quotation.
45934
45935         * tests/test-signbit.c: Include <float.h>.
45936         (minus_zero): New variable.
45937         (test_signbitl): Use minus_zero instead of -zero.
45938         * modules/signbit-tests (Depends-on): Add float.
45939
45940         * tests/test-ceill.c: Include <float.h>.
45941         (zero): Remove variable.
45942         (minus_zero): New variable.
45943         (main): Use minus_zero instead of -zero.
45944         * modules/ceill-tests (Depends-on): Add float.
45945
45946         * tests/test-floorl.c: Include <float.h>.
45947         (zero): Remove variable.
45948         (minus_zero): New variable.
45949         (main): Use minus_zero instead of -zero.
45950         * modules/floorl-tests (Depends-on): Add float.
45951
45952         * tests/test-roundl.c: Include <float.h>.
45953         (zero): Remove variable.
45954         (minus_zero): New variable.
45955         (main): Use minus_zero instead of -zero.
45956         * modules/roundl-tests (Depends-on): Add float.
45957
45958         * tests/test-truncl.c: Include <float.h>.
45959         (zero): Remove variable.
45960         (minus_zero): New variable.
45961         (main): Use minus_zero instead of -zero.
45962         * modules/truncl-tests (Depends-on): Add float.
45963
45964         * tests/test-frexpl.c (zero): Remove variable.
45965         (minus_zero): New variable.
45966         (main): Use minus_zero instead of -zero.
45967         * modules/frexpl-tests (Depends-on): Add float.
45968
45969         * tests/test-isnan.c (zerol): Remove variable.
45970         (minus_zerol): New variable.
45971         (test_long_double): Use minus_zerol instead of -zerol.
45972         * modules/isnan-tests (Depends-on): Add float.
45973
45974         * tests/test-isnanl.h (zero): Remove variable.
45975         (minus_zero): New variable.
45976         (main): Use minus_zero instead of -zero.
45977         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45978         * modules/isnanl-tests (Depends-on): Add float.
45979
45980         * tests/test-ldexpl.c (zero): Remove variable.
45981         (minus_zero): New variable.
45982         (main): Use minus_zero instead of -zero.
45983         * modules/ldexpl-tests (Depends-on): Add float.
45984
45985         * tests/test-snprintf-posix.h (zerol): Remove variable.
45986         (minus_zerol): New variable.
45987         (test_function): Use minus_zerol instead of -zerol.
45988         * modules/snprintf-posix-tests (Depends-on): Add float.
45989         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45990
45991         * tests/test-sprintf-posix.h (zerol): Remove variable.
45992         (minus_zerol): New variable.
45993         (test_function): Use minus_zerol instead of -zerol.
45994         * modules/sprintf-posix-tests (Depends-on): Add float.
45995         * modules/vsprintf-posix-tests (Depends-on): Add float.
45996
45997         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45998         (minus_zerol): New variable.
45999         (test_function): Use minus_zerol instead of -zerol.
46000         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46001
46002         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46003         (minus_zerol): New variable.
46004         (test_function): Use minus_zerol instead of -zerol.
46005         * modules/vasprintf-posix-tests (Depends-on): Add float.
46006
46007 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46008
46009         * MODULES.html.sh (Support for building documentation): Mention
46010         pmccabe2html.  Sort entries.
46011
46012         Add pmccabe2html module, from gnupdf.
46013         * build-aux/pmccabe.css: New file.
46014         * build-aux/pmccabe2html: New file.
46015         * m4/pmccabe2html.m4: New file.
46016         * modules/pmccabe2html: New file.
46017
46018 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46019
46020         flock: new module
46021         * MODULES.html.sh: Add to list of modules.
46022         * lib/flock.c: flock implementation for Windows and Unix systems
46023         which have fcntl.
46024         * doc/glibc-functions/flock.texi: Update documentation.
46025         * lib/sys_file.in.h: <sys/file.h> header file.
46026         * m4/flock.m4: M4 macros.
46027         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46028         * modules/flock: flock module.
46029         * modules/flock-tests: flock tests module.
46030         * modules/sys_file: sys/file.h module.
46031         * tests/test-flock.c: test suite for flock.
46032
46033 2008-10-06  Jim Meyering  <meyering@redhat.com>
46034
46035         bootstrap: check for LT_INIT more portably still ;-)
46036         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46037         Spotted by Bruno Haible.
46038
46039 2008-10-06  Eric Blake  <ebb9@byu.net>
46040
46041         test-signbit: avoid tripping Irix cc bug on -0.0L
46042         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46043         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46044         entire testsuite consistent and avoids an Irix 6.2 bug.
46045
46046 2008-10-05  Bruno Haible  <bruno@clisp.org>
46047             Jim Meyering  <jim@meyering.net>
46048
46049         Add an option for ignoring EPIPE during close_stdout.
46050         * lib/closeout.h: Include <stdbool.h>.
46051         (close_stdout_set_ignore_EPIPE): New declaration.
46052         * lib/closeout.c: Include <stdbool.h>.
46053         (ignore_EPIPE): New variable.
46054         (close_stdout_set_ignore_EPIPE): New function.
46055         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46056         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46057         failure.
46058         * modules/closeout (Depends-on): Add stdbool.
46059
46060 2008-10-05  Bruno Haible  <bruno@clisp.org>
46061
46062         * modules/accept: New file.
46063         * modules/bind: New file.
46064         * modules/connect: New file.
46065         * modules/getpeername: New file.
46066         * modules/getsockname: New file.
46067         * modules/getsockopt: New file.
46068         * modules/listen: New file.
46069         * modules/recv: New file.
46070         * modules/recvfrom: New file.
46071         * modules/send: New file.
46072         * modules/sendto: New file.
46073         * modules/setsockopt: New file.
46074         * modules/socket: New file.
46075         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46076         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46077         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46078         the particular module is requested. Add a link warning when the
46079         particular module is not requested.
46080         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46081         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46082         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46083         the particular module is requested.
46084         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46085         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46086         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46087         * modules/sys_socket (Depends-on): Add link-warning.
46088         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46089         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46090         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46091         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46092         GL_LINK_WARNING.
46093         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46094         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46095         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46096         * doc/posix-functions/getpeername.texi: Mention the new module
46097         'getpeername'.
46098         * doc/posix-functions/getsockname.texi: Mention the new module
46099         'getsockname'.
46100         * doc/posix-functions/getsockopt.texi: Mention the new module
46101         'getsockopt'.
46102         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46103         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46104         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46105         * doc/posix-functions/send.texi: Mention the new module 'send'.
46106         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46107         * doc/posix-functions/setsockopt.texi: Mention the new module
46108         'setsockopt'.
46109         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46110         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46111         listen, connect, accept.
46112         * modules/select-tests (Depends-on): Likewise.
46113
46114 2008-10-05  Bruno Haible  <bruno@clisp.org>
46115
46116         * lib/winsock.c (strerror): Remove unused #undef.
46117         (rpl_close): Remove unused local variable.
46118
46119         * modules/sys_socket (Depends-on); Add errno.
46120
46121 2008-10-05  Bruno Haible  <bruno@clisp.org>
46122
46123         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46124         (select): Add a link warning when the 'select' module is not used.
46125         * modules/sys_select (Depends-on): Add link-warning.
46126         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46127         Suggested by Paolo Bonzini.
46128
46129 2008-10-05  Jim Meyering  <meyering@redhat.com>
46130
46131         bootstrap: check for LT_INIT more portably
46132         * build-aux/bootstrap: Avoid using grep -E, since it's not
46133         portable enough.  Suggestion from Bruno Haible.
46134
46135 2008-10-05  Bruno Haible  <bruno@clisp.org>
46136
46137         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46138         as being fixed by gnulib.
46139
46140 2008-10-05  Bruno Haible  <bruno@clisp.org>
46141
46142         * modules/select-tests: New file, mostly copied from
46143         modules/sys_select-tests.
46144         * tests/test-select.c: New file, mostly copied from
46145         tests/test-sys_select.c.
46146         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46147         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46148         (Makefile.am): Remove test_sys_select_LDADD.
46149
46150         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46151         to an undefined symbol, for an error message.
46152         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46153         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46154         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46155         winsock-select.c here.
46156         * modules/sys_select (Files): Remove lib/winsock-select.c.
46157         (Depends-on): Remove alloca.
46158         (Makefile.am): Substitute GNULIB_SELECT.
46159         * modules/select: New file.
46160         * doc/posix-functions/select.texi: Update.
46161
46162 2008-10-05  Bruno Haible  <bruno@clisp.org>
46163
46164         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46165         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46166         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46167         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46168         getdtablesize.
46169         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46170         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46171
46172 2008-10-05  Bruno Haible  <bruno@clisp.org>
46173
46174         * modules/getdtablesize-tests: New file.
46175         * tests/test-getdtablesize.c: New file.
46176
46177         New module 'getdtablesize'.
46178         * lib/unistd.in.h (getdtablesize): New declaration.
46179         * lib/getdtablesize.c: New file.
46180         * m4/getdtablesize.m4: New file.
46181         * modules/getdtablesize: New file.
46182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46183         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46184         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46185         HAVE_GETDTABLESIZE.
46186         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46187
46188 2008-10-05  Bruno Haible  <bruno@clisp.org>
46189
46190         * modules/sched (Makefile.am): Fix typo.
46191         Reported by Simon Josefsson.
46192
46193 2008-10-05  Jim Meyering  <meyering@redhat.com>
46194
46195         bootstrap: check for LT_INIT, too
46196         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46197         are deprecated.  Suggestion from Ralf Wildenhues.
46198
46199 2008-10-05  Bruno Haible  <bruno@clisp.org>
46200
46201         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46202         overriding them by ours.
46203         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46204
46205 2008-10-05  Jim Meyering  <meyering@redhat.com>
46206
46207         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46208         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46209         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46210
46211 2008-10-04  Bruno Haible  <bruno@clisp.org>
46212
46213         * modules/dup2 (License): Change to LGPLv2+.
46214         * modules/sleep (License): Likewise.
46215         * modules/perror (License): Likewise.
46216         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46217         Blake.
46218         * modules/signal (License): Likewise.
46219         * modules/sigprocmask (License): Likewise.
46220         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46221         Meyering.
46222
46223 2008-10-04  Bruno Haible  <bruno@clisp.org>
46224
46225         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46226         Reported by Rainer Tammer <tammer@tammer.net>.
46227
46228 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46229             Bruno Haible  <bruno@clisp.org>
46230
46231         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46232         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46233         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46234
46235 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46236
46237         filevercmp: new module
46238         * lib/filevercmp.h: New function filevercmp comparing version strings.
46239         * lib/filevercmp.c: Implementation of filevercmp function.
46240         * modules/filevercmp: Module metadata.
46241         * tests/test-filevercmp.c: Unit test for new module.
46242         * modules/filevercmp-tests: Unit test metadata.
46243         * MODULES.html.sh: Add filevercmp module.
46244
46245 2008-10-03  Bruno Haible  <bruno@clisp.org>
46246
46247         * lib/c-ctype.h: Add comment.
46248         Reported by Jim Meyering.
46249
46250 2008-10-02  Bruno Haible  <bruno@clisp.org>
46251
46252         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46253
46254 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46255
46256         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46257         name of bootstrap.conf accordingly.
46258
46259 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46260
46261         * build-aux/bootstrap: Install git-merge-changelog configuration
46262         items into .gitconfig if needed.
46263
46264 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46265
46266         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46267         git repository, and initialize/update it accordingly.
46268
46269 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46270
46271         * modules/fsync-tests: New file.
46272         * tests/test-fsync.c: New file.
46273
46274         New module 'fsync'.
46275         * lib/fsync.c: New file.
46276         * m4/fsync.m4: New file.
46277         * modules/fsync: New file.
46278         * lib/unistd.in.h (fsync): New declaration.
46279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46280         GNULIB_FSYNC and HAVE_FSYNC.
46281         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46282         * MODULES.html.sh (posix_functions): Add fsync.
46283         * doc/posix-functions/fsync.texi: Mention the new module.
46284
46285 2008-10-02  Jim Meyering  <meyering@redhat.com>
46286
46287         fts.c: sync with similar code from coreutils' remove.c
46288         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46289         Guard also with "#if defined __linux__", since for now at least,
46290         this code is Linux-kernel-specific.
46291
46292 2008-10-02  Jim Meyering  <meyering@redhat.com>
46293
46294         fts: bug fixes
46295         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46296         Include <sys/vfs.h>, not <sys/statfs.h>.
46297
46298         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46299         Include <sys/vfs.h>, not <sys/statfs.h>.
46300
46301 2008-10-01  Bruno Haible  <bruno@clisp.org>
46302
46303         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46304         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46305         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46306         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46307         * doc/posix-functions/posix_spawnp.texi: Likewise.
46308         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46309         whether posix_spawn actually works.
46310         * m4/pipe.m4 (gl_PIPE): Likewise.
46311         * modules/execute (Files): Add m4/posix_spawn.m4.
46312         * modules/pipe (Files): Add m4/posix_spawn.m4.
46313         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46314
46315 2008-10-01  Jim Meyering  <meyering@redhat.com>
46316
46317         remove trailing spaces
46318         * NEWS: Likewise.
46319         * lib/poll.c (poll): Likewise.
46320         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46321         * lib/winsock.c (rpl_close): Likewise.
46322         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46323         * modules/yield: Likewise.
46324         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46325         * tests/test-sys_select.c (connect_to_socket): Likewise.
46326
46327         fts.c: adjust a new interface to be more generally useful
46328         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46329         (fts_build): Adjust caller.
46330
46331 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46332
46333         * modules/cond-tests: New file.
46334         * tests/test-cond.c: New file.
46335
46336 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46337             Bruno Haible  <bruno@clisp.org>
46338
46339         * modules/cond (Dependencies): Add errno, time.
46340         * lib/glthread/cond.h: Include <time.h>.
46341         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46342         across platforms.
46343
46344 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46345             Bruno Haible  <bruno@clisp.org>
46346
46347         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46348
46349 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46350             Bruno Haible  <bruno@clisp.org>
46351
46352         * modules/tls-tests (Depends-on): Add thread, yield.
46353         (configure.ac): Remove all checks.
46354         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46355         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46356         gl_thread_self): Remove definitions. Include glthread/thread.h and
46357         glthread/yield.h instead.
46358         (test_tls): Pass an additional NULL argument to gl_thread_join.
46359
46360 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46361             Bruno Haible  <bruno@clisp.org>
46362
46363         * modules/lock-tests (Depends-on): Add thread, yield.
46364         (configure.ac): Remove all checks.
46365         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46366         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46367         gl_thread_self): Remove definitions. Include glthread/thread.h and
46368         glthread/yield.h instead.
46369         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46370         additional NULL argument to gl_thread_join.
46371
46372 2008-09-30  Bruno Haible  <bruno@clisp.org>
46373
46374         Fix the Win32 implementation of the 'thread' module.
46375         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46376         pointer type.
46377         (gl_thread_self): Invoke gl_thread_self_func.
46378         (gl_thread_self_func): New declaration.
46379         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46380         (do_init_self_key, init_self_key): New functions.
46381         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46382         Remove some fields.
46383         (running_threads, running_lock): Remove variables.
46384         (get_current_thread_handle): New function.
46385         (gl_thread_self_func, wrapper_func, glthread_create_func,
46386         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46387         simplified.
46388
46389 2008-09-30  Bruno Haible  <bruno@clisp.org>
46390
46391         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46392         files.
46393
46394 2008-09-30  Jim Meyering  <meyering@redhat.com>
46395
46396         fts.m4: correct the test for statfs.f_type
46397         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46398         when checking for statfs.f_type.
46399
46400 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46401
46402         tests: avoid some compiler warnings
46403         * tests/test-memchr.c (main): Pass NULL indirectly.
46404         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46405
46406 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
46407
46408         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46409         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46410         exactly specified dayshifts.
46411         (dayshift): New rule.
46412         (rel): Add dayshift.
46413         (relative_time_table) [tomorrow, yesterday, today, now]:
46414         Use tDAY_SHIFT in place of tDAY_UNIT.
46415         * tests/test-getdate.c: Add tests for now-disallowed countable
46416         dayshifts, e.g., "4 yesterday ago".
46417
46418 2008-09-29  Bruno Haible  <bruno@clisp.org>
46419
46420         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46421         * tests/test-posix_spawn1.in.sh: Renamed from
46422         tests/test-posix_spawn.in.sh.
46423         * tests/test-posix_spawn2.c: New file.
46424         * tests/test-posix_spawn2.in.sh: New file.
46425         * modules/posix_spawnp-tests (Files): Update.
46426         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46427
46428 2008-09-29  Bruno Haible  <bruno@clisp.org>
46429
46430         Propagate effects of putenv/setenv/unsetenv to child processes.
46431         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46432         * lib/pipe.c (create_pipe): Likewise.
46433
46434 2008-09-29  Bruno Haible  <bruno@clisp.org>
46435
46436         Enable use of shell scripts as executables in mingw.
46437         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46438         run the program as a shell script.
46439         * lib/pipe.c (create_pipe): Likewise.
46440         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46441         resulting array.
46442
46443 2008-09-29  Eric Blake  <ebb9@byu.net>
46444
46445         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46446
46447 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46448
46449         * doc/posix-functions/accept.texi: Update mingw problems.
46450         * doc/posix-functions/bind.texi: Update mingw problems.
46451         * doc/posix-functions/close.texi: Update mingw problems.
46452         * doc/posix-functions/connect.texi: Update mingw problems.
46453         * doc/posix-functions/getpeername.texi: Update mingw problems.
46454         * doc/posix-functions/getsockname.texi: Update mingw problems.
46455         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46456         * doc/posix-functions/ioctl.texi: Update mingw problems.
46457         * doc/posix-functions/listen.texi: Update mingw problems.
46458         * doc/posix-functions/recv.texi: Update mingw problems.
46459         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46460         * doc/posix-functions/select.texi: Update mingw problems.
46461         * doc/posix-functions/send.texi: Update mingw problems.
46462         * doc/posix-functions/sendto.texi: Update mingw problems.
46463         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46464         * doc/posix-functions/socket.texi: Update mingw problems.
46465
46466 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46467             Bruno Haible  <bruno@clisp.org>
46468
46469         * lib/sys_select.in.h: Include sys/time.h.
46470         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46471         * modules/sys_select: Depend on sys_time.
46472         * tests/test-sys_select.c: Test that sys/select.h defines struct
46473         timeval fully.
46474
46475 2008-09-29  Bruno Haible  <bruno@clisp.org>
46476
46477         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46478         * lib/sys_select.in.h: Likewise.
46479
46480 2008-09-29  Bruno Haible  <bruno@clisp.org>
46481
46482         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46483
46484 2008-09-29  Bruno Haible  <bruno@clisp.org>
46485
46486         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46487         Set LIBSOCKET instead of augmenting LIBS.
46488         * modules/sockets (Link): New section.
46489         * modules/sockets-tests (test_sockets_LDADD): New variable.
46490         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46491         * modules/poll-tests (test_poll_LDADD): New variable.
46492         * NEWS: Document the change.
46493
46494 2008-09-29  Bruno Haible  <bruno@clisp.org>
46495
46496         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46497         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46498         ARPA_INET_H directly.
46499         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46500
46501 2008-09-28  Bruno Haible  <bruno@clisp.org>
46502
46503         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46504         from gl_HEADER_SYS_SOCKET.
46505         (gl_HEADER_SYS_SOCKET): Invoke it.
46506         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46507
46508 2008-09-28  Bruno Haible  <bruno@clisp.org>
46509
46510         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46511         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46512         Needed on OSF/1 4.0.
46513
46514 2008-09-28  Bruno Haible  <bruno@clisp.org>
46515
46516         Override open more carefully.
46517         * lib/open.c (orig_open): New function.
46518         (rpl_open): Use orig_open instead of open.
46519         * lib/fcntl.in.h: Add special invocation convention.
46520         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46521         (gl_FUNC_OPEN): Invoke it.
46522
46523         Override freopen more carefully.
46524         * lib/freopen.c (orig_freopen): New function.
46525         (rpl_freopen): Use orig_freopen instead of freopen.
46526         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46527         (gl_FUNC_FREOPEN): Invoke it.
46528
46529         Override fopen more carefully.
46530         * lib/fopen.c (orig_fopen): New function.
46531         (rpl_fopen): Use orig_fopen instead of fopen.
46532         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46533         (gl_FUNC_FOPEN): Invoke it.
46534         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46535
46536 2008-09-28  Bruno Haible  <bruno@clisp.org>
46537
46538         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46539         SIGPIPE.
46540
46541 2008-09-28  Bruno Haible  <bruno@clisp.org>
46542
46543         * tests/test-sigaction.c (handler, main): Disable the check whether
46544         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46545         glibc systems with LinuxThreads.
46546
46547 2008-09-28  Bruno Haible  <bruno@clisp.org>
46548
46549         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46550
46551         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46552         with AIX xlc.
46553         * lib/fcntl.in.h (open): Likewise.
46554         Reported by Rainer Tammer <tammer@tammer.net>.
46555
46556 2008-09-28  Bruno Haible  <bruno@clisp.org>
46557
46558         * modules/posix_spawnp-tests: New file.
46559         * tests/test-posix_spawn.c: New file.
46560         * tests/test-posix_spawn.in.sh: New file.
46561
46562         New module 'posix_spawnp'.
46563         * modules/posix_spawnp: New file.
46564         * lib/spawnp.c: New file, from GNU libc with modifications.
46565         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46566
46567         New module 'posix_spawn'.
46568         * modules/posix_spawn: New file.
46569         * lib/spawn.c: New file, from GNU libc with modifications.
46570         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46571
46572         New module 'posix_spawnattr_destroy'.
46573         * modules/posix_spawnattr_destroy: New file.
46574         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46575         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46576         module.
46577
46578         New module 'posix_spawnattr_setsigmask'.
46579         * modules/posix_spawnattr_setsigmask: New file.
46580         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46581         modifications.
46582         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46583         new module.
46584
46585         New module 'posix_spawnattr_getsigmask'.
46586         * modules/posix_spawnattr_getsigmask: New file.
46587         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46588         modifications.
46589         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46590         new module.
46591
46592         New module 'posix_spawnattr_setsigdefault'.
46593         * modules/posix_spawnattr_setsigdefault: New file.
46594         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46595         modifications.
46596         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46597         new module.
46598
46599         New module 'posix_spawnattr_getsigdefault'.
46600         * modules/posix_spawnattr_getsigdefault: New file.
46601         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46602         modifications.
46603         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46604         new module.
46605
46606         New module 'posix_spawnattr_setschedpolicy'.
46607         * modules/posix_spawnattr_setschedpolicy: New file.
46608         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46609         modifications.
46610         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46611         new module.
46612
46613         New module 'posix_spawnattr_getschedpolicy'.
46614         * modules/posix_spawnattr_getschedpolicy: New file.
46615         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46616         modifications.
46617         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46618         new module.
46619
46620         New module 'posix_spawnattr_setschedparam'.
46621         * modules/posix_spawnattr_setschedparam: New file.
46622         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46623         modifications.
46624         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46625         new module.
46626
46627         New module 'posix_spawnattr_getschedparam'.
46628         * modules/posix_spawnattr_getschedparam: New file.
46629         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46630         modifications.
46631         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46632         new module.
46633
46634         New module 'posix_spawnattr_setpgroup'.
46635         * modules/posix_spawnattr_setpgroup: New file.
46636         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46637         modifications.
46638         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46639         module.
46640
46641         New module 'posix_spawnattr_getpgroup'.
46642         * modules/posix_spawnattr_getpgroup: New file.
46643         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46644         modifications.
46645         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46646         module.
46647
46648         New module 'posix_spawnattr_setflags'.
46649         * modules/posix_spawnattr_setflags: New file.
46650         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46651         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46652         module.
46653
46654         New module 'posix_spawnattr_getflags'.
46655         * modules/posix_spawnattr_getflags: New file.
46656         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46657         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46658         module.
46659
46660         New module 'posix_spawnattr_init'.
46661         * modules/posix_spawnattr_init: New file.
46662         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46663         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46664         module.
46665
46666         New module 'posix_spawn_file_actions_destroy'.
46667         * modules/posix_spawn_file_actions_destroy: New file.
46668         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46669         modifications.
46670         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46671         the new module.
46672
46673         New module 'posix_spawn_file_actions_addopen'.
46674         * modules/posix_spawn_file_actions_addopen: New file.
46675         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46676         modifications.
46677         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46678         the new module.
46679
46680         New module 'posix_spawn_file_actions_adddup2'.
46681         * modules/posix_spawn_file_actions_adddup2: New file.
46682         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46683         modifications.
46684         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46685         the new module.
46686
46687         New module 'posix_spawn_file_actions_addclose'.
46688         * modules/posix_spawn_file_actions_addclose: New file.
46689         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46690         modifications.
46691         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46692         the new module.
46693
46694         New module 'posix_spawn_file_actions_init'.
46695         * modules/posix_spawn_file_actions_init: New file.
46696         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46697         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46698         new module.
46699
46700         New module 'posix_spawn-internal'.
46701         * modules/posix_spawn-internal: New file.
46702         * lib/spawn_int.h: New file, from GNU libc with modifications.
46703         * lib/spawni.c: New file, from GNU libc with modifications.
46704         * m4/posix_spawn.m4: New file.
46705
46706         New module 'spawn'.
46707         * modules/spawn: New file.
46708         * lib/spawn.in.h: New file, from GNU libc with modifications.
46709         * m4/spawn_h.m4: New file.
46710         * doc/posix-headers/spawn.texi: Mention the new module.
46711
46712 2008-09-28  Bruno Haible  <bruno@clisp.org>
46713
46714         * modules/sched-tests: New file.
46715         * tests/test-sched.c: New file.
46716
46717         New module 'sched'.
46718         * modules/sched: New file.
46719         * lib/sched.in.h: New file.
46720         * m4/sched_h.m4: New file.
46721         * doc/posix-headers/sched.texi: Mention the new module.
46722
46723 2008-09-27  Eric Blake  <ebb9@byu.net>
46724
46725         Fix previous patch, and tweak references to $0.
46726         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46727         (func_version, func_gnulib_dir): Don't call this program
46728         gnulib-tool.
46729         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46730         with using $0 in function.
46731         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46732         (func_fatal_error): Reuse the name the user invoked us with.
46733
46734 2008-09-27  Bruno Haible  <bruno@clisp.org>
46735
46736         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46737         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46738         (gl_ICONV_H): Not here.
46739         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46740         instead of assigning ICONV_H directly.
46741
46742         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46743         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46744         WCHAR_H directly.
46745
46746 2008-09-27  Bruno Haible  <bruno@clisp.org>
46747
46748         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46749         * modules/arpa_inet (Depends-on): Add link-warning.
46750         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46751         * modules/unistd (Makefile.am): Likewise.
46752
46753 2008-09-26  Bruno Haible  <bruno@clisp.org>
46754
46755         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46756         variables.
46757         (func_version): Essentially copied from gnulib-tool.
46758         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46759         func_readlink): Copied from gnulib-tool.
46760
46761 2008-09-26  Bruno Haible  <bruno@clisp.org>
46762
46763         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46764         invoking git-version-gen.
46765
46766 2008-09-26  Bruno Haible  <bruno@clisp.org>
46767
46768         * posix-modules: Update to directory names changed on 2008-01-19.
46769         Remove commas in output before splitting into words. No more need to
46770         avoid 'ftruncate' since 2007-02-19.
46771
46772 2008-09-26  Bruno Haible  <bruno@clisp.org>
46773
46774         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46775
46776 2008-09-26  Bruno Haible  <bruno@clisp.org>
46777
46778         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46779         * modules/fwriteerror (Depends-on): Add errno.
46780
46781 2008-09-26  Bruno Haible  <bruno@clisp.org>
46782
46783         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46784         * tests/test-vc-list-files-cvs.sh: Likewise.
46785
46786 2008-09-26  Bruno Haible  <bruno@clisp.org>
46787
46788         * doc/posix-headers/sys_resource.texi: Reorder items.
46789
46790 2008-09-26  Jim Meyering  <meyering@redhat.com>
46791
46792         fts: tweak inode comparison function
46793         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46794         inode numbers, as documented.
46795
46796         fts: sort dirent entries on inode number before traversing
46797         This avoids a quadratic, seek-related performance penalty when
46798         operating on a directory containing many entries (measurable at 10k;
46799         3.5 hours at 2 million entries with a cold cache) on certain types
46800         of file systems, including ext3 and ext4, but not tmpfs.
46801         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46802         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46803         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46804         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46805         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46806         (fts_build): Set the stat.st_ino member from D_INO.
46807         If it is likely to be useful, sort dirent entries on inode number.
46808
46809         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46810         and the struct statfs.f_type member.
46811         * modules/fts (Depends-on): Add d-ino.
46812
46813 2008-09-26  Bruno Haible  <bruno@clisp.org>
46814
46815         * modules/sigpipe-die (Depends-on): Add sigpipe.
46816
46817         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46818         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46819         and GNULIB_STDIO_H_SIGPIPE are set.
46820         * lib/stdio-write.c: New file.
46821         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46822         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46823         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46824         REPLACE_STDIO_WRITE_FUNCS.
46825         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46826         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46827         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46828         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46829         * modules/stdio (Files): Add lib/stdio-write.c.
46830         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46831         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46832         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46833         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46834         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46835         REPLACE_FPRINTF_POSIX.
46836         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46837         REPLACE_PRINTF_POSIX.
46838         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46839         REPLACE_VFPRINTF_POSIX.
46840         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46841         REPLACE_VPRINTF_POSIX.
46842         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46843         SIGPIPE issue.
46844         * doc/posix-functions/fputc.texi: Likewise.
46845         * doc/posix-functions/fputs.texi: Likewise.
46846         * doc/posix-functions/fwrite.texi: Likewise.
46847         * doc/posix-functions/printf.texi: Likewise.
46848         * doc/posix-functions/putc.texi: Likewise.
46849         * doc/posix-functions/putchar.texi: Likewise.
46850         * doc/posix-functions/puts.texi: Likewise.
46851         * doc/posix-functions/vfprintf.texi: Likewise.
46852         * doc/posix-functions/vprintf.texi: Likewise.
46853
46854         * modules/safe-write (Depends-on): Add write.
46855
46856         * modules/sigpipe-tests: New file.
46857         * tests/test-sigpipe.c: New file.
46858         * tests/test-sigpipe.sh: New file.
46859
46860         * modules/write: New file.
46861         * lib/unistd.in.h: Include <sys/types.h>.
46862         (write): New declaration.
46863         * lib/write.c: New file.
46864         * m4/write.m4: New file.
46865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46866         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46867         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46868         GNULIB_WRITE, REPLACE_WRITE.
46869         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46870         and the SIGPIPE issue.
46871
46872         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46873         (raise): New declaration.
46874         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46875         (ext_signal): New function.
46876         (rpl_raise): New function.
46877         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46878         GNULIB_SIGNAL_H_SIGPIPE.
46879         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46880         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46881
46882         * modules/sigpipe: New file.
46883         * m4/sigpipe.m4: New file.
46884
46885 2008-09-25  Derek Price  <derek@ximbiot.com>
46886             Bruno Haible  <bruno@clisp.org>
46887
46888         * gnulib-tool (func_import): Report all license incompatibilities, not
46889         just the first one.
46890
46891 2008-09-25  Bruno Haible  <bruno@clisp.org>
46892
46893         * gnulib-tool (func_import): When computing the edits, consider not
46894         only the Makefile.ams that exist but also those that will be generated.
46895
46896 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46897
46898         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46899         fixes gnulib-tool --test warning about duplicate dependency.
46900
46901 2008-09-25  Bruno Haible  <bruno@clisp.org>
46902
46903         * gnulib-tool: Don't ask the user to perform edits in the generated
46904         Makefile.ams.
46905         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46906         apply to the Makefile.am being generated.
46907         (func_emit_tests_Makefile_am): Execute edits that apply to the
46908         Makefile.am being generated.
46909         (func_import): Setup list of Makefile.am edits before emitting the
46910         Makefile.ams, not at the end.
46911         (func_create_testdir): Update.
46912         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46913
46914 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46915
46916         * gnulib-tool (func_import): Store the --tests-base option in the
46917         comment in gnulib-cache.m4.
46918
46919 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46920
46921         * NEWS: Document increased portability that sys_select now provides.
46922
46923         * lib/sys_select.in.h: Install select wrapper.
46924         * lib/sys_socket.in.h: Use more descriptive name when there is no
46925         select wrapper.
46926         * lib/winsock-select.c: New.
46927         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46928         Require gl_HEADER_SYS_SOCKET.
46929         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46930         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46931         * tests/test-sys_select.c: Add functional tests.
46932
46933 2008-09-24  Eric Blake  <ebb9@byu.net>
46934
46935         open, fopen: close fd leak in last patch
46936         * lib/open.c (rpl_open): Close fd before returning error.
46937         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46938         * doc/posix-functions/open.texi (open): Document that Irix also
46939         has the bug.
46940         * doc/posix-functions/fopen.texi (fopen): Likewise.
46941         Reported by Paolo Bonzini.
46942
46943 2008-09-24  Bruno Haible  <bruno@clisp.org>
46944
46945         Ensure that a filename ending in a slash cannot be used to access a
46946         non-directory.
46947         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46948         to check whether it's really a directory.
46949         * lib/fopen.c: Include fcntl.h, unistd.h.
46950         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46951         and fdopen().
46952         * modules/fopen (Depends-on): Add unistd.
46953         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46954         * tests/test-fopen.c (main): Likewise.
46955         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46956         * doc/posix-functions/fopen.texi: Likewise.
46957         Reported by Eric Blake.
46958
46959 2008-09-23  Eric Blake  <ebb9@byu.net>
46960
46961         c-stack: avoid compiler optimizations when provoking overflow
46962         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46963         recursion harder to optimize, to ensure a stack overflow occurs.
46964         * tests/test-c-stack.c (recurse): Likewise.
46965         Borrowed from libsigsegv.
46966
46967         c-stack: work around Irix sigaltstack bug
46968         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46969         whether sigaltstack uses wrong end of stack_t (copied in part from
46970         libsigsegv).
46971         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46972         Irix bug, without requiring an over-allocation.
46973         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46974         bug.
46975
46976         fopen: document mingw bug on directories
46977         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46978         not allowing a stream visiting a directory, even though reading
46979         from such a stream is not portable.
46980
46981 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46982
46983         * lib/poll.c: Rewrite.
46984         * modules/poll: Depend on alloca.
46985
46986 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46987
46988         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46989         instead define prototypes for a full set of wrappers.  Ensure
46990         that Cygwin does not use the compatibility code, which is only
46991         for MinGW.
46992         * lib/winsock.c: New.
46993         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46994         * modules/sys_socket: Add lib/winsock.c.
46995
46996         * modules/poll-tests: Add errno and perror.
46997         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46998
46999 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47000
47001         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47002
47003 2008-09-23  Bruno Haible  <bruno@clisp.org>
47004
47005         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47006         * doc/glibc-functions/*: Likewise.
47007
47008 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47009
47010         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47011         success.
47012
47013 2008-09-22  Eric Blake  <ebb9@byu.net>
47014             Bruno Haible  <bruno@clisp.org>
47015
47016         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47017         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47018         supply %A but mishandle pseudo-NaN.
47019         Reported by Simon Josefsson.
47020
47021 2008-09-21  Bruno Haible  <bruno@clisp.org>
47022
47023         * tests/test-lock.c (main): Tweak skip message.
47024         * tests/test-tls.c (main): Likewise.
47025
47026 2008-09-21  Bruno Haible  <bruno@clisp.org>
47027
47028         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47029         whether 'struct sigaction' has sa_sigaction here...
47030         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47031         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47032
47033 2008-09-21  Bruno Haible  <bruno@clisp.org>
47034
47035         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47036         section.
47037         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47038         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47039         the new section.
47040         (Support for obsolete systems lacking POSIX:2001): New section.
47041         (String handling <string.h>): Move strdup to the new section.
47042         Suggested by Simon Josefsson and Paolo Bonzini.
47043
47044 2008-09-21  Bruno Haible  <bruno@clisp.org>
47045
47046         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47047         exponents in %e and %g results on 'long double'. Needed for mingw's
47048         improved *printf functions.
47049         * tests/test-vasprintf-posix.c (test_function): Likewise.
47050         * tests/test-snprintf-posix.h (test_function): Likewise.
47051         * tests/test-sprintf-posix.h (test_function): Likewise.
47052         Reported by Eric Blake.
47053
47054 2008-09-21  Bruno Haible  <bruno@clisp.org>
47055
47056         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47057         * tests/test-sprintf-posix.h (test_function): Likewise.
47058
47059 2008-09-21  Bruno Haible  <bruno@clisp.org>
47060
47061         * modules/getpass (Depends-on): Add strdup-posix.
47062
47063         New module 'strdup-posix'.
47064         * modules/strdup-posix: New file.
47065         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47066         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47067         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47068         REPLACE_STRDUP.
47069         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47070         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47071         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47072         strdup-posix.
47073
47074         * modules/strdup (Depends-on): Remove malloc-posix.
47075
47076 2008-09-20  Bruno Haible  <bruno@clisp.org>
47077
47078         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47079         Wildenhues.
47080
47081 2008-09-20  Bruno Haible  <bruno@clisp.org>
47082
47083         Ensure that wint_t gets defined on IRIX 5.3.
47084         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47085         * lib/wctype.in.h (wint_t): Likewise.
47086         (__wctype_wint_t): Remove type.
47087         (isw*): Use wint_t instead of __wctype_wint_t.
47088         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47089         * modules/wchar (Files): Add m4/wint_t.m4.
47090         (Makefile.am): Substitute HAVE_WINT_T.
47091         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47092         * tests/test-wctype.c: Check that wint_t is defined.
47093         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47094         * doc/posix-headers/wctype.texi: Likewise.
47095         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47096
47097 2008-09-18  Bruno Haible  <bruno@clisp.org>
47098
47099         * gnulib-tool (func_exit): Update comment.
47100
47101 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47102
47103         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47104         assumes strdup exists and does not depend on strdup to return
47105         ENOMEM on out of memory conditions.
47106
47107 2008-09-18  Bruno Haible  <bruno@clisp.org>
47108
47109         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
47110         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47111         digits for the exponent.
47112
47113 2008-09-18  Jim Meyering  <meyering@redhat.com>
47114             Bruno Haible  <bruno@clisp.org>
47115
47116         * lib/vasnprintf.c (decimal_point_char): Define also if
47117         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47118
47119 2008-09-16  Bruno Haible  <bruno@clisp.org>
47120         and Eric Blake  <ebb9@byu.net>
47121
47122         vasnprintf: support Irix 5.3
47123         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47124         that mishandle long double infinity.
47125         Reported by Tom G. Christensen.
47126
47127 2008-09-16  Bruno Haible  <bruno@clisp.org>
47128
47129         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47130         Solaris 9.
47131         * doc/glibc-functions/alphasort.texi: Likewise.
47132         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47133
47134 2008-09-16  Jim Meyering  <meyering@redhat.com>
47135
47136         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47137         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47138         a umask modification leak out of a subshell.  Otherwise, the
47139         opensolaris /bin/sh would be accepted and thus cause unwarranted
47140         failures in the coreutils test suite.
47141
47142 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47143
47144         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47145         to succeed.
47146
47147 2008-09-16  Jim Meyering  <meyering@redhat.com>
47148
47149         avoid spurious test failure when library is built without ACL support
47150         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47151         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47152         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47153         * tests/test-copy-acl.sh: Likewise.
47154
47155 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47156
47157         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47158         based on character occurrence counts.
47159
47160 2008-09-15  Eric Blake  <ebb9@byu.net>
47161
47162         tests: avoid some compiler warnings
47163         * tests/test-memchr.c (main): Pass NULL indirectly.
47164         * tests/test-closein.c (main): Avoid unused variable.
47165
47166 2008-09-15  Bruno Haible  <bruno@clisp.org>
47167
47168         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47169         are missing on OpenBSD 4.0 individually.
47170         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47171
47172 2008-09-15  Bruno Haible  <bruno@clisp.org>
47173
47174         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47175         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47176         * doc/posix-functions/perror.texi: Likewise.
47177         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47178         is missing.
47179         Reported by Eric Blake.
47180
47181         * lib/errno.in.h: Use replacement values >= 2000.
47182         Reported by Eric Blake.
47183
47184 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47185
47186         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47187         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47188         limit.
47189         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47190         compareseq was aborted.
47191
47192 2008-09-14  Bruno Haible  <bruno@clisp.org>
47193
47194         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47195         yvec_edit_count.
47196         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47197         (fstrcmp_bounded): Simplify result computation accordingly.
47198
47199 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47200
47201         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47202         (fstrcmp): Define in terms of fstrcmp_bounded.
47203         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47204         lower_bound argument.
47205         Return quickly if the result is certainly < lower_bound.
47206         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47207
47208 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47209
47210         * lib/diffseq.h (EARLY_ABORT): New macro.
47211         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47212         evaluates to true.
47213
47214 2008-09-14  Bruno Haible  <bruno@clisp.org>
47215
47216         * modules/perror-tests: New file.
47217         * tests/test-perror.sh: New file.
47218         * tests/test-perror.c: New file.
47219
47220         New module 'perror'.
47221         * lib/stdio.in.h (perror): New declaration.
47222         * lib/perror.c: New file.
47223         * m4/perror.m4: New file.
47224         * modules/perror: New file.
47225         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47226         * doc/posix-functions/perror.texi: Mention the perror module.
47227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47228         REPLACE_PERROR.
47229         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47230         REPLACE_PERROR.
47231
47232 2008-09-14  Bruno Haible  <bruno@clisp.org>
47233
47234         * modules/stdio (Makefile.am): Reorder to match the order in
47235         lib/stdio.in.h.
47236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47237
47238 2008-09-13  Bruno Haible  <bruno@clisp.org>
47239
47240         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47241
47242 2008-09-13  Bruno Haible  <bruno@clisp.org>
47243
47244         Extend strerror to cover the added errno values.
47245         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47246         (rpl_strerror): Provide error messages for the added errno values and
47247         for the WSA* values.
47248         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47249         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47250         strerror.
47251         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47252         * modules/strerror (Depends-on): Add errno.
47253         * doc/posix-functions/strerror.texi: Document the change.
47254         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47255         and EOVERFLOW.
47256
47257 2008-09-13  Bruno Haible  <bruno@clisp.org>
47258
47259         * modules/EOVERFLOW: Remove file.
47260         * m4/eoverflow.m4: Remove file.
47261         * modules/EOVERFLOW-tests: Remove file.
47262         * tests/test-EOVERFLOW.c: Remove file.
47263         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47264         * modules/ftell (Depends-on): Likewise.
47265         * modules/getdelim (Depends-on): Likewise.
47266         * modules/getugroups (Depends-on): Likewise.
47267         * modules/poll (Depends-on): Likewise.
47268         * modules/snprintf (Depends-on): Likewise.
47269         * modules/sprintf-posix (Depends-on): Likewise.
47270         * modules/vasnprintf (Depends-on): Likewise.
47271         * modules/vasprintf (Depends-on): Likewise.
47272         * modules/vfprintf-posix (Depends-on): Likewise.
47273         * modules/vsnprintf (Depends-on): Likewise.
47274         * modules/vsprintf-posix (Depends-on): Likewise.
47275         * modules/xvasprintf (Depends-on): Likewise.
47276         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47277         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47278         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47279         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47280         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47281         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47282         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47283         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47284         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47285         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47286         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47287         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47288         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47289         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47290         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47291         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47292         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47293         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47294         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47295         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47296         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47297         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47298         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47299         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47300         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47301         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47302         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47303         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47304         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47305         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47306         * MODULES.html.sh: Remove EOVERFLOW.
47307         * NEWS: Mention the change.
47308
47309 2008-09-13  Bruno Haible  <bruno@clisp.org>
47310
47311         * modules/errno-tests: New file.
47312         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47313
47314         * lib/errno.in.h: New file.
47315         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47316         * modules/errno: New file.
47317         * doc/posix-headers/errno.texi: Update documentation.
47318         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47319
47320 2008-09-13  Bruno Haible  <bruno@clisp.org>
47321
47322         * tests/test-poll.c: Use #if for native Windows, rather than testing
47323         __MSVCRT__.
47324
47325 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47326             Bruno Haible  <bruno@clisp.org>
47327
47328         * lib/glob.c: Don't include <pwd.h> on native Windows.
47329         (WINDOWS32): New macro.
47330         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47331
47332 2008-09-13  Bruno Haible  <bruno@clisp.org>
47333
47334         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47335         (ETIMEDOUT): Remove macro.
47336         (glthread_cond_timedwait_multithreaded): New declaration.
47337         (glthread_cond_timedwait): Use it.
47338         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47339         (glthread_cond_timedwait_multithreaded): New function.
47340
47341 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47342
47343         * modules/poll-tests: Do not check for io.h.
47344         * tests/test-poll.c: Check for __MSVCRT__ instead.
47345
47346 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47347
47348         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47349         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47350         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47351
47352 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47353
47354         * modules/poll-tests: New.
47355         * tests/test-poll.c: New.
47356
47357 2008-09-12  Eric Blake  <ebb9@byu.net>
47358
47359         frexp: test for NetBSD failure on -0.0
47360         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47361         not all, bugs from NetBSD 3.0 have been fixed.
47362         * doc/posix-functions/frexp.texi (frexp): Document bug.
47363         Reported by Thomas Klausner.
47364
47365         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47366         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47367         literal -0.0.
47368         Reported by Jonathan C. Patschke <jp@centtech.com>.
47369
47370 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47371
47372         * lib/glthread/cond.h: Use dummy implementation also if
47373         USE_WIN32_THREADS.
47374
47375 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47376
47377         * modules/fnmatch-posix (License): Change to LGPLv2+.
47378         * modules/fnmatch-gnu (License): Likewise.
47379
47380 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47381
47382         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47383
47384 2008-09-11  Jim Meyering  <meyering@redhat.com>
47385
47386         * users.txt: Add gtk-vnc.
47387
47388 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47389
47390         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47391         rotate amounts.
47392
47393         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47394         required for 16-bit and 8-bit rotates.
47395         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47396         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47397         UINT8_MAX instead of hard-coded constants.
47398         Suggested by Paul Eggert.
47399
47400 2008-09-07  Bruno Haible  <bruno@clisp.org>
47401
47402         * tests/test-striconveh.c (main): Check behaviour when converting from
47403         UTF-7.
47404
47405         Make striconveh work better with stateful encodings.
47406         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47407         that iconv does not increment the inptr when returning -1/EINVAL.
47408
47409 2008-09-07  Bruno Haible  <bruno@clisp.org>
47410
47411         * build-aux/config.rpath: Update according to libtool-2.2.6.
47412         * build-aux/config.libpath: Likewise.
47413
47414 2008-09-06  Bruno Haible  <bruno@clisp.org>
47415
47416         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47417         * lib/freadptr.c (freadptr): Likewise.
47418         * lib/freadseek.c (freadptrinc): Likewise.
47419         Reported by Simon Josefsson.
47420
47421 2008-09-06  Bruno Haible  <bruno@clisp.org>
47422
47423         * modules/freadptr (License): Change to LGPLv2+.
47424         * modules/freadseek (License): Likewise.
47425         Suggested by Eric Blake.
47426
47427         * modules/memchr2 (License): Change to LGPLv2+.
47428         Approved by Eric Blake.
47429
47430 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47431             Bruno Haible  <bruno@clisp.org>
47432
47433         Make gnulib-tool work with native 'sed' on AIX.
47434         * gnulib-tool (sed_noop): New variable.
47435         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47436         func_add_or_update, func_create_testdir): Use it to initialize sed
47437         script variables.
47438         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47439
47440 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47441             Bruno Haible  <bruno@clisp.org>
47442
47443         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47444         also works after #include directives.
47445
47446 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
47447
47448         getdate.y: reject an out-of-range timezone value
47449         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47450         the range [-24...+24].  When specified with only one or two digits,
47451         * tests/test-getdate.c: Tests for the fix.
47452         * doc/getdate.texi: Document this change.
47453
47454 2008-09-03  Bruno Haible  <bruno@clisp.org>
47455
47456         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47457
47458 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47459
47460         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47461         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47462         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47463         Blake <ebb9@byu.net>.
47464
47465         * tests/test-bitrotate.c: Add more test vectors.
47466
47467 2008-09-02  Eric Blake  <ebb9@byu.net>
47468
47469         vasnprintf-posix: handle large precision via %.*d
47470         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47471         when handling it ourselves.
47472         * tests/test-vasnprintf-posix.c (test_function): Add test.
47473         * tests/test-snprintf-posix.h (test_function): Likewise.
47474         * tests/test-sprintf-posix.h (test_function): Likewise.
47475         * tests/test-vasprintf-posix.c (test_function): Likewise.
47476         Reported by Alain Guibert.
47477
47478 2008-09-01  Eric Blake  <ebb9@byu.net>
47479
47480         c-stack: make configure-time check more robust
47481         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47482         successful sigaction call.
47483         Reported by Tom G. Christensen.
47484
47485 2008-09-01  Bruno Haible  <bruno@clisp.org>
47486
47487         New module 'findprog-lgpl'.
47488         * modules/findprog-lgpl: New file.
47489         * lib/findprog-lgpl.c: New file.
47490         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47491         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47492         to decide whether to use strdup or xstrdup, concatenated_filename or
47493         xconcatenated_filename.
47494
47495 2008-09-01  Bruno Haible  <bruno@clisp.org>
47496
47497         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47498         'xconcat-filename' (GPL).
47499         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47500         (License): Change to LGPLv2+.
47501         * modules/xconcat-filename: New file.
47502         * lib/concat-filename.h (concatenated_filename): Change specification.
47503         (xconcatenated_filename): New declaration.
47504         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47505         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47506         memory situations.
47507         * lib/xconcat-filename.c: New file.
47508         * NEWS: Mention the change.
47509         * lib/findprog.c: Include concat-filename.h, not filename.h.
47510         (find_in_path): Use xconcatenated_filename instead of
47511         concatenated_filename.
47512         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47513         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47514         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47515         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47516         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47517         instead of concatenated_filename.
47518         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47519         (execute_java_class): Use xconcatenated_filename instead of
47520         concatenated_filename.
47521         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47522         * modules/javacomp (Depends-on): Likewise.
47523         * modules/javaexec (Depends-on): Likewise.
47524
47525 2008-09-01  Bruno Haible  <bruno@clisp.org>
47526
47527         Split module 'filename' into 'filename' and 'concat-filename'.
47528         * modules/filename: Keep only lib/filename.h.
47529         (License): Change to LGPLv2+.
47530         * modules/concat-filename: New file, extracted from modules/filename.
47531         * lib/filename.h (concatenated_filename): Remove declaration.
47532         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47533         * lib/concat-filename.c: Include concat-filename.h.
47534         * NEWS: Mention the change.
47535
47536 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47537
47538         * lib/bitrotate.h (rotl8, rotr8): Add.
47539
47540         * modules/bitrotate (configure.ac): Need
47541         AC_REQUIRE([AC_C_INLINE]).
47542         (Description): Mention stdint.h.  Reported by Bruno Haible
47543         <bruno@clisp.org>.
47544
47545         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47546         Paolo Bonzini <bonzini@gnu.org>.
47547
47548 2008-08-31  Bruno Haible  <bruno@clisp.org>
47549
47550         Assume Solaris specific bi-arch conventions on Solaris systems.
47551         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47552         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47553         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47554         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47555         like acl_libdirstem.
47556         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47557         acl_libdirstem.
47558         * NEWS: Mention the change.
47559         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47560
47561 2008-08-31  Jim Meyering  <meyering@redhat.com>
47562
47563         * lib/strftime.h: Add comments describing the two added arguments.
47564
47565         remove duplicate #include directives
47566         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47567         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47568
47569 2008-08-31  Bruno Haible  <bruno@clisp.org>
47570
47571         New module 'sigpipe-die'.
47572         * modules/sigpipe-die: New file.
47573         * lib/sigpipe-die.h: New file.
47574         * lib/sigpipe-die.c: New file.
47575         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47576
47577 2008-08-31  Bruno Haible  <bruno@clisp.org>
47578
47579         Don't override previously installed signal handlers.
47580         * lib/fatal-signal.c (saved_sigactions): New variable.
47581         (uninstall_handlers): Reset the signal to the saved handler, not
47582         to SIG_DFL (except when ignored).
47583         (install_handlers): Save the previous handlers.
47584
47585 2008-08-30  Bruno Haible  <bruno@clisp.org>
47586
47587         * gnulib-tool (func_reset_sigpipe): New function.
47588         (func_get_automake_snippet, func_modules_transitive_closure,
47589         func_import): Invoke it before a join command that reads from stdin,
47590         to avoid "echo: write error: Broken pipe" error messages on stderr.
47591         Reported by Sam Steingold <sds@gnu.org>.
47592
47593 2008-08-30  Bruno Haible  <bruno@clisp.org>
47594
47595         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47596         Code copied from m4/open.m4.
47597         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47598         access and the filename ends in a slash. Code copied from lib/open.c.
47599         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47600         * tests/test-fopen.c (main): Check against bug with trailing slash.
47601
47602 2008-08-29  Bruno Haible  <bruno@clisp.org>
47603
47604         Avoid some "gcc -pedantic" warnings.
47605         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47606         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47607         * lib/dirent.in.h: Likewise.
47608         * lib/fcntl.in.h: Likewise.
47609         * lib/float.in.h: Likewise.
47610         * lib/iconv.in.h: Likewise.
47611         * lib/inttypes.in.h: Likewise.
47612         * lib/locale.in.h: Likewise.
47613         * lib/math.in.h: Likewise.
47614         * lib/netinet_in.in.h: Likewise.
47615         * lib/search.in.h: Likewise.
47616         * lib/signal.in.h: Likewise.
47617         * lib/stdarg.in.h: Likewise.
47618         * lib/stdint.in.h: Likewise.
47619         * lib/stdio.in.h: Likewise.
47620         * lib/stdlib.in.h: Likewise.
47621         * lib/string.in.h: Likewise.
47622         * lib/strings.in.h: Likewise.
47623         * lib/sys_select.in.h: Likewise.
47624         * lib/sys_socket.in.h: Likewise.
47625         * lib/sys_stat.in.h: Likewise.
47626         * lib/sys_time.in.h: Likewise.
47627         * lib/sysexits.in.h: Likewise.
47628         * lib/time.in.h: Likewise.
47629         * lib/unistd.in.h: Likewise.
47630         * lib/wchar.in.h: Likewise.
47631         * lib/wctype.in.h: Likewise.
47632         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47633         * modules/fchdir (Makefile.am): Likewise.
47634         * modules/fcntl (Makefile.am): Likewise.
47635         * modules/float (Makefile.am): Likewise.
47636         * modules/iconv_open (Makefile.am): Likewise.
47637         * modules/inttypes (Makefile.am): Likewise.
47638         * modules/locale (Makefile.am): Likewise.
47639         * modules/math (Makefile.am): Likewise.
47640         * modules/netinet_in (Makefile.am): Likewise.
47641         * modules/search (Makefile.am): Likewise.
47642         * modules/signal (Makefile.am): Likewise.
47643         * modules/stdarg (Makefile.am): Likewise.
47644         * modules/stdint (Makefile.am): Likewise.
47645         * modules/stdio (Makefile.am): Likewise.
47646         * modules/stdlib (Makefile.am): Likewise.
47647         * modules/string (Makefile.am): Likewise.
47648         * modules/strings (Makefile.am): Likewise.
47649         * modules/sys_select (Makefile.am): Likewise.
47650         * modules/sys_socket (Makefile.am): Likewise.
47651         * modules/sys_stat (Makefile.am): Likewise.
47652         * modules/sys_time (Makefile.am): Likewise.
47653         * modules/sysexits (Makefile.am): Likewise.
47654         * modules/time (Makefile.am): Likewise.
47655         * modules/unistd (Makefile.am): Likewise.
47656         * modules/wchar (Makefile.am): Likewise.
47657         * modules/wctype (Makefile.am): Likewise.
47658         Reported by Reuben Thomas <rrt@sc3d.org>.
47659
47660 2008-08-29  Bruno Haible  <bruno@clisp.org>
47661
47662         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47663         any more.
47664
47665 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47666
47667         * MODULES.html.sh (Misc): Add bitrotate.
47668
47669         * modules/bitrotate: New file.
47670
47671         * lib/bitrotate.h: New file.
47672
47673         * modules/bitrotate-tests: New file.
47674
47675         * tests/test-bitrotate.c: New file.
47676
47677         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47678         on the bitrotate module.
47679
47680         * lib/arctwo.c: Use new bitrotate module.
47681
47682 2008-08-29  Jim Meyering  <meyering@redhat.com>
47683
47684         bootstrap: merge changes from coreutils
47685         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47686         of copied files.  Remove a kludge, now that this is fixed.
47687         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47688         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47689         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47690
47691 2008-08-29  Bruno Haible  <bruno@clisp.org>
47692
47693         * MODULES.html.sh: Remove --cvs-urls option.
47694
47695 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47696
47697         maint.mk: adjust to file name change
47698         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47699
47700 2008-08-28  Jim Meyering  <meyering@redhat.com>
47701
47702         * modules/getndelim2 (License): Relicense to LGPLv2+.
47703         Approved by Richard Stallman for the version of 1995, and by
47704         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47705
47706 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47707
47708         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47709         dummy if one is not available.  Do not touch them if
47710         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47711         (getc_maybe_unlocked): New.
47712         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47713
47714 2008-08-26  Eric Blake  <ebb9@byu.net>
47715
47716         doc/INSTALL: resync from autoconf
47717         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47718         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47719         moving...
47720         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47721         * INSTALL: Regenerate.
47722         * INSTALL.ISO: New file.
47723         * INSTALL.UTF-8: Likewise.
47724
47725 2008-08-26  Jim Meyering  <meyering@redhat.com>
47726
47727         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47728         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47729         these definitions conditional, so that they may be overridden, too.
47730
47731 2008-08-26  Bruno Haible  <bruno@clisp.org>
47732
47733         Generate INSTALL file variants with prettier quotes.
47734         * doc/Makefile (INSTALL_PRELUDE): New macro.
47735         (INSTALL): Use it.
47736         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47737
47738 2008-08-26  Bruno Haible  <bruno@clisp.org>
47739
47740         Run makeinfo in an English locale.
47741         * doc/Makefile (MAKEINFO): New variable.
47742
47743 2008-08-26  Bruno Haible  <bruno@clisp.org>
47744
47745         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47746         Suggested by Eric Blake.
47747
47748 2008-08-25  Bruno Haible  <bruno@clisp.org>
47749
47750         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47751
47752 2008-08-25  Eric Blake  <ebb9@byu.net>
47753
47754         c-stack: test that stack overflow can be caught
47755         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47756         that platform allows handling stack overflow; at least OS/2 EMX
47757         has sigaltstack, but crashes before transferring control to
47758         handler on stack overflow.
47759         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47760         check for HAVE_STACK_OVERFLOW_HANDLING.
47761         Reported by Elbert Pol.
47762
47763 2008-08-25  Bruno Haible  <bruno@clisp.org>
47764
47765         * doc/posix-functions/strftime.texi: Fix description of strftime
47766         module.
47767
47768 2008-08-24  Bruno Haible  <bruno@clisp.org>
47769
47770         * tests/uniwidth/test-uc_width2.c: New file.
47771         * tests/uniwidth/test-uc_width2.sh: New file.
47772         * modules/uniwidth/width-tests (Files): Add the new files.
47773         (TESTS): Add uniwidth/test-uc_width2.sh.
47774         (TESTS_ENVIRONMENT): New variable.
47775         (check_PROGRAMS): Add test-uc_width2.
47776         (test_uc_width2_SOURCES): New variable.
47777
47778         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47779         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47780         not 0x00AB.
47781         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47782
47783 2008-08-22  Eric Blake  <ebb9@byu.net>
47784
47785         test-lock, test-tls: mention why a test is skipped
47786         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47787         skipped.
47788         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47789
47790         count-one-bits: relax license
47791         * modules/count-one-bits (License): Relicense to LGPLv2+.
47792         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47793
47794 2008-08-22  Andreas Schwab  <schwab@suse.de>
47795
47796         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47797         Remove spurious space in assignment.
47798
47799 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47800
47801         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47802         Paul Eggert <eggert@CS.UCLA.EDU>.
47803
47804 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47805
47806         * modules/gettext: Add m4/threadlib.m4.
47807
47808 2008-08-19  Eric Blake  <ebb9@byu.net>
47809
47810         test-c-stack: fix compilation failure on FreeBSD 5.0
47811         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47812         headers before <sys/resource.h>.
47813         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47814         the bug.
47815         Reported by Nelson H. F. Beebe.
47816
47817         strverscmp: migrate from "strverscmp.h" to <string.h>
47818         * modules/string (Makefile.am): Add new hooks.
47819         * modules/strverscmp (Files): Remove strverscmp.h.
47820         (Depends-on): Add string.
47821         (configure.ac): Add indicator.
47822         (Include): Mention new header.
47823         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47824         defaults.
47825         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47826         results.
47827         * lib/strverscmp.h: Delete.
47828         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47829         * tests/test-strverscmp.c (includes): Adjust client.
47830         * lib/check-version.c (includes): Likewise.
47831         * NEWS: Document the change.
47832
47833         strverscmp: add unit test
47834         * modules/strverscmp-tests: New file.
47835         * tests/test-strverscmp.c: Likewise.
47836
47837 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47838
47839         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47840         regarding Windows crypto stuff, from Mono.
47841
47842 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47843
47844         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47845         if present, for intel RND.  Return error on failures.
47846
47847 2008-08-18  Ben Pfaff  <blp@gnu.org>
47848
47849         gitlog-to-changelog: give better diagnostic for failed pipe-open
47850         * build-aux/gitlog-to-changelog: Improve error message: suggest
47851         that the version of Git may be too old.
47852
47853 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47854
47855         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47856         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47857
47858 2008-08-18  Bruno Haible  <bruno@clisp.org>
47859
47860         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47861         pthread_in_use().
47862
47863 2008-08-18  Bruno Haible  <bruno@clisp.org>
47864
47865         * lib/glthread/threadlib.c: Include <pthread.h>.
47866
47867 2008-08-18  Bruno Haible  <bruno@clisp.org>
47868
47869         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47870         glthread_recursive_lock_* macros.
47871         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47872         Fix syntax error.
47873
47874 2008-08-18  Bruno Haible  <bruno@clisp.org>
47875
47876         * lib/glthread/thread.c: Avoid forcing a context switch right after
47877         thread creation.
47878
47879 2008-08-17  Bruno Haible  <bruno@clisp.org>
47880
47881         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47882         * lib/glthread/thread.h: Provide Win32 specific implementation.
47883         * modules/thread (Files): Add lib/glthread/thread.c.
47884         (Depends-on): Add lock.
47885         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47886
47887 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47888
47889         New module 'yield'.
47890         * modules/yield: New file.
47891         * lib/glthread/yield.h: New file.
47892         * m4/yield.m4: New file.
47893         * MODULES.html.sh (Multithreading): Add yield.
47894
47895 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47896
47897         New module 'thread'.
47898         * modules/thread: New file.
47899         * lib/glthread/thread.h: New file.
47900         * m4/thread.m4: New file.
47901         * MODULES.html.sh (Multithreading): Add thread.
47902
47903 2008-08-17  Bruno Haible  <bruno@clisp.org>
47904
47905         * lib/glthread/lock.h: Include <stdlib.h> always.
47906         * lib/glthread/tls.h: Likewise.
47907         * lib/glthread/cond.h: Likewise.
47908
47909 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47910
47911         New module 'cond'.
47912         * modules/cond: New file.
47913         * lib/glthread/cond.h: New file.
47914         * lib/glthread/cond.c: New file.
47915         * m4/cond.m4: New file.
47916         * MODULES.html.sh (Multithreading): Add cond.
47917
47918 2008-08-16  Eric Blake  <ebb9@byu.net>
47919
47920         c-stack: fix regression on Irix 5.3 from 2008-06-21
47921         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47922         sa_sigaction...
47923         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47924         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47925         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47926         * modules/signal (Makefile.am): Use the value.
47927         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47928         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47929         * doc/posix-headers/signal.texi (signal.h): Document this
47930         portability issue.
47931         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47932         Reported by Tom G. Christensen.
47933
47934 2008-08-17  Bruno Haible  <bruno@clisp.org>
47935
47936         New module 'threadlib'.
47937         * modules/threadlib: New file.
47938         * lib/glthread/threadlib.c: New file, extracted from
47939         lib/glthread/lock.c.
47940         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47941         functions.
47942         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47943         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47944         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47945         macros.
47946         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47947         (gl_DISABLE_THREADS): Remove macro.
47948         * modules/lock (Files): Remove build-aux/config.rpath.
47949         (Depends-on): Remove havelib. Add threadlib.
47950         (configure.ac-early): Remove section.
47951         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47952         * modules/tls (Depends-on): Remove lock. Add threadlib.
47953         (Link): New section, copied from threadlib.
47954         * MODULES.html.sh (Multithreading): Add threadlib.
47955
47956 2008-08-14  Bruno Haible  <bruno@clisp.org>
47957
47958         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47959         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47960         glthread_rwlock_unlock, glthread_rwlock_destroy,
47961         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47962         glthread_recursive_lock_destroy): Define as macros always.
47963         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47964         glthread_lock_lock.
47965         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47966         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47967         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47968         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47969         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47970         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47971         (glthread_recursive_lock_lock_func): Renamed from
47972         glthread_recursive_lock_lock.
47973         (glthread_recursive_lock_unlock_func): Renamed from
47974         glthread_recursive_lock_unlock.
47975         (glthread_recursive_lock_destroy_func): Renamed from
47976         glthread_recursive_lock_destroy.
47977
47978 2008-08-14  Bruno Haible  <bruno@clisp.org>
47979
47980         * lib/glthread/lock.h: Renamed from lib/lock.h.
47981         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47982         * lib/glthread/tls.h: Renamed from lib/tls.h.
47983         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47984         * lib/fstrcmp.c: Update includes.
47985         * lib/strsignal.c: Update includes.
47986         * modules/lock (Files, Makefile.am): Update.
47987         (Include): Change to "glthread/lock.h".
47988         * modules/tls (Files, Makefile.am): Update.
47989         (Include): Change to "glthread/tls.h".
47990         * tests/test-lock.c: Update includes.
47991         * tests/test-tls.c: Update includes.
47992         * NEWS: Mention the renamed header files.
47993
47994 2008-08-11  Jim Meyering  <meyering@redhat.com>
47995
47996         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47997
47998 2008-08-11  Eric Blake  <ebb9@byu.net>
47999
48000         test-c-stack: avoid C99-ism
48001         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48002         before statement.
48003         Reported by Alain Guibert.
48004
48005 2008-08-10  Jim Meyering  <meyering@redhat.com>
48006
48007         ensure that return value of uinttostr et al are not ignored
48008         * lib/inttostr.h (__GNUC_PREREQ): Define.
48009         (__attribute_warn_unused_result__): Define.
48010         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48011
48012 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48013
48014         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48015         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48016
48017 2008-08-07  Jim Meyering  <meyering@redhat.com>
48018
48019         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48020
48021         * modules/mkstemp (License): Relicense under LGPLv2+.
48022         * modules/tempname (License): Likewise.
48023
48024 2008-08-06  Bruno Haible  <bruno@clisp.org>
48025
48026         * lib/poll.c (poll): Further micro-optimization.
48027
48028 2008-08-06  Jim Meyering  <meyering@redhat.com>
48029
48030         inet_pton.c: use locale-independent tolower
48031         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48032         (inet_pton6): Use c_tolower rather than tolower.
48033         * modules/inet_pton (Depends-on): Add c-ctype.
48034
48035 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48036
48037         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48038         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48039
48040 2008-08-06  Jim Meyering  <meyering@redhat.com>
48041
48042         * modules/inet_pton (License): Relicense under LGPLv2+.
48043
48044 2008-08-03  Bruno Haible  <bruno@clisp.org>
48045
48046         Additional non-aborting API for lock and tls.
48047         * lib/lock.h: Include <errno.h>.
48048         (glthread_lock_init): New macro/function.
48049         (gl_lock_init): Define as wrapper around glthread_lock_init.
48050         (glthread_lock_lock): New macro/function.
48051         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48052         (glthread_lock_unlock): New macro/function.
48053         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48054         (glthread_lock_destroy): New macro/function.
48055         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48056         (glthread_rwlock_init): New macro/function.
48057         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48058         (glthread_rwlock_rdlock): New macro/function.
48059         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48060         (glthread_rwlock_wrlock): New macro/function.
48061         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48062         (glthread_rwlock_unlock): New macro/function.
48063         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48064         (glthread_rwlock_destroy): New macro/function.
48065         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48066         (glthread_recursive_lock_init): New macro/function.
48067         (gl_recursive_lock_init): Define as wrapper around
48068         glthread_recursive_lock_init.
48069         (glthread_recursive_lock_lock): New macro/function.
48070         (gl_recursive_lock_lock): Define as wrapper around
48071         glthread_recursive_lock_lock.
48072         (glthread_recursive_lock_unlock): New macro/function.
48073         (gl_recursive_lock_unlock): Define as wrapper around
48074         glthread_recursive_lock_unlock.
48075         (glthread_recursive_lock_destroy): New macro/function.
48076         (gl_recursive_lock_destroy): Define as wrapper around
48077         glthread_recursive_lock_destroy.
48078         (glthread_once): New macro/function.
48079         (gl_once): Define as wrapper around glthread_once.
48080         Update function declarations.
48081         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48082         glthread_rwlock_init. Return error code.
48083         (glthread_rwlock_rdlock_multithreaded): Renamed from
48084         glthread_rwlock_rdlock. Return error code.
48085         (glthread_rwlock_wrlock_multithreaded): Renamed from
48086         glthread_rwlock_wrlock. Return error code.
48087         (glthread_rwlock_unlock_multithreaded): Renamed from
48088         glthread_rwlock_unlock. Return error code.
48089         (glthread_rwlock_destroy_multithreaded): Renamed from
48090         glthread_rwlock_destroy. Return error code.
48091         (glthread_recursive_lock_init_multithreaded): Renamed from
48092         glthread_recursive_lock_init. Return error code.
48093         (glthread_recursive_lock_lock_multithreaded): Renamed from
48094         glthread_recursive_lock_lock. Return error code.
48095         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48096         glthread_recursive_lock_unlock. Return error code.
48097         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48098         glthread_recursive_lock_destroy. Return error code.
48099         (glthread_once_call): Make static.
48100         (glthread_once_multithreaded): Renamed from glthread_once.
48101         * lib/tls.h: Include <errno.h>.
48102         (glthread_tls_key_init): New macro/function.
48103         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48104         (glthread_tls_set): New macro/function.
48105         (gl_tls_set): Define as wrapper around glthread_tls_set.
48106         (glthread_tls_key_destroy): New macro/function.
48107         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48108         Update function declarations.
48109         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48110         glthread_tls_get.
48111         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48112
48113 2008-08-04  Eric Blake  <ebb9@byu.net>
48114
48115         gnumakefile: use space, not TAB, outside of targets
48116         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48117
48118 2008-08-02  Jim Meyering  <meyering@redhat.com>
48119
48120         getdate.y: avoid locale-dependent date parsing failure
48121         In Turkish locales, getdate would fail to recognize keywords
48122         containing a lowercase "i".  The solution is not to rely on
48123         locale-sensitive case-conversion.
48124         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48125         (lookup_word): Use c_toupper in place of toupper.
48126         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48127         Reported by Vefa Bicakci <bicave@superonline.com> in
48128         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48129         * modules/getdate (Depends-on): Add c-ctype.
48130
48131 2008-08-02  Bruno Haible  <bruno@clisp.org>
48132
48133         * gnulib-tool (func_import): When updating or creating a .gitignore
48134         file, prepend each added line with a slash, and ignore leading slashes
48135         from the existing lines.
48136         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48137
48138 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48139
48140         Portability fix for GNU make 3.79.1.
48141         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48142         versions do not understand.
48143
48144 2008-08-01  Bruno Haible  <bruno@clisp.org>
48145
48146         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48147         * tests/test-isnanf.h (zero): New variable.
48148         (main): Avoid literal -0.0f.
48149         * tests/test-isnand.h (zero): New variable.
48150         (main): Avoid literal -0.0.
48151         * tests/test-isnanl.h (zero): New variable.
48152         (main): Avoid literal -0.0L.
48153         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48154         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48155         -0.0, -0.0L.
48156         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48157         (test_signbitd): Avoid literal -0.0.
48158         (test_signbitl): Avoid literal -0.0L.
48159         * tests/test-ceilf1.c (zero): New variable.
48160         (main): Avoid literal -0.0f.
48161         * tests/test-ceill.c (zero): New variable.
48162         (main): Avoid literal -0.0L.
48163         * tests/test-floorf1.c (zero): New variable.
48164         (main): Avoid literal -0.0f.
48165         * tests/test-floorl.c (zero): New variable.
48166         (main): Avoid literal -0.0L.
48167         * tests/test-roundf1.c (zero): New variable.
48168         (main): Avoid literal -0.0f.
48169         * tests/test-round1.c (zero): New variable.
48170         (main): Avoid literal -0.0.
48171         * tests/test-roundl.c (zero): New variable.
48172         (main): Avoid literal -0.0L.
48173         * tests/test-truncf1.c (zero): New variable.
48174         (main): Avoid literal -0.0f.
48175         * tests/test-trunc1.c (zero): New variable.
48176         (main): Avoid literal -0.0.
48177         * tests/test-truncl.c (zero): New variable.
48178         (main): Avoid literal -0.0L.
48179         * tests/test-frexp.c (zero): New variable.
48180         (main): Avoid literal -0.0.
48181         * tests/test-frexpl.c (zero): New variable.
48182         (main): Avoid literal -0.0L.
48183         * tests/test-ldexpl.c (zero): New variable.
48184         (main): Avoid literal -0.0L.
48185         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48186         (zerod, zerol): New variables.
48187         (test_function): Avoid literals -0.0, -0.0L.
48188         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48189         (zerod, zerol): New variables.
48190         (test_function): Avoid literals -0.0, -0.0L.
48191         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48192         (zerod, zerol): New variables.
48193         (test_function): Avoid literals -0.0, -0.0L.
48194         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48195         (zerod, zerol): New variables.
48196         (test_function): Avoid literals -0.0, -0.0L.
48197         * tests/test-strtod.c (zero): New variable.
48198         (main): Avoid literal -0.0.
48199         Reported by Jonathan C. Patschke <jp@centtech.com>.
48200
48201 2008-07-31  Jim Meyering  <meyering@redhat.com>
48202
48203         sha256.h: correct definition of SHA224_DIGEST_SIZE
48204         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48205         Reported by Paulie Pena IV <paulie4@gmail.com>.
48206         Define as 224 / 8, rather than as a literal.
48207         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48208         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48209         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48210
48211 2008-07-31  Bruno Haible  <bruno@clisp.org>
48212
48213         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48214         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48215         Reported by Jonathan Patschke <jp@centtech.com>.
48216
48217 2008-07-31  Bruno Haible  <bruno@clisp.org>
48218
48219         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48220         Reported by Paolo Bonzini <bonzini@gnu.org>.
48221
48222 2008-07-30  Eric Blake  <ebb9@byu.net>
48223
48224         test-strtod: allow compilation without -lm
48225         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48226         Reported by Dennis Clarke <blastwave@gmail.com>.
48227
48228 2008-07-28  Jim Meyering  <meyering@redhat.com>
48229
48230         bootstrap: work also when there are no .po files in po/
48231         * build-aux/bootstrap (update_po_files): Complete the change
48232         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48233
48234 2008-07-27  Jim Meyering  <meyering@redhat.com>
48235
48236         * users.txt: Add zile.
48237
48238 2008-07-26  Ben Pfaff  <blp@gnu.org>
48239
48240         Add missing dependencies on new m4/exponent[fdl].m4 files.
48241         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48242         * modules/isnand-nolibm: Add m4/exponentd.m4.
48243         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48244         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48245         m4/isnan[fdl].m4, because the macros actually used moved.
48246         Reported by Jim Meyering.
48247
48248 2008-07-14  Ben Pfaff  <blp@gnu.org>
48249
48250         Add isinf module.
48251         * lib/isinf.c: New file.
48252         * lib/math.in.h: Define isinf macro if we have decided to replace
48253         it.
48254         * m4/isinf.m4: New file.
48255         * m4/math_h.m4: Initialize and substitute variables for isinf
48256         module.
48257         * modules/isinf: New file.
48258         * modules/isinf-tests: New file.
48259         * modules/math: Add substitutions for new module.
48260         * tests/test-isinf.c: New file.
48261         * doc/posix-functions/isinf.texi: Mention new module.
48262         * MODULES.html.sh: Mention new module.
48263
48264 2008-07-14  Ben Pfaff  <blp@gnu.org>
48265
48266         Factor out some macros for use by additional modules.
48267         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48268         exponentf.m4.
48269         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48270         exponentd.m4.
48271         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48272         file exponentl.m4.
48273         * m4/exponentf.m4: New file.
48274         * m4/exponentd.m4: New file.
48275         * m4/exponentl.m4: New file.
48276         * modules/isnanf: Use new file m4/exponentf.m4.
48277         * modules/isnand: Use new file m4/exponentd.m4.
48278         * modules/isnanl: Use new file m4/exponentl.m4.
48279
48280 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48281
48282         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48283         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48284         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48285         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48286
48287         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48288         readlink on platforms without PATH_MAX.
48289
48290 2008-07-21  Eric Blake  <ebb9@byu.net>
48291
48292         Warn, not fail, on stale version.
48293         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48294
48295         Don't allow installation with stale devel version number.
48296         * top/GNUmakefile (_is-install-target): New macro.
48297         (_curr-ver): Forbid installation with stale version number.
48298
48299 2008-07-20  Bruno Haible  <bruno@clisp.org>
48300
48301         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48302         TESTS_ENVIRONMENT.
48303         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48304
48305 2008-07-20  Bruno Haible  <bruno@clisp.org>
48306
48307         * lib/c-stack.h (c_stack_action): Add documentation.
48308         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48309
48310 2008-07-20  Bruno Haible  <bruno@clisp.org>
48311
48312         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48313         * modules/readlink (License): Likewise.
48314
48315 2008-07-17  Eric Blake  <ebb9@byu.net>
48316
48317         * modules/c-stack (Link): Fix typo.
48318
48319         Make c-stack use libsigsegv, when available.
48320         * modules/c-stack (Depends-on): Add libsigsegv.
48321         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48322         needed.
48323         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48324         (segv_handler, overflow_handler, c_stack_action)
48325         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48326         implementation when libsigsegv is available, but only when using
48327         the library is necessary.
48328         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48329         comment, explaining why XSI check fails on Linux.
48330         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48331         * tests/test-c-stack2.sh: Tweak skip message.
48332         * NEWS: Document new link-time requirements.
48333
48334 2008-07-16  Eric Blake  <ebb9@byu.net>
48335
48336         c-stack: Expose false positives when not using libsigsegv.
48337         * modules/c-stack-tests (Files): Expand test.
48338         * tests/test-c-stack.c (main): Add means to conditionally trigger
48339         non-overflow SIGSEGV.
48340         * tests/test-c-stack2.sh: New file.
48341
48342 2008-07-14  Bruno Haible  <bruno@clisp.org>
48343
48344         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48345         Reported by Eric Blake.
48346
48347 2008-07-14  Sam Steingold  <sds@gnu.org>
48348             Bruno Haible  <bruno@clisp.org>
48349
48350         New module libsigsegv.
48351         * modules/libsigsegv: New file.
48352         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48353         modifications.
48354         * MODULES.html.sh (Signal handling): New section.
48355
48356 2008-07-14  Bruno Haible  <bruno@clisp.org>
48357
48358         * modules/unictype/ctype-* (Description): Add the word "function".
48359         Improves the resulting doc in MODULES.html.
48360
48361 2008-07-12  Ben Pfaff  <blp@gnu.org>
48362
48363         Add longlong module.
48364         * modules/longlong: New file.
48365
48366 2008-07-12  Bruno Haible  <bruno@clisp.org>
48367
48368         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48369         to empty.
48370
48371 2008-07-10  Ben Pfaff  <blp@gnu.org>
48372
48373         Add isnan module.
48374         * doc/posix-functions/isnan.texi: Mention new module.
48375         * lib/math.in.h: Define isnan macro if we have decided to replace
48376         it.
48377         * m4/isnan.m4: New file.
48378         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48379         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48380         also.
48381         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48382         redundancy.
48383         * m4/math_h.m4: Initialize and substitute variables for isnan
48384         module.
48385         * modules/isnan: New file.
48386         * modules/isnan-tests: New file.
48387         * modules/math: Add substitutions for new module.
48388         * tests/test-isnan.c: New file.
48389         * MODULES.html.sh: Mention new module.
48390
48391 2008-07-10  Ben Pfaff  <blp@gnu.org>
48392
48393         Add isnanf module.
48394         * lib/isnanf.m4: New file.
48395         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48396         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48397         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48398         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48399         * modules/isnanf: New file.
48400         * modules/isnanf-tests: New file.
48401         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48402         files.
48403         * tests/test-isnanf-nolibm.c: factored most of its contents into
48404         new file tests/test-isnanf.h.
48405         * tests/test-isnanf.h: New file.
48406         * tests/test-isnanf.c: New file.
48407         * MODULES.html.sh: Mention new module.
48408         * doc/glibc-functions/isnanf.texi: Mention new module.
48409
48410 2008-07-10  Ben Pfaff  <blp@gnu.org>
48411
48412         Add isnand module.
48413         * lib/isnand.h: New file.
48414         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48415         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48416         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48417         functionality also.
48418         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48419         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48420         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48421         * modules/isnand: New file.
48422         * modules/isnand-tests: New file.
48423         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48424         files.
48425         * tests/test-isnand-nolibm.c: factored most of its contents into
48426         new file tests/test-isnand.h.
48427         * tests/test-isnand.h: New file.
48428         * tests/test-isnand.c: New file.
48429         * MODULES.html.sh: Mention new module.
48430
48431 2008-07-10  Ben Pfaff  <blp@gnu.org>
48432
48433         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48434         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48435         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48436         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48437         * modules/isnanf-nolibm: Update references to renamed files.
48438         * modules/isnand-nolibm: Likewise.
48439         * modules/isnanf-nolibm-tests: Likewise.
48440         * modules/isnand-nolibm-tests: Likewise.
48441         * lib/frexp.c: Likewise.
48442         * lib/isfinite.c: Likewise.
48443         * lib/signbitd.c: Likewise.
48444         * lib/signbitf.c: Likewise.
48445         * lib/vasnprintf.c: Likewise.
48446         * tests/test-ceilf1.c: Likewise.
48447         * tests/test-ceilf2.c: Likewise.
48448         * tests/test-floorf1.c: Likewise.
48449         * tests/test-floorf2.c: Likewise.
48450         * tests/test-frexp.c: Likewise.
48451         * tests/test-round1.c: Likewise.
48452         * tests/test-round2.c: Likewise.
48453         * tests/test-roundf1.c: Likewise.
48454         * tests/test-strtod.c: Likewise.
48455         * tests/test-trunc1.c: Likewise.
48456         * tests/test-trunc2.c: Likewise.
48457         * tests/test-truncf1.c: Likewise.
48458         * tests/test-truncf2.c: Likewise.
48459         * NEWS: Mention the renamed header files.
48460
48461 2008-07-11  Jim Meyering  <meyering@redhat.com>
48462
48463         vc-list-files: make the last-resort awk code more portable
48464         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48465         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48466         does not support it.
48467
48468 2008-07-10  Eric Blake  <ebb9@byu.net>
48469
48470         Work with tar's bootstrap.
48471         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48472         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48473         an m4 comment.
48474
48475 2008-07-09  Jim Meyering  <meyering@redhat.com>
48476
48477         posix-shell.m4: fix typo that made this test malfunction
48478         * m4/posix-shell.m4: Remove capitalization in variable name.
48479
48480 2008-07-08  Bruno Haible  <bruno@clisp.org>
48481
48482         * m4/onceonly.m4: Update comments.
48483         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48484
48485 2008-07-04  Jim Meyering  <meyering@redhat.com>
48486
48487         * users.txt: Add vc-dwim.
48488         (bison, coreutils): Use the gitweb URL.
48489
48490 2008-07-03  Jim Meyering  <meyering@redhat.com>
48491
48492         * users.txt: Add libffcall.  From Sam Steingold.
48493
48494 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
48495
48496         getdate.y: do not ignore TZ with relative day, month or year offset
48497         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48498         relative-date-handling, since otherwise, the latter would clobber the
48499         sole output (an updated Start value) of the tz-handling block.
48500         * tests/test-getdate.c: Tests for the fix
48501
48502 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48503
48504         Recognize 'foo_LIBRARIES += libgnu.a'.
48505         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48506         makefile snippet has already specified an installation location,
48507         also using '+='.
48508
48509 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
48510
48511         getdate.y: factor out common actions
48512         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48513         Use them in place of open-coded actions.
48514
48515 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48516
48517         Add self-test for getdate module.
48518         * modules/getdate-tests: New file.
48519         * tests/test-getdate.c: New file.
48520
48521 2008-06-29  Bruno Haible  <bruno@clisp.org>
48522
48523         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48524         .gitignore.
48525         Reported by Sylvain Beucler <beuc@beuc.net>.
48526
48527 2008-06-29  Bruno Haible  <bruno@clisp.org>
48528
48529         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48530         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48531
48532 2008-06-29  Bruno Haible  <bruno@clisp.org>
48533
48534         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48535         EXTRA_DIST.
48536         Reported by Sylvain Beucler <beuc@beuc.net>.
48537
48538 2008-06-26  Jim Meyering  <meyering@redhat.com>
48539
48540         make several modules depend on the "open" module
48541         This provides slightly increased consistency when opening-for-write
48542         the name of a non-directory spelled with a trailing slash.
48543         * modules/chdir-safer: Likewise.
48544         * modules/chown: Likewise.
48545         * modules/clean-temp: Likewise.
48546         * modules/copy-file: Likewise.
48547         * modules/fchdir: Likewise.
48548         * modules/fcntl-safer: Likewise.
48549         * modules/pipe: Likewise.
48550         * modules/utime: Likewise.
48551         Prompted by Eric Blake and Bruno Haible.
48552
48553 2008-06-24  Andreas Schwab  <schwab@suse.de>
48554
48555         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48556         literals can be used as initializers for global variables.
48557
48558 2008-06-23  Eric Blake  <ebb9@byu.net>
48559
48560         Make gnulib-cache.m4 easier to diff.
48561         * gnulib-tool (func_import): Allow newlines when reading cached
48562         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48563
48564 2008-06-23  Bruno Haible  <bruno@clisp.org>
48565
48566         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48567         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48568         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48569         m4/signalblocking.m4.
48570         (gl_PREREQ_SIGACTION): Don't invoke it.
48571         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48572         gl_PREREQ_SIG_HANDLER_H.
48573         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48574         Don't check for sigaction here.
48575
48576 2008-06-23  Bruno Haible  <bruno@clisp.org>
48577
48578         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48579         (install_handlers): Don't set the SA_RESETHAND flag.
48580
48581 2008-06-23  Bruno Haible  <bruno@clisp.org>
48582
48583         * m4/sigaction.m4: Comment fixes.
48584         * lib/signal.in.h: Likewise.
48585
48586 2008-06-23  Eric Blake  <ebb9@byu.net>
48587
48588         Fix typo.
48589         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48590
48591         Avoid SA_ namespace.
48592         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48593         Reported by Ralf Wildenhues.
48594
48595         Avoid test failure due to SA_RESTORER.
48596         * tests/test-sigaction.c (SA_MASK): New macro.
48597         (main): Avoid failing due to extension flags being set.
48598         Reported by Jim Meyering.
48599
48600         Revert use of sig-handler.h in sigprocmask.c.
48601         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48602         it requires the existence of struct sigaction.
48603         * lib/sigprocmask.c (handler_t): Restore typedef.
48604         (rpl_signal, old_handlers): Use local type.
48605
48606 2008-06-22  Bruno Haible  <bruno@clisp.org>
48607
48608         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48609         conditionally.
48610         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48611
48612 2008-06-22  Bruno Haible  <bruno@clisp.org>
48613
48614         * doc/posix-functions/siginterrupt.texi: Move note.
48615
48616         * lib/signal.in.h (SA_RESTART): New macro.
48617         * lib/sigaction.c: Update comment.
48618
48619         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48620
48621         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48622         (gl_PREREQ_SIGPROCMASK): Invoke it.
48623         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48624
48625         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48626
48627         * lib/sigprocmask.c: Update a comment.
48628
48629 2008-06-21  Eric Blake  <ebb9@byu.net>
48630
48631         Use sigaction module rather than signal().
48632         * modules/c-stack (Depends-on): Add sigaction.
48633         * modules/fatal-signal (Depends-on): Likewise.
48634         * modules/nanosleep (Depends-on): Likewise.
48635         * modules/sigprocmask (Files): Add sig-handler.h.
48636         * modules/sigaction (Files): Likewise.
48637         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48638         Eggert.
48639         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48640         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48641         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48642         (init_fatal_signals): Likewise.
48643         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48644         (siginterrupt): Delete fallback.
48645         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48646         instead.
48647         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48648         siginterrupt.
48649
48650         New module sigaction, for mingw.
48651         * modules/sigaction: New module...
48652         * modules/sigaction-tests: ...and its test.
48653         * m4/sigaction.m4: New file.
48654         * lib/sigaction.c: Likewise.
48655         * tests/test-sigaction.c: Likewise.
48656         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48657         * modules/signal (Makefile.am): Likewise.
48658         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48659         needed.
48660         * doc/posix-headers/signal.texi (signal.h): Mention provided
48661         types.
48662         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48663         that sigaction is preferable.
48664         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48665         module.
48666         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48667         sigaction.
48668
48669         Improve robustness of sigprocmask by overriding signal.
48670         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48671         is in use.
48672         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48673         (SIGKILL, SIGSTOP): Provide fallbacks.
48674         (rpl_signal): Implement.
48675         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48676         signal can be called inside handlers.
48677
48678         Fix nanosleep module on mingw.
48679         * modules/nanosleep (Depends-on): Add sys_select.
48680         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48681
48682         Fix licensing of sigprocmask.
48683         * modules/raise (License): Relicense as LGPL.
48684
48685 2008-06-21  Bruno Haible  <bruno@clisp.org>
48686
48687         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48688         result if it contains question marks.
48689         Reported by Michael Geng <linux@michaelgeng.de>.
48690
48691 2008-06-19  Bruno Haible  <bruno@clisp.org>
48692
48693         Fix CVS-ism.
48694         * doc/gnulib.texi: Include updated-stamp.texi.
48695         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48696         (updated-stamp.texi): New rule.
48697         (gnulib.info): Depend on it.
48698         * doc/.gitignore: Add updated-stamp.texi.
48699         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48700
48701 2008-06-19  Bruno Haible  <bruno@clisp.org>
48702
48703         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48704         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48705
48706 2008-06-19  Eric Blake  <ebb9@byu.net>
48707
48708         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48709         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48710         Reported by Stepan Kasal.
48711
48712 2008-06-18  Bruno Haible  <bruno@clisp.org>
48713
48714         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48715         Reported by Eric Blake.
48716
48717 2008-06-18  Eric Blake  <ebb9@byu.net>
48718
48719         Work around cygwin 1.5.25 strsignal bug.
48720         * tests/test-strsignal.c: Allow for const char *.
48721         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48722
48723 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48724
48725         * users.txt: Update URL to article and add author/date
48726         information.
48727
48728 2008-06-17  Bruno Haible  <bruno@clisp.org>
48729
48730         New macro gl_DISABLE_THREADS.
48731         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48732         if the user did not pass --enable-threads or --disable-threads option.
48733         (gl_DISABLE_THREADS): New macro.
48734         Reported by Eric Blake <ebb9@byu.net>.
48735
48736 2008-06-17  Bruno Haible  <bruno@clisp.org>
48737
48738         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48739         when the macro ignores it.
48740         Based on a patch by Eric Blake <ebb9@byu.net>.
48741
48742 2008-06-17  Bruno Haible  <bruno@clisp.org>
48743
48744         * modules/tls (License): Change to LGPLv2+.
48745         Reported by Eric Blake.
48746
48747 2008-06-17  Eric Blake  <ebb9@byu.net>
48748
48749         Simplify c-stack prerequisites.
48750         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48751         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48752         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48753         check.
48754         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48755         <sys/resource.h>.
48756
48757         Move c-stack test into testsuite.
48758         * modules/c-stack-tests: New file.
48759         * lib/c-stack.c [DEBUG]: Move test program...
48760         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48761         fail test if sigaltstack is lacking.
48762         * tests/test-c-stack.sh: New driver file.
48763
48764 2008-06-16  Eric Blake  <ebb9@byu.net>
48765
48766         Use raise module consistently.
48767         * modules/fatal-signal (Depends-on): Add raise.
48768         * modules/sigprocmask (Depends-on): Likewise.
48769         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48770         * lib/sigprocmask.c (sigprocmask): Likewise.
48771         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48772         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48773
48774         Fix compliance bug in sigpending.
48775         * lib/sigprocmask.c (sigpending): Return pending array via
48776         parameter, not return value.
48777
48778 2008-06-14  Eric Blake  <ebb9@byu.net>
48779
48780         Improve obstack-printf test code.
48781         * tests/test-obstack-printf.c (test_function): Fix comment, and
48782         simplify usage of obstack_* in macros.  Add a test for coverage.
48783         Reported by Bruno Haible.
48784
48785 2008-06-14  Bruno Haible  <bruno@clisp.org>
48786
48787         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48788         array size as a constant, not as a const variable.
48789         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48790         AC_USE_SYSTEM_EXTENSIONS.
48791         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48792         Test whether the obstack_printf function actually exists.
48793         * modules/obstack-printf (Depends-on): Add extensions.
48794         (Include): Remove obstack.h.
48795         * modules/obstack-printf-posix (Depends-on): Add extensions.
48796         (Include): Remove obstack.h.
48797
48798 2008-06-13  Eric Blake  <ebb9@byu.net>
48799
48800         Add obstack-printf and obstack-printf-posix modules.
48801         * modules/obstack-printf: New file.
48802         * modules/obstack-printf-posix: Likewise.
48803         * MODULES.html.sh (Misc): Mention them.
48804         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48805         Likewise.
48806         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48807         Likewise.
48808         * modules/stdio (Makefile.am): Accomodate new modules.
48809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48810         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48811         Declare.
48812         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48813         functions.
48814         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48815         (gl_REPLACE_OBSTACK_PRINTF): New macros
48816         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48817         * tests/test-obstack-printf.c: New file.
48818         * modules/obstack-printf-tests: Likewise.
48819         * modules/obstack-printf-posix-tests: Likewise.
48820
48821 2008-06-11  Bruno Haible  <bruno@clisp.org>
48822
48823         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48824         * lib/open.c: Include errno.h.
48825         (open): Fail when attempting to write to a file that has a trailing
48826         slash.
48827         * tests/test-open.c (main): Test against trailing slash bug.
48828         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48829
48830 2008-06-10  Bruno Haible  <bruno@clisp.org>
48831
48832         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48833         for $? to work inside the trap command, with various /bin/sh-s.
48834         * tests/test-vc-list-files-cvs.sh: Likewise.
48835
48836 2008-06-10  Bruno Haible  <bruno@clisp.org>
48837
48838         * lib/acl-internal.h: Don't include gettext.h here.
48839         * lib/set-mode-acl.c: Include gettext.h here.
48840         * lib/copy-acl.c: Likewise.
48841
48842 2008-06-10  Bruno Haible  <bruno@clisp.org>
48843
48844         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48845         * lib/wait-process.c (wait_subprocess): Likewise.
48846         * lib/execute.h (execute): Add termsigp argument.
48847         * lib/execute.c (execute): Likewise.
48848         * lib/csharpcomp.c (compile_csharp_using_pnet,
48849         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48850         * lib/csharpexec.c (execute_csharp_using_pnet,
48851         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48852         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48853         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48854         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48855         is_jikes_present): Update.
48856         * lib/javaexec.c (execute_java_class): Update.
48857         * lib/javaversion.c (execute_and_read_line): Update.
48858         * NEWS: Document the changes.
48859         Reported by Eric Blake.
48860
48861 2008-06-10  Eric Blake  <ebb9@byu.net>
48862
48863         Add missing include.
48864         * tests/test-strstr.c (includes): Add <signal.h>.
48865         * tests/test-strcasestr.c (includes): Likewise.
48866         * tests/test-memmem.c (includes): Likewise.
48867
48868 2008-06-10  Bruno Haible  <bruno@clisp.org>
48869
48870         * lib/wait-process.c (wait_subprocess): Add an assertion.
48871
48872 2008-06-10  Bruno Haible  <bruno@clisp.org>
48873
48874         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48875
48876 2008-06-10  Bruno Haible  <bruno@clisp.org>
48877
48878         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48879         using alarm().
48880         * tests/test-strcasestr.c (main): Likewise.
48881         * tests/test-strstr.c (main): Likewise.
48882
48883 2008-06-09  Bruno Haible  <bruno@clisp.org>
48884
48885         Work around the Solaris 10 ACE ACLs ABI change.
48886         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48887         declare if ACL_NO_TRIVIAL is present.
48888         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48889         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48890         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48891         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48892         define if ACL_NO_TRIVIAL is present.
48893         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48894         and use the current ABI.
48895         (file_has_acl): Use same #if condition as elsewhere.
48896         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48897         in use, and use the current ABI.
48898         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48899         Reported by Jim Meyering.
48900
48901 2008-06-09  Eric Blake  <ebb9@byu.net>
48902
48903         Work around environments that (stupidly) ignore SIGALRM.
48904         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48905         before using alarm().
48906         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48907         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48908         Reported by Ian Beckwith <ianb@erislabs.net>.
48909
48910         Produce autobuild blurb earlier in log.
48911         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48912
48913 2008-06-09  Jim Meyering  <meyering@redhat.com>
48914         and OndÅ™ej Vašík  <ovasik@redhat.com>
48915
48916         utimens.c: correct kernel bug work-around
48917         OndÅ™ej Vašík found that the invalid return value of 280 indicates
48918         failure, not success, and the kernel bug we're trying to work
48919         around affects not just the utimensat call, but also the fallback
48920         futimens call.
48921         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48922         not success.
48923         [HAVE_FUTIMENS]: Use the same work-around, here.
48924
48925 2008-06-09  Jim Meyering  <meyering@redhat.com>
48926
48927         add more guards around definition of ACE_-related code
48928         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48929         ALLOW and ACE_OWNER are also defined.
48930
48931 2008-06-08  Bruno Haible  <bruno@clisp.org>
48932
48933         * lib/acl-internal.h: Add me as co-author.
48934         * lib/file-has-acl.c: Likewise.
48935         * lib/set-mode-acl.c: Likewise.
48936         * lib/copy-acl.c: Likewise.
48937
48938 2008-06-08  Bruno Haible  <bruno@clisp.org>
48939
48940         Add support for AIX ACLs.
48941         * lib/acl-internal.h (acl_nontrivial): New declaration.
48942         * lib/file-has-acl.c (acl_nontrivial): New function.
48943         (file_has_acl): Add implementation using AIX 4 ACL API.
48944         * lib/set-mode-acl.c (qset_acl): Likewise.
48945         * lib/copy-acl.c (qcopy_acl): Likewise.
48946
48947 2008-06-08  Bruno Haible  <bruno@clisp.org>
48948
48949         Add support for HP-UX ACLs.
48950         * lib/acl-internal.h (acl_nontrivial): New declaration.
48951         * lib/file-has-acl.c (acl_nontrivial): New function.
48952         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48953         * lib/set-mode-acl.c (qset_acl): Likewise.
48954         * lib/copy-acl.c (qcopy_acl): Likewise.
48955
48956 2008-06-08  Bruno Haible  <bruno@clisp.org>
48957
48958         Add support for Cygwin ACLs.
48959         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48960         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48961         the chmod_or_fchmod call.
48962         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48963
48964 2008-06-08  Bruno Haible  <bruno@clisp.org>
48965
48966         Fix bug with setuid modes in Solaris 10+ code.
48967         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48968         succeeded, when the mode contains some special bits.
48969
48970 2008-06-08  Bruno Haible  <bruno@clisp.org>
48971
48972         Add support for Solaris 7..10 ACLs.
48973         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48974         declarations.
48975         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48976         functions.
48977         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48978         * lib/set-mode-acl.c (qset_acl): Likewise.
48979         * lib/copy-acl.c (qcopy_acl): Likewise.
48980
48981 2008-06-08  Bruno Haible  <bruno@clisp.org>
48982
48983         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48984         declaration.
48985         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48986         (acl_access_nontrivial): Remove MacOS X case.
48987         (file_has_acl): Use acl_extended_nontrivial.
48988         * lib/copy-acl.c (qcopy_acl): Likewise.
48989
48990 2008-06-08  Bruno Haible  <bruno@clisp.org>
48991
48992         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48993
48994 2008-06-08  Jim Meyering  <meyering@redhat.com>
48995
48996         * modules/acl (Maintainer): Add Bruno Haible.
48997
48998 2008-06-07  Bruno Haible  <bruno@clisp.org>
48999
49000         Improve support for Tru64 ACLs.
49001         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49002         ACL on OSF/1.
49003
49004 2008-06-07  Bruno Haible  <bruno@clisp.org>
49005
49006         Add support for MacOS X ACLs.
49007         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49008         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49009         * lib/set-mode-acl.c (qset_acl): Likewise.
49010         * lib/copy-acl.c (qcopy_acl): Likewise.
49011
49012 2008-06-07  Bruno Haible  <bruno@clisp.org>
49013
49014         Fix memory leak introduced on 2008-05-22.
49015         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49016         use.
49017
49018 2008-06-07  Bruno Haible  <bruno@clisp.org>
49019
49020         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49021         to construct an empty ACL.
49022
49023 2008-06-07  Bruno Haible  <bruno@clisp.org>
49024
49025         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49026         precisely.
49027         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49028
49029 2008-06-07  Bruno Haible  <bruno@clisp.org>
49030
49031         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49032         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49033
49034 2008-06-07  Bruno Haible  <bruno@clisp.org>
49035
49036         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49037         regardless of POSIX.
49038         * doc/posix-functions/_longjmp.texi: Likewise.
49039         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49040         SystemV platform in this case.
49041
49042 2008-06-06  Eric Blake  <ebb9@byu.net>
49043
49044         Document abort() bugs.
49045         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49046
49047         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49048         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49049         sigsetjmp.
49050         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49051         siglongjmp, but only as a macro.
49052         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49053         is obsolete.
49054         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49055
49056         Tweak documentation to cover cygwin argz bugs.
49057         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49058         argz bug fix; no code change needed since no cygwin releases
49059         occurred between the last fix and the bug being tested.
49060         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49061         module and recently fixed cygwin bugs.
49062         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49063         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49064         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49065         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49066         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49067         Likewise.
49068         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49069         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49070         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49071         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49072         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49073         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49074         Likewise.
49075
49076         Avoid gcc warning on cygwin.
49077         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49078         !ACL_NO_TRIVIAL]: Avoid unused variable.
49079
49080 2008-06-05  Eric Blake  <ebb9@byu.net>
49081
49082         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49083         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49084         git-version-gen fails to come up with a version.
49085         Reported by Simon Josefsson.
49086
49087 2008-06-05  Jim Meyering  <meyering@redhat.com>
49088             Paul Eggert  <eggert@cs.ucla.edu>
49089
49090         utimens.c: work around a probable Linux kernel bug
49091         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49092         appears to be a kernel bug that causes utimensat to return 280
49093         instead of 0, indicating success.
49094
49095 2008-06-04  Bruno Haible  <bruno@clisp.org>
49096
49097         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49098         2008-06-01 commit.
49099
49100 2008-06-04  Bruno Haible  <bruno@clisp.org>
49101
49102         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49103         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49104         (file_has_acl): Use it. Save errno afterwards.
49105         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49106
49107 2008-06-03  Bruno Haible  <bruno@clisp.org>
49108
49109         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49110         draft code. Simplify #ifs.
49111         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49112         Put Solaris code after POSIX-draft code. Fix comments regarding
49113         Solaris 10, HP-UX. Mention Cygwin.
49114         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49115
49116 2008-06-03  Eric Blake  <ebb9@byu.net>
49117
49118         Provide fallback for older kernels.
49119         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49120         Provide runtime fallback if kernel lacks support.
49121         Reported by Mike Frysinger.
49122
49123 2008-06-02  Bruno Haible  <bruno@clisp.org>
49124
49125         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49126         it exists.
49127
49128 2008-06-02  Bruno Haible  <bruno@clisp.org>
49129
49130         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49131         * lib/copy-acl.c (qcopy_acl): Update comment.
49132
49133 2008-06-02  Bruno Haible  <bruno@clisp.org>
49134
49135         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49136         like ACL APIs.
49137
49138 2008-06-02  Bruno Haible  <bruno@clisp.org>
49139
49140         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49141         * tests/test-set-mode-acl.sh: Likewise.
49142         * tests/test-copy-acl.sh: Likewise.
49143         * tests/test-copy-file.sh: Likewise.
49144
49145 2008-06-02  Bruno Haible  <bruno@clisp.org>
49146
49147         * tests/test-file-has-acl.sh: Remove unused code.
49148
49149 2008-06-01  Bruno Haible  <bruno@clisp.org>
49150
49151         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49152         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49153         messages.
49154         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49155
49156 2008-06-01  Bruno Haible  <bruno@clisp.org>
49157
49158         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49159         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49160         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49161         APIs.
49162         * modules/acl-tests (configure.ac): Remove tests now contained in
49163         m4/acl.m4.
49164
49165 2008-06-02  Jim Meyering  <meyering@redhat.com>
49166
49167         announce-gen: use a better key-server host name
49168         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49169         it may be more consistently reliable.  Suggested by Werner Koch
49170         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49171
49172 2008-06-01  Bruno Haible  <bruno@clisp.org>
49173
49174         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49175         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49176
49177 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49178
49179         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49180
49181 2008-06-01  Bruno Haible  <bruno@clisp.org>
49182
49183         New ACL tests.
49184         * tests/test-file-has-acl.sh: New file.
49185         * tests/test-file-has-acl.c: New file.
49186         * tests/test-set-mode-acl.sh: New file.
49187         * tests/test-set-mode-acl.c: New file.
49188         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49189         * tests/test-copy-acl.c: New file.
49190         * modules/acl-tests: New file, based on modules/copy-file-tests.
49191         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49192         (Depends-on): Add acl-tests.
49193         (configure.ac): Remove checks.
49194         (Makefile.am): Don't create test-sameacls program here any more.
49195
49196 2008-06-01  Bruno Haible  <bruno@clisp.org>
49197
49198         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49199         * tests/test-sameacls.c: Include progname.h.
49200         (main): Invoke set_program_name. Portability fixes for MacOS X,
49201         Solaris, HP-UX.
49202
49203 2008-06-01  Bruno Haible  <bruno@clisp.org>
49204
49205         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49206         function.
49207         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49208
49209 2008-06-01  Bruno Haible  <bruno@clisp.org>
49210
49211         * modules/rpmatch (Depends-on): Add strdup.
49212
49213 2008-06-01  Bruno Haible  <bruno@clisp.org>
49214
49215         * lib/pipe.c: Include unistd-safer.h.
49216         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49217         * modules/pipe (Depends-on): Add unistd-safer.
49218
49219 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49220
49221         * modules/autobuild (configure.ac): Call AB_INIT.
49222
49223 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49224
49225         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49226         Suggested by Bruno Haible <bruno@clisp.org>.
49227
49228 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49229
49230         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49231         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49232         <bruno@clisp.org>.
49233
49234 2008-05-29  Eric Blake  <ebb9@byu.net>
49235
49236         Prefer new POSIX 200x interfaces over futimesat.
49237         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49238         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49239         when available.
49240         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49241
49242 2008-05-28  Bruno Haible  <bruno@clisp.org>
49243
49244         * modules/stpcpy (License): Change to LGPLv2+.
49245         Requested by David Lutterkort <dlutter@redhat.com>.
49246
49247 2008-05-27  Bruno Haible  <bruno@clisp.org>
49248
49249         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49250         current mingw.
49251         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49252
49253 2008-05-27  Bruno Haible  <bruno@clisp.org>
49254
49255         * modules/iconv_open (Link): New section, from module 'iconv'.
49256         * modules/striconv (Link): Likewise.
49257         * modules/striconveh (Link): Likewise.
49258         * modules/xstriconv (Link): Likewise.
49259         * modules/unicodeio (Link): Likewise.
49260         * modules/propername (Link): Likewise.
49261         Reported by Jim Meyering.
49262
49263 2008-05-26  Jim Meyering  <meyering@redhat.com>
49264
49265         sha256: do not artificially restrict buffer length to be < 2^32
49266         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49267         uint32_t to size_t.
49268         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49269         to match.
49270
49271         avoid unaligned access errors, e.g., on sparc
49272         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49273         direct access through a possibly-unaligned uint64* pointer.
49274         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49275         direct access through a possibly-unaligned uint32* pointer.
49276         Prompted by this patch from Tom "spot" Callaway:
49277         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49278
49279         sha512.c: fix typo in comment
49280         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49281
49282 2008-05-25  Bruno Haible  <bruno@clisp.org>
49283
49284         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49285         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49286         (Makefile.am): Update lib_SOURCES.
49287
49288 2008-05-25  Bruno Haible  <bruno@clisp.org>
49289
49290         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49291
49292 2008-05-25  Jim Meyering  <meyering@redhat.com>
49293
49294         useless-if-before-free: freed expr may have white-space differences
49295         * build-aux/useless-if-before-free: Recognize cases in which the
49296         freed expression differs from the tested one in embedded white
49297         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49298         $1 was used, so we can't make any regexp shy.  Improved tests now
49299         detect this.
49300
49301         useless-if-before-free: accept white space in the expression.
49302         * build-aux/useless-if-before-free: For now, any white space
49303         in the expression must be identical in the free argument.
49304
49305         useless-if-before-free: efficiency tweak
49306         * build-aux/useless-if-before-free: Make the expression-matching
49307         regexp "shy".
49308         Make the *outer* regexp shy, not the expr-matching one.
49309
49310         update code-in-comment to accept cast of free arg
49311         * build-aux/useless-if-before-free: Update regexp.
49312
49313 2008-05-25  Bruno Haible  <bruno@clisp.org>
49314
49315         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49316         * modules/copy-file-tests (Files, Makefile.am): Update.
49317         * tests/test-copy-file.c (func_test_copy): Update.
49318
49319 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49320
49321         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49322
49323 2008-05-23  Bruno Haible  <bruno@clisp.org>
49324
49325         Improve support for ACLs on OSF/1.
49326         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49327         Remove fallback for unknown flavors of ACLs.
49328
49329 2008-05-22  Bruno Haible  <bruno@clisp.org>
49330
49331         Add support for ACLs on OSF/1.
49332         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49333         replacements.
49334         (acl_free_text): New macro fallback.
49335         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49336         acl_free.
49337         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49338         acl_free_text function. Require AC_C_INLINE.
49339
49340 2008-05-22  Bruno Haible  <bruno@clisp.org>
49341
49342         Make copy_acl work on MacOS X 10.5.
49343         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49344         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49345         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49346         If MODE_INSIDE_ACL, don't assume that every system has the same text
49347         representation for ACLs as FreeBSD.
49348         * lib/copy-acl.c (copy_acl): Add support for platforms with
49349         !MODE_INSIDE_ACL.
49350         * lib/file-has-acl.c (file_has_acl): Likewise.
49351         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49352         FreeBSD, MacOS X, or IRIX, respectively.
49353
49354 2008-05-22  Bruno Haible  <bruno@clisp.org>
49355
49356         * lib/acl.h: Don't include <sys/acl.h>.
49357         (GETACLCNT): Move fallback to lib/acl-internal.h.
49358         * lib/acl-internal.h: Include <sys/acl.h> here.
49359         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49360
49361 2008-05-22  Bruno Haible  <bruno@clisp.org>
49362
49363         Split off copy_acl function to separate file.
49364         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49365         * lib/acl.c (copy_acl): Moved function to separate file.
49366         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49367         * modules/acl (Files): Add lib/copy-acl.c.
49368         (Makefiles.am): Augment lib_SOURCES.
49369
49370 2008-05-22  Bruno Haible  <bruno@clisp.org>
49371
49372         * modules/copy-file-tests: New file.
49373         * tests/test-copy-file.sh: New file.
49374         * tests/test-copy-file.c: New file.
49375         * tests/test-copy-file-sameacls.c: New file.
49376
49377 2008-05-22  Eric Blake  <ebb9@byu.net>
49378
49379         Avoid gcc warning.
49380         * tests/test-memcmp.c (main): Pass NULL indirectly.
49381
49382 2008-05-21  Bruno Haible  <bruno@clisp.org>
49383
49384         Add reference doc about ACLs.
49385         * doc/acl-resources.txt: New file.
49386         * doc/acl-cygwin.txt: New file.
49387
49388 2008-05-21  Bruno Haible  <bruno@clisp.org>
49389
49390         Avoid one more warning from gcc.
49391         * lib/vasnprintf.c (IF_LINT): Update comments.
49392         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49393
49394 2008-05-21  Jim Meyering  <meyering@redhat.com>
49395
49396         avoid a warning from gcc
49397         * lib/vasnprintf.c (IF_LINT): Define.
49398         (scale10_round_decimal_long_double):
49399         Use it to avoid a "may be used uninitialized" warning.
49400         (scale10_round_decimal_double): Likewise.
49401
49402 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49403
49404         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49405         declared.
49406
49407 2008-05-20  Bruno Haible  <bruno@clisp.org>
49408
49409         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49410         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49411
49412 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49413
49414         * modules/memcmp-tests: New file.
49415         * tests/test-memcmp.c: New file.
49416
49417 2008-05-19  Bruno Haible  <bruno@clisp.org>
49418
49419         * modules/propername (Notice, configure.ac): Put quoted "..." into
49420         --keyword option.
49421         * lib/propername.h: Update comments accordingly.
49422         Reported by Eric Blake.
49423
49424 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49425
49426         * modules/getpass-gnu (Depends-on): Add fseeko.
49427
49428 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49429
49430         * modules/base64-tests: New file.
49431
49432 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49433
49434         * lib/base64.c (base64_decode_ctx): If a decode context structure
49435         was passed in use it to ignore newlines.  If a context structure
49436         was _not_ passed in, continue to treat newlines as garbage (this
49437         is the historical behavior).  Formerly base64_decode.
49438         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49439         takes a decode context structure.
49440         * lib/base64.h (base64_decode): Macro for four-argument calls.
49441         (base64_decode_alloc): Likewise.
49442         * lib/base64.c (base64_decode_ctx): If a decode context structure
49443         was passed in use it to ignore newlines.  If a context structure
49444         was _not_ passed in, continue to treat newlines as garbage (this
49445         is the historical behavior).  Formerly base64_decode.
49446         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49447         takes a decode context structure.
49448         * lib/base64.h (base64_decode): Macro for four-argument calls.
49449         (base64_decode_alloc): Likewise.
49450
49451 2008-05-19  Jim Meyering  <meyering@redhat.com>
49452
49453         avoid a warning from gcc
49454         * lib/trim.c (IF_LINT): Define.
49455         (trim2): Use it to avoid a "may be used uninitialized" warning.
49456
49457         Fix doc typo.
49458         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49459
49460 2008-05-19  Bruno Haible  <bruno@clisp.org>
49461
49462         * doc/glibc-functions/getpass.texi: Document limits of other
49463         implementations.
49464
49465 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49466             Bruno Haible <bruno@clisp.org>
49467
49468         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49469
49470 2008-05-18  Bruno Haible  <bruno@clisp.org>
49471
49472         * modules/propername: New file, from GNU gettext.
49473         * lib/propername.h: New file, from GNU gettext.
49474         * lib/propername.c: New file, from GNU gettext.
49475         * MODULES.html.sh (Internationalization functions): Add propername.
49476
49477 2008-05-16  Jim Meyering  <meyering@redhat.com>
49478             Bruno Haible  <bruno@clisp.org>
49479
49480         Avoid some warnings from "gcc -Wshadow".
49481         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49482
49483 2008-05-15  Eric Blake  <ebb9@byu.net>
49484
49485         Extend previous patch to cygwin 1.7.0.
49486         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49487         fast implementation in cygwin >= 1.7.0.
49488         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49489         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49490
49491 2008-05-15  Bruno Haible  <bruno@clisp.org>
49492
49493         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49494         implementation in glibc >= 2.9.
49495         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49496         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49497
49498 2008-05-15  Bruno Haible  <bruno@clisp.org>
49499
49500         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49501         (Unicode string functions): Add unilbrk/*.
49502         Reported by Karl Berry.
49503
49504 2008-05-15  Eric Blake  <ebb9@byu.net>
49505
49506         Fix violation of <stdbool.h> replacement in regex.
49507         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49508         * lib/regexec.c (re_search_internal): Likewise.
49509         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49510
49511 2008-05-15  Jim Meyering  <meyering@redhat.com>
49512
49513         avoid distracting test output when git or cvs is not found
49514         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49515         * tests/test-vc-list-files-git.sh: Likewise.
49516
49517 2008-05-15  Eric Blake  <ebb9@byu.net>
49518
49519         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49520         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49521         glibc version.
49522         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49523         * doc/posix-functions/strstr.texi (strstr): Likewise.
49524         * lib/str-two-way.h (MAX): Sychronize with glibc.
49525
49526 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49527
49528         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49529         opr.ctx_type.
49530         (calc_first): Initialize constraint field.
49531         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49532         Fix grammar.
49533         (duplicate_node): Merge constraint field for all node types.
49534         (calc_eclosure_iter): Look at constraint field for all node types.
49535         * lib/regex_internal.c (create_cd_newstate): Don't look at
49536         opr.ctx_type.
49537
49538 2008-05-14  Bruno Haible  <bruno@clisp.org>
49539
49540         Help GCC to do better code generation.
49541         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49542         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49543         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49544         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49545         Declare with attribute 'malloc' if supported.
49546
49547 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49548
49549         use "echo STR|wc -c" rather than unportable "expr length STR"
49550         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49551         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49552
49553 2008-05-14  Jim Meyering  <meyering@redhat.com>
49554
49555         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49556         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49557         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49558         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49559         via Collin Lasse.
49560
49561 2008-05-14  Eric Blake  <ebb9@byu.net>
49562
49563         Avoid quadratic growth in gl_LIBSOURCES.
49564         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49565         Suggested by Bruno Haible.
49566
49567         Test xmemdup0.
49568         * modules/xmemdup0-tests: New file.
49569         * tests/test-xmemdup0.c: Likewise.
49570
49571 2008-05-13  Eric Blake  <ebb9@byu.net>
49572
49573         Split xmemdup0 into its own module.
49574         * modules/xmemdup0: New file.
49575         * lib/xmemdup0.h: Likewise.
49576         * lib/xmemdup0.c: Likewise.
49577         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49578         * lib/xalloc.h (xmemdup0): Remove.
49579         * lib/xmalloc.c (xmemdup0): Likewise.
49580
49581 2008-05-13  Eric Blake  <ebb9@byu.net>
49582             Bruno Haible  <bruno@clisp.org>
49583
49584         Reduce number of forks required during autoconf.
49585         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49586         and gl_LIBSOURCES_DIR.
49587         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49588         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49589         m4_syscmd per file.
49590         <m4_foreach_w>: Move...
49591         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49592
49593 2008-05-13  Eric Blake  <ebb9@byu.net>
49594
49595         * gnulib-tool: Fix various comment typos.
49596
49597 2008-05-12  Bruno Haible  <bruno@clisp.org>
49598
49599         Tailor the linebreaking algorithm.
49600         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49601
49602 2008-05-12  Bruno Haible  <bruno@clisp.org>
49603
49604         Update to Unicode 5.0.0.
49605         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49606         LBP_JV, LBP_JT. Redistribute values.
49607         (unilbrk_table): Change size.
49608         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49609         Unicode TR#14 rev. 22.
49610         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49611         LBP_JV, LBP_JT. Redistribute values.
49612         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49613         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49614         Update.
49615         * lib/unilbrk/lbrkprop1.h: Regenerated.
49616         * lib/unilbrk/lbrkprop2.h: Regenerated.
49617         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49618         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49619         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49620         Likewise.
49621         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49622         Likewise.
49623         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49624         result.
49625         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49626         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49627         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49628         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49629         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49630         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49631
49632 2008-05-11  Bruno Haible  <bruno@clisp.org>
49633
49634         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49635
49636 2008-05-11  Bruno Haible  <bruno@clisp.org>
49637
49638         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49639         * modules/unilbrk/gen-lbrk: New file.
49640
49641 2008-05-11  Bruno Haible  <bruno@clisp.org>
49642
49643         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49644         * m4/sha512.m4 (gl_SHA512): Likewise.
49645
49646 2008-05-11  Jim Meyering  <meyering@redhat.com>
49647
49648         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49649         * modules/crypto/sha256: New file.
49650         * modules/crypto/sha512: Likewise.
49651         * lib/sha256.c: Likewise.
49652         * lib/sha256.h: Likewise.
49653         * lib/sha512.c: Likewise.
49654         * lib/sha512.h: Likewise.
49655         * lib/u64.h: Likewise.
49656         * m4/sha256.m4: Likewise.
49657         * m4/sha512.m4: Likewise.
49658         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49659
49660 2008-05-10  Bruno Haible  <bruno@clisp.org>
49661
49662         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49663         (Input/Output <stdio.h>): Add xprintf.
49664         (Signal handling <signal.h>): Add strsignal.
49665         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49666         (Core language properties): Add func.
49667         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49668         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49669         strings.
49670         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49671         (Input/output): New section.
49672         (File system functions): Add openat-die, stat-macros.
49673         (Networking functions): Add sockets.
49674         (Unicode string functions): Add unictype/*.
49675         (Support for building libraries and executables): Add gperf.
49676         (Support for building documentation): Add agpl-3.0.
49677         (Misc): Add nocrash.
49678
49679 2008-05-10  Bruno Haible  <bruno@clisp.org>
49680
49681         * modules/unictype/gen-ctype: New file.
49682
49683 2008-05-10  Jim Meyering  <meyering@redhat.com>
49684
49685         Make chdir-safer.c more efficient on a system with no symlinks.
49686         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49687         also if ELOOP is zero.  Suggested by Bruno Haible.
49688
49689         Make chdir-safer.c slightly safer.
49690         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49691         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49692
49693         Avoid compile failure on systems without ELOOP (like mingw).
49694         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49695         Reported by Bruno Haible.
49696
49697 2008-05-10  Bruno Haible  <bruno@clisp.org>
49698
49699         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49700         (is_utf8_encoding): Use a case-insensitive comparison.
49701         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49702         streq.
49703
49704 2008-05-10  Bruno Haible  <bruno@clisp.org>
49705
49706         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49707         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49708         * lib/unilbrk/ulc-common.h (iconv_string_length,
49709         iconv_string_keeping_offsets): Remove declarations.
49710         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49711         Don't include <iconv.h>, streq.h, xsize.h.
49712         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49713         conversion.
49714         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49715         <iconv.h>, streq.h, xsize.h.
49716         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49717         conversion.
49718         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49719         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49720         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49721         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49722
49723 2008-05-10  Bruno Haible  <bruno@clisp.org>
49724
49725         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49726         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49727
49728         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49729         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49730
49731         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49732         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49733
49734         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49735         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49736
49737         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49738         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49739
49740         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49741         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49742
49743         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49744         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49745
49746         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49747         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49748
49749 2008-05-10  Bruno Haible  <bruno@clisp.org>
49750
49751         Split up 'linebreak' module.
49752         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49753         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49754         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49755         modifications.
49756         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49757         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49758         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49759         lib/linebreak.c.
49760         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49761         lib/linebreak.c.
49762         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49763         lib/linebreak.c.
49764         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49765         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49766         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49767         lib/linebreak.c.
49768         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49769         lib/linebreak.c.
49770         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49771         lib/linebreak.c.
49772         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49773         lib/linebreak.c.
49774         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49775         lib/linebreak.c.
49776         * modules/unilbrk/base: New file.
49777         * modules/unilbrk/tables: New file.
49778         * modules/unilbrk/u8-possible-linebreaks: New file.
49779         * modules/unilbrk/u16-possible-linebreaks: New file.
49780         * modules/unilbrk/u32-possible-linebreaks: New file.
49781         * modules/unilbrk/ulc-common: New file.
49782         * modules/unilbrk/ulc-possible-linebreaks: New file.
49783         * modules/unilbrk/u8-width-linebreaks: New file.
49784         * modules/unilbrk/u16-width-linebreaks: New file.
49785         * modules/unilbrk/u32-width-linebreaks: New file.
49786         * modules/unilbrk/ulc-width-linebreaks: New file.
49787         * lib/linebreak.h: Remove file.
49788         * lib/linebreak.c: Remove file.
49789         * m4/linebreak.m4: Remove file.
49790         * modules/linebreak: Remove file.
49791         * NEWS: Mention the changes.
49792
49793 2008-05-09  Eric Blake  <ebb9@byu.net>
49794
49795         Add xmemdup0.
49796         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49797         implementation.
49798         * lib/xmalloc.c (xmemdup0): New C implementation.
49799
49800 2008-05-08  Bruno Haible  <bruno@clisp.org>
49801
49802         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49803
49804 2008-05-07  Eric Blake  <ebb9@byu.net>
49805
49806         Support cross-compilation of <wctype.h>.
49807         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49808         AC_CACHE_CHECK.
49809
49810 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49811
49812         * build-aux/vc-list-files: Add support for bzr.
49813
49814 2008-05-03  Jim Meyering  <meyering@redhat.com>
49815
49816         avoid failed assertion with tight malloc
49817         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49818
49819 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49820
49821         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49822         are needed from arpa/inet.h.
49823         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49824         Reported by Bruno Haible.
49825
49826 2008-05-02  Jim Meyering  <meyering@redhat.com>
49827
49828         avoid compilation error on FreeBSD 6
49829         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49830
49831 2008-05-01  Jim Meyering  <meyering@redhat.com>
49832
49833         useless-if-before-free: correct --help's exit status description
49834         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49835         for one or more matches, etc.  Reported by Bruno Haible.
49836
49837         vc-list-files: make the stand-alone gnulib test work
49838         * modules/vc-list-files-tests (configure.ac):
49839         Define and AC_SUBST abs_aux_dir.
49840         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49841         $(abs_top_srcdir) to each script and having each of them
49842         duplicate the work of setting PATH, set PATH here, using
49843         the new variable, abs_aux_dir instead.
49844         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49845         * tests/test-vc-list-files-git.sh: Likewise.
49846         Reported by Bruno Haible.
49847
49848 2008-05-01  Bruno Haible  <bruno@clisp.org>
49849
49850         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49851         reallocation. Rename 'done' to 'found_delimiter'.
49852
49853 2008-05-01  Jim Meyering  <meyering@redhat.com>
49854
49855         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49856         * build-aux/vc-list-files: Use `...`, not $(...).
49857
49858 2008-04-30  Jim Meyering  <meyering@redhat.com>
49859
49860         add tests for vc-list-files
49861         * modules/vc-list-files-tests: New module.
49862         * tests/test-vc-list-files-cvs.sh: New file.
49863         * tests/test-vc-list-files-git.sh: New file.
49864
49865         avoid a warning from gcc
49866         * lib/getndelim2.c (IF_LINT): Define.
49867         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49868
49869         vc-list-files: work properly with build-aux/cvsu, too
49870         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49871         to all cvs-based clauses.
49872
49873         vc-list-files: work properly in the CVS+awk case, too
49874         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49875
49876         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49877         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49878         take more than one file argument, so .  Add quotes, just in case $dir
49879         ever contains a shell meta-character.  Prompted by Soren Hansen in
49880         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49881
49882 2008-04-29  Eric Blake  <ebb9@byu.net>
49883
49884         Optimize getndelim2 to use block operations when possible.
49885         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49886         freadseek, and memchr2.
49887         * lib/getndelim2.c (getndelim2): Use them for block reads.
49888
49889 2008-04-29  Bruno Haible  <bruno@clisp.org>
49890
49891         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49892         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49893         * modules/inet_ntop (Depends-on): Add extensions.
49894         * modules/inet_pton (Depends-on): Likewise.
49895         Reported by Simon Josefsson.
49896
49897 2008-04-29  Jim Meyering  <meyering@redhat.com>
49898
49899         When the is more than one match in a block, match all of them.
49900         * build-aux/useless-if-before-free: Iterate through each block
49901         until there are no more matches.
49902
49903         Fix broken useless-if-before-free script.
49904         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49905         the expression to match cast of argument to free-like function.
49906
49907 2008-04-29  Eric Blake  <ebb9@byu.net>
49908
49909         Use new header.
49910         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49911
49912 2008-04-29  Jim Meyering  <meyering@redhat.com>
49913
49914         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49915         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49916         by gnulib to exist and to declare e.g., inet_ntop.
49917         Don't include "inet_ntop.h", now removed.
49918
49919         * m4/arpa_inet_h.m4: Remove trailing blanks.
49920
49921 2008-04-29  Eric Blake  <ebb9@byu.net>
49922
49923         Silence valgrind on safe reads beyond potential array bounds.
49924         * lib/rawmemchr.valgrind: New file.
49925         * lib/strchrnul.valgrind: Likewise.
49926         * modules/rawmemchr (Files): Distribute new file.
49927         * modules/strchrnul (Files): Likewise.
49928         Suggested by Bruno Haible.
49929
49930 2008-04-29  Bruno Haible  <bruno@clisp.org>
49931
49932         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49933         (inet_ntop, inet_pton): Change portability warning's wording.
49934         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49935         Invoke gl_CHECK_NEXT_HEADERS.
49936         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49937         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49938         set ARPA_INET_H.
49939         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49940         * modules/arpa_inet (Description): No longer only for systems that
49941         lack it.
49942         (Depends-on): Add include_next.
49943         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49944         HAVE_ARPA_INET_H.
49945
49946 2008-04-29  Jim Meyering  <meyering@redhat.com>
49947
49948         * modules/mkdir (License): Re-license as LGPLv2+.
49949
49950 2008-04-29  Bruno Haible  <bruno@clisp.org>
49951
49952         * modules/rawmemchr (Maintainer): Set to Eric.
49953         * modules/strchrnul (Maintainer): Likewise.
49954
49955 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49956
49957         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49958         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49959
49960         * modules/arpa_inet (arpa/inet.h): Use them.
49961
49962 2008-04-28  Eric Blake  <ebb9@byu.net>
49963
49964         Test getndelim2.
49965         * modules/getndelim2-tests: New file.
49966         * tests/test-getndelim2.c: Likewise.
49967         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49968         stream.
49969         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49970
49971         * MODULES.html.sh: Document new module.
49972
49973 2008-04-20  Bruno Haible  <bruno@clisp.org>
49974
49975         * lib/c-stack.c (die): Use raise.
49976         * modules/c-stack (Depends-on): Add raise.
49977
49978 2008-04-28  Bruno Haible  <bruno@clisp.org>
49979
49980         Expect rpmatch to be declared.
49981         * lib/yesno.c (rpmatch): Remove declaration.
49982
49983         Declare rpmatch.
49984         * lib/stdlib.in.h (rpmatch): New declaration.
49985         * lib/rpmatch.c: Include <stdlib.h> first.
49986         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49987         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49989         HAVE_RPMATCH.
49990         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49991         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49992         (Include): Set to <stdlib.h>.
49993         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49994         HAVE_RPMATCH.
49995         * NEWS: Document the change.
49996
49997 2008-04-28  Bruno Haible  <bruno@clisp.org>
49998
49999         Change rpmatch to use nl_langinfo when appropriate.
50000         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50001         (N_): New macro.
50002         (localized_pattern): New function/macro.
50003         (try): Remove match, nomatch arguments. Copy the pattern into safe
50004         memory before caching it.
50005         (rpmatch): Use localized_pattern. Add translator comments.
50006         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50007         Suggested by Eric Blake.
50008         * modules/rpmatch (Depends-on): Add stdbool.
50009
50010 2008-04-28  Eric Blake  <ebb9@byu.net>
50011
50012         Add rawmemchr module, matching glibc.
50013         * modules/string (Makefile.am): New indicator.
50014         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50015         * lib/string.in.h (rawmemchr): Declare when appropriate.
50016         * modules/rawmemchr: New file.
50017         * m4/rawmemchr.m4: Likewise.
50018         * lib/rawmemchr.c: Likewise.
50019         * modules/rawmemchr-tests: Likewise.
50020         * tests/test-rawmemchr.c: Likewise.
50021         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50022         module.
50023         * modules/strchrnul (Depends-on): Add rawmemchr.
50024         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50025
50026         Whitespace cleanup.
50027         * tests/test-strchrnul.c: Reindent.
50028         * lib/strchrnul.c: Likewise.
50029
50030         Optimize and test strchrnul.
50031         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50032         * modules/strchrnul-tests: New file.
50033         * tests/test-strchrnul.c: Likewise.
50034
50035         Remove intprops dependency.
50036         * modules/memchr (Depends-on): Remove intprops.
50037         * modules/memrchr (Depends-on): Likewise.
50038         * modules/memchr2 (Depends-on): Likewise.
50039         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50040         * lib/memrchr.c (__memrchr): Likewise.
50041         * lib/memrchr2.c (memchr2): Likewise.
50042         Reported by Simon Josefsson.
50043
50044 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50045
50046         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50047         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50048
50049 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50050
50051         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50052
50053         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50054
50055         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50056
50057         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50058         declarations.
50059         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50060
50061         * m4/inet_pton.m4: Don't check for header files.
50062
50063         * m4/inet_ntop.m4: Don't check for header files.
50064
50065 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50066
50067         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50068         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50069         trigger for cygwin).
50070         Reported by Bruno Haible  <bruno@clisp.org>.
50071
50072 2008-04-28  Bruno Haible  <bruno@clisp.org>
50073
50074         * doc/posix-functions/strdup.texi: Mention mingw problem.
50075
50076 2008-04-27  Bruno Haible  <bruno@clisp.org>
50077
50078         * modules/stat-time-tests (Depends-on): Add sleep.
50079         * tests/test-stat-time.c (force_unlink): New function.
50080         (cleanup): Use it.
50081         (test_mtime): Remove the ctime related tests.
50082         (test_ctime): New function, containing the ctime related tests.
50083         (main): Call test_ctime, except on native Windows platforms.
50084
50085 2008-04-27  Bruno Haible  <bruno@clisp.org>
50086
50087         * lib/rpmatch.c (rpmatch): Add some comments.
50088         Reported by James Youngman <jay@gnu.org>.
50089
50090 2008-04-27  Bruno Haible  <bruno@clisp.org>
50091
50092         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50093         quiet NaNs.
50094
50095 2008-04-27  Bruno Haible  <bruno@clisp.org>
50096
50097         Make test-yesno.sh work on mingw.
50098         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50099         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50100         (main): Set stdin to binary mode.
50101         * modules/yesno-tests (Depends-on): Add binary-io.
50102
50103 2008-04-27  Bruno Haible  <bruno@clisp.org>
50104
50105         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50106         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50107         argument that lie outside the IEEE 854 domain.
50108         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50109         (gl_ISFINITE): Use it.
50110         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50111
50112 2008-04-27  Bruno Haible  <bruno@clisp.org>
50113
50114         Allow local renaming in config.h.
50115         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50116
50117 2008-04-27  Bruno Haible  <bruno@clisp.org>
50118
50119         * lib/memchr.c (__memchr): Change type of 'i'.
50120         * lib/memchr2.c (memchr2): Likewise.
50121
50122 2008-04-26  Eric Blake  <ebb9@byu.net>
50123         and Bruno Haible  <bruno@clisp.org>
50124
50125         Optimize and test memrchr.
50126         * modules/memrchr (Depends-on): Add intprops.
50127         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50128         * modules/memrchr-tests: New file.
50129         * tests/test-memrchr.c: New file.
50130
50131 2008-04-26  Bruno Haible  <bruno@clisp.org>
50132
50133         Add tentative support for DragonFly BSD.
50134         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50135         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50136         fp.
50137         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50138         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50139         * lib/fpurge.c (fpurge): Likewise.
50140         * lib/freadable.c (freaadable): Likewise.
50141         * lib/freadahead.c (freadahead): Likewise.
50142         * lib/freading.c (freading): Likewise.
50143         * lib/freadptr.c (freadptr): Likewise.
50144         * lib/freadseek.c (freadptrinc): Likewise.
50145         * lib/fseeko.c (fseeko): Likewise.
50146         * lib/fseterr.c (fseterr): Likewise.
50147         * lib/fwritable.c (fwritable): Likewise.
50148         * lib/fwriting.c (fwriting): Likewise.
50149
50150 2008-04-26  Bruno Haible  <bruno@clisp.org>
50151
50152         * lib/stdio-impl.h: New file.
50153         * lib/fbufmode.c: Include stdio-impl.h.
50154         (fbufmode): Use fp_, remove redundant #defines.
50155         * lib/fflush.c: Include stdio-impl.h.
50156         (clear_ungetc_buffer): Remove redundant #defines.
50157         * lib/fpurge.c: Include stdio-impl.h.
50158         (fpurge): Remove redundant #defines.
50159         * lib/freadable.c: Include stdio-impl.h.
50160         (freadable): Remove redundant #defines.
50161         * lib/freadahead.c: Include stdio-impl.h.
50162         (freadahead): Remove redundant #defines.
50163         * lib/freading.c: Include stdio-impl.h.
50164         (freading): Remove redundant #defines.
50165         * lib/freadptr.c: Include stdio-impl.h.
50166         (freadptr): Remove redundant #defines.
50167         * lib/freadseek.c: Include stdio-impl.h.
50168         (freadptrinc): Remove redundant #defines.
50169         * lib/fseeko.c: Include stdio-impl.h.
50170         (rpl_fseeko): Remove redundant #defines.
50171         * lib/fseterr.c: Include stdio-impl.h.
50172         (fseterr): Remove redundant #defines.
50173         * lib/fwritable.c: Include stdio-impl.h.
50174         (fwritable: Remove redundant #defines.
50175         * lib/fwriting.c: Include stdio-impl.h.
50176         (fwriting): Remove redundant #defines.
50177         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50178         * modules/fflush (Files): Likewise.
50179         * modules/fpurge (Files): Likewise.
50180         * modules/freadable (Files): Likewise.
50181         * modules/freadahead (Files): Likewise.
50182         * modules/freading (Files): Likewise.
50183         * modules/freadptr (Files): Likewise.
50184         * modules/freadseek (Files): Likewise.
50185         * modules/fseeko (Files): Likewise.
50186         * modules/fseterr (Files): Likewise.
50187         * modules/fwritable (Files): Likewise.
50188         * modules/fwriting (Files): Likewise.
50189
50190 2008-04-26  Bruno Haible  <bruno@clisp.org>
50191
50192         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50193         restore_seek_optimization, update_fpos_cache): New functions, extracted
50194         from rpl_fflush.
50195         (rpl_fflush): Use them.
50196         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50197         (gl_REPLACE_FFLUSH): Use it.
50198
50199 2008-04-26  Bruno Haible  <bruno@clisp.org>
50200
50201         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50202         on Solaris.
50203         * tests/test-xstrtoimax.sh: Likewise.
50204         * tests/test-xstrtoumax.sh: Likewise.
50205         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50206
50207 2008-04-26  Bruno Haible  <bruno@clisp.org>
50208
50209         * modules/memchr-tests: New file.
50210         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50211
50212 2008-04-26  Eric Blake  <ebb9@byu.net>
50213             Bruno Haible  <bruno@clisp.org>
50214
50215         * lib/memchr.c: Include intprops.h.
50216         (__memchr): Optimize parallel detection of matching bytes. Rename local
50217         variables. Add explanatory comments.
50218
50219 2008-04-26  Bruno Haible  <bruno@clisp.org>
50220
50221         Fix module 'memchr', broken since 2000-10-28.
50222         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50223
50224 2008-04-26  Bruno Haible  <bruno@clisp.org>
50225
50226         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50227         comments.
50228
50229 2008-04-25  Eric Blake  <ebb9@byu.net>
50230
50231         Use native fstatat on cygwin 1.7.0.
50232         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50233         first.
50234
50235 2008-04-23  Eric Blake  <ebb9@byu.net>
50236
50237         Improve memchr2 performance.
50238         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50239         NUL bytes.
50240         * modules/memchr2 (Depends-on): Use intprops.h.
50241
50242 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50243
50244         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50245         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50246         <blp@cs.stanford.edu>.
50247
50248 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50249
50250         * lib/arpa_inet.in.h: New file.
50251
50252         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50253         (Makefile.am): Sed in substitute header file.
50254
50255         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50256         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50257
50258         * modules/inet_ntop (configure.ac): Use
50259         gl_ARPA_INET_MODULE_INDICATOR.
50260
50261         * modules/inet_pton (configure.ac): Use
50262         gl_ARPA_INET_MODULE_INDICATOR.
50263
50264 2008-04-22  Jim Meyering  <meyering@redhat.com>
50265
50266         * modules/verify (License): Re-license as LGPLv2+.
50267
50268 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50269
50270         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50271         parameter to void* as per POSIX standard (MinGW uses char*).
50272
50273 2008-04-21  Bruno Haible  <bruno@clisp.org>
50274
50275         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50276         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50277         Define to replacements if REPLACE_ISWCNTRL is 1.
50278         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50279         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50280         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50281         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50282         what it fixes.
50283         * doc/posix-functions/iswalpha.texi: Likewise.
50284         * doc/posix-functions/iswblank.texi: Likewise.
50285         * doc/posix-functions/iswcntrl.texi: Likewise.
50286         * doc/posix-functions/iswdigit.texi: Likewise.
50287         * doc/posix-functions/iswgraph.texi: Likewise.
50288         * doc/posix-functions/iswlower.texi: Likewise.
50289         * doc/posix-functions/iswprint.texi: Likewise.
50290         * doc/posix-functions/iswpunct.texi: Likewise.
50291         * doc/posix-functions/iswspace.texi: Likewise.
50292         * doc/posix-functions/iswupper.texi: Likewise.
50293         * doc/posix-functions/iswxdigit.texi: Likewise.
50294         Reported by Alain Guibert.
50295
50296 2008-04-21  Bruno Haible  <bruno@clisp.org>
50297
50298         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50299         Patch by Alain Guibert.
50300
50301 2008-04-21  Bruno Haible  <bruno@clisp.org>
50302
50303         Fix test failures on mingw.
50304         * tests/test-xstrtol.c (print_no_progname): New function.
50305         (main): Install it in error_print_progname hook.
50306         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50307         * tests/test-xstrtoimax.sh: Likewise.
50308         * tests/test-xstrtoumax.sh: Likewise.
50309
50310 2008-04-21  Bruno Haible  <bruno@clisp.org>
50311
50312         Fix test failure on mingw.
50313         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50314
50315 2008-04-21  Bruno Haible  <bruno@clisp.org>
50316
50317         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50318         Actually assign a value.
50319
50320 2008-04-20  Bruno Haible  <bruno@clisp.org>
50321
50322         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50323         take 2.
50324         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50325         'canonicalize-lgpl' module is also used.
50326         * lib/canonicalize-lgpl.c: Undo last change.
50327         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50328
50329 2008-04-20  Bruno Haible  <bruno@clisp.org>
50330
50331         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50332         config.h. Provide _mkdir based fallback for mingw.
50333         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50334         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50335         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50336         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50337         rather than defining mkdir in config.h.
50338         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50339         (gl_SYS_STAT_H_DEFAULTS): New macro.
50340         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50341         HAVE_IO_H any more.
50342         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50343         HAVE_DECL_MKDIR and HAVE_IO_H.
50344
50345 2008-04-20  Bruno Haible  <bruno@clisp.org>
50346
50347         * lib/isapipe.c: Port to native Windows platforms.
50348
50349 2008-04-20  Bruno Haible  <bruno@clisp.org>
50350
50351         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50352
50353 2008-04-21  Eric Blake  <ebb9@byu.net>
50354
50355         Work around preprocessors that don't handle UINTMAX_MAX.
50356         * lib/memchr2.c (memchr2): Avoid embedded #if.
50357         Reported by Alain Guibert, fix suggested by Bruno Haible.
50358
50359 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50360
50361         * doc/posix-functions/strftime.texi (strftime): Explain better
50362         Windows incompatibility.  Suggested by Micah Cowan
50363         <micah@cowan.name>.
50364
50365 2008-04-20  Bruno Haible  <bruno@clisp.org>
50366
50367         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50368         unistr/u8-mblen.
50369
50370 2008-04-20  Bruno Haible  <bruno@clisp.org>
50371
50372         Fix test failure on platforms with non-GNU iconv.
50373         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50374         (U_TO_U8): Use it, rather than u16_to_u8.
50375         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50376         units at the end of the input string.
50377         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50378
50379 2008-04-20  Bruno Haible  <bruno@clisp.org>
50380
50381         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50382         when the resulting length is 0.
50383         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50384
50385 2008-04-20  Bruno Haible  <bruno@clisp.org>
50386
50387         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50388         works.
50389         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50390
50391 2008-04-20  Bruno Haible  <bruno@clisp.org>
50392
50393         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50394         * modules/tsearch-tests (configure.ac): Test for initstate function.
50395
50396 2008-04-20  Bruno Haible  <bruno@clisp.org>
50397
50398         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50399         for nlink_t if missing.
50400         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50401
50402 2008-04-19  Bruno Haible  <bruno@clisp.org>
50403
50404         Work around snprintf bug on Linux libc5.
50405         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50406         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50407         gl_SNPRINTF_SIZE1.
50408         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50409         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50410         that test failed.
50411         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50412         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50413         * modules/snprintf (Files): Add m4/printf.m4.
50414         * modules/vsnprintf (Files): Likewise.
50415         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50416         * doc/posix-functions/vsnprintf.texi: Likewise.
50417
50418 2008-04-19  Bruno Haible  <bruno@clisp.org>
50419
50420         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50421         from 0.0058 to less than 10^-7.
50422
50423 2008-04-19  Bruno Haible  <bruno@clisp.org>
50424
50425         Fix rounding when a precision is given.
50426         * lib/vasnprintf.c (is_borderline): New function.
50427         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50428         9...9x.
50429         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50430         %e, %g.
50431         * tests/test-vasprintf-posix.c (test_function): Likewise.
50432         * tests/test-snprintf-posix.h (test_function): Likewise.
50433         * tests/test-sprintf-posix.h (test_function): Likewise.
50434         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50435         * tests/test-printf-posix.h (test_function): Likewise.
50436         * tests/test-printf-posix.output: Update.
50437         Reported by John Darrington <john@darrington.wattle.id.au> via
50438         Ben Pfaff <blp@cs.stanford.edu>.
50439
50440 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50441
50442         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50443         Suggested by Bruno Haible <bruno@clisp.org>.
50444
50445 2008-04-17  Bruno Haible  <bruno@clisp.org>
50446
50447         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50448         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50449         implementation.
50450         Patch by Bruce Merry <bmerry@gmail.com>.
50451
50452 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50453
50454         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50455         doesn't work under Windows.
50456
50457 2008-04-16  Bruno Haible  <bruno@clisp.org>
50458
50459         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50460         New macros.
50461         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50462         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50463         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50464         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50465         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50466         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50467         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50468         macros.
50469         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50470         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50471         Northern Sotho, Uighur.
50472
50473 2008-04-16  Bruno Haible  <bruno@clisp.org>
50474
50475         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50476         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50477         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50478         Reported by Daniel Bergström <daniel@octocode.com>.
50479
50480 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50481             Bruno Haible  <bruno@clisp.org>
50482
50483         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50484         function.
50485         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50486         New functions, mostly extracted from gl_locale_name_default.
50487         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50488
50489 2008-04-16  Eric Blake  <ebb9@byu.net>
50490
50491         Adjust strtod detection to catch glibc 2.7 bug.
50492         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50493         Reported by John Gatewood Ham.
50494
50495 2008-04-16  Bruno Haible  <bruno@clisp.org>
50496
50497         Add tentative support for Linux libc5.
50498         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50499         * lib/fpurge.c (fpurge): Likewise.
50500         * lib/freadable.c (freadable): Likewise.
50501         * lib/freadahead.c (freadahead): Likewise.
50502         * lib/freading.c (freading): Likewise.
50503         * lib/freadptr.c (freadptr): Likewise.
50504         * lib/freadseek.c (freadptrinc): Likewise.
50505         * lib/fseeko.c (rpl_fseeko): Likewise.
50506         * lib/fseterr.c (fseterr): Likewise.
50507         * lib/fwritable.c (fwritable): Likewise.
50508         * lib/fwriting.c (fwriting): Likewise.
50509         Reported by Alain Guibert <alguibert+bts@free.fr>.
50510
50511 2008-04-15  Bruno Haible  <bruno@clisp.org>
50512
50513         * modules/mathl (configure.ac): Define module indicator.
50514
50515 2008-04-15  Bruno Haible  <bruno@clisp.org>
50516
50517         * lib/logl.c (logl): Remove unused variables.
50518
50519 2008-04-15  Bruno Haible  <bruno@clisp.org>
50520
50521         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50522         fails.
50523
50524 2008-04-15  Bruno Haible  <bruno@clisp.org>
50525
50526         * lib/trim.c (trim2): Fix argument of isspace() macro.
50527
50528 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50529
50530         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50531         to 0.
50532         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50533
50534 2008-04-14  Bruno Haible  <bruno@clisp.org>
50535
50536         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50537         AC_LANG_PROGRAM argument.
50538         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50539         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50540         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50541         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50542         * m4/math_h.m4 (gl_MATH_H): Likewise.
50543         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50544         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50545         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50546         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50547         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50548         * m4/regex.m4 (gl_REGEX): Likewise.
50549         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50550         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50551         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50552         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50553         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50554         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50555         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50556         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50557
50558 2008-04-14  Jim Meyering  <meyering@redhat.com>
50559
50560         test-strtod: fix typos: s/abs/fabs/
50561         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50562
50563 2008-04-13  Bruno Haible  <bruno@clisp.org>
50564
50565         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50566         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50567         module is also used and while not building the reloc-wrapper.
50568
50569 2008-04-13  Bruno Haible  <bruno@clisp.org>
50570
50571         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50572
50573 2008-04-13  Bruno Haible  <bruno@clisp.org>
50574
50575         Fix AIX compilation failure introduced on 2008-04-02.
50576         * tests/test-frexp.c (exp): Undefine before redefining.
50577         * tests/test-frexpl.c (exp): Likewise.
50578
50579 2008-04-13  Bruno Haible  <bruno@clisp.org>
50580
50581         Work around a HP-UX stdio bug.
50582         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50583         * tests/test-ftello.c (main): Likewise.
50584         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50585         * doc/posix-functions/ftello.texi: Likewise.
50586
50587 2008-04-13  Bruno Haible  <bruno@clisp.org>
50588
50589         Make test-signbit pass on HP-UX/hppa.
50590         * tests/test-signbit.c (minus_zerol): New variable.
50591         (test_signbitl): Use it.
50592
50593 2008-04-13  Bruno Haible  <bruno@clisp.org>
50594
50595         Make truncl work on OSF/1 4.0.
50596         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50597         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50598         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50600         HAVE_DECL_TRUNCL.
50601         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50602         HAVE_DECL_TRUNCL.
50603         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50604
50605 2008-04-13  Bruno Haible  <bruno@clisp.org>
50606
50607         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50608
50609 2008-04-13  Bruno Haible  <bruno@clisp.org>
50610
50611         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50612         expression, so as to avoid HP-UX 11 cc compiler bug.
50613
50614 2008-04-13  Bruno Haible  <bruno@clisp.org>
50615
50616         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50617
50618 2008-04-13  Bruno Haible  <bruno@clisp.org>
50619
50620         * lib/git-merge-changelog.c: Remove empty declaration outside of
50621         functions.
50622
50623 2008-04-13  Bruno Haible  <bruno@clisp.org>
50624
50625         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50626
50627 2008-04-13  Bruno Haible  <bruno@clisp.org>
50628
50629         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50630         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50631         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50632         also if it exists but lacks definitions of the SHUT_* macros.
50633         * modules/sys_socket (Description): Update.
50634         Reported by Elbert Pol <e.pol@chello.nl>.
50635
50636 2008-04-13  Bruno Haible  <bruno@clisp.org>
50637
50638         * lib/localcharset.c (OS2): Don't redefine if already defined.
50639         Reported by Elbert Pol <e.pol@chello.nl>.
50640
50641 2008-04-13  Bruno Haible  <bruno@clisp.org>
50642
50643         * lib/binary-io.h [__EMX__]: Include <io.h>.
50644         Reported by Elbert Pol <e.pol@chello.nl>.
50645
50646 2008-04-12  Bruno Haible  <bruno@clisp.org>
50647
50648         * lib/fpucw.h: Enable the definitions also for x86_64.
50649         Needed for NetBSD/x86_64.
50650         Reported by Thomas Klausner <tk@giga.or.at>.
50651
50652 2008-04-12  Bruno Haible  <bruno@clisp.org>
50653
50654         * tests/test-strtod.c: Include isnand.h.
50655         (main): Use isnand instead of isnan.
50656         Reported by Jim Meyering.
50657
50658 2008-04-12  Bruno Haible  <bruno@clisp.org>
50659
50660         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50661         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50662
50663 2008-04-12  Jim Meyering  <meyering@redhat.com>
50664
50665         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50666
50667 2008-04-12  Bruno Haible  <bruno@clisp.org>
50668
50669         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50670         Reported by Elbert Pol <e.pol@chello.nl>.
50671
50672 2008-04-12  Eric Blake  <ebb9@byu.net>
50673
50674         Work around Solaris 10 math.h bug.
50675         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50676         (gl_MATH_H_DEFAULTS): Set up default.
50677         * modules/math (Makefile.am): Replace new indicators.
50678         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50679         * tests/test-math.c (main): Test this.
50680         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50681         * doc/posix-headers/math.texi (math.h): Mention bug.
50682         Reported by Nelson H. F. Beebe and Jim Meyering.
50683
50684 2008-04-11  Bruno Haible  <bruno@clisp.org>
50685
50686         Adapt to future versions of Apple GCC.
50687         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50688         Reported by Peter O'Gorman <peter@pogma.com>.
50689
50690 2008-04-11  Bruno Haible  <bruno@clisp.org>
50691
50692         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50693
50694 2008-04-11  Bruno Haible  <bruno@clisp.org>
50695
50696         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50697
50698         * modules/getaddrinfo-tests (Makefile.am): Define
50699         test_getaddrinfo_LDADD.
50700
50701 2008-04-11  Bruno Haible  <bruno@clisp.org>
50702
50703         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50704         (init): Fix syntax error.
50705         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50706         is declared.
50707
50708 2008-04-11  Bruno Haible  <bruno@clisp.org>
50709
50710         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50711         * modules/glob (Depends-on): Add stdbool.
50712
50713 2008-04-11  Bruno Haible  <bruno@clisp.org>
50714
50715         * lib/trim.c: Include <string.h>.
50716
50717 2008-04-11  Eric Blake  <ebb9@byu.net>
50718
50719         Avoid compile failure on OS/2.
50720         * lib/regex_internal.h (internal_function): Disable optimization
50721         on OS/2 (__EMX__), where it caused compiler error.
50722         Reported by Elbert Pol.
50723
50724 2008-04-11  Bruno Haible  <bruno@clisp.org>
50725
50726         Flush the standard error stream before aborting. Needed on mingw.
50727         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50728         * tests/test-array_list.c (ASSERT): Likewise.
50729         * tests/test-array_oset.c (ASSERT): Likewise.
50730         * tests/test-avltree_list.c (ASSERT): Likewise.
50731         * tests/test-avltree_oset.c (ASSERT): Likewise.
50732         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50733         * tests/test-binary-io.c (ASSERT): Likewise.
50734         * tests/test-byteswap.c (ASSERT): Likewise.
50735         * tests/test-c-ctype.c (ASSERT): Likewise.
50736         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50737         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50738         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50739         * tests/test-c-strstr.c (ASSERT): Likewise.
50740         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50741         * tests/test-canonicalize.c (ASSERT): Likewise.
50742         * tests/test-carray_list.c (ASSERT): Likewise.
50743         * tests/test-ceilf1.c (ASSERT): Likewise.
50744         * tests/test-ceilf2.c (ASSERT): Likewise.
50745         * tests/test-ceill.c (ASSERT): Likewise.
50746         * tests/test-count-one-bits.c (ASSERT): Likewise.
50747         * tests/test-fbufmode.c (ASSERT): Likewise.
50748         * tests/test-fflush2.c (ASSERT): Likewise.
50749         * tests/test-floorf1.c (ASSERT): Likewise.
50750         * tests/test-floorf2.c (ASSERT): Likewise.
50751         * tests/test-floorl.c (ASSERT): Likewise.
50752         * tests/test-fopen.c (ASSERT): Likewise.
50753         * tests/test-fpending.c (ASSERT): Likewise.
50754         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50755         * tests/test-fpurge.c (ASSERT): Likewise.
50756         * tests/test-freadable.c (ASSERT): Likewise.
50757         * tests/test-freadahead.c (ASSERT): Likewise.
50758         * tests/test-freading.c (ASSERT): Likewise.
50759         * tests/test-freadptr.c (ASSERT): Likewise.
50760         * tests/test-freadptr2.c (ASSERT): Likewise.
50761         * tests/test-freadseek.c (ASSERT): Likewise.
50762         * tests/test-freopen.c (ASSERT): Likewise.
50763         * tests/test-frexp.c (ASSERT): Likewise.
50764         * tests/test-frexpl.c (ASSERT): Likewise.
50765         * tests/test-fseek.c (ASSERT): Likewise.
50766         * tests/test-fseeko.c (ASSERT): Likewise.
50767         * tests/test-fstrcmp.c (ASSERT): Likewise.
50768         * tests/test-ftell.c (ASSERT): Likewise.
50769         * tests/test-ftello.c (ASSERT): Likewise.
50770         * tests/test-func.c (ASSERT): Likewise.
50771         * tests/test-fwritable.c (ASSERT): Likewise.
50772         * tests/test-fwriting.c (ASSERT): Likewise.
50773         * tests/test-getdelim.c (ASSERT): Likewise.
50774         * tests/test-getline.c (ASSERT): Likewise.
50775         * tests/test-i-ring.c (ASSERT): Likewise.
50776         * tests/test-iconv-utf.c (ASSERT): Likewise.
50777         * tests/test-iconv.c (ASSERT): Likewise.
50778         * tests/test-isfinite.c (ASSERT): Likewise.
50779         * tests/test-isnand.c (ASSERT): Likewise.
50780         * tests/test-isnanf.c (ASSERT): Likewise.
50781         * tests/test-isnanl.h (ASSERT): Likewise.
50782         * tests/test-ldexpl.c (ASSERT): Likewise.
50783         * tests/test-linked_list.c (ASSERT): Likewise.
50784         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50785         * tests/test-localename.c (ASSERT): Likewise.
50786         * tests/test-lseek.c (ASSERT): Likewise.
50787         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50788         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50789         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50790         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50791         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50792         * tests/test-mbschr.c (ASSERT): Likewise.
50793         * tests/test-mbscspn.c (ASSERT): Likewise.
50794         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50795         * tests/test-mbspbrk.c (ASSERT): Likewise.
50796         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50797         * tests/test-mbsrchr.c (ASSERT): Likewise.
50798         * tests/test-mbsspn.c (ASSERT): Likewise.
50799         * tests/test-mbsstr1.c (ASSERT): Likewise.
50800         * tests/test-mbsstr2.c (ASSERT): Likewise.
50801         * tests/test-mbsstr3.c (ASSERT): Likewise.
50802         * tests/test-memchr2.c (ASSERT): Likewise.
50803         * tests/test-memmem.c (ASSERT): Likewise.
50804         * tests/test-open.c (ASSERT): Likewise.
50805         * tests/test-printf-frexp.c (ASSERT): Likewise.
50806         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50807         * tests/test-printf-posix.c (ASSERT): Likewise.
50808         * tests/test-quotearg.c (ASSERT): Likewise.
50809         * tests/test-rbtree_list.c (ASSERT): Likewise.
50810         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50811         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50812         * tests/test-round1.c (ASSERT): Likewise.
50813         * tests/test-roundf1.c (ASSERT): Likewise.
50814         * tests/test-roundl.c (ASSERT): Likewise.
50815         * tests/test-signbit.c (ASSERT): Likewise.
50816         * tests/test-sleep.c (ASSERT): Likewise.
50817         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50818         * tests/test-snprintf.c (ASSERT): Likewise.
50819         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50820         * tests/test-stat-time.c (ASSERT): Likewise.
50821         * tests/test-strcasestr.c (ASSERT): Likewise.
50822         * tests/test-strerror.c (ASSERT): Likewise.
50823         * tests/test-striconv.c (ASSERT): Likewise.
50824         * tests/test-striconveh.c (ASSERT): Likewise.
50825         * tests/test-striconveha.c (ASSERT): Likewise.
50826         * tests/test-strsignal.c (ASSERT): Likewise.
50827         * tests/test-strstr.c (ASSERT): Likewise.
50828         * tests/test-strtod.c (ASSERT): Likewise.
50829         * tests/test-trunc1.c (ASSERT): Likewise.
50830         * tests/test-trunc2.c (ASSERT): Likewise.
50831         * tests/test-truncf1.c (ASSERT): Likewise.
50832         * tests/test-truncf2.c (ASSERT): Likewise.
50833         * tests/test-truncl.c (ASSERT): Likewise.
50834         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50835         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50836         * tests/test-vasnprintf.c (ASSERT): Likewise.
50837         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50838         * tests/test-vasprintf.c (ASSERT): Likewise.
50839         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50840         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50841         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50842         * tests/test-vsnprintf.c (ASSERT): Likewise.
50843         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50844         * tests/test-wcwidth.c (ASSERT): Likewise.
50845         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50846         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50847         * tests/test-xvasprintf.c (ASSERT): Likewise.
50848         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50849         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50850         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50851         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50852         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50853         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50854         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50855         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50856         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50857         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50858         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50859         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50860         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50861         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50862         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50863         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50864         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50865         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50866         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50867         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50868         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50869         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50870         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50871         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50872         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50873         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50874         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50875         * tests/unictype/test-combining.c (ASSERT): Likewise.
50876         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50877         * tests/unictype/test-digit.c (ASSERT): Likewise.
50878         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50879         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50880         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50881         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50882         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50883         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50884         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50885         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50886         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50887         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50888         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50889         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50890         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50891         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50892         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50893         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50894         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50895         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50896         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50897         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50898         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50899         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50900         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50901         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50902         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50903         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50904         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50905         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50906         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50907         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50908         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50909         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50910         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50911         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50912         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50913         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50914         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50915         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50916         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50917         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50918         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50919         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50920         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50921         Reported by Eric Blake.
50922
50923 2008-04-11  Bruno Haible  <bruno@clisp.org>
50924
50925         * lib/wchar.in.h: Tweak comment.
50926
50927 2008-04-11  Bruno Haible  <bruno@clisp.org>
50928
50929         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50930         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50931         gl_COMMON.
50932         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50933
50934 2008-04-11  Bruno Haible  <bruno@clisp.org>
50935
50936         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50937
50938 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50939
50940         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50941         of attempting to use non-existing /dev/*random.  Based on patch
50942         from Adam Strzelecki <ono@java.pl> in
50943         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50944
50945 2008-04-08  Bruno Haible  <bruno@clisp.org>
50946
50947         Add tentative support for emx+gcc.
50948         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50949         * lib/fpurge.c (fpurge): Likewise.
50950         * lib/freadable.c (freadable): Likewise.
50951         * lib/freadahead.c (freadahead): Likewise.
50952         * lib/freading.c (freading): Likewise.
50953         * lib/freadptr.c (freadptr): Likewise.
50954         * lib/freadseek.c (freadptrinc): Likewise.
50955         * lib/fseeko.c (rpl_fseeko): Likewise.
50956         * lib/fseterr.c (fseterr): Likewise.
50957         * lib/fwritable.c (fwritable): Likewise.
50958         * lib/fwriting.c (fwriting): Likewise.
50959         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50960
50961 2008-04-09  Eric Blake  <ebb9@byu.net>
50962
50963         Avoid some autoconf warnings.
50964         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50965         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50966         * m4/afs.m4 (gl_AFS): Likewise.
50967         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50968         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50969         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50970         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50971         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50972         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50973         (AC_CHECK_DECLS_ONCE): Likewise.
50974         Rename file...
50975         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50976         gnulib-tool requires autoconf 2.59 or better.
50977         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50978
50979 2008-04-08  Eric Blake  <ebb9@byu.net>
50980
50981         Use 'git describe --match' if present (added in git 1.5.5).
50982         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50983         if possible.
50984
50985 2008-04-08  Bruno Haible  <bruno@clisp.org>
50986
50987         Add tentative support for OpenServer.
50988         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50989         _ptr, _cnt.
50990         * lib/fpurge.c (fpurge): Likewise.
50991         * lib/freadable.c (freadable): Likewise.
50992         * lib/freadahead.c (freadahead): Likewise.
50993         * lib/freading.c (freading): Likewise.
50994         * lib/freadptr.c (freadptr): Likewise.
50995         * lib/freadseek.c (freadptrinc): Likewise.
50996         * lib/fseeko.c (rpl_fseeko): Likewise.
50997         * lib/fseterr.c (fseterr): Likewise.
50998         * lib/fwritable.c (fwritable): Likewise.
50999         * lib/fwriting.c (fwriting): Likewise.
51000         Reported by Roger Cornelius <rac@tenzing.org> and
51001         Brian K. White <brian@aljex.com>.
51002
51003 2008-04-06  Jim Meyering  <meyering@redhat.com>
51004
51005         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51006
51007 2008-04-06  Bruno Haible  <bruno@clisp.org>
51008
51009         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51010         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51011         * tests/test-printf-posix.sh: Likewise.
51012         * tests/test-vfprintf-posix.sh: Likewise.
51013         * tests/test-vprintf-posix.sh: Likewise.
51014         * tests/test-xprintf-posix.sh: Likewise.
51015
51016 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51017
51018         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51019         hide error from 'ls', needed on OS/2.
51020         Report by Elbert Pol <elbert.pol@gmail.com>.
51021
51022 2008-04-04  Eric Blake  <ebb9@byu.net>
51023
51024         Make test-fseeko.c failures meaningful.
51025         * tests/test-fseeko.c: Print line number on failure.
51026         * tests/test-fseek.c: Likewise.
51027         Reported by Nelson H. F. Beebe.
51028
51029         Improve strtod bug detection check.
51030         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51031         required for Solaris 10.
51032         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51033
51034 2008-04-04  Bruno Haible  <bruno@clisp.org>
51035
51036         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51037         by m4/setenv.m4.
51038
51039 2008-04-03  Eric Blake  <ebb9@byu.net>
51040
51041         Ensure sane .version contents.
51042         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51043         version string.
51044         * build-aux/git-version-gen: Improve documentation.
51045
51046         Make GNU make output nicer.
51047         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51048         MAKECMDGOALS to enforce message for all command line targets.  Set
51049         srcdir for use in maint.mk.
51050
51051         Another maintainer tweak.
51052         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51053         a target that regenerates version.
51054
51055 2008-04-03  Jim Meyering  <meyering@redhat.com>
51056
51057         vc-list-files: don't cause coreutils "make po-check" failure
51058         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51059
51060 2008-04-03  Eric Blake  <ebb9@byu.net>
51061
51062         Allow VPATH usage of vc-list-files.
51063         * build-aux/vc-list-files (scriptversion): Add timestamp.
51064         (options): Add --help, --version, -C.
51065         (CVS): Support installed cvsu.
51066
51067 2008-04-02  Bruno Haible  <bruno@clisp.org>
51068
51069         Avoid some "statement with no effect" warnings from gcc.
51070         * tests/test-wctype.c (main): Explicitly ignore unused values.
51071         Reported by Jim Meyering.
51072
51073 2008-04-02  Jim Meyering  <meyering@redhat.com>
51074
51075         Avoid some warnings from "gcc -Wshadow".
51076         * tests/test-frexp.c (exp): Define to a different identifier.
51077         * tests/test-frexpl.c (exp): Likewise.
51078
51079 2008-04-03  Jim Meyering  <meyering@redhat.com>
51080
51081         bootstrap: remove dangling *.[ch] symlinks from lib
51082         * build-aux/bootstrap [dangling symlink removal]: Move find's
51083         -depth option to precede all others, to avoid a warning.
51084         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51085
51086 2008-04-02  Bruno Haible  <bruno@clisp.org>
51087
51088         Avoid some warnings from "gcc -Wshadow".
51089         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51090         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51091         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51092         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51093         Reported by Jim Meyering.
51094
51095 2008-04-01  Bruno Haible  <bruno@clisp.org>
51096
51097         Fix test to work on IRIX 6.5 with cc.
51098         * tests/test-math.c (numeric_equal): New function.
51099         (main): Use it.
51100
51101 2008-04-01  Bruno Haible  <bruno@clisp.org>
51102
51103         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51104
51105 2008-04-01  Bruno Haible  <bruno@clisp.org>
51106
51107         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51108         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51109         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51110         (Depends-on): Remove math.
51111
51112         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51113         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51114         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51115         (Depends-on): Remove math.
51116
51117         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51118         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51119         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51120         (Depends-on): Remove math.
51121         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51122         (Depends-on): Remove math.
51123
51124         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51125         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51126         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51127         (Depends-on): Remove math.
51128         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51129         (Depends-on): Remove math.
51130
51131         * tests/test-round1.c: Include nan.h.
51132         (main): Use NaNd instead of NAN.
51133         * modules/round-tests (Files): Add tests/nan.h.
51134
51135         * tests/test-trunc1.c: Include nan.h.
51136         (main): Use NaNd instead of NAN.
51137         * modules/trunc-tests (Files): Add tests/nan.h.
51138
51139         * tests/test-roundf1.c: Include nan.h.
51140         (main): Use NaNf instead of NAN.
51141         * modules/roundf-tests (Files): Add tests/nan.h.
51142
51143         * tests/test-truncf1.c: Include nan.h.
51144         (main): Use NaNf instead of NAN.
51145         * modules/truncf-tests (Files): Add tests/nan.h.
51146
51147         * tests/test-ceilf1.c: Include nan.h.
51148         (main): Use NaNf instead of NAN.
51149         * modules/ceilf-tests (Files): Add tests/nan.h.
51150
51151         * tests/test-floorf1.c: Include nan.h.
51152         (main): Use NaNf instead of NAN.
51153         * modules/floorf-tests (Files): Add tests/nan.h.
51154
51155         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51156         (main): Use NaNf instead of NAN.
51157         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51158
51159         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51160         (main): Use NaNd instead of NAN.
51161         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51162
51163         * tests/test-frexp.c: Include nan.h.
51164         (main): Use NaNd instead of NAN.
51165         * modules/frexp-tests (Files): Add tests/nan.h.
51166
51167         * lib/isnan.c: Don't include <math.h>.
51168         (FUNC): Don't use NAN macro.
51169         * modules/isnand-nolibm (Depends-on): Remove math.
51170         * modules/isnanf-nolibm (Depends-on): Remove math.
51171         * modules/isnanl (Depends-on): Remove math.
51172         * modules/isnanl-nolibm (Depends-on): Remove math.
51173
51174         * tests/nan.h: New file.
51175
51176 2008-04-01  Eric Blake  <ebb9@byu.net>
51177
51178         Fix typos.
51179         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51180         values to be the right type.
51181
51182         For now, cater to gnulib strtod inaccuracies.
51183         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51184         fractional results.  While not as nice from a QoI perspective, it
51185         is a quicker patch than correctly implementing decimal to binary
51186         rounding.
51187
51188 2008-03-31  Eric Blake  <ebb9@byu.net>
51189
51190         Guarantee a definition of NAN.
51191         * lib/math.in.h (NAN): Define if missing.
51192         * tests/test-math.c (main): Test it.
51193         * doc/posix-headers/math.texi (math.h): Document this.
51194         * lib/isnan.c (rpl_isnand): Use it.
51195         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51196         * tests/test-floorf1.c (NaN): Likewise.
51197         * tests/test-frexp.c (NaN): Likewise.
51198         * tests/test-isnand.c (NaN): Likewise.
51199         * tests/test-isnanf.c (NaN): Likewise.
51200         * tests/test-round1.c (NaN): Likewise.
51201         * tests/test-roundf1.c (NaN): Likewise.
51202         * tests/test-snprintf-posix.h (NaN): Likewise.
51203         * tests/test-sprintf-posix.h (NaN): Likewise.
51204         * tests/test-trunc1.c (NaN): Likewise.
51205         * tests/test-truncf1.c (NaN): Likewise.
51206         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51207         * tests/test-vasprintf-posix.c (NaN): Likewise.
51208         * modules/isnand-nolibm (Depends-on): Add math.
51209         * modules/isnanf-nolibm (Depends-on): Likewise.
51210         * modules/isnanl (Depends-on): Likewise.
51211         * modules/isnanl-nolibm (Depends-on): Likewise.
51212         * modules/snprintf-posix-tests (Depends-on): Likewise.
51213         * modules/sprintf-posix-tests (Depends-on): Likewise.
51214         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51215         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51216         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51217         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51218
51219 2008-03-31  Bruno Haible  <bruno@clisp.org>
51220
51221         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51222         * doc/posix-functions/strtod.texi: Likewise.
51223
51224 2008-03-31  Bruno Haible  <bruno@clisp.org>
51225
51226         * tests/test-strtod.c (main): Don't use C99 syntax.
51227
51228 2008-03-31  Bruno Haible  <bruno@clisp.org>
51229
51230         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51231         Reported by Eric Blake.
51232
51233 2008-03-31  Jim Meyering  <meyering@redhat.com>
51234
51235         Don't compare actual signbit return values.
51236         * tests/test-strtod.c (main): Rather, compare only their
51237         zero/non-zero nature.
51238
51239 2008-03-31  Eric Blake  <ebb9@byu.net>
51240
51241         More strtod documentation.
51242         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51243         failures as distinct bugs.
51244
51245 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51246
51247         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51248         Problem reported by Erik Benada in
51249         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51250
51251 2008-03-30  Bruno Haible  <bruno@clisp.org>
51252
51253         * tests/test-strtod.c: Add comments about which assertion fails on which
51254         platform.
51255         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51256
51257 2008-03-30  Eric Blake  <ebb9@byu.net>
51258
51259         Test signbit behavior on zeros.
51260         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51261         (test_signbitd, test_signbitl): Likewise.
51262
51263         More strtod touchups.
51264         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51265         sign of negative underflow, for now.  Use .5, not .1.
51266         * doc/posix-functions/strtod.texi (strtod): Mention these
51267         limitations.
51268         Reported by Jim Meyering.
51269
51270 2008-03-30  Bruno Haible  <bruno@clisp.org>
51271
51272         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51273         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51274
51275 2008-03-30  Bruno Haible  <bruno@clisp.org>
51276
51277         Avoid failure when attempting to return empty iconv results on some
51278         platforms.
51279         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51280         allocation, don't report ENOMEM when the resulting string is empty.
51281
51282 2008-03-30  Bruno Haible  <bruno@clisp.org>
51283
51284         Fix buffer overrun.
51285         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51286         Don't consider the width for tmp_length. Check count against tmp_length
51287         before doing the padding. Ensure enough allocation during padding.
51288
51289 2008-03-30  Eric Blake  <ebb9@byu.net>
51290
51291         strtod touchups.
51292         * lib/strtod.c (strtod): Avoid compiler warnings.
51293         Reported by Jim Meyering.
51294
51295 2008-03-30  Bruno Haible  <bruno@clisp.org>
51296
51297         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51298         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51299         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51300         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51301         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51302         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51303         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51304         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51305
51306         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51307         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51308         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51309         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51310         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51311         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51312         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51313         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51314
51315         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51316         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51317         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51318         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51319         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51320         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51321         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51322         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51323
51324         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51325         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51326
51327         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51328         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51329
51330         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51331         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51332
51333         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51334         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51335         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51336
51337         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51338         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51339         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51340
51341         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51342         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51343         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51344
51345         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51346         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51347         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51348
51349         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51350         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51351         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51352         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51353         (Depends-on): Add EOVERFLOW.
51354         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51355         (Depends-on): Add EOVERFLOW.
51356         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51357         (Depends-on): Add EOVERFLOW.
51358         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51359         (Depends-on): Add EOVERFLOW.
51360         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51361         (Depends-on): Add EOVERFLOW.
51362         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51363         (Depends-on): Add EOVERFLOW.
51364         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51365         (Depends-on): Add EOVERFLOW.
51366         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51367         (Depends-on): Add EOVERFLOW.
51368
51369         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51370         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51371         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51372
51373         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51374         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51375         * modules/snprintf (Depends-on): Add EOVERFLOW.
51376
51377         * lib/poll.c (EOVERFLOW): Remove fallback.
51378         * modules/poll (Depends-on): Add EOVERFLOW.
51379
51380         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51381         * modules/getugroups (Depends-on): Add EOVERFLOW.
51382
51383         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51384         * modules/getdelim (Depends-on): Add EOVERFLOW.
51385
51386         * lib/ftell.c (EOVERFLOW): Remove fallback.
51387         * modules/ftell (Depends-on): Add EOVERFLOW.
51388
51389         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51390         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51391         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51392
51393         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51394
51395         * modules/EOVERFLOW-tests: New file.
51396         * tests/test-EOVERFLOW.c: New file.
51397
51398         * modules/EOVERFLOW: New file.
51399         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51400
51401 2008-03-30  Bruno Haible  <bruno@clisp.org>
51402
51403         Fix bug introduced on 2007-06-10.
51404         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51405         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51406
51407 2008-03-30  Bruno Haible  <bruno@clisp.org>
51408
51409         Improve freadseek's efficiency after ungetc.
51410         * lib/freadseek.c: Include freadahead.h.
51411         (freadptrinc): New function, extracted from freadseek.
51412         (freadseek): Use it in a loop. Use freadahead to determine the number
51413         of loop iterations.
51414         * modules/freadseek (Depends-on): Add freadahead.
51415         (configure.ac): Require AC_C_INLINE.
51416
51417 2008-03-30  Bruno Haible  <bruno@clisp.org>
51418
51419         * lib/freadseek.c (freadseek): Don't ignore the return value of
51420         freadptr.
51421
51422 2008-03-29  Eric Blake  <ebb9@byu.net>
51423
51424         Add hex float support.
51425         * modules/strtod (Depends-on): Add c-ctype.
51426         (Link): Mention POW_LIB.
51427         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51428         whitespace between 'e' and exponent.
51429         * tests/test-strtod.c (main): Enable hex float tests.
51430         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51431         now provides.
51432
51433         Document various strtod bugs, with some fixes.
51434         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51435         "-0x", "inf", "nan", and hex constants.
51436         * doc/posix-functions/atof.texi (atof): Likewise.
51437         * modules/stdlib (Makefile.am): Support strtod.
51438         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51439         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51440         detect additional strtod bugs.
51441         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51442         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51443         bool where appropriate.  Parse 'inf' and 'nan'.
51444         * tests/test-strtod.c: New file.
51445         * modules/strtod (Depends-on): Add stdbool, stdlib.
51446         (configure.ac): Turn on module indicator.
51447         * modules/strtod-tests: New module.
51448
51449 2008-03-29  Eric Blake  <ebb9@byu.net>
51450
51451         Fix ftell on mingw.
51452         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51453         * modules/ftell-tests (Depends-on): Add binary-io.
51454         * modules/ftello-tests (Depends-on): Likewise.
51455         * tests/test-ftell.c (main): Enhance test to cover behavior after
51456         ungetc.  Enforce binary mode.
51457         * tests/test-ftello.c (main): Likewise.
51458
51459         Pass test-freadseek on cygwin.
51460         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51461         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51462         ungetc buffer.
51463
51464         * tests/test-fflush2.c (main): Fix typo.
51465
51466 2008-03-29  Bruno Haible  <bruno@clisp.org>
51467
51468         * tests/test-fflush2.c (main): Temporarily disable the contents of
51469         this test.
51470         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51471         Reported by Eric Blake.
51472
51473 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51474
51475         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51476         (GC_SHA224_DIGEST_SIZE): Add.
51477
51478         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51479         (gc_hash_digest_length): Likewise.
51480         (gc_hash_buffer): Likewise.
51481
51482 2008-03-25  Bruno Haible  <bruno@clisp.org>
51483
51484         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51485         detail which gettext release to use.
51486         Reported by Simon Josefsson.
51487
51488 2008-03-26  Jim Meyering  <meyering@redhat.com>
51489
51490         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51491         * modules/gnumakefile (clean-GNUmakefile): Also, use
51492         test ... && ... || : syntax rather than if-then ... fi.
51493
51494         gnumakefile: Don't double-quote-expand $(VPATH) value.
51495         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51496
51497 2008-03-24  Eric Blake  <ebb9@byu.net>
51498
51499         Alter GNUmakefile to install into top directory.
51500         * modules/maintainer-makefile: Split, and add dependency...
51501         * modules/gnumakefile: to this new module.
51502         * build-aux/GNUmakefile: Move...
51503         * top/GNUmakefile: ...here.
51504         * build-aux/maint.mk: Move...
51505         * top/maint.mk: ...here.
51506         * MODULES.html.sh (Support for maintaining...): Document new
51507         module.
51508
51509 2008-03-23  Bruno Haible  <bruno@clisp.org>
51510
51511         * gnulib-tool: New options --vc-files, --no-vc-files.
51512         (func_usage): Document them.
51513         (vc_files): New variable.
51514         (func_import): Consider vc_files.
51515         (func_create_testdir): Set vc_files to empty.
51516         Suggested by Jim Meyering and Karl Berry.
51517
51518 2008-03-23  Bruno Haible  <bruno@clisp.org>
51519
51520         Fix regex compilation error on HP-UX 11.
51521         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51522         * modules/regex (Files): Add m4/mbstate_t.m4.
51523         Reported by Ton Voon <ton.voon@altinity.com>.
51524
51525 2008-03-23  Bruno Haible  <bruno@clisp.org>
51526
51527         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51528
51529 2008-03-23  Eric Blake  <ebb9@byu.net>
51530             Bruno Haible  <bruno@clisp.org>
51531
51532         Install files from top/ in the destination directory.
51533         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51534         augmentation also for the files from top/.
51535         (func_import, func_create_testdir): Rewrite file names:
51536         top/filename -> filename.
51537
51538 2008-03-23  Bruno Haible  <bruno@clisp.org>
51539
51540         Tweak "gnulib --version" output.
51541         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51542
51543 2008-03-23  Bruno Haible  <bruno@clisp.org>
51544
51545         Tweak "gnulib --version" output.
51546         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51547         rather than contents of ChangeLog, when possible.
51548
51549 2008-03-21  Eric Blake  <ebb9@byu.net>
51550
51551         More --version tweaks.
51552         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51553         date of last ChangeLog entry.
51554
51555 2008-03-21  Jim Meyering  <meyering@redhat.com>
51556
51557         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51558
51559 2008-03-20  Eric Blake  <ebb9@byu.net>
51560
51561         VPATH fix.
51562         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51563
51564 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51565
51566         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51567         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51568
51569 2008-03-20  Eric Blake  <ebb9@byu.net>
51570
51571         Sync GNUmakefile with coreutils.
51572         * build-aux/GNUmakefile (have-Makefile): Rename...
51573         (_have-Makefile): ...to this, for namespace consideration.
51574         (GNUmakefile.cfg): Include, if present.
51575         (_autoreconf): Define a default.
51576         (_is-dist-target): New rule for rebuilds to pick up intra-release
51577         version.
51578         (maint-cfg.mk): Rename...
51579         (cfg.mk): ...to this.
51580
51581 2008-03-18  Jim Meyering  <meyering@redhat.com>
51582
51583         New script and module: mktempd
51584         * MODULES.html.sh (maint+release support): Add mktempd.
51585         * build-aux/mktempd: New file.
51586         * modules/mktempd: New file.
51587
51588 2008-03-15  Jim Meyering  <meyering@redhat.com>
51589
51590         Undo last change.
51591         * lib/sha1.c, lib/md5.c: 63 != ~63.
51592         Reported by Andreas Schwab.
51593
51594         sha1.c, md5.c: Hoist a redundant expression.
51595         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51596         "ctx->buflen" only once, before calling *_process_block.
51597         * lib/md5.c (md5_process_bytes): Likewise.
51598
51599 2008-03-14  Eric Blake  <ebb9@byu.net>
51600
51601         Bump copyright year in files generated by gnulib-tool.
51602         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51603         gnulib-tool, rather than hard-coding it.
51604
51605         Fix 'gnulib-tool --version' output to work with git.
51606         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51607         (startup): ...here.
51608         (func_version): Use it to invoke git-version-gen, rather than
51609         relying on CVS keyword expansion.  Modernize wording.
51610         (cvsdatestamp, last_checkin_date, version): Kill unused
51611         variables.
51612
51613 2008-03-12  Jim Meyering  <meyering@redhat.com>
51614
51615         Recognize optional cast of the argument to free.
51616         * build-aux/useless-if-before-free: Update regexps.
51617
51618         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51619
51620 2008-03-11  Bruno Haible  <bruno@clisp.org>
51621
51622         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51623         by a single package.
51624         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51625         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51626         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51627         Reported by Sam Steingold <sds@gnu.org>.
51628
51629 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51630
51631         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51632         repositories.
51633
51634 2008-03-11  Bruno Haible  <bruno@clisp.org>
51635
51636         Avoid conflicts between local macro definitions.
51637         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51638         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51639
51640 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51641             Bruno Haible  <bruno@clisp.org>
51642
51643         Make va_copy work with some version of xlc on AIX 5.1.
51644         * lib/stdarg.in.h: New file.
51645         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51646         On AIX, use a <stdarg.h> file substitute.
51647         * modules/stdarg (Files): Add lib/stdarg.in.h.
51648         (Depends-on): Add include_next.
51649         (Makefile.am): Build a stdarg.h substitute if requested.
51650         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51651
51652 2008-03-10  Bruno Haible  <bruno@clisp.org>
51653
51654         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51655         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51656         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51657
51658 2008-03-10  Bruno Haible  <bruno@clisp.org>
51659
51660         * modules/stdlib (Depends-on): Add include_next, remove
51661         absolute-header.
51662
51663 2008-03-09  Bruno Haible  <bruno@clisp.org>
51664
51665         * lib/freadahead.h (freadahead): Document more precisely.
51666         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51667         the sum of both buffer sizes.
51668         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51669         * NEWS: Document the change.
51670
51671 2008-03-09  Bruno Haible  <bruno@clisp.org>
51672
51673         Extend freadptr to return also the buffer size.
51674         * lib/freadptr.h (freadptr): Add sizep argument.
51675         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51676         (freadptr): Add sizep argument. Determine buffer size like freadahead
51677         does.
51678         * tests/test-freadptr.c: Don't include freadahead.h.
51679         (main): Adapt for new calling convention of freadptr.
51680         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51681         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51682         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51683         tests/test-freadptr2.sh.
51684         (Depends): Remove freadahead.
51685         (TESTS): Add test-freadptr2.sh.
51686         (check_PROGRAMS): Add test-freadptr2.
51687
51688 2008-03-09  Bruno Haible  <bruno@clisp.org>
51689
51690         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51691         Report and solution by Simon Josefsson.
51692
51693 2008-03-06  Bruno Haible  <bruno@clisp.org>
51694
51695         Make fflush after ungetc work on BSD platforms.
51696         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51697         * tests/test-fflush2.c: New file.
51698         * tests/test-fflush2.sh: New file.
51699         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51700         tests/test-fflush2.c.
51701         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51702         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51703
51704 2008-03-06  Eric Blake  <ebb9@byu.net>
51705
51706         Likewise for ftello.
51707         * modules/ftello (Dependencies): Add extensions.
51708         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51709
51710 2008-03-06  Bruno Haible  <bruno@clisp.org>
51711
51712         * modules/fseeko (Dependencies): Add extensions.
51713         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51714         Needed on glibc systems.
51715
51716 2008-03-06  Bruno Haible  <bruno@clisp.org>
51717
51718         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51719         email address.
51720         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51721
51722 2008-03-06  Bruno Haible  <bruno@clisp.org>
51723
51724         * users.txt: Add libgnupdf.
51725
51726 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51727
51728         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51729         (Header File Substitutes, Function Substitutes,
51730         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51731         (Build robot for gnulib): Fix typo.
51732
51733 2008-03-06  Bruno Haible  <bruno@clisp.org>
51734
51735         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51736         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51737
51738 2008-03-06  Bruno Haible  <bruno@clisp.org>
51739
51740         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51741         * doc/gnulib.texi: Include it.
51742
51743 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51744
51745         * modules/func (License): Change license to unlimited; there was
51746         no LGPL parts in the module anyway.
51747
51748 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51749
51750         * modules/__func__: Renamed to modules/func.
51751         * modules/__func__-tests: Renamed to modules/func-tests.
51752         * tests/test-__func__.c: Renamed to tests/test-func.c.
51753         * m4/__func__.m4: Renamed to m4/func.m4.
51754         * doc/gnulib.texi (__func__): Section renamed to func.
51755         Suggested by Eric Blake <ebb9@byu.net>.
51756
51757 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51758
51759         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51760         about __func__.  Make example self-contained.  Suggested by Eric
51761         Blake <ebb9@byu.net>.
51762
51763         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51764         Suggested by Eric Blake <ebb9@byu.net>.
51765
51766 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51767
51768         * modules/__func__: New file.
51769         * modules/__func__-tests: New file.
51770         * tests/test-__func__.c: New file.
51771         * m4/__func__.m4: New file.
51772         * doc/gnulib.texi (__func__): Document __func__ module.
51773
51774 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51775
51776         * modules/byteswap (License): Re-license as LGPLv2+.
51777
51778 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51779
51780         * doc/Makefile: Add pdf target.
51781
51782 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51783
51784         * modules/inline (License): Use 'unlimited', since there are only
51785         *.m4 files in this module.
51786
51787 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51788             Bruno Haible  <bruno@clisp.org>
51789
51790         Add support for HP C 7.1 on OpenVMS 8.3.
51791         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51792
51793 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51794
51795         Update VMS specifics.
51796         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51797
51798 2008-03-02  Jim Meyering  <meyering@redhat.com>
51799
51800         Remove the last dependency on the "free" module.
51801         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51802         Reported by Bob Proulx.
51803
51804         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51805
51806         Remove useless "if" tests before free.  Deprecate "free" module.
51807         * doc/posix-functions/free.texi: Mention that this
51808         module is no longer useful.
51809         * modules/free (Notice): Say this module is obsolete.
51810         * modules/readutmp (Depends-on): Remove free.
51811         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51812         * lib/putenv.c (putenv): Likewise.
51813         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51814         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51815         * tests/test-c-strcasestr.c (main): Likewise.
51816         * tests/test-c-strstr.c (main): Likewise.
51817         * tests/test-mbscasestr1.c (main): Likewise.
51818         * tests/test-mbscasestr2.c (main): Likewise.
51819         * tests/test-mbsstr1.c (main): Likewise.
51820         * tests/test-mbsstr2.c (main): Likewise.
51821         * tests/test-memmem.c (main): Likewise.
51822         * tests/test-strcasestr.c (main): Likewise.
51823         * tests/test-striconv.c (main): Likewise.
51824         * tests/test-striconveh.c (main): Likewise.
51825         * tests/test-striconveha.c (main): Likewise.
51826         * tests/test-strstr.c (main): Likewise.
51827
51828         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51829
51830         bootstrap: sync from coreutils again
51831         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51832
51833 2008-03-01  Jim Meyering  <meyering@redhat.com>
51834
51835         bootstrap: sync from coreutils
51836         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51837         also when the target doesn't exist.
51838
51839 2008-03-01  Eric Blake  <ebb9@byu.net>
51840
51841         Fix bugs in last patch.
51842         * lib/memchr2.c (memchr2): Fix typo.
51843         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51844         extension.
51845         Reported by Bruce Korb.
51846
51847         New module 'memchr2'.
51848         * modules/memchr2: New file.
51849         * modules/memchr2-tests: Likewise.
51850         * lib/memchr2.h: Likewise.
51851         * lib/memchr2.c: Likewise, based on memchr.c.
51852         * tests/test-memchr2.c: New test.
51853         * MODULES.html.sh (String handling): Add memchr2.
51854
51855 2008-02-29  Bruno Haible  <bruno@clisp.org>
51856
51857         * modules/freadseek-tests: New file.
51858         * tests/test-freadseek.sh: New file.
51859         * tests/test-freadseek.c: New file.
51860
51861         New module 'freadseek'.
51862         * modules/freadseek: New file.
51863         * lib/freadseek.h: New file.
51864         * lib/freadseek.c: New file.
51865         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51866
51867 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51868
51869         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51870         wydawca.
51871
51872         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51873         program_invocation_name and program_invocation_short_name are
51874         present.
51875
51876 2008-02-28  Bruno Haible  <bruno@clisp.org>
51877
51878         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51879         * tests/test-freadptr.sh: Also test non-seekable stdin.
51880
51881 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51882
51883         * build-aux/bootstrap (source_base, m4_base)
51884         (doc_base, tests_base): New variables.
51885         (gnulib_tool_options): Do not hardcode base directories, use
51886         the above variables instead.
51887
51888 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51889
51890         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51891
51892 2008-02-28  Bruno Haible  <bruno@clisp.org>
51893
51894         * modules/freadptr-tests: New file.
51895         * tests/test-freadptr.sh: New file.
51896         * tests/test-freadptr.c: New file.
51897
51898         New module 'freadptr'.
51899         * modules/freadptr: New file.
51900         * lib/freadptr.h: New file.
51901         * lib/freadptr.c: New file.
51902         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51903
51904 2008-02-26  Karl Berry  <karl@freefriends.org>
51905
51906         Sync from Libtool:
51907         * libltdl/argz.c (argz_add, argz_count): New functions.
51908         * libltdl/argz.in.h: Declare them.
51909         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51910
51911 2008-02-22  Bruno Haible  <bruno@clisp.org>
51912
51913         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51914         is a pointer type.  Needed for HP-UX 10.
51915         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51916         * doc/posix-functions/gmtime_r.texi: Likewise.
51917         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51918
51919 2008-02-24  Bruno Haible  <bruno@clisp.org>
51920
51921         * modules/environ-tests: New file.
51922         * tests/test-environ.c: New file.
51923
51924         New module 'environ'.
51925         * modules/environ: New file.
51926         * lib/unistd.in.h (environ): New declaration.
51927         * m4/environ.m4: New file.
51928         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51929         after use.
51930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51931         HAVE_DECL_ENVIRON.
51932         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51933         HAVE_DECL_ENVIRON.
51934         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51935         wrong claim that 'environ' is missing on some systems.
51936         * modules/execute (Depends-on): Add environ.
51937         * lib/execute.c (environ): Remove fallback declaration.
51938         * modules/pipe (Depends-on): Add environ.
51939         * lib/pipe.c (environ): Remove fallback declaration.
51940         * modules/setenv (Depends-on): Add environ.
51941         * lib/setenv.c (environ): Remove fallback declaration.
51942         * modules/unsetenv (Depends-on): Add environ.
51943         * lib/unsetenv.c (environ): Remove fallback declaration.
51944         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51945         m4/environ.m4.
51946         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51947         (gl_PREREQ_UNSETENV): Likewise.
51948
51949 2008-02-24  Bruno Haible  <bruno@clisp.org>
51950
51951         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51952
51953 2008-02-20  Bob Proulx  <bob@proulx.com>
51954
51955         Enable use of older two part flavor 'git describe'.
51956         * build-aux/git-version-gen: If using the older two part flavor of
51957         git version then recreate the third part now present in the
51958         newer three part flavor of git describe.
51959
51960 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51961
51962         * lib/fts.c (fts_build): Typo correction to comment.
51963
51964 2008-02-17  Bruno Haible  <bruno@clisp.org>
51965
51966         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51967         generating no-op conflicts.
51968
51969 2008-02-17  Bruno Haible  <bruno@clisp.org>
51970
51971         Speed up by 10%.
51972         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51973         result_entries, rather than an index-based loop.
51974
51975 2008-02-17  Bruno Haible  <bruno@clisp.org>
51976
51977         Speed up by 25%.
51978         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51979         'hashcode_cached'.
51980         (entry_create): New function.
51981         (entry_hashcode): Use the cached hashcode if possible.
51982         (read_changelog_file, try_split_merged_entry): Use entry_create.
51983
51984 2008-02-17  Bruno Haible  <bruno@clisp.org>
51985
51986         Speed up from O(n^2) to O(n) for long ChangeLog files.
51987         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51988         (read_changelog_file): Change implementation of entries_reversed list
51989         to rbtreehash.
51990         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51991
51992 2008-02-17  Bruno Haible  <bruno@clisp.org>
51993
51994         New option --split-merged-entry.
51995         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51996         (find_paragraph_end, try_split_merged_entry): New functions.
51997         (long_options): Add option --split-merged-entry.
51998         (usage): Document option --split-merged-entry.
51999         (main): Implement option --split-merged-entry.
52000         Reported by Eric Blake.
52001
52002 2008-02-17  Bruno Haible  <bruno@clisp.org>
52003
52004         * lib/git-merge-changelog.c: Include c-strstr.h.
52005         (main): Support the "git pull --rebase" situation.
52006         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52007         Reported by Eric Blake.
52008
52009 2008-02-16  Eric Blake  <ebb9@byu.net>
52010
52011         Avoid doubling \ in common case of "c-maybe" quoting style.
52012         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52013         eliding outer quotes.
52014         * lib/quotearg.h: Document this.
52015         * tests/test-quotearg.c (result_strings, inputs, results_g)
52016         (flag_results, locale_results): Test it by adding a new string to
52017         each test group.
52018         (compare_strings): Test new string.
52019
52020 2008-02-13  Eric Blake  <ebb9@byu.net>
52021
52022         Avoid trigraph quoting in default output.
52023         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52024         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52025         unless explicitly requested.
52026         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52027
52028 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52029
52030         Don't rely on signed integer overflowing to negative value.
52031         * lib/getugroups.c (getugroups): Include <limits.h>.
52032         Instead, compare against INT_MAX, and increment only if the test passes.
52033
52034 2008-02-13  Jim Meyering  <meyering@redhat.com>
52035         and Eric Blake  <ebb9@byu.net>
52036
52037         Avoid shadowing warning and compile errors on Linux.
52038         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52039         forwarding macros on Linux.
52040         (dcgettext): Define a stub, for Linux.
52041         (results_g, main): Avoid warnings.
52042
52043 2008-02-12  Eric Blake  <ebb9@byu.net>
52044
52045         Silence warning in last patch.
52046         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52047
52048         Quotearg part 4: add tests, fix c-maybe colon quoting.
52049         * lib/quotearg.h: Improve documentation.
52050         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52051         escapes when adding outer quotes.  When quoting trigraphs, use
52052         valid C notation.  When quoting NUL, omit extra characters if next
52053         character is not digit.  Alter prototype.
52054         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52055         callers.
52056         * modules/quotearg-tests: New module.
52057         * tests/test-quotearg.c: New test.
52058
52059 2008-02-07  Eric Blake  <ebb9@byu.net>
52060
52061         Quotearg part 3: add flag to control outer quote elision.
52062         * lib/quotearg.h (c_maybe_quoting_style): New style.
52063         (enum quoting_flags): Better documentation of flags.
52064         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52065         c-maybe style.
52066         (quotearg_buffer_restyled): Handle new flag to elide outer
52067         quotes.
52068
52069         Quotearg part 2: add flag that can control NUL elision.
52070         * lib/quotearg.h (set_quoting_flags): New prototype.
52071         * lib/quotearg.c (struct quoting_options): Add flag field.
52072         (set_quoting_flags): New function.
52073         (quotearg_buffer_restyled): Add flags parameter.
52074         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52075         (quotearg_n_options): Set the flag, since length cannot be
52076         returned.
52077         (quoting_options_from_style): Default flags correctly.
52078
52079         Quotearg part 1: more wrappers, restore quotearg_char state.
52080         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52081         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52082         (quotearg_colon_mem): New wrappers.
52083         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52084         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52085         functions.
52086         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52087         (quotearg_colon_mem): New functions.
52088
52089 2008-02-11  Bruno Haible  <bruno@clisp.org>
52090
52091         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52092         library in the current directory: it does not work with parallel make.
52093         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52094
52095 2008-02-11  Bruno Haible  <bruno@clisp.org>
52096
52097         * .gitattributes: New file.
52098
52099 2008-02-11  Jim Meyering  <meyering@redhat.com>
52100
52101         useless-if-before-free: Fix reversed exit values.
52102         * build-aux/useless-if-before-free: Use correct values
52103         for EXIT_MATCH and EXIT_NO_MATCH.
52104
52105         * build-aux/useless-if-before-free: Close stdout carefully.
52106
52107 2008-02-10  Bruno Haible  <bruno@clisp.org>
52108
52109         New module 'git-merge-changelog'.
52110         * modules/git-merge-changelog: New file.
52111         * lib/git-merge-changelog.c: New file.
52112
52113 2008-02-10  Jim Meyering  <meyering@redhat.com>
52114
52115         useless-if-before-free: New option: --list (-l).
52116
52117         useless-if-before-free: Don't exit immediately upon open failure.
52118         * build-aux/useless-if-before-free: Exit 2 for errors.
52119         Upon failure to open a file, don't exit immediately.
52120         Rather, just warn and continue with any remaining files.
52121
52122 2008-02-10  Bruno Haible  <bruno@clisp.org>
52123
52124         New abstract list operation 'node_set_value'.
52125         * lib/gl_list.h (gl_list_node_set_value): New function.
52126         (struct gl_list_implementation): New field node_set_value.
52127         * lib/gl_list.c (gl_list_node_set_value): New function.
52128         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52129         (gl_array_list_implementation): Update.
52130         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52131         (gl_carray_list_implementation): Update.
52132         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52133         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52134         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52135         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52136         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52137         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52138         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52139         Update.
52140         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52141         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52142         (gl_sublist_list_implementation): Update.
52143
52144 2008-02-10  Bruno Haible  <bruno@clisp.org>
52145
52146         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52147         Needed when ELEMENT is #defined to 'some_type *'.
52148
52149 2008-02-10  Jim Meyering  <meyering@redhat.com>
52150
52151         New script and module: useless-if-before-free
52152         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52153         * build-aux/useless-if-before-free: New file.
52154         * modules/useless-if-before-free: New file.
52155
52156         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52157
52158         xstrtol_error: Fix typo.
52159         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52160         s/exit_failure/exit_status/.
52161
52162 2008-02-09  Jim Meyering  <meyering@redhat.com>
52163
52164         New script and module: gitlog-to-changelog
52165         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52166         * modules/gitlog-to-changelog: New file.
52167         * build-aux/gitlog-to-changelog: New file.
52168
52169 2008-02-08  Jim Meyering  <meyering@redhat.com>
52170
52171         Avoid two "parameter unused" warnings.
52172         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52173         Mark "st" as used.
52174
52175         Use "git COMMAND", not "git-COMMAND".
52176         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52177         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52178         * build-aux/git-version-gen: Use "git status", not "git-status".
52179
52180 2008-02-07  Bruno Haible  <bruno@clisp.org>
52181
52182         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52183         Avoids a crash on Windows Vista.
52184         Reported by Adam Strzelecki <ono@java.pl> via
52185         Simon Josefsson <simon@josefsson.org>.
52186
52187 2008-02-06  Bruno Haible  <bruno@clisp.org>
52188
52189         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52190         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52191         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52192         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52193         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52194         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52195         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52196         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52197         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52198         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52199         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52200         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52201         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52202         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52203         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52204         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52205         left-adjust flag.
52206         * tests/test-snprintf-posix.h (test_function): Likewise.
52207         * tests/test-sprintf-posix.h (test_function): Likewise.
52208         * tests/test-vasprintf-posix.c (test_function): Likewise.
52209         * doc/posix-functions/fprintf.texi: Update.
52210         * doc/posix-functions/printf.texi: Update.
52211         * doc/posix-functions/snprintf.texi: Update.
52212         * doc/posix-functions/sprintf.texi: Update.
52213         * doc/posix-functions/vfprintf.texi: Update.
52214         * doc/posix-functions/vprintf.texi: Update.
52215         * doc/posix-functions/vsnprintf.texi: Update.
52216         * doc/posix-functions/vsprintf.texi: Update.
52217         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52218
52219 2008-02-06  Bruno Haible  <bruno@clisp.org>
52220
52221         Fix bug introduced on 2008-01-26.
52222         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52223
52224 2008-02-06  Bruno Haible  <bruno@clisp.org>
52225
52226         Fix bug introduced on 2007-06-10.
52227         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52228         !NEED_PRINTF_FLAG_ZERO.
52229
52230 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52231
52232         getloadavg: use libperfstat on AIX5
52233         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52234
52235 2008-02-03  Bruno Haible  <bruno@clisp.org>
52236
52237         * lib/diffseq.h: Add comments about required #includes.
52238         Reported by Michael Biggs <gnulib@doubleplum.net>.
52239
52240 2008-02-01  Bruno Haible  <bruno@clisp.org>
52241
52242         * users.txt: Add gnuit.
52243
52244 2008-01-31  Bruno Haible  <bruno@clisp.org>
52245
52246         * lib/md4.c (set_uint32): Mark as inline.
52247         * lib/md5.c (set_uint32): Likewise.
52248         * lib/sha1.c (set_uint32): Likewise.
52249         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52250         * m4/md5.m4 (gl_MD5): Likewise.
52251         * m4/sha1.m4 (gl_SHA1): Likewise.
52252
52253 2008-01-31  Jim Meyering  <meyering@redhat.com>
52254
52255         Use "sizeof VAR", rather than a literal "4".
52256         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52257         * lib/md4.c (md4_read_ctx): Likewise.
52258         * lib/sha1.c (sha1_read_ctx): Likewise.
52259
52260 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52261
52262         * tests/test-sha1.c: New file, based on test-md5.c.
52263
52264         * modules/crypto/sha1-tests: New file.
52265
52266 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52267
52268         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52269
52270 2008-01-31  Jim Meyering  <meyering@redhat.com>
52271
52272         Prefer "sizeof v" over the equivalent "4".
52273         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52274         * lib/md5.c (set_uint32): Likewise.
52275         * lib/sha1.c (set_uint32): Likewise.
52276
52277 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52278
52279         * lib/sha1.c (set_uint32): Mark function as static.
52280
52281 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52282
52283         md2: clarify comments to say that alignment is not required.
52284         * lib/md2.h: Remove warning about alignment in comment.
52285         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52286         never been required.
52287
52288 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52289
52290         md4: adapt alignment constraint fix from sha1.
52291         * lib/md4.c (set_uint32): New function, from sha1.c
52292         (md4_read_ctx): Use it.
52293         (md4_finish_ctx): Doc fix.
52294         * lib/md4.h: Doc fix.
52295
52296 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52297
52298         md5: adapt alignment constraint fix from sha1.
52299         * lib/md5.c (set_uint32): New function, from sha1.c
52300         (md5_read_ctx): Use it.
52301         (md5_finish_ctx): Doc fix.
52302         * lib/md5.h: Doc fix.
52303
52304 2008-01-30  Peter Palfrader  <weasel@debian.org>
52305
52306         sha1: remove the result buffer alignment constraint
52307         * lib/sha1.c (set_uint32): New function.
52308         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52309         constraint.
52310         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52311         * lib/sha1.h: Likewise.
52312
52313 2008-01-30  Andreas Schwab  <schwab@suse.de>
52314             Bruno Haible  <bruno@clisp.org>
52315
52316         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52317         correct definition of LDBL_MIN_EXP.
52318
52319 2008-01-30  Karl Berry  <karl@gnu.org>
52320
52321         * config/srclist-update: try to preserve x bit on updates.
52322         * config/srclistvars.sh: update for karl.
52323
52324 2008-01-29  Jim Meyering  <meyering@redhat.com>
52325
52326         vasnprintf.c: Avoid warning about unused label
52327         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52328         "overflow" label definition and associated code with the
52329         same cpp condition that guards the sole use of that label.
52330
52331 2008-01-26  Bruno Haible  <bruno@clisp.org>
52332
52333         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52334         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52335         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52336         * lib/isnanl-nolibm.h (isnanl): Likewise.
52337         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52338
52339 2008-01-26  Bruno Haible  <bruno@clisp.org>
52340
52341         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52342         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52343
52344 2008-01-26  Bruno Haible  <bruno@clisp.org>
52345
52346         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52347         GCC >= 4.0 built-in.
52348         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52349
52350 2008-01-26  Bruno Haible  <bruno@clisp.org>
52351
52352         Rename isnan, applicable to 'double' only, to isnand.
52353         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52354         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52355         (configure.ac): Update.
52356         (Include): Replace "isnan.h" with "isnand.h".
52357         * m4/isnand.m4: Renamed from m4/isnan.m4.
52358         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52359         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52360         instead of isnan.c.
52361         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52362         instead of HAVE_ISNAN_IN_LIBC.
52363         (isnand): Renamed from isnan.
52364         * lib/isnand.c: New file.
52365         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52366         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52367         (Makefile.am): Update.
52368         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52369         Include isnand.h instead of isnan.h.
52370         (main): Test isnand instead of isnan.
52371         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52372         isnan-nolibm.
52373         * modules/frexp (Depends-on): Likewise.
52374         * modules/frexp-tests (Depends-on): Likewise.
52375         * modules/frexp-nolibm (Depends-on): Likewise.
52376         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52377         * modules/isfinite (Depends-on): Likewise.
52378         * modules/round-tests (Depends-on): Likewise.
52379         * modules/signbit (Depends-on): Likewise.
52380         * modules/signbit-tests (Depends-on): Likewise.
52381         * modules/snprintf-posix (Depends-on): Likewise.
52382         * modules/sprintf-posix (Depends-on): Likewise.
52383         * modules/trunc-tests (Depends-on): Likewise.
52384         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52385         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52386         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52387         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52388         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52389         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52390         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52391         * modules/vasnprintf-posix (Depends-on): Likewise.
52392         * modules/vasprintf-posix (Depends-on): Likewise.
52393         * modules/vfprintf-posix (Depends-on): Likewise.
52394         * modules/vsnprintf-posix (Depends-on): Likewise.
52395         * modules/vsprintf-posix (Depends-on): Likewise.
52396         * lib/frexp.c: Include isnand.h instead of isnan.h.
52397         (ISNAN): Set to isnand instead of isnan.
52398         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52399         (gl_isfinited): Use isnand instead of isnan.
52400         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52401         (gl_signbitd): Use isnand instead of isnan.
52402         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52403         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52404         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52405         (main): Use isnand instead of isnan.
52406         * tests/test-round1.c: Include isnand.h.
52407         (main): Use isnand instead of isnan.
52408         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52409         (ISNAN): Set to isnand instead of isnan.
52410         * tests/test-trunc1.c: Include isnand.h.
52411         (main): Use isnand instead of isnan.
52412         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52413         (equal): Use isnand instead of isnan.
52414         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52415         isnand-nolibm.
52416         * NEWS: Mention the change.
52417
52418 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52419             Bruno Haible  <bruno@clisp.org>
52420
52421         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52422         the GCC builtins for signbits are present and set
52423         REPLACE_SIGNBIT_USING_GCC if so.
52424         * lib/math.in.h (signbit): Define using GCC builtins if
52425         REPLACE_SIGNBIT_USING_GCC is set.
52426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52427         REPLACE_SIGNBIT_USING_GCC.
52428         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52429
52430 2008-01-25  Jim Meyering  <meyering@redhat.com>
52431
52432         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52433         * lib/poll.c: Include <config.h>, not "config.h".
52434         * tests/test-getaddrinfo.c: Likewise.
52435
52436 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52437
52438         * modules/sockets-tests: New file.
52439
52440 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52441
52442         * modules/sockets: New module, can be used to call WSA_Startup and
52443         WSA_Cleanup when needed.
52444
52445         * lib/sockets.h, lib/sockets.c: New files.
52446
52447         * m4/sockets.m4: New file.
52448
52449         * tests/test-sockets.c: New file.
52450
52451 2008-01-19  Bruno Haible  <bruno@clisp.org>
52452
52453         * doc/posix-headers: Renamed from doc/headers.
52454         * doc/posix-functions: Renamed from doc/functions.
52455         * doc/gnulib.texi: Update.
52456
52457 2008-01-19  Bruno Haible  <bruno@clisp.org>
52458
52459         * doc/glibc-functions/strcasestr.texi: Include contents of
52460         doc/functions/strcasestr.texi, fixing the list of platforms.
52461         * doc/functions/strcasestr.texi: Remove file.
52462
52463 2008-01-19  Bruno Haible  <bruno@clisp.org>
52464
52465         * doc/glibc-functions/memmem.texi: Include contents of
52466         doc/functions/memmem.texi.
52467         * doc/functions/memmem.texi: Remove file.
52468
52469 2008-01-18  Bruno Haible  <bruno@clisp.org>
52470
52471         * doc/glibc-functions/*.texi: New files.
52472         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52473         to use the new files.
52474
52475 2008-01-17  Bruno Haible  <bruno@clisp.org>
52476
52477         * tests/test-gethostname.c (main): Fix printf statement.
52478
52479 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52480
52481         * modules/gethostname-tests: New file.
52482
52483         * tests/test-gethostname.c: New file.
52484
52485 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52486
52487         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52488         used by the UNAME case.  Reported by Bruno Haible
52489         <bruno@clisp.org>.
52490
52491 2008-01-17  Eric Blake  <ebb9@byu.net>
52492
52493         Convert c-strcasestr to be more efficient.
52494         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52495         (Depends-on): Add c-strcase, remove malloca, strnlen.
52496         * tests/test-c-strcasestr.c (main): Enhance test.
52497         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52498
52499 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52500
52501         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52502         Use it in creating po/Makevars.
52503
52504 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52505
52506         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52507         Applications that requires it should initialize libgcrypt
52508         manually.
52509
52510 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52511
52512         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52513
52514 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52515
52516         Fix problem with getdate on mingw32 reported by Simon Josefsson
52517         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52518         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52519         tzname", when deciding whether to declare tzname.
52520         * lib/strftime.c (tzname): Likewise.
52521
52522 2008-01-15  Bruno Haible  <bruno@clisp.org>
52523
52524         Work around a MacOS X 10.5 bug in frexpl().
52525         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52526         * doc/functions/frexpl.texi: Document the bug.
52527         Reported by Elias Pipping <pipping@gentoo.org>.
52528
52529 2008-01-14  Eric Blake  <ebb9@byu.net>
52530
52531         Touch up previous patch.
52532         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52533         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52534
52535         Convert strcasestr module to use Two-Way algorithm.
52536         * modules/strcasestr-simple: New module, based on the old
52537         strcasestr, but with Two-Way rather than KMP.
52538         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52539         * lib/string.in.h (rpl_strcasestr): Declare.
52540         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52541         performance.
52542         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52543         * modules/string (Makefile.am): Support strcasestr.
52544         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52545         * modules/strcasestr-tests (Depends-on): Check for alarm.
52546         * tests/test-strcasestr.c: Augment test.
52547         * lib/str-two-way.h: Clean up stray macro.
52548         * NEWS: Document new module.
52549         * MODULES.html.sh (string handling): Likewise.
52550         * doc/functions/strcasestr.texi: New file.
52551         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52552         here, since it is not a POSIX function.
52553
52554 2008-01-14  Colin Watson  <cjwatson@debian.org>
52555             Bruno Haible  <bruno@clisp.org>
52556
52557         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52558         works fine; if not, set REPLACE_STRSIGNAL.
52559         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52560         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52561         REPLACE_STRSIGNAL.
52562         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52563         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52564         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52565
52566 2008-01-14  Bruno Haible  <bruno@clisp.org>
52567
52568         * modules/strsignal (Include): Change to <string.h>.
52569
52570 2008-01-14  Colin Watson  <cjwatson@debian.org>
52571
52572         * modules/argp (Notice): Add a notice recommending to change
52573         XGETTEXT_OPTIONS.
52574         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52575
52576 2008-01-13  Colin Watson  <cjwatson@debian.org>
52577
52578         * modules/strsignal-tests: New file.
52579         * tests/test-strsignal.c: New file.
52580
52581         * lib/strsignal.c: New file, from glibc with modifications.
52582         * lib/siglist.h: New file, from glibc with modifications.
52583         * lib/string.in.h (strsignal): New declaration.
52584         * m4/strsignal.m4: New file.
52585         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52586         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52587         * modules/strsignal: New file.
52588         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52589         HAVE_DECL_STRSIGNAL.
52590
52591 2008-01-13  Bruno Haible  <bruno@clisp.org>
52592
52593         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52594         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52595         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52596         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52597
52598 2008-01-13  Bruno Haible  <bruno@clisp.org>
52599
52600         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52601         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52602         * lib/argp.h (__attribute__): Likewise.
52603         * lib/c-stack.c (__attribute__): Likewise.
52604         * lib/error.h (__attribute__): Likewise.
52605         * lib/fts.c (__attribute__): Likewise.
52606         * lib/openat.h (__attribute__): Likewise.
52607         * lib/stdio.in.h (__attribute__): Likewise.
52608         * lib/string.in.h (__attribute__): Likewise.
52609         * lib/utimens.c (__attribute__): Likewise.
52610         * lib/vasnprintf.h (__attribute__): Likewise.
52611         * lib/xalloc.h (__attribute__): Likewise.
52612         * lib/xprintf.h (__attribute__): Likewise.
52613         * lib/xstrtol.h (__attribute__): Likewise.
52614         * lib/xvasprintf.h (__attribute__): Likewise.
52615
52616 2008-01-12  Bruno Haible  <bruno@clisp.org>
52617
52618         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52619         * doc/glibc-headers/a.out.texi: New file.
52620         * doc/glibc-headers/aliases.texi: New file.
52621         * doc/glibc-headers/alloca.texi: New file.
52622         * doc/glibc-headers/ar.texi: New file.
52623         * doc/glibc-headers/argp.texi: New file.
52624         * doc/glibc-headers/argz.texi: New file.
52625         * doc/glibc-headers/byteswap.texi: New file.
52626         * doc/glibc-headers/crypt.texi: New file.
52627         * doc/glibc-headers/endian.texi: New file.
52628         * doc/glibc-headers/envz.texi: New file.
52629         * doc/glibc-headers/err.texi: New file.
52630         * doc/glibc-headers/error.texi: New file.
52631         * doc/glibc-headers/execinfo.texi: New file.
52632         * doc/glibc-headers/fpu_control.texi: New file.
52633         * doc/glibc-headers/fstab.texi: New file.
52634         * doc/glibc-headers/fts.texi: New file.
52635         * doc/glibc-headers/getopt.texi: New file.
52636         * doc/glibc-headers/ieee754.texi: New file.
52637         * doc/glibc-headers/ifaddrs.texi: New file.
52638         * doc/glibc-headers/libintl.texi: New file.
52639         * doc/glibc-headers/mcheck.texi: New file.
52640         * doc/glibc-headers/mntent.texi: New file.
52641         * doc/glibc-headers/obstack.texi: New file.
52642         * doc/glibc-headers/paths.texi: New file.
52643         * doc/glibc-headers/printf.texi: New file.
52644         * doc/glibc-headers/pty.texi: New file.
52645         * doc/glibc-headers/resolv.texi: New file.
52646         * doc/glibc-headers/shadow.texi: New file.
52647         * doc/glibc-headers/sysexits.texi: New file.
52648         * doc/glibc-headers/ttyent.texi: New file.
52649
52650 2008-01-12  Jim Meyering  <meyering@redhat.com>
52651
52652         announce-gen: emit Gnulib's git-based version string.
52653         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52654         New option --gnulib-version=V, where V is expected to be
52655         the output of running git describe in the gnulib directory.
52656         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52657         not useful, and plan to stop publishing an xdelta file with each
52658         coreutils release.
52659
52660         * build-aux/announce-gen: Also check for lzma-compressed files.
52661
52662 2008-01-11  Bruno Haible  <bruno@clisp.org>
52663
52664         * tests/test-memmem.c (main): Increase maximum allowed time.
52665         * tests/test-strstr.c (main): Likewise.
52666
52667 2008-01-11  Bruno Haible  <bruno@clisp.org>
52668
52669         * doc/functions/memmem.texi: Add more precisions about platforms.
52670         * doc/functions/strstr.texi: Likewise.
52671
52672 2008-01-10  Eric Blake  <ebb9@byu.net>
52673
52674         * m4/strstr.m4: Delete cruft from copy-n-paste.
52675         Reported by Bruno Haible.
52676
52677 2008-01-10  Bruno Haible  <bruno@clisp.org>
52678
52679         Make c-strstr rely on strstr.
52680         * lib/c-strstr.c: Don't include str-kmp.h.
52681         (c_strstr): Define in terms of strstr.
52682         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52683         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52684
52685 2008-01-10  Bruno Haible  <bruno@clisp.org>
52686
52687         * doc/gnulib.texi (String Functions in C Locale): New section.
52688         * doc/c-ctype.texi: New file.
52689         * doc/c-strcase.texi: New file.
52690         * doc/c-strcaseeq.texi: New file.
52691         * doc/c-strcasestr.texi: New file.
52692         * doc/c-strstr.texi: New file.
52693         * doc/c-strtod.texi: New file.
52694         * doc/c-strtold.texi: New file.
52695
52696 2008-01-10  Eric Blake  <ebb9@byu.net>
52697
52698         * lib/relocatable.h: Fix a comment.
52699
52700 2008-01-10  Eric Blake  <ebb9@byu.net>
52701
52702         Share two-way algorithm.
52703         * lib/str-two-way.h: New file, merged from...
52704         * lib/memmem.c: ...here...
52705         * lib/strstr.c: ...and here.
52706         * modules/memmem (Files): Use it.
52707         * modules/strstr (Files): Likewise.
52708
52709         Avoid quadratic strstr implementations.
52710         * lib/strstr.c: New file.
52711         * m4/strstr.m4: Likewise.
52712         * modules/strstr: Likewise.
52713         * modules/strstr-tests: Likewise.
52714         * tests/test-strstr.c: Likewise.
52715         * lib/string.in.h (rpl_strstr): Declare.
52716         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52717         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52718         * modules/string (Makefile.am): Likewise.
52719         * MODULES.html.sh (string handling): Mention new module.
52720         * doc/functions/strstr.texi (strstr): Document the bug.
52721
52722 2008-01-10  Bruno Haible  <bruno@clisp.org>
52723
52724         * lib/relocatable.h (relocate): State whether result is freshly
52725         allocated or not.
52726         * lib/relocatable.c (relocate): Return a freshly allocated string
52727         instead of a pointer to a privately held string.
52728         Reported by Sylvain Beucler <beuc@gnu.org>.
52729
52730 2008-01-10  Colin Watson  <cjwatson@debian.org>
52731
52732         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52733         s/S_ISNLK/S_ISLNK/.
52734
52735 2008-01-09  Bruno Haible  <bruno@clisp.org>
52736
52737         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52738         and other files.
52739         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52740         if it's only a guess.
52741         * modules/memmem: Simplify by depending on memmem-simple.
52742
52743 2008-01-09  Bruno Haible  <bruno@clisp.org>
52744
52745         Work around OpenBSD 4.0 tdelete() bug.
52746         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52747         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52748         macros and don't redefine the enum values.
52749         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52750         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52751         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52752
52753 2008-01-09  Bruno Haible  <bruno@clisp.org>
52754
52755         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52756         (main): Don't perform the tests if setlocale did not install a UTF-8
52757         locale. Needed on OpenBSD 4.0.
52758         * modules/wcwidth-tests (Depends-on): Add localcharset.
52759
52760 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52761
52762         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52763         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52764         * NEWS: announce this.
52765         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52766
52767 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52768         and Eric Blake  <ebb9@byu.net>
52769
52770         Add memmem-simple module.
52771         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52772         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52773         * modules/memmem-simple: New file.
52774         * modules/memmem (Description): Tweak.
52775         * MODULES.html.sh (string handling): Mention new module.
52776         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52777         addressed by memmem-simple.
52778         * NEWS: Document the difference.
52779
52780 2008-01-09  Eric Blake  <ebb9@byu.net>
52781
52782         Give gcc some memmem optimization hints.
52783         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52784         (strcasestr): Declare as pure.
52785         * modules/memmem (Maintainer): Claim my implementation.
52786
52787 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52788
52789         Support AIX 6.1 and higher.
52790         * build-aux/config.libpath: Likewise.
52791         * build-aux/config.rpath: Likewise.
52792
52793 2008-01-08  Jim Meyering  <meyering@redhat.com>
52794             Bruno Haible  <bruno@clisp.org>
52795
52796         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52797         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52798         Reported by Peter Fales in
52799         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52800
52801 2008-01-08  Bruno Haible  <bruno@clisp.org>
52802
52803         * modules/unictype/category-of (Depends-on): Add
52804         unictype/category-none.
52805         * modules/unictype/category-and-tests (Depends-on): Add
52806         unictype/category-{L,N,Lu,Nd}.
52807         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52808         * modules/unictype/category-or-tests (Depends-on): Add
52809         unictype/category-{L,N}.
52810         * modules/unictype/category-name-tests (Depends-on): Add
52811         unictype/category-{Z,Nl}.
52812         Reported by Simon Josefsson.
52813
52814 2008-01-08  Bruno Haible  <bruno@clisp.org>
52815
52816         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52817         convention better.
52818         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52819         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52820         Reported by Peter Miller <millerp@canb.auug.org.au>.
52821
52822 2008-01-08  Eric Blake  <ebb9@byu.net>
52823
52824         Rewrite memmem to guarantee linear complexity without malloc.
52825         * lib/memmem.c (memmem): Use Two-Way rather than
52826         Knuth-Morris-Pratt, to allow O(1) space usage.
52827         (critical_factorization, two_way_short_needle)
52828         (two_way_long_needle): New functions.
52829         (knuth_morris_pratt): Delete.
52830         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52831         Add stdint.
52832         * tests/test-memmem.c (main): Add tests for periodic needle and
52833         sublinear performance.
52834         * doc/functions/memmem.texi (memmem): Document other deficiencies
52835         in cygwin and older glibc.
52836
52837 2008-01-08  Bruno Haible  <bruno@clisp.org>
52838
52839         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52840         augmentation.
52841
52842 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52843
52844         Add a configure time option: --disable-acl.
52845         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52846         AC_ARG_ENABLE(acl).
52847
52848 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52849
52850         * tests/test-localename.c: Don't include obsolete "setenv.h".
52851
52852         * modules/localename-tests (Depends-on): Need unsetenv.
52853
52854 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52855
52856         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52857
52858 2008-01-06  Colin Watson  <cjwatson@debian.org>
52859
52860         * users.txt: Add man-db.
52861
52862 2008-01-07  Bruno Haible  <bruno@clisp.org>
52863
52864         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52865         previous section name.
52866
52867 2008-01-07  Bruno Haible  <bruno@clisp.org>
52868
52869         * lib/progname.c (set_program_name): Don't strip off a leading
52870         "lt-" prefix outside a .libs directory.
52871         Suggested by Paul Eggert.
52872
52873 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52874             Bruno Haible  <bruno@clisp.org>
52875
52876         Improve memory cleanup in 'relocatable' module.
52877         * lib/relocatable.h (compute_curr_prefix): Change return type to
52878         'char *'.
52879         * lib/relocatable.c (compute_curr_prefix): Change return type to
52880         'char *'. Free curr_installdir after use.
52881         (relocate): Free curr_prefix_better after use.
52882         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52883
52884 2008-01-01  Bruno Haible  <bruno@clisp.org>
52885
52886         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52887         failure on older glibc systems.
52888         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52889
52890 2008-01-05  Eric Blake  <ebb9@byu.net>
52891
52892         Avoid quadratic system memmem.
52893         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52894         Reported by Ralf Wildenhues.
52895
52896         Fix memmem test for mingw.
52897         * modules/memmem-tests (configure.ac): Check for alarm.
52898         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52899         it.
52900         * doc/functions/memmem.texi: New file.
52901         * doc/gnulib.texi (Function Substitutes): Add memmem.
52902         Reported by Bruno Haible.
52903
52904 2008-01-04  Bruno Haible  <bruno@clisp.org>
52905
52906         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52907         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52908         gl_HEADER_STRING_H_DEFAULTS.
52909
52910 2008-01-04  Eric Blake  <ebb9@byu.net>
52911
52912         Shorten duration of memmem test.
52913         * tests/test-memmem.c (main): Use alarm to declare failure if test
52914         is taking too long.
52915         Reported by Ralf Wildenhues.
52916
52917 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52918
52919         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52920         string, needed by strerror.
52921
52922 2008-01-03  Colin Watson  <cjwatson@debian.org>
52923             Bruno Haible  <bruno@clisp.org>
52924
52925         * doc/gnulib-tool.texi (Localization): New section.
52926
52927 2008-01-02  Bruno Haible  <bruno@clisp.org>
52928
52929         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52930         variables to 'unsigned char *' type.
52931         Reported by Paul Eggert.
52932
52933 2008-01-02  Jim Meyering  <jim@meyering.net>
52934
52935         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52936
52937 2007-12-31  Jim Meyering  <jim@meyering.net>
52938
52939         Avoid use of private FTS type name.
52940         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52941
52942 2007-12-30  Karl Berry  <karl@gnu.org>
52943
52944         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52945         work around defect in Texinfo and/or the standalone Info browser.
52946
52947 2007-12-30  Bruno Haible  <bruno@clisp.org>
52948
52949         Unify 5 copies of the KMP code.
52950         * lib/str-kmp.h: New file.
52951         * lib/c-strcasestr.c: Include str-kmp.h.
52952         (knuth_morris_pratt): Remove function.
52953         (c_strcasestr): Update.
52954         * lib/c-strstr.c: Include str-kmp.h.
52955         (knuth_morris_pratt): Remove function.
52956         (c_strcasestr): Update.
52957         * lib/mbscasestr.c: Include str-kmp.h.
52958         (knuth_morris_pratt_unibyte): Remove function.
52959         * lib/mbsstr.c: Include str-kmp.h.
52960         (knuth_morris_pratt_unibyte): Remove function.
52961         * lib/strcasestr.c: Include str-kmp.h.
52962         (knuth_morris_pratt): Remove function.
52963         (strcasestr): Update.
52964         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52965         * modules/c-strstr (Files): Likewise.
52966         * modules/mbscasestr (Files): Likewise.
52967         * modules/mbsstr (Files): Likewise.
52968         * modules/strcasestr (Files): Likewise.
52969         Suggested by Paul Eggert.
52970
52971 2007-12-30  Bruno Haible  <bruno@clisp.org>
52972
52973         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52974         defined.
52975
52976 2007-12-30  Bruno Haible  <bruno@clisp.org>
52977
52978         * lib/xmalloca.h: Include xalloc.h.
52979         (xnmalloca): New macro.
52980
52981 2007-12-30  Bruno Haible  <bruno@clisp.org>
52982
52983         * lib/malloca.h (nmalloca): New macro.
52984         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52985         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52986         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52987         knuth_morris_pratt_multibyte): Likewise.
52988         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52989         knuth_morris_pratt_multibyte): Likewise.
52990         * lib/memmem.c (knuth_morris_pratt): Likewise.
52991         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52992
52993 2007-12-25  Bruno Haible  <bruno@clisp.org>
52994
52995         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52996         * lib/glob.c: Don't include openat.h.
52997         (link_exists2_p): Add back the code that deals with the
52998         !GLOB_ALTDIRFUNC case.
52999         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53000         let it do the filename concatenation.
53001         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53002         * modules/glob (Depends-on): Remove openat.
53003
53004 2007-12-31  Bruno Haible  <bruno@clisp.org>
53005
53006         * modules/dirfd (License): Change to LGPLv2+.
53007         Approved by Jim Meyering.
53008
53009 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53010
53011         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53012         when multiplying M by sizeof (size_t).
53013
53014 2007-12-10  Martin Lambers  <marlam@marlam.de>
53015
53016         Override getpagesize on mingw.
53017         * lib/getpagesize.c: New file.
53018         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53019         * modules/getpagesize (Files): Add lib/getpagesize.c.
53020         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53022         REPLACE_GETPAGESIZE.
53023         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53024
53025 2007-12-25  Bruno Haible  <bruno@clisp.org>
53026
53027         * modules/localcharset (Notice): New field.
53028         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53029         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53030
53031 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53032             Bruno Haible  <bruno@clisp.org>
53033
53034         Avoid using the syntax symbol() in formatted documentation.
53035         * MODULES.html.sh (func_module): When replacing symbol() with a
53036         hyperlink, remove the parentheses. Show an error if some remain.
53037         Recognize and render the '...' syntax.
53038         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53039         Rework. Add paragraph about GCC's inlining.
53040         * doc/alloca.texi: Likewise.
53041         * doc/error.texi: Remove parentheses from symbol reference.
53042         * doc/gnulib-intro.texi: Likewise.
53043         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53044         * modules/fnmatch (Description): Reword to say "the ... function".
53045         * modules/full-read (Description): Likewise.
53046         * modules/full-write (Description): Likewise.
53047         * modules/safe-read (Description): Likewise.
53048         * modules/safe-write (Description): Likewise.
53049         * modules/strchrnul (Description): Likewise.
53050         * modules/trim (Description): Likewise.
53051         * modules/error (Description): Remove parentheses from symbol
53052         references.
53053         * modules/verror (Description): Likewise.
53054         Reported by Karl Berry.
53055
53056 2007-12-25  Bruno Haible  <bruno@clisp.org>
53057
53058         Fixup after 2007-10-16 commit.
53059         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53060
53061 2007-12-24  Bruno Haible  <bruno@clisp.org>
53062
53063         Make --enable-relocatable work with DESTDIR.
53064         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53065         to compute installdir from destprog.
53066         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53067         also set the RELOC_DESTDIR variable.
53068         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53069
53070 2007-12-24  Bruno Haible  <bruno@clisp.org>
53071
53072         Fix link error due to xalloc_die().
53073         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53074         of xreadlink.
53075         * lib/relocwrapper.c: Update comments.
53076         * build-aux/install-reloc: Remove xreadlink.c from file list.
53077         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53078         xreadlink.c.
53079         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53080
53081 2007-12-24  Bruno Haible  <bruno@clisp.org>
53082
53083         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53084         * lib/setenv.h: Remove file.
53085         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53086         lib/setenv.h.
53087         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53088         (Depends-on): Add stdlib.
53089         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53090         gl_FUNC_UNSETENV.
53091         (Include): Replace setenv.h with <stdlib.h>.
53092         * modules/unsetenv: New file.
53093         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53094         * lib/unsetenv.c: Include <stdlib.h> first.
53095         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53096         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53097         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53098         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53099         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53100         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53101         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53102         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53103         * doc/functions/unsetenv.texi: Update.
53104         * modules/xsetenv (Depends-on): Add unsetenv.
53105         * modules/getdate (Depends-on): Likewise.
53106         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53107         * lib/xsetenv.c: Don't include setenv.h.
53108         * lib/getdate.y: Likewise.
53109         * lib/relocwrapper.c: Likewise.
53110         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53111         (Depends-on): Add stdlib.
53112         * NEWS: Mention the changes.
53113         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53114
53115 2007-12-23  Bruno Haible  <bruno@clisp.org>
53116
53117         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53118         indentation.
53119
53120 2007-12-23  Bruno Haible  <bruno@clisp.org>
53121
53122         * lib/c-strcasestr.c: Add more comments.
53123         * lib/c-strstr.c: Likewise.
53124         * lib/mbscasestr.c: Likewise.
53125         * lib/mbsstr.c: Likewise.
53126         * lib/strcasestr.c: Likewise.
53127         * lib/memmem.c: Likewise.
53128
53129 2007-12-23  Bruno Haible  <bruno@clisp.org>
53130
53131         * tests/test-memmem.c: Include <string.h> first.
53132
53133 2007-12-22  Bruno Haible  <bruno@clisp.org>
53134
53135         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53136         the contents of $testsbase.
53137         Reported by Ralf Wildenhues.
53138
53139 2007-12-22  Bruno Haible  <bruno@clisp.org>
53140
53141         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53142         two variables local_ldadd_before, local_ldadd_last.
53143
53144 2007-12-20  Eric Blake  <ebb9@byu.net>
53145
53146         Work around circular library issue when cross-compiling.
53147         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53148         that progname.o does not need to pull in rpl_memcmp.
53149
53150 2007-12-19  Eric Blake  <ebb9@byu.net>
53151
53152         Fix memmem to avoid O(n^2) worst-case complexity.
53153         * lib/memmem.c (knuth_morris_pratt): New function.
53154         (memmem): Use it if first few naive iterations fail.
53155         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53156         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53157         * modules/memchr (License): Likewise.
53158         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53159         malloca.
53160         * tests/test-memmem.c: Rewrite, borrowing ideas from
53161         test-mbsstr1.c; the old version wouldn't even compile!
53162         * modules/memmem-tests: New file.
53163         * lib/string.in.h (rpl_memmem): Add declaration.
53164         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53165         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53166         REPLACE_MEMMEM.
53167
53168 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53169
53170         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53171         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53172         before any system include files, and undef after them all.  This
53173         should fix a problem on VMS reported by John E. Malmberg in
53174         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53175
53176 2007-12-17  Eric Blake  <ebb9@byu.net>
53177
53178         Revert addition of verify, for BSD/OS.
53179         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53180         can't handle large files, for the sake of obsolete platforms.
53181         * modules/fseeko (Depends-on): Remove verify.
53182         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53183         * doc/functions/ftello.texi (ftello): Likewise.
53184         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53185         Reported by Larry Jones.
53186
53187 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53188
53189         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53190         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53191
53192 2007-12-17  Jim Meyering  <meyering@redhat.com>
53193
53194         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53195         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53196         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53197         * modules/getcwd (Depends-on): Add openat.
53198         Reported by Petr Salinger.
53199
53200 2007-12-17  Bruno Haible  <bruno@clisp.org>
53201
53202         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53203         avoid a segmentation fault of the configure test on x86_64 systems.
53204
53205 2007-12-15  Jim Meyering  <meyering@redhat.com>
53206
53207         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53208
53209 2007-12-13  Eric Blake  <ebb9@byu.net>
53210
53211         Another fseek test.
53212         * tests/test-fseek.c (main): Also test ungetc handling.
53213         * tests/test-fseeko.c (main): Likewise.
53214         * modules/fseeko (Depends-on): Add verify.
53215         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53216         large.
53217         Reported by Larry Jones.
53218
53219         Fix fseeko on mingw.
53220         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53221         seek.
53222
53223         Beef up fseek tests.
53224         * tests/test-fseek.c (main): Also test eof handling.
53225         * tests/test-fseeko.c (main): Likewise.
53226         Reported by Larry Jones.
53227
53228 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53229
53230         Fix fseeko on BSD-based platforms.
53231         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53232         successful seek.
53233
53234 2007-12-12  Eric Blake  <ebb9@byu.net>
53235
53236         Allow circular dependency of separate libtests.a
53237         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53238         when use_libtests.
53239
53240 2007-12-11  Eric Blake  <ebb9@byu.net>
53241
53242         Fix bug with -0.0L in previous patch.
53243         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53244         * tests/test-isnan.c (main): Also test on zeroes.
53245         * tests/test-isnanf.c (main): Likewise.
53246         * tests/test-isnanl.h (main): Likewise.
53247
53248         Detect pseudo-denormals on x86 even when cross-compiling.
53249         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53250         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53251         invalid bit patterns that happen to satisfy ==.
53252
53253         Avoid link failures with separate libtests.a.
53254         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53255         last, to satisfy circular dependencies.
53256
53257 2007-12-11  Eric Blake  <ebb9@byu.net>
53258         and Bruno Haible  <bruno@clisp.org>
53259
53260         Fix OpenBSD 4.0 <float.h> handling of long double.
53261         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53262         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53263         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53264
53265 2007-12-11  Jim Meyering  <meyering@redhat.com>
53266
53267         * users.txt: Add libvirt.
53268
53269         Support versions of autoconf prior to 2.59c.
53270         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53271         if it is not already defined.
53272
53273 2007-12-09  Bruno Haible  <bruno@clisp.org>
53274
53275         Let 'gnulib-tool --import' collect sources needed for the tests in
53276         tests/ rather than in lib/.
53277         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53278         argument. If true, add rules to generate libtests.a, and put libtests.a
53279         into $(LDADD). Consider source files in subdirectories and set
53280         uses_subdirs.
53281         (func_emit_initmacro_start, func_emit_initmacro_end,
53282         func_emit_initmacro_done): Pass all arguments explicitly.
53283         (func_import): Determine two module lists main_modules,
53284         testsrelated_modules. Determine use_libtests. Determine two variables
53285         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53286         instead of just sed_transform_lib_file. Determine two variables
53287         main_files and testsrelated_files. Compute 'files' as the union of
53288         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53289         func_add_or_update. In the generated gnulib-comp.m4, collect the
53290         object files for tests/ in different variables than those for lib/.
53291         Substitute LIBTESTS_LIBDEPS.
53292         (func_create_testdir): Combine the uses_subdirs results from
53293         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53294
53295 2007-12-09  Bruno Haible  <bruno@clisp.org>
53296
53297         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53298         the build-aux directory.
53299
53300 2007-12-09  Bruno Haible  <bruno@clisp.org>
53301
53302         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53303         introduced on 2006-09-09.
53304
53305 2007-12-07  Jim Meyering  <meyering@redhat.com>
53306
53307         Let these macros work also with autoconf-2.59.
53308         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53309         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53310         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53311
53312 2007-12-06  Jim Meyering  <meyering@redhat.com>
53313
53314         Avoid a configure-time syntax error in gl_FUNC_ACL.
53315         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53316         function in each branch, before testing the cache variable.
53317
53318 2007-12-04  Eric Blake  <ebb9@byu.net>
53319
53320         Make scripts executable.
53321         * build-aux/config.guess: Add execute permissions.
53322         * build-aux/config.sub: Likewise.
53323         * build-aux/gendocs.sh: Likewise.
53324
53325         Fix frexp on mingw.
53326         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53327         cross-compiling.
53328         * doc/functions/frexp.texi (frexp): Document the bug.
53329
53330         Make cygwin fseeko check more reliable.
53331         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53332         version numbers, rather than unrelated feature check.
53333         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53334         * doc/functions/ftello.texi (ftello): Likewise.
53335         Reported by Bruno Haible.
53336
53337         * m4/strerror.m4: Bump version number.
53338
53339 2007-12-03  Bruno Haible  <bruno@clisp.org>
53340
53341         * doc/functions/mprotect.texi: Mention the mingw problem.
53342
53343 2007-12-03  Eric Blake  <ebb9@byu.net>
53344
53345         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53346         REPLACE_STRERROR is initialized before this macro.
53347
53348 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53349
53350         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53351         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53352         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53353         put -lsec in even for programs other than 'ls'.  This fixes a problem
53354         for gettext reported by Bruno Haible in
53355         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53356         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53357         Add support for Solaris 10.  This isn't efficient, but should get the
53358         job done for now.
53359
53360 2007-12-03  James Youngman  <jay@gnu.org>
53361
53362         * doc/regexprops-generic.texi: change "an close-group" to "a
53363         close-group" and "illegal" to "not allowed".
53364
53365 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53366
53367         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53368         pr_byname.h. Needed for the rare case when the maintainer has done
53369         "make maintainer-clean" in the source directory and then attempts a
53370         build outside the source directory.
53371         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53372         scripts_byname.h.
53373
53374 2007-12-02  Martin Lambers <marlam@marlam.de>
53375             Bruno Haible  <bruno@clisp.org>
53376
53377         * lib/getpagesize.h: Remove file.
53378         * lib/unistd.in.h: Include declaration of getpagesize here.
53379         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53380         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53381         HAVE_SYS_PARAM_H.
53382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53383         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53384         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53385         (Depends-on): Add unistd.
53386         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53387         (Include): Use <unistd.h> instead of getpagesize.h.
53388         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53389         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53390         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53391         gl_GETPAGESIZE invocation, already handled by module dependency.
53392         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53393
53394 2007-12-02  Bruno Haible  <bruno@clisp.org>
53395
53396         * modules/strings-tests: New file.
53397         * tests/test-strings.c: New file.
53398
53399         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53400         * lib/strings.in.h: New file.
53401         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53402         * m4/strings_h.m4: New file.
53403         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53404         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53405         * modules/strings: New file.
53406         * modules/string (Makefile.am): Update.
53407         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53408         Reported by Karl Berry.
53409
53410 2007-12-01  Eric Blake  <ebb9@byu.net>
53411
53412         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53413         accomodate fix in cygwin 1.5.25.
53414
53415 2007-12-01  Jim Meyering  <meyering@redhat.com>
53416
53417         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53418         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53419         that would inhibit utf8-optimization of a regexp containing line-
53420         or buffer-anchors, e.g., `^', `$'.
53421
53422 2007-11-30  Bruno Haible  <bruno@clisp.org>
53423
53424         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53425         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53426         glthread_recursive_lock_init.
53427         * lib/lock.c (glthread_recursive_lock_init)
53428         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53429         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53430
53431 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53432
53433         New function qset_acl, like set_acl but with syscall semantics.
53434         * lib/acl.h (qset_acl): New decl.
53435         * lib/acl.c (qset_acl): New function.
53436         (set_acl): Use new function.  Use more-consistent diagnostics.
53437
53438 2007-11-28  Jim Meyering  <meyering@redhat.com>
53439
53440         * modules/physmem (License): Change from GPL to LGPLv2+.
53441
53442 2007-11-26  Bruno Haible  <bruno@clisp.org>
53443
53444         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53445         'long double' type has excess precision.
53446         Reported by Jim Meyering in
53447         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53448
53449 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53450
53451         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53452         Sync from <http://gnu.org/licenses>.
53453         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53454         with license text from same location.
53455         * doc/maintain.texi, doc/standards.texi:  Sync from
53456         <http://savannah.gnu.org/projects/gnustandards>.
53457
53458 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
53459         and Jim Meyering  <meyering@redhat.com>
53460
53461         Adjust getdate' grammar to accept a slightly more regular language.
53462         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53463         Before, the former was rejected.
53464         * lib/getdate.y (digits_to_date_time): New function, factored
53465         out of ...
53466         (number): ...here.  Just call digits_to_date_time.
53467         (hybrid): New non-terminal to handle an <unsigned number,
53468         signed relative offset> sequence consistently.
53469
53470 2007-11-18  Jim Meyering  <meyering@redhat.com>
53471
53472         Pull my changes from coreutils:
53473         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53474         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53475         use of $gnulib_tool_option_extras, so that it's separated from the
53476         preceding argument.
53477
53478         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53479         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53480         parent destination directories before copying a file into place.
53481
53482 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53483
53484         bootstrap: work also with 4-argument variant of AC_INIT
53485         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53486
53487 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53488
53489         Port test-getaddrinfo to Solaris.
53490         Problem reported by Bruno Haible in
53491         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53492         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53493         explanation of setting 'hints'.
53494         Don't reject an implementation merely because it returns EAI_SERVICE.
53495         (EAI_SERVICE): Define to 0 if not defined.
53496
53497 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53498
53499         The license of gnu-make and posix-shell is now "GPLed build tool".
53500         * modules/gnu-make (License): Likewise.
53501         * modules/posix-shell (License): Likewise.
53502
53503         New module posix-shell, for determining a POSIX shell
53504         or perhaps something that is close enough to a POSIX shell.
53505         * m4/posix-shell.m4: New file.
53506         * modules/posix-shell: New file.
53507
53508         * MODULES.html.sh: Mention new module.
53509
53510         New module gnu-make, for determining whether we're using GNU Make.
53511         * m4/gnu-make.m4: New file.
53512         * modules/gnu-make: New file.
53513         * MODULES.html.sh: Mention new module.
53514
53515 2007-11-14  Jim Meyering  <meyering@redhat.com>
53516
53517         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53518         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53519         use this macro to create a function _definition_.
53520         Remove useless "#undef ARGMATCH_DIE".
53521
53522 2007-11-14  Bruno Haible  <bruno@clisp.org>
53523
53524         * lib/config.charset: Update for OpenBSD 4.1.
53525         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53526
53527 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53528
53529         Document 64-bit #if problems in stdint.texi.
53530         * doc/headers/stdint.texi (stdint.h): Mention problems with
53531         64-bit-#if, and how to work around them.
53532
53533         Don't insist on 'long long int' support in the preprocessor.  It
53534         breaks too many things.  For example, PRIdMAX still uses a 'long
53535         long int' format with the latest Sun compiler, even though
53536         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53537         preprocessor problem.  This causes the latest coreutils to dump
53538         core on Solaris 10 sparc with the Sun C compiler.
53539         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53540         the troublesome expressions at configure-time, not at #if-time.
53541         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53542         preprocessor.
53543         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53544         compile-time C checks, done at 'configure'-time.
53545         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53546         * modules/inttypes (Makefile): Substitute the new symbols that
53547         gl_INTTYPES_H now generates.
53548         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53549
53550 2007-11-12  Bruno Haible  <bruno@clisp.org>
53551
53552         Tests for Unicode character classification functions.
53553
53554         * modules/unictype/bidicategory-byname-tests: New file.
53555         * modules/unictype/bidicategory-name-tests: New file.
53556         * modules/unictype/bidicategory-of-tests: New file.
53557         * modules/unictype/bidicategory-test-tests: New file.
53558         * modules/unictype/block-list-tests: New file.
53559         * modules/unictype/block-of-tests: New file.
53560         * modules/unictype/block-test-tests: New file.
53561         * modules/unictype/category-C-tests: New file.
53562         * modules/unictype/category-Cc-tests: New file.
53563         * modules/unictype/category-Cf-tests: New file.
53564         * modules/unictype/category-Cn-tests: New file.
53565         * modules/unictype/category-Co-tests: New file.
53566         * modules/unictype/category-Cs-tests: New file.
53567         * modules/unictype/category-L-tests: New file.
53568         * modules/unictype/category-Ll-tests: New file.
53569         * modules/unictype/category-Lm-tests: New file.
53570         * modules/unictype/category-Lo-tests: New file.
53571         * modules/unictype/category-Lt-tests: New file.
53572         * modules/unictype/category-Lu-tests: New file.
53573         * modules/unictype/category-M-tests: New file.
53574         * modules/unictype/category-Mc-tests: New file.
53575         * modules/unictype/category-Me-tests: New file.
53576         * modules/unictype/category-Mn-tests: New file.
53577         * modules/unictype/category-N-tests: New file.
53578         * modules/unictype/category-Nd-tests: New file.
53579         * modules/unictype/category-Nl-tests: New file.
53580         * modules/unictype/category-No-tests: New file.
53581         * modules/unictype/category-P-tests: New file.
53582         * modules/unictype/category-Pc-tests: New file.
53583         * modules/unictype/category-Pd-tests: New file.
53584         * modules/unictype/category-Pe-tests: New file.
53585         * modules/unictype/category-Pf-tests: New file.
53586         * modules/unictype/category-Pi-tests: New file.
53587         * modules/unictype/category-Po-tests: New file.
53588         * modules/unictype/category-Ps-tests: New file.
53589         * modules/unictype/category-S-tests: New file.
53590         * modules/unictype/category-Sc-tests: New file.
53591         * modules/unictype/category-Sk-tests: New file.
53592         * modules/unictype/category-Sm-tests: New file.
53593         * modules/unictype/category-So-tests: New file.
53594         * modules/unictype/category-Z-tests: New file.
53595         * modules/unictype/category-Zl-tests: New file.
53596         * modules/unictype/category-Zp-tests: New file.
53597         * modules/unictype/category-Zs-tests: New file.
53598         * modules/unictype/category-and-not-tests: New file.
53599         * modules/unictype/category-and-tests: New file.
53600         * modules/unictype/category-byname-tests: New file.
53601         * modules/unictype/category-name-tests: New file.
53602         * modules/unictype/category-none-tests: New file.
53603         * modules/unictype/category-of-tests: New file.
53604         * modules/unictype/category-or-tests: New file.
53605         * modules/unictype/category-test-withtable-tests: New file.
53606         * modules/unictype/combining-class-tests: New file.
53607         * modules/unictype/ctype-alnum-tests: New file.
53608         * modules/unictype/ctype-alpha-tests: New file.
53609         * modules/unictype/ctype-blank-tests: New file.
53610         * modules/unictype/ctype-cntrl-tests: New file.
53611         * modules/unictype/ctype-digit-tests: New file.
53612         * modules/unictype/ctype-graph-tests: New file.
53613         * modules/unictype/ctype-lower-tests: New file.
53614         * modules/unictype/ctype-print-tests: New file.
53615         * modules/unictype/ctype-punct-tests: New file.
53616         * modules/unictype/ctype-space-tests: New file.
53617         * modules/unictype/ctype-upper-tests: New file.
53618         * modules/unictype/ctype-xdigit-tests: New file.
53619         * modules/unictype/decimal-digit-tests: New file.
53620         * modules/unictype/digit-tests: New file.
53621         * modules/unictype/mirror-tests: New file.
53622         * modules/unictype/numeric-tests: New file.
53623         * modules/unictype/property-alphabetic-tests: New file.
53624         * modules/unictype/property-ascii-hex-digit-tests: New file.
53625         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53626         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53627         * modules/unictype/property-bidi-block-separator-tests: New file.
53628         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53629         * modules/unictype/property-bidi-common-separator-tests: New file.
53630         * modules/unictype/property-bidi-control-tests: New file.
53631         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53632         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53633         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53634         * modules/unictype/property-bidi-european-digit-tests: New file.
53635         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53636         * modules/unictype/property-bidi-left-to-right-tests: New file.
53637         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53638         * modules/unictype/property-bidi-other-neutral-tests: New file.
53639         * modules/unictype/property-bidi-pdf-tests: New file.
53640         * modules/unictype/property-bidi-segment-separator-tests: New file.
53641         * modules/unictype/property-bidi-whitespace-tests: New file.
53642         * modules/unictype/property-byname-tests: New file.
53643         * modules/unictype/property-combining-tests: New file.
53644         * modules/unictype/property-composite-tests: New file.
53645         * modules/unictype/property-currency-symbol-tests: New file.
53646         * modules/unictype/property-dash-tests: New file.
53647         * modules/unictype/property-decimal-digit-tests: New file.
53648         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53649         * modules/unictype/property-deprecated-tests: New file.
53650         * modules/unictype/property-diacritic-tests: New file.
53651         * modules/unictype/property-extender-tests: New file.
53652         * modules/unictype/property-format-control-tests: New file.
53653         * modules/unictype/property-grapheme-base-tests: New file.
53654         * modules/unictype/property-grapheme-extend-tests: New file.
53655         * modules/unictype/property-grapheme-link-tests: New file.
53656         * modules/unictype/property-hex-digit-tests: New file.
53657         * modules/unictype/property-hyphen-tests: New file.
53658         * modules/unictype/property-id-continue-tests: New file.
53659         * modules/unictype/property-id-start-tests: New file.
53660         * modules/unictype/property-ideographic-tests: New file.
53661         * modules/unictype/property-ids-binary-operator-tests: New file.
53662         * modules/unictype/property-ids-trinary-operator-tests: New file.
53663         * modules/unictype/property-ignorable-control-tests: New file.
53664         * modules/unictype/property-iso-control-tests: New file.
53665         * modules/unictype/property-join-control-tests: New file.
53666         * modules/unictype/property-left-of-pair-tests: New file.
53667         * modules/unictype/property-line-separator-tests: New file.
53668         * modules/unictype/property-logical-order-exception-tests: New file.
53669         * modules/unictype/property-lowercase-tests: New file.
53670         * modules/unictype/property-math-tests: New file.
53671         * modules/unictype/property-non-break-tests: New file.
53672         * modules/unictype/property-not-a-character-tests: New file.
53673         * modules/unictype/property-numeric-tests: New file.
53674         * modules/unictype/property-other-alphabetic-tests: New file.
53675         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53676         * modules/unictype/property-other-grapheme-extend-tests: New file.
53677         * modules/unictype/property-other-id-continue-tests: New file.
53678         * modules/unictype/property-other-id-start-tests: New file.
53679         * modules/unictype/property-other-lowercase-tests: New file.
53680         * modules/unictype/property-other-math-tests: New file.
53681         * modules/unictype/property-other-uppercase-tests: New file.
53682         * modules/unictype/property-paired-punctuation-tests: New file.
53683         * modules/unictype/property-paragraph-separator-tests: New file.
53684         * modules/unictype/property-pattern-syntax-tests: New file.
53685         * modules/unictype/property-pattern-white-space-tests: New file.
53686         * modules/unictype/property-private-use-tests: New file.
53687         * modules/unictype/property-punctuation-tests: New file.
53688         * modules/unictype/property-quotation-mark-tests: New file.
53689         * modules/unictype/property-radical-tests: New file.
53690         * modules/unictype/property-sentence-terminal-tests: New file.
53691         * modules/unictype/property-soft-dotted-tests: New file.
53692         * modules/unictype/property-space-tests: New file.
53693         * modules/unictype/property-terminal-punctuation-tests: New file.
53694         * modules/unictype/property-test-tests: New file.
53695         * modules/unictype/property-titlecase-tests: New file.
53696         * modules/unictype/property-unassigned-code-value-tests: New file.
53697         * modules/unictype/property-unified-ideograph-tests: New file.
53698         * modules/unictype/property-uppercase-tests: New file.
53699         * modules/unictype/property-variation-selector-tests: New file.
53700         * modules/unictype/property-white-space-tests: New file.
53701         * modules/unictype/property-xid-continue-tests: New file.
53702         * modules/unictype/property-xid-start-tests: New file.
53703         * modules/unictype/property-zero-width-tests: New file.
53704         * modules/unictype/scripts-tests: New file.
53705         * modules/unictype/syntax-c-ident-tests: New file.
53706         * modules/unictype/syntax-c-whitespace-tests: New file.
53707         * modules/unictype/syntax-java-ident-tests: New file.
53708         * modules/unictype/syntax-java-whitespace-tests: New file.
53709         * tests/unictype/test-bidi_byname.c: New file.
53710         * tests/unictype/test-bidi_name.c: New file.
53711         * tests/unictype/test-bidi_of.c: New file.
53712         * tests/unictype/test-bidi_test.c: New file.
53713         * tests/unictype/test-block_list.c: New file.
53714         * tests/unictype/test-block_of.c: New file.
53715         * tests/unictype/test-block_test.c: New file.
53716         * tests/unictype/test-categ_and.c: New file.
53717         * tests/unictype/test-categ_and_not.c: New file.
53718         * tests/unictype/test-categ_byname.c: New file.
53719         * tests/unictype/test-categ_name.c: New file.
53720         * tests/unictype/test-categ_none.c: New file.
53721         * tests/unictype/test-categ_of.c: New file.
53722         * tests/unictype/test-categ_or.c: New file.
53723         * tests/unictype/test-categ_test_withtable.c: New file.
53724         * tests/unictype/test-combining.c: New file.
53725         * tests/unictype/test-decdigit.c: New file.
53726         * tests/unictype/test-digit.c: New file.
53727         * tests/unictype/test-mirror.c: New file.
53728         * tests/unictype/test-numeric.c: New file.
53729         * tests/unictype/test-pr_byname.c: New file.
53730         * tests/unictype/test-pr_test.c: New file.
53731         * tests/unictype/test-predicate-part1.h: New file.
53732         * tests/unictype/test-predicate-part2.h: New file.
53733         * tests/unictype/test-scripts.c: New file.
53734         * tests/unictype/test-sy_c_ident.c: New file.
53735         * tests/unictype/test-sy_java_ident.c: New file.
53736
53737         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53738         for Unicode 5.0.0.
53739         * tests/unictype/test-categ_Cc.c: Likewise.
53740         * tests/unictype/test-categ_Cf.c: Likewise.
53741         * tests/unictype/test-categ_Cn.c: Likewise.
53742         * tests/unictype/test-categ_Co.c: Likewise.
53743         * tests/unictype/test-categ_Cs.c: Likewise.
53744         * tests/unictype/test-categ_L.c: Likewise.
53745         * tests/unictype/test-categ_Ll.c: Likewise.
53746         * tests/unictype/test-categ_Lm.c: Likewise.
53747         * tests/unictype/test-categ_Lo.c: Likewise.
53748         * tests/unictype/test-categ_Lt.c: Likewise.
53749         * tests/unictype/test-categ_Lu.c: Likewise.
53750         * tests/unictype/test-categ_M.c: Likewise.
53751         * tests/unictype/test-categ_Mc.c: Likewise.
53752         * tests/unictype/test-categ_Me.c: Likewise.
53753         * tests/unictype/test-categ_Mn.c: Likewise.
53754         * tests/unictype/test-categ_N.c: Likewise.
53755         * tests/unictype/test-categ_Nd.c: Likewise.
53756         * tests/unictype/test-categ_Nl.c: Likewise.
53757         * tests/unictype/test-categ_No.c: Likewise.
53758         * tests/unictype/test-categ_P.c: Likewise.
53759         * tests/unictype/test-categ_Pc.c: Likewise.
53760         * tests/unictype/test-categ_Pd.c: Likewise.
53761         * tests/unictype/test-categ_Pe.c: Likewise.
53762         * tests/unictype/test-categ_Pf.c: Likewise.
53763         * tests/unictype/test-categ_Pi.c: Likewise.
53764         * tests/unictype/test-categ_Po.c: Likewise.
53765         * tests/unictype/test-categ_Ps.c: Likewise.
53766         * tests/unictype/test-categ_S.c: Likewise.
53767         * tests/unictype/test-categ_Sc.c: Likewise.
53768         * tests/unictype/test-categ_Sk.c: Likewise.
53769         * tests/unictype/test-categ_Sm.c: Likewise.
53770         * tests/unictype/test-categ_So.c: Likewise.
53771         * tests/unictype/test-categ_Z.c: Likewise.
53772         * tests/unictype/test-categ_Zl.c: Likewise.
53773         * tests/unictype/test-categ_Zp.c: Likewise.
53774         * tests/unictype/test-categ_Zs.c: Likewise.
53775         * tests/unictype/test-ctype_alnum.c: Likewise.
53776         * tests/unictype/test-ctype_alpha.c: Likewise.
53777         * tests/unictype/test-ctype_blank.c: Likewise.
53778         * tests/unictype/test-ctype_cntrl.c: Likewise.
53779         * tests/unictype/test-ctype_digit.c: Likewise.
53780         * tests/unictype/test-ctype_graph.c: Likewise.
53781         * tests/unictype/test-ctype_lower.c: Likewise.
53782         * tests/unictype/test-ctype_print.c: Likewise.
53783         * tests/unictype/test-ctype_punct.c: Likewise.
53784         * tests/unictype/test-ctype_space.c: Likewise.
53785         * tests/unictype/test-ctype_upper.c: Likewise.
53786         * tests/unictype/test-ctype_xdigit.c: Likewise.
53787         * tests/unictype/test-decdigit.h: Likewise.
53788         * tests/unictype/test-digit.h: Likewise.
53789         * tests/unictype/test-numeric.h: Likewise.
53790         * tests/unictype/test-pr_alphabetic.c: Likewise.
53791         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53792         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53793         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53794         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53795         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53796         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53797         * tests/unictype/test-pr_bidi_control.c: Likewise.
53798         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53799         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53800         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53801         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53802         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53803         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53804         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53805         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53806         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53807         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53808         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53809         * tests/unictype/test-pr_combining.c: Likewise.
53810         * tests/unictype/test-pr_composite.c: Likewise.
53811         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53812         * tests/unictype/test-pr_dash.c: Likewise.
53813         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53814         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53815         * tests/unictype/test-pr_deprecated.c: Likewise.
53816         * tests/unictype/test-pr_diacritic.c: Likewise.
53817         * tests/unictype/test-pr_extender.c: Likewise.
53818         * tests/unictype/test-pr_format_control.c: Likewise.
53819         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53820         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53821         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53822         * tests/unictype/test-pr_hex_digit.c: Likewise.
53823         * tests/unictype/test-pr_hyphen.c: Likewise.
53824         * tests/unictype/test-pr_id_continue.c: Likewise.
53825         * tests/unictype/test-pr_id_start.c: Likewise.
53826         * tests/unictype/test-pr_ideographic.c: Likewise.
53827         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53828         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53829         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53830         * tests/unictype/test-pr_iso_control.c: Likewise.
53831         * tests/unictype/test-pr_join_control.c: Likewise.
53832         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53833         * tests/unictype/test-pr_line_separator.c: Likewise.
53834         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53835         * tests/unictype/test-pr_lowercase.c: Likewise.
53836         * tests/unictype/test-pr_math.c: Likewise.
53837         * tests/unictype/test-pr_non_break.c: Likewise.
53838         * tests/unictype/test-pr_not_a_character.c: Likewise.
53839         * tests/unictype/test-pr_numeric.c: Likewise.
53840         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53841         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53842         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53843         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53844         * tests/unictype/test-pr_other_id_start.c: Likewise.
53845         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53846         * tests/unictype/test-pr_other_math.c: Likewise.
53847         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53848         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53849         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53850         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53851         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53852         * tests/unictype/test-pr_private_use.c: Likewise.
53853         * tests/unictype/test-pr_punctuation.c: Likewise.
53854         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53855         * tests/unictype/test-pr_radical.c: Likewise.
53856         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53857         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53858         * tests/unictype/test-pr_space.c: Likewise.
53859         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53860         * tests/unictype/test-pr_titlecase.c: Likewise.
53861         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53862         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53863         * tests/unictype/test-pr_uppercase.c: Likewise.
53864         * tests/unictype/test-pr_variation_selector.c: Likewise.
53865         * tests/unictype/test-pr_white_space.c: Likewise.
53866         * tests/unictype/test-pr_xid_continue.c: Likewise.
53867         * tests/unictype/test-pr_xid_start.c: Likewise.
53868         * tests/unictype/test-pr_zero_width.c: Likewise.
53869         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53870         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53871
53872 2007-11-12  Bruno Haible  <bruno@clisp.org>
53873
53874         Unicode character classification functions.
53875         * lib/unictype.h: New file.
53876         * modules/unictype/base: New file.
53877         * modules/unictype/category-L: New file.
53878         * modules/unictype/category-Lu: New file.
53879         * modules/unictype/category-Ll: New file.
53880         * modules/unictype/category-Lt: New file.
53881         * modules/unictype/category-Lm: New file.
53882         * modules/unictype/category-Lo: New file.
53883         * modules/unictype/category-M: New file.
53884         * modules/unictype/category-Mn: New file.
53885         * modules/unictype/category-Mc: New file.
53886         * modules/unictype/category-Me: New file.
53887         * modules/unictype/category-N: New file.
53888         * modules/unictype/category-Nd: New file.
53889         * modules/unictype/category-Nl: New file.
53890         * modules/unictype/category-No: New file.
53891         * modules/unictype/category-P: New file.
53892         * modules/unictype/category-Pc: New file.
53893         * modules/unictype/category-Pd: New file.
53894         * modules/unictype/category-Ps: New file.
53895         * modules/unictype/category-Pe: New file.
53896         * modules/unictype/category-Pi: New file.
53897         * modules/unictype/category-Pf: New file.
53898         * modules/unictype/category-Po: New file.
53899         * modules/unictype/category-S: New file.
53900         * modules/unictype/category-Sm: New file.
53901         * modules/unictype/category-Sc: New file.
53902         * modules/unictype/category-Sk: New file.
53903         * modules/unictype/category-So: New file.
53904         * modules/unictype/category-Z: New file.
53905         * modules/unictype/category-Zs: New file.
53906         * modules/unictype/category-Zl: New file.
53907         * modules/unictype/category-Zp: New file.
53908         * modules/unictype/category-C: New file.
53909         * modules/unictype/category-Cc: New file.
53910         * modules/unictype/category-Cf: New file.
53911         * modules/unictype/category-Cs: New file.
53912         * modules/unictype/category-Co: New file.
53913         * modules/unictype/category-Cn: New file.
53914         * modules/unictype/category-or: New file.
53915         * modules/unictype/category-of: New file.
53916         * modules/unictype/category-test: New file.
53917         * modules/unictype/category-test-withtable: New file.
53918         * modules/unictype/category-byname: New file.
53919         * modules/unictype/category-none: New file.
53920         * modules/unictype/category-and: New file.
53921         * modules/unictype/category-and-not: New file.
53922         * modules/unictype/category-name: New file.
53923         * modules/unictype/combining-class: New file.
53924         * modules/unictype/category-all: New file.
53925         * modules/unictype/bidicategory-all: New file.
53926         * modules/unictype/bidicategory-byname: New file.
53927         * modules/unictype/bidicategory-name: New file.
53928         * modules/unictype/bidicategory-of: New file.
53929         * modules/unictype/bidicategory-test: New file.
53930         * modules/unictype/decimal-digit: New file.
53931         * modules/unictype/digit: New file.
53932         * modules/unictype/numeric: New file.
53933         * modules/unictype/mirror: New file.
53934         * modules/unictype/property-white-space: New file.
53935         * modules/unictype/property-alphabetic: New file.
53936         * modules/unictype/property-other-alphabetic: New file.
53937         * modules/unictype/property-not-a-character: New file.
53938         * modules/unictype/property-default-ignorable-code-point: New file.
53939         * modules/unictype/property-other-default-ignorable-code-point: New
53940         file.
53941         * modules/unictype/property-deprecated: New file.
53942         * modules/unictype/property-logical-order-exception: New file.
53943         * modules/unictype/property-variation-selector: New file.
53944         * modules/unictype/property-private-use: New file.
53945         * modules/unictype/property-unassigned-code-value: New file.
53946         * modules/unictype/property-uppercase: New file.
53947         * modules/unictype/property-other-uppercase: New file.
53948         * modules/unictype/property-lowercase: New file.
53949         * modules/unictype/property-other-lowercase: New file.
53950         * modules/unictype/property-titlecase: New file.
53951         * modules/unictype/property-soft-dotted: New file.
53952         * modules/unictype/property-id-start: New file.
53953         * modules/unictype/property-other-id-start: New file.
53954         * modules/unictype/property-id-continue: New file.
53955         * modules/unictype/property-other-id-continue: New file.
53956         * modules/unictype/property-xid-start: New file.
53957         * modules/unictype/property-xid-continue: New file.
53958         * modules/unictype/property-pattern-white-space: New file.
53959         * modules/unictype/property-pattern-syntax: New file.
53960         * modules/unictype/property-join-control: New file.
53961         * modules/unictype/property-grapheme-base: New file.
53962         * modules/unictype/property-grapheme-extend: New file.
53963         * modules/unictype/property-other-grapheme-extend: New file.
53964         * modules/unictype/property-grapheme-link: New file.
53965         * modules/unictype/property-bidi-control: New file.
53966         * modules/unictype/property-bidi-left-to-right: New file.
53967         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53968         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53969         * modules/unictype/property-bidi-european-digit: New file.
53970         * modules/unictype/property-bidi-eur-num-separator: New file.
53971         * modules/unictype/property-bidi-eur-num-terminator: New file.
53972         * modules/unictype/property-bidi-arabic-digit: New file.
53973         * modules/unictype/property-bidi-common-separator: New file.
53974         * modules/unictype/property-bidi-block-separator: New file.
53975         * modules/unictype/property-bidi-segment-separator: New file.
53976         * modules/unictype/property-bidi-whitespace: New file.
53977         * modules/unictype/property-bidi-non-spacing-mark: New file.
53978         * modules/unictype/property-bidi-boundary-neutral: New file.
53979         * modules/unictype/property-bidi-pdf: New file.
53980         * modules/unictype/property-bidi-embedding-or-override: New file.
53981         * modules/unictype/property-bidi-other-neutral: New file.
53982         * modules/unictype/property-hex-digit: New file.
53983         * modules/unictype/property-ascii-hex-digit: New file.
53984         * modules/unictype/property-ideographic: New file.
53985         * modules/unictype/property-unified-ideograph: New file.
53986         * modules/unictype/property-radical: New file.
53987         * modules/unictype/property-ids-binary-operator: New file.
53988         * modules/unictype/property-ids-trinary-operator: New file.
53989         * modules/unictype/property-zero-width: New file.
53990         * modules/unictype/property-space: New file.
53991         * modules/unictype/property-non-break: New file.
53992         * modules/unictype/property-iso-control: New file.
53993         * modules/unictype/property-format-control: New file.
53994         * modules/unictype/property-dash: New file.
53995         * modules/unictype/property-hyphen: New file.
53996         * modules/unictype/property-punctuation: New file.
53997         * modules/unictype/property-line-separator: New file.
53998         * modules/unictype/property-paragraph-separator: New file.
53999         * modules/unictype/property-quotation-mark: New file.
54000         * modules/unictype/property-sentence-terminal: New file.
54001         * modules/unictype/property-terminal-punctuation: New file.
54002         * modules/unictype/property-currency-symbol: New file.
54003         * modules/unictype/property-math: New file.
54004         * modules/unictype/property-other-math: New file.
54005         * modules/unictype/property-paired-punctuation: New file.
54006         * modules/unictype/property-left-of-pair: New file.
54007         * modules/unictype/property-combining: New file.
54008         * modules/unictype/property-composite: New file.
54009         * modules/unictype/property-decimal-digit: New file.
54010         * modules/unictype/property-numeric: New file.
54011         * modules/unictype/property-diacritic: New file.
54012         * modules/unictype/property-extender: New file.
54013         * modules/unictype/property-ignorable-control: New file.
54014         * modules/unictype/property-test: New file.
54015         * modules/unictype/property-byname: New file.
54016         * modules/unictype/property-all: New file.
54017         * modules/unictype/scripts: New file.
54018         * modules/unictype/scripts-all: New file.
54019         * modules/unictype/block-of: New file.
54020         * modules/unictype/block-test: New file.
54021         * modules/unictype/block-list: New file.
54022         * modules/unictype/block-all: New file.
54023         * modules/unictype/syntax-c-whitespace: New file.
54024         * modules/unictype/syntax-java-whitespace: New file.
54025         * modules/unictype/syntax-c-ident: New file.
54026         * modules/unictype/syntax-java-ident: New file.
54027         * modules/unictype/ctype-alnum: New file.
54028         * modules/unictype/ctype-alpha: New file.
54029         * modules/unictype/ctype-cntrl: New file.
54030         * modules/unictype/ctype-digit: New file.
54031         * modules/unictype/ctype-graph: New file.
54032         * modules/unictype/ctype-lower: New file.
54033         * modules/unictype/ctype-print: New file.
54034         * modules/unictype/ctype-punct: New file.
54035         * modules/unictype/ctype-space: New file.
54036         * modules/unictype/ctype-upper: New file.
54037         * modules/unictype/ctype-xdigit: New file.
54038         * modules/unictype/ctype-blank: New file.
54039         * lib/unictype/bidi_byname.c: New file.
54040         * lib/unictype/bidi_name.c: New file.
54041         * lib/unictype/bidi_of.c: New file.
54042         * lib/unictype/bidi_test.c: New file.
54043         * lib/unictype/bitmap.h: New file.
54044         * lib/unictype/block_test.c: New file.
54045         * lib/unictype/blocks.c: New file.
54046         * lib/unictype/categ_C.c: New file.
54047         * lib/unictype/categ_Cc.c: New file.
54048         * lib/unictype/categ_Cf.c: New file.
54049         * lib/unictype/categ_Cn.c: New file.
54050         * lib/unictype/categ_Co.c: New file.
54051         * lib/unictype/categ_Cs.c: New file.
54052         * lib/unictype/categ_L.c: New file.
54053         * lib/unictype/categ_Ll.c: New file.
54054         * lib/unictype/categ_Lm.c: New file.
54055         * lib/unictype/categ_Lo.c: New file.
54056         * lib/unictype/categ_Lt.c: New file.
54057         * lib/unictype/categ_Lu.c: New file.
54058         * lib/unictype/categ_M.c: New file.
54059         * lib/unictype/categ_Mc.c: New file.
54060         * lib/unictype/categ_Me.c: New file.
54061         * lib/unictype/categ_Mn.c: New file.
54062         * lib/unictype/categ_N.c: New file.
54063         * lib/unictype/categ_Nd.c: New file.
54064         * lib/unictype/categ_Nl.c: New file.
54065         * lib/unictype/categ_No.c: New file.
54066         * lib/unictype/categ_P.c: New file.
54067         * lib/unictype/categ_Pc.c: New file.
54068         * lib/unictype/categ_Pd.c: New file.
54069         * lib/unictype/categ_Pe.c: New file.
54070         * lib/unictype/categ_Pf.c: New file.
54071         * lib/unictype/categ_Pi.c: New file.
54072         * lib/unictype/categ_Po.c: New file.
54073         * lib/unictype/categ_Ps.c: New file.
54074         * lib/unictype/categ_S.c: New file.
54075         * lib/unictype/categ_Sc.c: New file.
54076         * lib/unictype/categ_Sk.c: New file.
54077         * lib/unictype/categ_Sm.c: New file.
54078         * lib/unictype/categ_So.c: New file.
54079         * lib/unictype/categ_Z.c: New file.
54080         * lib/unictype/categ_Zl.c: New file.
54081         * lib/unictype/categ_Zp.c: New file.
54082         * lib/unictype/categ_Zs.c: New file.
54083         * lib/unictype/categ_and.c: New file.
54084         * lib/unictype/categ_and_not.c: New file.
54085         * lib/unictype/categ_byname.c: New file.
54086         * lib/unictype/categ_name.c: New file.
54087         * lib/unictype/categ_none.c: New file.
54088         * lib/unictype/categ_of.c: New file.
54089         * lib/unictype/categ_or.c: New file.
54090         * lib/unictype/categ_test.c: New file.
54091         * lib/unictype/combining.c: New file.
54092         * lib/unictype/ctype_alnum.c: New file.
54093         * lib/unictype/ctype_alpha.c: New file.
54094         * lib/unictype/ctype_blank.c: New file.
54095         * lib/unictype/ctype_cntrl.c: New file.
54096         * lib/unictype/ctype_digit.c: New file.
54097         * lib/unictype/ctype_graph.c: New file.
54098         * lib/unictype/ctype_lower.c: New file.
54099         * lib/unictype/ctype_print.c: New file.
54100         * lib/unictype/ctype_punct.c: New file.
54101         * lib/unictype/ctype_space.c: New file.
54102         * lib/unictype/ctype_upper.c: New file.
54103         * lib/unictype/ctype_xdigit.c: New file.
54104         * lib/unictype/decdigit.c: New file.
54105         * lib/unictype/digit.c: New file.
54106         * lib/unictype/identsyntaxmap.h: New file.
54107         * lib/unictype/mirror.c: New file.
54108         * lib/unictype/numeric.c: New file.
54109         * lib/unictype/pr_alphabetic.c: New file.
54110         * lib/unictype/pr_ascii_hex_digit.c: New file.
54111         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54112         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54113         * lib/unictype/pr_bidi_block_separator.c: New file.
54114         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54115         * lib/unictype/pr_bidi_common_separator.c: New file.
54116         * lib/unictype/pr_bidi_control.c: New file.
54117         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54118         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54119         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54120         * lib/unictype/pr_bidi_european_digit.c: New file.
54121         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54122         * lib/unictype/pr_bidi_left_to_right.c: New file.
54123         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54124         * lib/unictype/pr_bidi_other_neutral.c: New file.
54125         * lib/unictype/pr_bidi_pdf.c: New file.
54126         * lib/unictype/pr_bidi_segment_separator.c: New file.
54127         * lib/unictype/pr_bidi_whitespace.c: New file.
54128         * lib/unictype/pr_byname.c: New file.
54129         * lib/unictype/pr_byname.gperf: New file.
54130         * lib/unictype/pr_combining.c: New file.
54131         * lib/unictype/pr_composite.c: New file.
54132         * lib/unictype/pr_currency_symbol.c: New file.
54133         * lib/unictype/pr_dash.c: New file.
54134         * lib/unictype/pr_decimal_digit.c: New file.
54135         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54136         * lib/unictype/pr_deprecated.c: New file.
54137         * lib/unictype/pr_diacritic.c: New file.
54138         * lib/unictype/pr_extender.c: New file.
54139         * lib/unictype/pr_format_control.c: New file.
54140         * lib/unictype/pr_grapheme_base.c: New file.
54141         * lib/unictype/pr_grapheme_extend.c: New file.
54142         * lib/unictype/pr_grapheme_link.c: New file.
54143         * lib/unictype/pr_hex_digit.c: New file.
54144         * lib/unictype/pr_hyphen.c: New file.
54145         * lib/unictype/pr_id_continue.c: New file.
54146         * lib/unictype/pr_id_start.c: New file.
54147         * lib/unictype/pr_ideographic.c: New file.
54148         * lib/unictype/pr_ids_binary_operator.c: New file.
54149         * lib/unictype/pr_ids_trinary_operator.c: New file.
54150         * lib/unictype/pr_ignorable_control.c: New file.
54151         * lib/unictype/pr_iso_control.c: New file.
54152         * lib/unictype/pr_join_control.c: New file.
54153         * lib/unictype/pr_left_of_pair.c: New file.
54154         * lib/unictype/pr_line_separator.c: New file.
54155         * lib/unictype/pr_logical_order_exception.c: New file.
54156         * lib/unictype/pr_lowercase.c: New file.
54157         * lib/unictype/pr_math.c: New file.
54158         * lib/unictype/pr_non_break.c: New file.
54159         * lib/unictype/pr_not_a_character.c: New file.
54160         * lib/unictype/pr_numeric.c: New file.
54161         * lib/unictype/pr_other_alphabetic.c: New file.
54162         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54163         * lib/unictype/pr_other_grapheme_extend.c: New file.
54164         * lib/unictype/pr_other_id_continue.c: New file.
54165         * lib/unictype/pr_other_id_start.c: New file.
54166         * lib/unictype/pr_other_lowercase.c: New file.
54167         * lib/unictype/pr_other_math.c: New file.
54168         * lib/unictype/pr_other_uppercase.c: New file.
54169         * lib/unictype/pr_paired_punctuation.c: New file.
54170         * lib/unictype/pr_paragraph_separator.c: New file.
54171         * lib/unictype/pr_pattern_syntax.c: New file.
54172         * lib/unictype/pr_pattern_white_space.c: New file.
54173         * lib/unictype/pr_private_use.c: New file.
54174         * lib/unictype/pr_punctuation.c: New file.
54175         * lib/unictype/pr_quotation_mark.c: New file.
54176         * lib/unictype/pr_radical.c: New file.
54177         * lib/unictype/pr_sentence_terminal.c: New file.
54178         * lib/unictype/pr_soft_dotted.c: New file.
54179         * lib/unictype/pr_space.c: New file.
54180         * lib/unictype/pr_terminal_punctuation.c: New file.
54181         * lib/unictype/pr_test.c: New file.
54182         * lib/unictype/pr_titlecase.c: New file.
54183         * lib/unictype/pr_unassigned_code_value.c: New file.
54184         * lib/unictype/pr_unified_ideograph.c: New file.
54185         * lib/unictype/pr_uppercase.c: New file.
54186         * lib/unictype/pr_variation_selector.c: New file.
54187         * lib/unictype/pr_white_space.c: New file.
54188         * lib/unictype/pr_xid_continue.c: New file.
54189         * lib/unictype/pr_xid_start.c: New file.
54190         * lib/unictype/pr_zero_width.c: New file.
54191         * lib/unictype/scripts.c: New file.
54192         * lib/unictype/sy_c_ident.c: New file.
54193         * lib/unictype/sy_c_whitespace.c: New file.
54194         * lib/unictype/sy_java_ident.c: New file.
54195         * lib/unictype/sy_java_whitespace.c: New file.
54196
54197         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54198         Unicode 5.0.0.
54199         * lib/unictype/blocks.h: Likewise.
54200         * lib/unictype/categ_C.h: Likewise.
54201         * lib/unictype/categ_Cc.h: Likewise.
54202         * lib/unictype/categ_Cf.h: Likewise.
54203         * lib/unictype/categ_Cn.h: Likewise.
54204         * lib/unictype/categ_Co.h: Likewise.
54205         * lib/unictype/categ_Cs.h: Likewise.
54206         * lib/unictype/categ_L.h: Likewise.
54207         * lib/unictype/categ_Ll.h: Likewise.
54208         * lib/unictype/categ_Lm.h: Likewise.
54209         * lib/unictype/categ_Lo.h: Likewise.
54210         * lib/unictype/categ_Lt.h: Likewise.
54211         * lib/unictype/categ_Lu.h: Likewise.
54212         * lib/unictype/categ_M.h: Likewise.
54213         * lib/unictype/categ_Mc.h: Likewise.
54214         * lib/unictype/categ_Me.h: Likewise.
54215         * lib/unictype/categ_Mn.h: Likewise.
54216         * lib/unictype/categ_N.h: Likewise.
54217         * lib/unictype/categ_Nd.h: Likewise.
54218         * lib/unictype/categ_Nl.h: Likewise.
54219         * lib/unictype/categ_No.h: Likewise.
54220         * lib/unictype/categ_P.h: Likewise.
54221         * lib/unictype/categ_Pc.h: Likewise.
54222         * lib/unictype/categ_Pd.h: Likewise.
54223         * lib/unictype/categ_Pe.h: Likewise.
54224         * lib/unictype/categ_Pf.h: Likewise.
54225         * lib/unictype/categ_Pi.h: Likewise.
54226         * lib/unictype/categ_Po.h: Likewise.
54227         * lib/unictype/categ_Ps.h: Likewise.
54228         * lib/unictype/categ_S.h: Likewise.
54229         * lib/unictype/categ_Sc.h: Likewise.
54230         * lib/unictype/categ_Sk.h: Likewise.
54231         * lib/unictype/categ_Sm.h: Likewise.
54232         * lib/unictype/categ_So.h: Likewise.
54233         * lib/unictype/categ_Z.h: Likewise.
54234         * lib/unictype/categ_Zl.h: Likewise.
54235         * lib/unictype/categ_Zp.h: Likewise.
54236         * lib/unictype/categ_Zs.h: Likewise.
54237         * lib/unictype/categ_of.h: Likewise.
54238         * lib/unictype/combining.h: Likewise.
54239         * lib/unictype/ctype_alnum.h: Likewise.
54240         * lib/unictype/ctype_alpha.h: Likewise.
54241         * lib/unictype/ctype_blank.h: Likewise.
54242         * lib/unictype/ctype_cntrl.h: Likewise.
54243         * lib/unictype/ctype_digit.h: Likewise.
54244         * lib/unictype/ctype_graph.h: Likewise.
54245         * lib/unictype/ctype_lower.h: Likewise.
54246         * lib/unictype/ctype_print.h: Likewise.
54247         * lib/unictype/ctype_punct.h: Likewise.
54248         * lib/unictype/ctype_space.h: Likewise.
54249         * lib/unictype/ctype_upper.h: Likewise.
54250         * lib/unictype/ctype_xdigit.h: Likewise.
54251         * lib/unictype/decdigit.h: Likewise.
54252         * lib/unictype/digit.h: Likewise.
54253         * lib/unictype/mirror.h: Likewise.
54254         * lib/unictype/numeric.h: Likewise.
54255         * lib/unictype/pr_alphabetic.h: Likewise.
54256         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54257         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54258         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54259         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54260         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54261         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54262         * lib/unictype/pr_bidi_control.h: Likewise.
54263         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54264         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54265         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54266         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54267         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54268         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54269         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54270         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54271         * lib/unictype/pr_bidi_pdf.h: Likewise.
54272         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54273         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54274         * lib/unictype/pr_combining.h: Likewise.
54275         * lib/unictype/pr_composite.h: Likewise.
54276         * lib/unictype/pr_currency_symbol.h: Likewise.
54277         * lib/unictype/pr_dash.h: Likewise.
54278         * lib/unictype/pr_decimal_digit.h: Likewise.
54279         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54280         * lib/unictype/pr_deprecated.h: Likewise.
54281         * lib/unictype/pr_diacritic.h: Likewise.
54282         * lib/unictype/pr_extender.h: Likewise.
54283         * lib/unictype/pr_format_control.h: Likewise.
54284         * lib/unictype/pr_grapheme_base.h: Likewise.
54285         * lib/unictype/pr_grapheme_extend.h: Likewise.
54286         * lib/unictype/pr_grapheme_link.h: Likewise.
54287         * lib/unictype/pr_hex_digit.h: Likewise.
54288         * lib/unictype/pr_hyphen.h: Likewise.
54289         * lib/unictype/pr_id_continue.h: Likewise.
54290         * lib/unictype/pr_id_start.h: Likewise.
54291         * lib/unictype/pr_ideographic.h: Likewise.
54292         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54293         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54294         * lib/unictype/pr_ignorable_control.h: Likewise.
54295         * lib/unictype/pr_iso_control.h: Likewise.
54296         * lib/unictype/pr_join_control.h: Likewise.
54297         * lib/unictype/pr_left_of_pair.h: Likewise.
54298         * lib/unictype/pr_line_separator.h: Likewise.
54299         * lib/unictype/pr_logical_order_exception.h: Likewise.
54300         * lib/unictype/pr_lowercase.h: Likewise.
54301         * lib/unictype/pr_math.h: Likewise.
54302         * lib/unictype/pr_non_break.h: Likewise.
54303         * lib/unictype/pr_not_a_character.h: Likewise.
54304         * lib/unictype/pr_numeric.h: Likewise.
54305         * lib/unictype/pr_other_alphabetic.h: Likewise.
54306         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54307         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54308         * lib/unictype/pr_other_id_continue.h: Likewise.
54309         * lib/unictype/pr_other_id_start.h: Likewise.
54310         * lib/unictype/pr_other_lowercase.h: Likewise.
54311         * lib/unictype/pr_other_math.h: Likewise.
54312         * lib/unictype/pr_other_uppercase.h: Likewise.
54313         * lib/unictype/pr_paired_punctuation.h: Likewise.
54314         * lib/unictype/pr_paragraph_separator.h: Likewise.
54315         * lib/unictype/pr_pattern_syntax.h: Likewise.
54316         * lib/unictype/pr_pattern_white_space.h: Likewise.
54317         * lib/unictype/pr_private_use.h: Likewise.
54318         * lib/unictype/pr_punctuation.h: Likewise.
54319         * lib/unictype/pr_quotation_mark.h: Likewise.
54320         * lib/unictype/pr_radical.h: Likewise.
54321         * lib/unictype/pr_sentence_terminal.h: Likewise.
54322         * lib/unictype/pr_soft_dotted.h: Likewise.
54323         * lib/unictype/pr_space.h: Likewise.
54324         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54325         * lib/unictype/pr_titlecase.h: Likewise.
54326         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54327         * lib/unictype/pr_unified_ideograph.h: Likewise.
54328         * lib/unictype/pr_uppercase.h: Likewise.
54329         * lib/unictype/pr_variation_selector.h: Likewise.
54330         * lib/unictype/pr_white_space.h: Likewise.
54331         * lib/unictype/pr_xid_continue.h: Likewise.
54332         * lib/unictype/pr_xid_start.h: Likewise.
54333         * lib/unictype/pr_zero_width.h: Likewise.
54334         * lib/unictype/scripts.h: Likewise.
54335         * lib/unictype/scripts_byname.gperf: Likewise.
54336         * lib/unictype/sy_c_ident.h: Likewise.
54337         * lib/unictype/sy_c_whitespace.h: Likewise.
54338         * lib/unictype/sy_java_ident.h: Likewise.
54339         * lib/unictype/sy_java_whitespace.h: Likewise.
54340
54341         * lib/unictype/Makefile: New file.
54342         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54343         glibc.
54344         * lib/unictype/3level.h: New file, copied from glibc.
54345         * lib/unictype/3levelbit.h: New file.
54346
54347 2007-11-11  Bruno Haible  <bruno@clisp.org>
54348
54349         * modules/gperf: New file.
54350         * modules/iconv_open (Depends-on): Add it.
54351         (Makefile.am): Remove the GPERF definition.
54352
54353 2007-11-11  Bruno Haible  <bruno@clisp.org>
54354
54355         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54356         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54357
54358 2007-11-11  Bruno Haible  <bruno@clisp.org>
54359
54360         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54361         (usage): Remove function.
54362
54363 2007-11-11  Bruno Haible  <bruno@clisp.org>
54364
54365         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54366         gl_FUNC_CEILF_LIBS.
54367         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54368         gl_FUNC_CEIL_LIBS.
54369         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54370         gl_FUNC_CEILL_LIBS.
54371         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54372         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54373         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54374
54375 2007-11-11  Bruno Haible  <bruno@clisp.org>
54376
54377         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54378         roundf were declared but do not exist on functions.
54379         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54380         roundl were declared but do not exist on functions.
54381         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54382         HAVE_FLOORL_AND_CEILL, respectively.
54383         Needed for Sun C on Solaris 10.
54384
54385 2007-11-11  Bruno Haible  <bruno@clisp.org>
54386
54387         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54388         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54389         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54390         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54391         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54392         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54393         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54394         HAVE_DECL_ROUNDF.
54395         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54396         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54398         of HAVE_DECL_ROUND*.
54399         * modules/math (Makefile.am): Update.
54400
54401 2007-11-10  Bruno Haible  <bruno@clisp.org>
54402
54403         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54404         ptrdiff_t as m4/intl.m4.
54405
54406 2007-11-10  Jim Meyering  <meyering@redhat.com>
54407
54408         Avoid link failure for the argmatch test.
54409         * tests/test-argmatch.c (usage): Define function to avoid a link
54410         failure: argmatch_die requires a usage function.
54411
54412 2007-11-09  Bruno Haible  <bruno@clisp.org>
54413
54414         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54415         * doc/functions/vsnprintf.texi: Likewise.
54416         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54417         with a size argument < 2.
54418
54419 2007-11-09  Bruno Haible  <bruno@clisp.org>
54420
54421         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54422         buffer. Fixes an inefficiency introduced on 2007-11-03.
54423
54424 2007-11-09  Bruno Haible  <bruno@clisp.org>
54425
54426         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54427         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54428
54429 2007-11-08  Jim Meyering  <meyering@redhat.com>
54430
54431         Change cache variable name prefix "jm_" to "gl_" everywhere.
54432         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54433         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54434         * m4/uptime.m4: s/gl_/jm_/
54435
54436 2007-11-07  Bruno Haible  <bruno@clisp.org>
54437
54438         Update to GNU gettext 0.17.
54439         * m4/intl.m4: Update to GNU gettext 0.17.
54440         * m4/po.m4: Likewise.
54441         * modules/gettext (Files): Remove m4/ulonglong.m4.
54442         (configure.ac): Require gettext infrastructure from version 0.17.
54443
54444 2007-11-06  Bruno Haible  <bruno@clisp.org>
54445
54446         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54447         symbolic values are not defined in a public header.
54448         * lib/freadable.c (freadable) [QNX]: Likewise.
54449         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54450         * lib/freading.c (freading) [QNX]: Likewise.
54451         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54452         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54453         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54454         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54455         Reported by Alain Magloire.
54456
54457         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54458
54459 2007-11-05  Bruno Haible  <bruno@clisp.org>
54460
54461         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54462         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54463         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54464         Reported by Eric Blake.
54465
54466 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54467             Bruno Haible  <bruno@clisp.org>
54468
54469         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54470         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54471         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54472         (malloc): Undefine also before including <stdlib.h>.
54473         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54474         Needed on OSF/1 4.0.
54475
54476 2007-11-05  Jim Meyering  <meyering@redhat.com>
54477
54478         git-version-gen: sync from coreutils.
54479         * build-aux/git-version-gen: Add comments.
54480         Change the first '-' to '.' in the snapshot version string,
54481         e.g., 6.9-377-08144 -> 6.9.377-08144
54482         Remove first parameter.
54483         Don't declare a version "-dirty" merely because a time
54484         stamp has changed.
54485
54486 2007-11-04  Bruno Haible  <bruno@clisp.org>
54487
54488         * lib/lock.h: Protect all macro definitions containing an 'if'
54489         statement through a "do { ... } while (0)".
54490         * lib/tls.h: Likewise.
54491
54492 2007-11-04  Bruno Haible  <bruno@clisp.org>
54493
54494         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54495
54496 2007-11-04  Bruno Haible  <bruno@clisp.org>
54497
54498         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54499         * modules/fprintf-posix (Depends-on): Add nocrash.
54500         * modules/snprintf-posix (Depends-on): Likewise.
54501         * modules/sprintf-posix (Depends-on): Likewise.
54502         * modules/vasnprintf-posix (Depends-on): Likewise.
54503         * modules/vasprintf-posix (Depends-on): Likewise.
54504         * modules/vfprintf-posix (Depends-on): Likewise.
54505         * modules/vsnprintf-posix (Depends-on): Likewise.
54506         * modules/vsprintf-posix (Depends-on): Likewise.
54507         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54508         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54509         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54510         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54511         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54512         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54513         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54514
54515 2007-11-04  Bruno Haible  <bruno@clisp.org>
54516
54517         * modules/nocrash: New file.
54518         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54519         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54520
54521 2007-11-04  Bruno Haible  <bruno@clisp.org>
54522
54523         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54524         precision handling.
54525         * tests/test-vasprintf-posix.c (test_function): Likewise.
54526         * tests/test-snprintf-posix.h (test_function): Likewise.
54527         * tests/test-sprintf-posix.h (test_function): Likewise.
54528
54529         Fix *printf behaviour for large precisions on mingw and BeOS.
54530         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54531         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54532         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54533         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54534         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54535         gl_PRINTF_PRECISION and test its result. Invoke
54536         gl_PREREQ_VASNPRINTF_PRECISION.
54537         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54538         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54539         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54540         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54541         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54542         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54543         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54544         * doc/functions/fprintf.texi: Update.
54545         * doc/functions/printf.texi: Update.
54546         * doc/functions/snprintf.texi: Update.
54547         * doc/functions/sprintf.texi: Update.
54548         * doc/functions/vfprintf.texi: Update.
54549         * doc/functions/vprintf.texi: Update.
54550         * doc/functions/vsnprintf.texi: Update.
54551         * doc/functions/vsprintf.texi: Update.
54552
54553 2007-11-04  Bruno Haible  <bruno@clisp.org>
54554
54555         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54556
54557 2007-11-04  Bruno Haible  <bruno@clisp.org>
54558
54559         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54560         Reported by Sylvain Beucler <beuc@gnu.org>.
54561
54562 2007-11-03  Bruno Haible  <bruno@clisp.org>
54563
54564         * tests/test-fprintf-posix2.sh: New file.
54565         * tests/test-fprintf-posix2.c: New file.
54566         * modules/fprintf-posix-tests (Files): Add them.
54567         (TESTS): Add test-fprintf-posix2.sh.
54568         (configure.ac): Check for getrlimit and setrlimit.
54569         (check_PROGRAMS): Add test-fprintf-posix2.
54570
54571         * tests/test-printf-posix2.sh: New file.
54572         * tests/test-printf-posix2.c: New file.
54573         * modules/printf-posix-tests (Files): Add them.
54574         (TESTS): Add test-printf-posix2.sh.
54575         (configure.ac): Check for getrlimit and setrlimit.
54576         (check_PROGRAMS): Add test-printf-posix2.
54577
54578         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54579         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54580         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54581         (decode_double): New function, copied from decode_long_double.
54582         (scale10_round_decimal_decoded): New function, extracted from
54583         scale10_round_decimal_long_double.
54584         (scale10_round_decimal_long_double): Use it.
54585         (scale10_round_decimal_double): New function.
54586         (floorlog10): New function.
54587         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54588         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54589         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54590         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54591         gl_PRINTF_ENOMEM and test its result. Invoke
54592         gl_PREREQ_VASNPRINTF_ENOMEM.
54593         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54594         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54595         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54596         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54597         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54598         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54599         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54600         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54601         * modules/snprintf-posix (Depends-on): Likewise.
54602         * modules/sprintf-posix (Depends-on): Likewise.
54603         * modules/vasnprintf-posix (Depends-on): Likewise.
54604         * modules/vasprintf-posix (Depends-on): Likewise.
54605         * modules/vfprintf-posix (Depends-on): Likewise.
54606         * modules/vsnprintf-posix (Depends-on): Likewise.
54607         * modules/vsprintf-posix (Depends-on): Likewise.
54608         * doc/functions/fprintf.texi: Update.
54609         * doc/functions/printf.texi: Update.
54610         * doc/functions/snprintf.texi: Update.
54611         * doc/functions/sprintf.texi: Update.
54612         * doc/functions/vfprintf.texi: Update.
54613         * doc/functions/vprintf.texi: Update.
54614         * doc/functions/vsnprintf.texi: Update.
54615         * doc/functions/vsprintf.texi: Update.
54616
54617 2007-11-03  Bruno Haible  <bruno@clisp.org>
54618
54619         * modules/frexp-nolibm-tests: New file.
54620
54621         * modules/frexp-nolibm: New file.
54622         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54623
54624 2007-11-03  Bruno Haible  <bruno@clisp.org>
54625
54626         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54627         value is C99 compliant.
54628         Needed for OSF/1 5.1.
54629
54630 2007-11-03  Bruno Haible  <bruno@clisp.org>
54631
54632         Fix out-of-memory handling of vasnprintf.
54633         * lib/printf-parse.c: Include <errno.h>.
54634         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54635         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54636         is already set.
54637
54638 2007-11-02  Eric Blake  <ebb9@byu.net>
54639
54640         Fix tests on cygwin.
54641         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54642
54643 2007-11-01  Bruno Haible  <bruno@clisp.org>
54644
54645         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54646         warning.
54647         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54648         needed for POSIX compatibility.
54649
54650 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54651
54652         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54653         for compatibility with GNU.
54654
54655 2007-11-01  Bruno Haible  <bruno@clisp.org>
54656
54657         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54658         (putenv): Renamed from rpl_putenv. Change argument type from
54659         'const char *' to 'char *'.
54660         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54661         of defining putenv in config.h, just set REPLACE_PUTENV.
54662         * modules/putenv (Depends-on): Add stdlib.
54663         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54664         (Include): Use <stdlib.h>.
54665         * lib/stdlib.in.h (putenv): New declaration.
54666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54667         REPLACE_PUTENV.
54668         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54669         REPLACE_PUTENV.
54670         Needed for MacOS X 10.5.0.
54671         Reported by Peter O'Gorman <peter@pogma.com>.
54672
54673 2007-11-01  Jim Meyering  <meyering@redhat.com>
54674
54675         Treat an empty date string exactly like "0".
54676         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54677         if the remaining date string (to be parsed) is empty, use "0".
54678         Reported by Mischa Molhoek and discussed in this thread:
54679         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54680
54681 2007-10-31  Bruno Haible  <bruno@clisp.org>
54682
54683         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54684         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54685         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54686         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54687         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54688         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54689
54690 2007-10-31  Bruno Haible  <bruno@clisp.org>
54691
54692         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54693         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54694         (AC_TYPE_LONG_LONG_INT): Use it.
54695         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54696         it as well.
54697         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54698         to m4/longlong.m4.
54699         * modules/stdint (Files): Remove m4/ulonglong.m4.
54700         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54701         m4/ulonglong.m4.
54702         * modules/strtoumax (Files): Likewise.
54703
54704 2007-10-30  Bruno Haible  <bruno@clisp.org>
54705
54706         * modules/xvasprintf-posix: New file.
54707         Suggested by Eric Blake.
54708
54709 2007-10-30  Bruno Haible  <bruno@clisp.org>
54710
54711         * modules/xprintf-posix-tests: New file.
54712         * tests/test-xprintf-posix.sh: New file.
54713         * tests/test-xprintf-posix.c: New file.
54714         * tests/test-xfprintf-posix.c: New file.
54715
54716         * modules/xprintf-posix: New file.
54717
54718 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54719
54720         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54721         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54722         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54723
54724 2007-10-29  Bruno Haible  <bruno@clisp.org>
54725
54726         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54727         contain the special marker '_cv_'.
54728         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54729         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54730         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54731         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54732         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54733         Reported by Ralf Wildenhues.
54734
54735 2007-10-29  Bruno Haible  <bruno@clisp.org>
54736
54737         * gnulib-tool (func_import): When --lgpl is not specified, set
54738         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54739         GPLv3.
54740         Reported by Simon Josefsson.
54741
54742 2007-10-28  Bruno Haible  <bruno@clisp.org>
54743
54744         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54745         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54746         HAVE_DECL_ISFINITE.
54747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54748         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54749         HAVE_DECL_ISFINITE.
54750
54751 2007-10-28  Bruno Haible  <bruno@clisp.org>
54752
54753         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54754         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54755
54756 2007-10-28  Bruno Haible  <bruno@clisp.org>
54757
54758         Fix link errors with Sun C 5.0 on Solaris 10.
54759         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54760         function is declared but not present in the compiler's libm.
54761         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54762         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54763         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54764         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54765         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54766         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54767         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54769         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54770         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54771         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54772         HAVE_DECL_FLOORL.
54773
54774 2007-10-28  Bruno Haible  <bruno@clisp.org>
54775
54776         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54777         gl_FUNC_FLOORL. Cache the result.
54778         (gl_FUNC_FLOORL): Use it.
54779         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54780         gl_FUNC_CEILL. Cache the result.
54781         (gl_FUNC_CEILL): Use it.
54782
54783         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54784         gl_FUNC_FLOOR. Cache the result.
54785         (gl_FUNC_FLOOR): Use it.
54786         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54787         gl_FUNC_CEIL. Cache the result.
54788         (gl_FUNC_CEIL): Use it.
54789
54790         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54791         gl_FUNC_FLOORF. Cache the result.
54792         (gl_FUNC_FLOORF): Use it.
54793         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54794         gl_FUNC_CEILF. Cache the result.
54795         (gl_FUNC_CEILF): Use it.
54796
54797 2007-10-28  Bruno Haible  <bruno@clisp.org>
54798
54799         * gnulib-tool: Allow specifying the LGPL version number through
54800         --lgpl=2 or --lgpl=3.
54801         (func_usage): Document --lgpl with argument.
54802         Handle --lgpl=... arguments.
54803         (func_import): Recognize also gl_LGPL calls with an argument. When
54804         --lgpl=2 is used and the module's license is just LGPL, report an
54805         error. Set sed_transform_lib_file according to the lgpl variable. In
54806         the generated files, use --lgpl or gl_LGPL invocations with argument,
54807         if necessary.
54808         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54809         an LGPv2+ license.
54810         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54811         gl_LGPL macro.
54812
54813 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54814             Bruno Haible  <bruno@clisp.org>
54815
54816         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54817         (u16_uctomb_aux): Likewise.
54818         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54819         !HAVE_INLINE.
54820         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54821
54822 2007-10-28  Bruno Haible  <bruno@clisp.org>
54823
54824         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54825         Invoke AM_GETTEXT_OPTION if it exists.
54826         * modules/vasprintf: Likewise.
54827         * modules/verror: Likewise.
54828         * modules/xprintf: Likewise.
54829         * modules/xvasprintf: Likewise.
54830
54831 2007-10-27  Ben Pfaff  <blp@gnu.org>
54832
54833         * lib/math.in.h: Define isfinite macro and prototypes for
54834         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54835         implementations.
54836         * m4/math_h.m4: New substitutions for isfinite module.
54837         * lib/isfinite.c: New file.
54838         * m4/isfinite.m4: New file.
54839         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54840         * modules/isfinite: New file.
54841         * modules/isfinite-tests: New file.
54842         * tests/tests-isfinite.c: New file.
54843         * doc/functions/isfinite.texi: Mention isfinite module.
54844         * MODULES.html.sh: Mention new module.
54845
54846 2007-10-27  Ben Pfaff  <blp@gnu.org>
54847
54848         Ralf Wildenhues reported that Tru64 4.0D declares the round
54849         functions but does not have definitions.
54850         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54851         cannot be found in any library, set the output variable to
54852         "missing" instead of "".
54853         * m4/round.m4: Also use our substitute if we cannot find round in
54854         any library, even if it is declared.
54855         * m4/roundf.m4: Likewise for roundf.
54856         * m4/roundl.m4: Likewise for roundl.
54857         * lib/math.in.h: Undefine roundf, round, roundl before defining
54858         their replacements, to allow for hypothetical systems where these
54859         may be defined as macros but not available in libraries.
54860
54861 2007-10-27  Bruno Haible  <bruno@clisp.org>
54862
54863         * doc/gnulib.texi: Invoke @firstparagraphindent.
54864         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54865         changes in gnulib.
54866         (Source changes): New section.
54867
54868 2007-10-26  Bruno Haible  <bruno@clisp.org>
54869
54870         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54871         borrowed from autoconf.
54872
54873 2007-10-26  Bruno Haible  <bruno@clisp.org>
54874
54875         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54876         strerror returned the empty string. Needed on HP-UX 11.00.
54877
54878 2007-10-24  Micah Cowan  <micah@cowan.name>
54879
54880         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54881         * build-aux/bootstrap: Remove support for now-unnecessary option,
54882         --cvs-user, and envvars CVS_USER, CVS_RSH.
54883
54884 2007-10-24  Jim Meyering  <meyering@redhat.com>
54885
54886         Avoid diagnostics from sha1sum when there is no cached checksum.
54887         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54888         if the po.s1 file hasn't been created yet.
54889
54890         * build-aux/bootstrap: Sync from coreutils:
54891         2007-10-24  Jim Meyering  <meyering@redhat.com>
54892         Get gnulib from the git repository, not from an obsolete cvs one.
54893         * build-aux/bootstrap: Suggestion from Micah Cowan.
54894         2007-10-04  Jim Meyering  <jim@meyering.net>
54895         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54896         (update_po_files): Work also when there are no .po files in po/.
54897
54898 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54899
54900         * README: Append ".git" to git and cg examples.
54901         Problem reported by Benoit Sigoure.
54902
54903 2007-10-23  Micah Cowan  <micah@cowan.name>
54904
54905         * users.txt: Add wget.
54906
54907 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54908
54909         Fix linking of some unistdio tests on FreeBSD.
54910         * modules/unistdio/u16-vsnprintf-tests
54911         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54912         * modules/unistdio/u16-vsprintf-tests
54913         (test_u16_vsnprintf1_LDADD): Likewise.
54914         * modules/unistdio/u32-vsnprintf-tests
54915         (test_u32_vsnprintf1_LDADD): Likewise.
54916         * modules/unistdio/u32-vsprintf-tests
54917         (test_u32_vsprintf1_LDADD): Likewise.
54918         * modules/unistdio/u8-vsnprintf-tests
54919         (test_u8_vsnprintf1_LDADD): Likewise.
54920         * modules/unistdio/u8-vsprintf-tests
54921         (test_u8_vsprintf1_LDADD): Likewise.
54922         * modules/unistdio/ulc-vsnprintf-tests
54923         (test_ulc_vsnprintf1_LDADD): Likewise.
54924         * modules/unistdio/ulc-vsprintf-tests
54925         (test_ulc_vsprintf1_LDADD): Likewise.
54926
54927         Fix linking of some uniconv tests on FreeBSD.
54928         * modules/uniconv/u16-conv-from-enc-tests
54929         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54930         * modules/uniconv/u16-conv-to-enc-tests
54931         (test_u16_conv_to_enc_LDADD): Likewise.
54932         * modules/uniconv/u16-strconv-from-enc-tests
54933         (test_u16_strconv_from_enc_LDADD): Likewise.
54934         * modules/uniconv/u16-strconv-to-enc-tests
54935         (test_u16_strconv_to_enc_LDADD): Likewise.
54936         * modules/uniconv/u32-conv-from-enc-tests
54937         (test_u32_conv_from_enc_LDADD): Likewise.
54938         * modules/uniconv/u32-conv-to-enc-tests
54939         (test_u32_conv_to_enc_LDADD): Likewise.
54940         * modules/uniconv/u32-strconv-from-enc-tests
54941         (test_u32_strconv_from_enc_LDADD): Likewise.
54942         * modules/uniconv/u32-strconv-to-enc-tests
54943         (test_u32_strconv_to_enc_LDADD): Likewise.
54944         * modules/uniconv/u8-conv-from-enc-tests
54945         (test_u8_conv_from_enc_LDADD): Likewise.
54946         * modules/uniconv/u8-conv-to-enc-tests
54947         (test_u8_conv_to_enc_LDADD): Likewise.
54948         * modules/uniconv/u8-strconv-from-enc-tests
54949         (test_u8_strconv_from_enc_LDADD): Likewise.
54950         * modules/uniconv/u8-strconv-to-enc-tests
54951         (test_u8_strconv_to_enc_LDADD): Likewise.
54952
54953 2007-10-22  Bruno Haible  <bruno@clisp.org>
54954
54955         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54956         size.
54957
54958 2007-10-22  Eric Blake  <ebb9@byu.net>
54959
54960         Tweak x*printf documentation.
54961         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54962         variable name and comments.
54963         Suggested by Bruno Haible.
54964
54965 2007-10-22  Bruno Haible  <bruno@clisp.org>
54966
54967         * lib/acl.c (copy_acl): Fix file name in comment.
54968
54969 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54970
54971         Fix Tru64 problem with stdbool.h.
54972         * lib/stdbool.in.h (false, true):
54973         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54974         Don't declare as an enum in this situation; it runs afoul of Tru64.
54975         Problem reported by Steven M. Schweda in
54976         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54977
54978 2007-10-22  Eric Blake  <ebb9@byu.net>
54979
54980         Also wrap vf?printf.
54981         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54982         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54983         (xvprintf, xvfprintf): New functions.
54984
54985 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54986
54987         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54988         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54989
54990         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54991         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54992
54993 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54994
54995         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54996         by Bruno Haible.
54997
54998 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54999
55000         * lib/getloadavg.c
55001         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55002         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55003
55004         * tests/test-i-ring.c: Work for C89.
55005
55006 2007-10-22  Bruno Haible  <bruno@clisp.org>
55007
55008         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55009         -1u, in preprocessor expression, so that we don't test for the bug
55010         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55011         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55012
55013 2007-10-22  Eric Blake  <ebb9@byu.net>
55014
55015         * tests/test-yesno.sh: Silence stderr during test.
55016
55017 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55018
55019         * modules/crypto/gc-camellia: New file.
55020
55021         * m4/gc-camellia.m4: New file.
55022
55023         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55024
55025         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55026
55027 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55028
55029         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55030         --help to stdout.  Reported by sms@antinode.org (Steven
55031         M. Schweda).
55032
55033 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55034
55035         * users.txt: Fix link to libksba.
55036
55037 2007-10-21  Ben Pfaff  <blp@gnu.org>
55038
55039         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55040         round.c roundf implementation that depends on floorf and ceilf to
55041         be tested unconditionally.
55042
55043 2007-10-21  Ben Pfaff  <blp@gnu.org>
55044
55045         * m4/check-libm-func.m4: Removed.
55046         * m4/check-math-lib.m4: New file.
55047         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55048         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55049         definition and lack of AC_LIBOBJ([roundf]).
55050         * m4/roundl.m4: Ditto, and similarly for roundl.
55051         * modules/round: Reference new m4 file.
55052         * modules/roundf: Ditto.
55053         * modules/roundl: Ditto.
55054         * tests/test-round2.c (main): Use ROUND instead of round.
55055         Bug report from Bruno Haible.
55056
55057 2007-10-21  Bruno Haible  <bruno@clisp.org>
55058
55059         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55060         context.
55061
55062 2007-10-21  Bruno Haible  <bruno@clisp.org>
55063
55064         * tests/test-wcwidth.c (main): Allow negative result for some control
55065         characters.
55066
55067         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55068         Needed on OSF/1 5.1.
55069
55070 2007-10-21  Bruno Haible  <bruno@clisp.org>
55071
55072         * tests/test-floorf1.c: Include isnanf.h.
55073         (main): Use isnanf() instead of isnan().
55074         * tests/test-ceilf1.c: Include isnanf.h.
55075         (main): Use isnanf() instead of isnan().
55076         * tests/test-truncf1.c: Include isnanf.h.
55077         (main): Use isnanf() instead of isnan().
55078         * tests/test-roundf1.c: Include isnanf.h.
55079         (main): Use isnanf() instead of isnan().
55080
55081 2007-10-21  Eric Blake  <ebb9@byu.net>
55082
55083         * users.txt: Update URL for m4.
55084
55085 2007-10-21  Bruno Haible  <bruno@clisp.org>
55086
55087         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55088
55089 2007-10-21  Bruno Haible  <bruno@clisp.org>
55090
55091         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55092         Git's management files if the CVS files are not present.
55093
55094 2007-10-20  Bruno Haible  <bruno@clisp.org>
55095
55096         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55097         gcc-3.4.x.
55098
55099 2007-10-20  Ben Pfaff  <blp@gnu.org>
55100
55101         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55102         implementations.
55103         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55104         * lib/round.c: New file.
55105         * lib/roundf.c: New file.
55106         * lib/roundl.c: New file.
55107         * m4/round.m4: New file.
55108         * m4/roundf.m4: New file.
55109         * m4/roundl.m4: New file.
55110         * m4/check-libm-func-m4: New file.
55111         * modules/math: Replace round, roundf, roundl related @VARS@ in
55112         math.in.h.
55113         * modules/round: New file.
55114         * modules/round-tests: New file.
55115         * modules/roundf: New file.
55116         * modules/roundf-tests: New file.
55117         * modules/roundl: New file.
55118         * modules/roundl-tests: New file.
55119         * tests/test-round1.c: New file.
55120         * tests/test-round2.c: New file.
55121         * tests/test-roundf1.c: New file.
55122         * tests/test-roundf2.c: New file.
55123         * tests/test-roundl.c: New file.
55124         * doc/functions/round.texi: Mention round module.
55125         * doc/functions/roundf.texi: Mention roundf module.
55126         * doc/functions/roundl.texi: Mention roundl module.
55127         * MODULES.html.sh: Mention new modules.
55128         Thanks to Bruno Haible for suggestions.
55129
55130 2007-10-20  Jim Meyering  <meyering@redhat.com>
55131
55132         * lib/xprintf.c: Include <config.h> unconditionally.
55133
55134         Change xprintf's license to GPL.
55135         * modules/xprintf (License): s/LGPL/GPL/, since this module
55136         depends on modules (exit and exitfail) which are GPL.
55137         Suggestion from Bruno Haible.
55138
55139         xprintf fixes.
55140         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55141         Use a clearer diagnostic.
55142         Patch from Bruno Haible.
55143
55144 2007-10-20  Bruno Haible  <bruno@clisp.org>
55145
55146         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55147         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55148         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55149
55150 2007-10-20  Bruno Haible  <bruno@clisp.org>
55151
55152         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55153         precision in the comparison result > x - 1 or similar.
55154         * tests/test-ceilf2.c (correct_result_p): Likewise.
55155         * tests/test-truncf2.c (correct_result_p): Likewise.
55156         * tests/test-trunc2.c (correct_result_p): Likewise.
55157         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55158
55159 2007-10-20  Bruno Haible  <bruno@clisp.org>
55160
55161         * modules/ceil: New file.
55162         * m4/ceil.m4: New file.
55163         * doc/functions/ceil.texi: Mention the 'ceil' module.
55164
55165 2007-10-20  Bruno Haible  <bruno@clisp.org>
55166
55167         * modules/floor: New file.
55168         * m4/floor.m4: New file.
55169         * doc/functions/floor.texi: Mention the 'floor' module.
55170
55171 2007-10-20  Bruno Haible  <bruno@clisp.org>
55172
55173         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55174         of %a.
55175         * modules/floorf-tests (Depends-on): Likewise.
55176         * modules/truncf-tests (Depends-on): Likewise.
55177         * modules/trunc-tests (Depends-on): Likewise.
55178         Reported by Ben Pfaff.
55179
55180 2007-10-19  Jim Meyering  <meyering@redhat.com>
55181
55182         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55183         Don't bother testing specific errno values.  Just test ferror.
55184
55185         New module: xprintf
55186         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55187
55188 2007-10-19  Bruno Haible  <bruno@clisp.org>
55189
55190         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55191         syntax.
55192         * modules/javaexec (Makefile.am): Likewise.
55193         * modules/relocatable-prog (Makefile.am): Likewise.
55194         Suggested by Jim Meyering.
55195
55196 2007-10-18  Bruno Haible  <bruno@clisp.org>
55197
55198         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55199         Reported by Jim Meyering.
55200
55201 2007-10-18  Eric Blake  <ebb9@byu.net>
55202
55203         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55204
55205 2007-10-18  Bruno Haible  <bruno@clisp.org>
55206
55207         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55208         the format string into writable memory. Needed in Fortify conditions.
55209
55210 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55211             Bruno Haible  <bruno@clisp.org>
55212
55213         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55214         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55215         * modules/trim (Depends-on): Add mbchar.
55216         (configure.ac): Add gl_FUNC_MBRTOWC.
55217         (Makefile.am): Augment lib_SOURCES.
55218
55219 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55220
55221         Modify glob.c to use fstatat and dirfd, to simplify it.
55222         Suggested by Eric Blake.
55223         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55224         Don't include <stdbool.h>; not used.
55225         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55226         (link_exists_p): Simplify implementation, since we can now assume
55227         dirfd and fstatat.
55228         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55229
55230 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55231
55232         * gnulib-tool (func_get_dependencies): Fix sed script to
55233         match only tests.
55234
55235 2007-10-17  Bruno Haible  <bruno@clisp.org>
55236
55237         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55238         allow locale names without encoding suffix.
55239         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55240         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55241
55242 2007-10-16  Bruno Haible  <bruno@clisp.org>
55243
55244         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55245         * lib/getgroups.c (getgroups): Likewise.
55246         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55247
55248 2007-10-16  Bruno Haible  <bruno@clisp.org>
55249
55250         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55251         * modules/malloc-posix (License): Likewise.
55252         * modules/realloc-posix (License): Likewise.
55253         * modules/calloc-posix (License): Likewise.
55254         * modules/intprops (License): Change from GPL to LGPL, with
55255         Paul Eggert's approval.
55256
55257 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55258
55259         Merge glibc changes into lib/glob.c.
55260
55261         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55262         2007-10-15 04:59:03 UTC.  Here are the changes:
55263
55264         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55265
55266         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55267
55268         * lib/glob.c: Add some branch prediction throughout.
55269
55270         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55271
55272         [BZ #5103]
55273         * lib/glob.c (glob): Recognize patterns starting \/.
55274
55275         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55276
55277         [BZ #3996]
55278         * lib/glob.c (attribute_hidden): Define if not defined.
55279         (glob): Unescape dirname, filename or username when needed and not
55280         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55281         is NULL.  Handle unescaped [ in pattern without closing ].
55282         Don't pass GLOB_CHECK down to recursive glob for directories.
55283         (__glob_pattern_type): New function.
55284         (__glob_pattern_p): Implement using __glob_pattern_type.
55285         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55286         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55287         Remove unreachable code.
55288
55289         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55290
55291         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55292         explain why there are no leaks.
55293
55294         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55295
55296         [BZ #3253]
55297         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55298         time, rather allocate increasingly bigger arrays of pointers, if
55299         possible with alloca, if too large with malloc.
55300
55301 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55302
55303         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55304         Problem reported by H.Merijn Brand in
55305         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55306         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55307         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55308
55309 2007-10-15  Bruno Haible  <bruno@clisp.org>
55310
55311         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55312         with explicit rpl_ prefix.
55313         * lib/fopen.c (fopen): Likewise.
55314         * lib/freopen.c (freopen): Likewise.
55315         * lib/iconv.c (iconv): Likewise.
55316         * lib/iconv_close.c (iconv_close): Likewise.
55317
55318 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55319
55320         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55321
55322 2007-10-15  Bruno Haible  <bruno@clisp.org>
55323
55324         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55325         <stddef.h> instead of <stdlib.h> since we only need NULL.
55326         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55327
55328 2007-10-15  Bruno Haible  <bruno@clisp.org>
55329
55330         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55331         Replace paragraph talking about LIBOBJS.
55332         Reported by Colin Watson <cjwatson@debian.org>.
55333
55334 2007-10-15  Bruno Haible  <bruno@clisp.org>
55335
55336         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55337         <stdlib.h> before using NULL.
55338
55339 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55340
55341         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55342         Reported by Albert Chin <china@thewrittenword.com>.
55343
55344 2007-10-14  Bruno Haible  <bruno@clisp.org>
55345
55346         * modules/iconv_open-utf-tests: New file.
55347         * tests/test-iconv-utf.c: New file.
55348
55349         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55350         * modules/iconv_open-utf: New file.
55351         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55352         (iconv, iconv_close): New declarations.
55353         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55354         be defined.
55355         (iconv_open): Add special handling of conversion between UTF-8 and
55356         UTF-{16,32}{BE,LE}.
55357         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55358         * lib/iconv_close.c: New file.
55359         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55360         gl_FUNC_ICONV_OPEN.
55361         (gl_FUNC_ICONV_OPEN): Use it.
55362         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55363         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55364         and REPLACE_ICONV_UTF.
55365         * modules/iconv_open (Depends-on): Add c-strcase.
55366         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55367         ICONV_CONST.
55368         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55369
55370 2007-10-13  Albert Chin  <china@thewrittenword.com>
55371             Bruno Haible  <bruno@clisp.org>
55372
55373         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55374         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55375
55376 2007-10-13  Bruno Haible  <bruno@clisp.org>
55377
55378         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55379         defined, use the ISO C99 inline semantics.
55380         * lib/argp.h (ARGP_EI): Likewise.
55381
55382 2007-10-13  Bruno Haible  <bruno@clisp.org>
55383
55384         Handle 'inline' change in gcc 4.3.0.
55385         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55386         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55387         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55388         argp_fmtstream_point): Disable 'extern' declaration if the function
55389         definition is going to be provided inline.
55390         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55391         semantics, not the ISO C99 inline semantics.
55392         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55393         'extern' declaration if the function definition is going to be provided
55394         inline.
55395         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55396         the GNU C inline semantics, not the ISO C99 inline semantics. With
55397         GCC 4.2, avoid a warning.
55398
55399 2007-10-13  Bruno Haible  <bruno@clisp.org>
55400
55401         * lib/freading.h (freading): Enable the use of __freading for
55402         glibc >= 2.7.
55403         * lib/freading.c (freading): Likewise.
55404
55405 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55406
55407         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55408         "warning: C99 inline functions are not supported; using GNU89".
55409
55410 2007-10-12  Bruno Haible  <bruno@clisp.org>
55411
55412         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55413         of 2.
55414         * tests/test-ceilf2.c: New file.
55415         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55416
55417         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55418         * modules/ceilf-tests: Update.
55419
55420 2007-10-12  Bruno Haible  <bruno@clisp.org>
55421
55422         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55423         of 2.
55424         * tests/test-floorf2.c: New file.
55425         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55426
55427         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55428         * modules/floorf-tests: Update.
55429
55430 2007-10-12  Bruno Haible  <bruno@clisp.org>
55431
55432         * tests/test-trunc2.c: New file.
55433         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55434
55435         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55436         * modules/trunc-tests: Update.
55437
55438 2007-10-12  Bruno Haible  <bruno@clisp.org>
55439
55440         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55441         of 2.
55442         * tests/test-truncf2.c: New file.
55443         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55444
55445         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55446         * modules/truncf-tests: Update.
55447
55448 2007-10-11  Eric Blake  <ebb9@byu.net>
55449
55450         Don't claim strerror is broken on Interix.
55451         * doc/functions/strerror.texi (strerror): Known broken systems are
55452         now Solaris 8, and not Interix.
55453         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55454         Interix on cross-compile.
55455         Reported by Martin Koeppe in
55456         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55457
55458 2007-10-11  Bruno Haible  <bruno@clisp.org>
55459
55460         * modules/i-ring-tests: New file.
55461         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55462         instead of assert.
55463
55464 2007-10-11  Bruno Haible  <bruno@clisp.org>
55465
55466         * modules/filenamecat-tests: New file.
55467         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55468         * lib/filenamecat.c: Remove test code.
55469
55470 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55471
55472         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55473
55474         * lib/strerror.c: Include <string.h> always, to test interface,
55475         and to remove the need for the dummy.
55476         Include intprops.h to compute width instead of doing it ourselves
55477         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55478         (strerror): Define it to return NULL if there's no system strerror.
55479         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55480         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55481         ancient pre-strerror Unix systems well any more.  Saying "unknown
55482         system error" is enough.
55483         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55484         simpler strerror.c implementation.
55485         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55486         Simplify the tests to reflect the simpler strerror implementation.
55487         * modules/strerror (Depends-on): Add intprops.
55488
55489 2007-10-09  Eric Blake  <ebb9@byu.net>
55490
55491         Silence test-fpending.
55492         * modules/fpending-tests (Files): Add wrapper script.
55493         * tests/test-fpending.sh: New file.
55494
55495 2007-10-09  Bruno Haible  <bruno@clisp.org>
55496
55497         * MODULES.html.sh (func_module): Don't create a hyperlink for
55498         function names like 'printf_frexp'.
55499         (Misc): Add crc, memxor.
55500         (Characteristics of floating types): New section.
55501         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55502         isnanf-nolibm, signbit, trunc, truncf, truncl.
55503         (Enhancements for ISO C 99 functions): New subsection Input/output.
55504         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55505         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55506         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55507         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55508         (Enhancements for POSIX:2001 functions): Add chdir-long.
55509         (File system functions): Add areadlink, chdir-safer, read-file.
55510         Remove cycle-check.
55511         (File system as inode set): New section.
55512         (Date and time): Add gethrxtime.
55513         (Multithreading): Add openmp.
55514         (Internationalization functions): Add localename.
55515         (Unicode string functions): Add unistr/u*-mbsnlen.
55516         (Support for maintaining and releasing projects): Add git-version-gen.
55517         (Lone files): Remove directories.
55518
55519 2007-10-08  Ben Pfaff  <blp@gnu.org>
55520
55521         * lib/xmalloca.h: Fix typo in comment.
55522
55523 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55524
55525         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55526         when avoiding problems with integer overflow.  Use a portable test
55527         instead.
55528
55529 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55530
55531         * modules/dummy (License): Change to LGPLv2+.
55532         * modules/float (License): Likewise
55533         * modules/realloc (License): Likewise
55534         * modules/stdlib (License): Likewise
55535
55536 2007-10-07  Bruno Haible  <bruno@clisp.org>
55537
55538         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55539         * floor.c (TWO_MANT_DIG): Likewise.
55540         * ceil.c (TWO_MANT_DIG): Likewise.
55541         Reported by Ben Pfaff.
55542
55543 2007-10-07  Bruno Haible  <bruno@clisp.org>
55544
55545         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55546         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55547         * lib/frexp.c (FUNC): Likewise.
55548         * lib/printf-frexp.h (printf_frexp): Likewise.
55549         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55550         * lib/printf-frexp.c (FUNC): Likewise.
55551         Suggested by Jim Meyering.
55552
55553 2007-10-07  Jim Meyering  <meyering@redhat.com>
55554
55555         Make xnanosleep's integer overflow test more robust.
55556         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55557         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55558
55559 2007-10-07  Bruno Haible  <bruno@clisp.org>
55560
55561         * NEWS: Mention the license change.
55562
55563         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55564         abbreviations in the modules files.
55565
55566         Change copyright notice from GPLv2+ to GPLv3+.
55567         * README: Change copyright notice.
55568         * MODULES.html.sh: Likewise.
55569         * build-aux/bootstrap.conf: Likewise.
55570         * build-aux/config.libpath: Likewise.
55571         * build-aux/csharpcomp.sh.in: Likewise.
55572         * build-aux/csharpexec.sh.in: Likewise.
55573         * build-aux/install-reloc: Likewise.
55574         * build-aux/javacomp.sh.in: Likewise.
55575         * build-aux/javaexec.sh.in: Likewise.
55576         * build-aux/ldd.sh.in: Likewise.
55577         * build-aux/reloc-ldflags: Likewise.
55578         * build-aux/relocatable.sh.in: Likewise.
55579         * build-aux/x-to-1.in: Likewise.
55580         * check-module: Likewise.
55581         * config/srclistvars.sh: Likewise.
55582         * gnulib-tool: Likewise.
55583         * lib/acl-internal.h: Likewise.
55584         * lib/acl.c: Likewise.
55585         * lib/acl.h: Likewise.
55586         * lib/acl_entries.c: Likewise.
55587         * lib/areadlink-with-size.c: Likewise.
55588         * lib/areadlink.c: Likewise.
55589         * lib/areadlink.h: Likewise.
55590         * lib/argmatch.c: Likewise.
55591         * lib/argmatch.h: Likewise.
55592         * lib/argp-ba.c: Likewise.
55593         * lib/argp-eexst.c: Likewise.
55594         * lib/argp-fmtstream.c: Likewise.
55595         * lib/argp-fmtstream.h: Likewise.
55596         * lib/argp-fs-xinl.c: Likewise.
55597         * lib/argp-help.c: Likewise.
55598         * lib/argp-namefrob.h: Likewise.
55599         * lib/argp-parse.c: Likewise.
55600         * lib/argp-pin.c: Likewise.
55601         * lib/argp-pv.c: Likewise.
55602         * lib/argp-pvh.c: Likewise.
55603         * lib/argp-xinl.c: Likewise.
55604         * lib/argp.h: Likewise.
55605         * lib/at-func.c: Likewise.
55606         * lib/atanl.c: Likewise.
55607         * lib/backupfile.c: Likewise.
55608         * lib/backupfile.h: Likewise.
55609         * lib/basename.c: Likewise.
55610         * lib/binary-io.h: Likewise.
55611         * lib/byteswap.in.h: Likewise.
55612         * lib/c-stack.c: Likewise.
55613         * lib/c-stack.h: Likewise.
55614         * lib/c-strcasestr.c: Likewise.
55615         * lib/c-strcasestr.h: Likewise.
55616         * lib/c-strstr.c: Likewise.
55617         * lib/c-strstr.h: Likewise.
55618         * lib/c-strtod.c: Likewise.
55619         * lib/calloc.c: Likewise.
55620         * lib/canon-host.c: Likewise.
55621         * lib/canon-host.h: Likewise.
55622         * lib/canonicalize-lgpl.c: Likewise.
55623         * lib/canonicalize.c: Likewise.
55624         * lib/canonicalize.h: Likewise.
55625         * lib/ceil.c: Likewise.
55626         * lib/ceilf.c: Likewise.
55627         * lib/ceill.c: Likewise.
55628         * lib/chdir-long.c: Likewise.
55629         * lib/chdir-long.h: Likewise.
55630         * lib/chdir-safer.c: Likewise.
55631         * lib/chdir-safer.h: Likewise.
55632         * lib/chown.c: Likewise.
55633         * lib/classpath.c: Likewise.
55634         * lib/classpath.h: Likewise.
55635         * lib/clean-temp.c: Likewise.
55636         * lib/clean-temp.h: Likewise.
55637         * lib/cloexec.c: Likewise.
55638         * lib/close-stream.c: Likewise.
55639         * lib/closein.c: Likewise.
55640         * lib/closein.h: Likewise.
55641         * lib/closeout.c: Likewise.
55642         * lib/closeout.h: Likewise.
55643         * lib/concat-filename.c: Likewise.
55644         * lib/copy-file.c: Likewise.
55645         * lib/copy-file.h: Likewise.
55646         * lib/count-one-bits.h: Likewise.
55647         * lib/crc.c: Likewise.
55648         * lib/crc.h: Likewise.
55649         * lib/creat-safer.c: Likewise.
55650         * lib/csharpcomp.c: Likewise.
55651         * lib/csharpcomp.h: Likewise.
55652         * lib/csharpexec.c: Likewise.
55653         * lib/csharpexec.h: Likewise.
55654         * lib/cycle-check.c: Likewise.
55655         * lib/cycle-check.h: Likewise.
55656         * lib/diacrit.c: Likewise.
55657         * lib/diacrit.h: Likewise.
55658         * lib/diffseq.h: Likewise.
55659         * lib/dirchownmod.c: Likewise.
55660         * lib/dirent.in.h: Likewise.
55661         * lib/dirfd.c: Likewise.
55662         * lib/dirfd.h: Likewise.
55663         * lib/dirname.c: Likewise.
55664         * lib/dirname.h: Likewise.
55665         * lib/dummy.c: Likewise.
55666         * lib/dup-safer.c: Likewise.
55667         * lib/dup2.c: Likewise.
55668         * lib/eealloc.h: Likewise.
55669         * lib/error.c: Likewise.
55670         * lib/error.h: Likewise.
55671         * lib/euidaccess.c: Likewise.
55672         * lib/exclude.c: Likewise.
55673         * lib/exclude.h: Likewise.
55674         * lib/execute.c: Likewise.
55675         * lib/execute.h: Likewise.
55676         * lib/exitfail.c: Likewise.
55677         * lib/exitfail.h: Likewise.
55678         * lib/expl.c: Likewise.
55679         * lib/fatal-signal.c: Likewise.
55680         * lib/fatal-signal.h: Likewise.
55681         * lib/fbufmode.c: Likewise.
55682         * lib/fbufmode.h: Likewise.
55683         * lib/fchdir.c: Likewise.
55684         * lib/fchmodat.c: Likewise.
55685         * lib/fchownat.c: Likewise.
55686         * lib/fcntl--.h: Likewise.
55687         * lib/fcntl-safer.h: Likewise.
55688         * lib/fcntl.in.h: Likewise.
55689         * lib/fd-safer.c: Likewise.
55690         * lib/fflush.c: Likewise.
55691         * lib/file-has-acl.c: Likewise.
55692         * lib/file-set.c: Likewise.
55693         * lib/file-type.c: Likewise.
55694         * lib/file-type.h: Likewise.
55695         * lib/fileblocks.c: Likewise.
55696         * lib/filemode.c: Likewise.
55697         * lib/filemode.h: Likewise.
55698         * lib/filename.h: Likewise.
55699         * lib/filenamecat.c: Likewise.
55700         * lib/filenamecat.h: Likewise.
55701         * lib/findprog.c: Likewise.
55702         * lib/findprog.h: Likewise.
55703         * lib/float.in.h: Likewise.
55704         * lib/floor.c: Likewise.
55705         * lib/floorf.c: Likewise.
55706         * lib/floorl.c: Likewise.
55707         * lib/fopen-safer.c: Likewise.
55708         * lib/fopen.c: Likewise.
55709         * lib/fpending.c: Likewise.
55710         * lib/fpending.h: Likewise.
55711         * lib/fprintf.c: Likewise.
55712         * lib/fprintftime.h: Likewise.
55713         * lib/fpucw.h: Likewise.
55714         * lib/fpurge.c: Likewise.
55715         * lib/fpurge.h: Likewise.
55716         * lib/freadable.c: Likewise.
55717         * lib/freadable.h: Likewise.
55718         * lib/freadahead.c: Likewise.
55719         * lib/freadahead.h: Likewise.
55720         * lib/freading.c: Likewise.
55721         * lib/freading.h: Likewise.
55722         * lib/free.c: Likewise.
55723         * lib/freopen.c: Likewise.
55724         * lib/frexp.c: Likewise.
55725         * lib/frexpl.c: Likewise.
55726         * lib/fseek.c: Likewise.
55727         * lib/fseterr.c: Likewise.
55728         * lib/fseterr.h: Likewise.
55729         * lib/fstatat.c: Likewise.
55730         * lib/fstrcmp.c: Likewise.
55731         * lib/fstrcmp.h: Likewise.
55732         * lib/fsusage.c: Likewise.
55733         * lib/fsusage.h: Likewise.
55734         * lib/ftell.c: Likewise.
55735         * lib/ftello.c: Likewise.
55736         * lib/fts-cycle.c: Likewise.
55737         * lib/fts.c: Likewise.
55738         * lib/fts_.h: Likewise.
55739         * lib/full-read.c: Likewise.
55740         * lib/full-read.h: Likewise.
55741         * lib/full-write.c: Likewise.
55742         * lib/full-write.h: Likewise.
55743         * lib/fwritable.c: Likewise.
55744         * lib/fwritable.h: Likewise.
55745         * lib/fwriteerror.c: Likewise.
55746         * lib/fwriteerror.h: Likewise.
55747         * lib/fwriting.c: Likewise.
55748         * lib/fwriting.h: Likewise.
55749         * lib/gcd.c: Likewise.
55750         * lib/gcd.h: Likewise.
55751         * lib/getcwd.c: Likewise.
55752         * lib/getdate.h: Likewise.
55753         * lib/getdate.y: Likewise.
55754         * lib/getdomainname.c: Likewise.
55755         * lib/getdomainname.h: Likewise.
55756         * lib/getgroups.c: Likewise.
55757         * lib/gethostname.c: Likewise.
55758         * lib/gethrxtime.c: Likewise.
55759         * lib/gethrxtime.h: Likewise.
55760         * lib/getloadavg.c: Likewise.
55761         * lib/getndelim2.c: Likewise.
55762         * lib/getndelim2.h: Likewise.
55763         * lib/getnline.c: Likewise.
55764         * lib/getnline.h: Likewise.
55765         * lib/getopt.c: Likewise.
55766         * lib/getopt.in.h: Likewise.
55767         * lib/getopt1.c: Likewise.
55768         * lib/getopt_int.h: Likewise.
55769         * lib/getpagesize.h: Likewise.
55770         * lib/getsubopt.c: Likewise.
55771         * lib/gettime.c: Likewise.
55772         * lib/getugroups.c: Likewise.
55773         * lib/getugroups.h: Likewise.
55774         * lib/getusershell.c: Likewise.
55775         * lib/gl_anyavltree_list1.h: Likewise.
55776         * lib/gl_anyavltree_list2.h: Likewise.
55777         * lib/gl_anyhash_list1.h: Likewise.
55778         * lib/gl_anyhash_list2.h: Likewise.
55779         * lib/gl_anylinked_list1.h: Likewise.
55780         * lib/gl_anylinked_list2.h: Likewise.
55781         * lib/gl_anyrbtree_list1.h: Likewise.
55782         * lib/gl_anyrbtree_list2.h: Likewise.
55783         * lib/gl_anytree_list1.h: Likewise.
55784         * lib/gl_anytree_list2.h: Likewise.
55785         * lib/gl_anytree_oset.h: Likewise.
55786         * lib/gl_anytreehash_list1.h: Likewise.
55787         * lib/gl_anytreehash_list2.h: Likewise.
55788         * lib/gl_array_list.c: Likewise.
55789         * lib/gl_array_list.h: Likewise.
55790         * lib/gl_array_oset.c: Likewise.
55791         * lib/gl_array_oset.h: Likewise.
55792         * lib/gl_avltree_list.c: Likewise.
55793         * lib/gl_avltree_list.h: Likewise.
55794         * lib/gl_avltree_oset.c: Likewise.
55795         * lib/gl_avltree_oset.h: Likewise.
55796         * lib/gl_avltreehash_list.c: Likewise.
55797         * lib/gl_avltreehash_list.h: Likewise.
55798         * lib/gl_carray_list.c: Likewise.
55799         * lib/gl_carray_list.h: Likewise.
55800         * lib/gl_linked_list.c: Likewise.
55801         * lib/gl_linked_list.h: Likewise.
55802         * lib/gl_linkedhash_list.c: Likewise.
55803         * lib/gl_linkedhash_list.h: Likewise.
55804         * lib/gl_list.c: Likewise.
55805         * lib/gl_list.h: Likewise.
55806         * lib/gl_oset.c: Likewise.
55807         * lib/gl_oset.h: Likewise.
55808         * lib/gl_rbtree_list.c: Likewise.
55809         * lib/gl_rbtree_list.h: Likewise.
55810         * lib/gl_rbtree_oset.c: Likewise.
55811         * lib/gl_rbtree_oset.h: Likewise.
55812         * lib/gl_rbtreehash_list.c: Likewise.
55813         * lib/gl_rbtreehash_list.h: Likewise.
55814         * lib/gl_sublist.c: Likewise.
55815         * lib/gl_sublist.h: Likewise.
55816         * lib/group-member.c: Likewise.
55817         * lib/group-member.h: Likewise.
55818         * lib/hard-locale.c: Likewise.
55819         * lib/hard-locale.h: Likewise.
55820         * lib/hash-pjw.c: Likewise.
55821         * lib/hash-pjw.h: Likewise.
55822         * lib/hash-triple.c: Likewise.
55823         * lib/hash.c: Likewise.
55824         * lib/hash.h: Likewise.
55825         * lib/human.c: Likewise.
55826         * lib/human.h: Likewise.
55827         * lib/i-ring.c: Likewise.
55828         * lib/i-ring.h: Likewise.
55829         * lib/idcache.c: Likewise.
55830         * lib/imaxabs.c: Likewise.
55831         * lib/imaxdiv.c: Likewise.
55832         * lib/inet_pton.c: Likewise.
55833         * lib/inet_pton.h: Likewise.
55834         * lib/intprops.h: Likewise.
55835         * lib/inttostr.c: Likewise.
55836         * lib/inttostr.h: Likewise.
55837         * lib/inttypes.in.h: Likewise.
55838         * lib/isapipe.c: Likewise.
55839         * lib/isdir.c: Likewise.
55840         * lib/isnan.c: Likewise.
55841         * lib/isnan.h: Likewise.
55842         * lib/isnanf.c: Likewise.
55843         * lib/isnanf.h: Likewise.
55844         * lib/isnanl-nolibm.h: Likewise.
55845         * lib/isnanl.c: Likewise.
55846         * lib/isnanl.h: Likewise.
55847         * lib/javacomp.c: Likewise.
55848         * lib/javacomp.h: Likewise.
55849         * lib/javaexec.c: Likewise.
55850         * lib/javaexec.h: Likewise.
55851         * lib/javaversion.c: Likewise.
55852         * lib/javaversion.h: Likewise.
55853         * lib/javaversion.java: Likewise.
55854         * lib/lbrkprop.h: Likewise.
55855         * lib/lchmod.h: Likewise.
55856         * lib/lchown.c: Likewise.
55857         * lib/ldexpl.c: Likewise.
55858         * lib/linebreak.c: Likewise.
55859         * lib/linebreak.h: Likewise.
55860         * lib/linebuffer.c: Likewise.
55861         * lib/linebuffer.h: Likewise.
55862         * lib/locale.in.h: Likewise.
55863         * lib/logl.c: Likewise.
55864         * lib/long-options.c: Likewise.
55865         * lib/long-options.h: Likewise.
55866         * lib/lstat.c: Likewise.
55867         * lib/lstat.h: Likewise.
55868         * lib/math.in.h: Likewise.
55869         * lib/mbchar.c: Likewise.
55870         * lib/mbchar.h: Likewise.
55871         * lib/mbfile.h: Likewise.
55872         * lib/mbiter.h: Likewise.
55873         * lib/mbscasecmp.c: Likewise.
55874         * lib/mbscasestr.c: Likewise.
55875         * lib/mbschr.c: Likewise.
55876         * lib/mbscspn.c: Likewise.
55877         * lib/mbslen.c: Likewise.
55878         * lib/mbsncasecmp.c: Likewise.
55879         * lib/mbsnlen.c: Likewise.
55880         * lib/mbspbrk.c: Likewise.
55881         * lib/mbspcasecmp.c: Likewise.
55882         * lib/mbsrchr.c: Likewise.
55883         * lib/mbssep.c: Likewise.
55884         * lib/mbsspn.c: Likewise.
55885         * lib/mbsstr.c: Likewise.
55886         * lib/mbstok_r.c: Likewise.
55887         * lib/mbswidth.c: Likewise.
55888         * lib/mbswidth.h: Likewise.
55889         * lib/mbuiter.h: Likewise.
55890         * lib/memcasecmp.c: Likewise.
55891         * lib/memcasecmp.h: Likewise.
55892         * lib/memchr.c: Likewise.
55893         * lib/memcmp.c: Likewise.
55894         * lib/memcoll.c: Likewise.
55895         * lib/memcoll.h: Likewise.
55896         * lib/memcpy.c: Likewise.
55897         * lib/memrchr.c: Likewise.
55898         * lib/mkancesdirs.c: Likewise.
55899         * lib/mkdir-p.c: Likewise.
55900         * lib/mkdir-p.h: Likewise.
55901         * lib/mkdir.c: Likewise.
55902         * lib/mkdirat.c: Likewise.
55903         * lib/mkdtemp.c: Likewise.
55904         * lib/mkstemp-safer.c: Likewise.
55905         * lib/mkstemp.c: Likewise.
55906         * lib/modechange.c: Likewise.
55907         * lib/modechange.h: Likewise.
55908         * lib/mountlist.c: Likewise.
55909         * lib/mountlist.h: Likewise.
55910         * lib/mpsort.c: Likewise.
55911         * lib/nanosleep.c: Likewise.
55912         * lib/obstack.c: Likewise.
55913         * lib/obstack.h: Likewise.
55914         * lib/open-safer.c: Likewise.
55915         * lib/open.c: Likewise.
55916         * lib/openat-die.c: Likewise.
55917         * lib/openat-priv.h: Likewise.
55918         * lib/openat-proc.c: Likewise.
55919         * lib/openat.c: Likewise.
55920         * lib/openat.h: Likewise.
55921         * lib/pagealign_alloc.c: Likewise.
55922         * lib/pagealign_alloc.h: Likewise.
55923         * lib/physmem.c: Likewise.
55924         * lib/physmem.h: Likewise.
55925         * lib/pipe-safer.c: Likewise.
55926         * lib/pipe.c: Likewise.
55927         * lib/pipe.h: Likewise.
55928         * lib/posixtm.c: Likewise.
55929         * lib/posixtm.h: Likewise.
55930         * lib/posixver.c: Likewise.
55931         * lib/printf-frexp.c: Likewise.
55932         * lib/printf-frexp.h: Likewise.
55933         * lib/printf-frexpl.c: Likewise.
55934         * lib/printf-frexpl.h: Likewise.
55935         * lib/printf.c: Likewise.
55936         * lib/progname.c: Likewise.
55937         * lib/progname.h: Likewise.
55938         * lib/progreloc.c: Likewise.
55939         * lib/putenv.c: Likewise.
55940         * lib/quote.c: Likewise.
55941         * lib/quote.h: Likewise.
55942         * lib/quotearg.c: Likewise.
55943         * lib/quotearg.h: Likewise.
55944         * lib/raise.c: Likewise.
55945         * lib/readline.c: Likewise.
55946         * lib/readline.h: Likewise.
55947         * lib/readlink.c: Likewise.
55948         * lib/readtokens.c: Likewise.
55949         * lib/readtokens.h: Likewise.
55950         * lib/readtokens0.c: Likewise.
55951         * lib/readtokens0.h: Likewise.
55952         * lib/readutmp.c: Likewise.
55953         * lib/readutmp.h: Likewise.
55954         * lib/realloc.c: Likewise.
55955         * lib/relocwrapper.c: Likewise.
55956         * lib/rename-dest-slash.c: Likewise.
55957         * lib/rename.c: Likewise.
55958         * lib/rmdir.c: Likewise.
55959         * lib/rpmatch.c: Likewise.
55960         * lib/safe-read.c: Likewise.
55961         * lib/safe-read.h: Likewise.
55962         * lib/safe-write.c: Likewise.
55963         * lib/safe-write.h: Likewise.
55964         * lib/same-inode.h: Likewise.
55965         * lib/same.c: Likewise.
55966         * lib/same.h: Likewise.
55967         * lib/save-cwd.c: Likewise.
55968         * lib/save-cwd.h: Likewise.
55969         * lib/savedir.c: Likewise.
55970         * lib/savedir.h: Likewise.
55971         * lib/savewd.c: Likewise.
55972         * lib/savewd.h: Likewise.
55973         * lib/search.in.h: Likewise.
55974         * lib/setenv.c: Likewise.
55975         * lib/setenv.h: Likewise.
55976         * lib/settime.c: Likewise.
55977         * lib/sh-quote.c: Likewise.
55978         * lib/sh-quote.h: Likewise.
55979         * lib/sig2str.c: Likewise.
55980         * lib/sig2str.h: Likewise.
55981         * lib/signal.in.h: Likewise.
55982         * lib/signbitd.c: Likewise.
55983         * lib/signbitf.c: Likewise.
55984         * lib/signbitl.c: Likewise.
55985         * lib/sigprocmask.c: Likewise.
55986         * lib/sincosl.c: Likewise.
55987         * lib/sleep.c: Likewise.
55988         * lib/sprintf.c: Likewise.
55989         * lib/sqrtl.c: Likewise.
55990         * lib/stat-time.h: Likewise.
55991         * lib/stdio--.h: Likewise.
55992         * lib/stdio-safer.h: Likewise.
55993         * lib/stdlib--.h: Likewise.
55994         * lib/stdlib-safer.h: Likewise.
55995         * lib/stdlib.in.h: Likewise.
55996         * lib/stpcpy.c: Likewise.
55997         * lib/stpncpy.c: Likewise.
55998         * lib/strchrnul.c: Likewise.
55999         * lib/strcspn.c: Likewise.
56000         * lib/strerror.c: Likewise.
56001         * lib/strftime.c: Likewise.
56002         * lib/strftime.h: Likewise.
56003         * lib/striconveh.c: Likewise.
56004         * lib/striconveh.h: Likewise.
56005         * lib/striconveha.c: Likewise.
56006         * lib/striconveha.h: Likewise.
56007         * lib/stripslash.c: Likewise.
56008         * lib/strnlen1.c: Likewise.
56009         * lib/strnlen1.h: Likewise.
56010         * lib/strtod.c: Likewise.
56011         * lib/strtoimax.c: Likewise.
56012         * lib/strtok_r.c: Likewise.
56013         * lib/strtol.c: Likewise.
56014         * lib/strtoll.c: Likewise.
56015         * lib/strtoul.c: Likewise.
56016         * lib/strtoull.c: Likewise.
56017         * lib/sysexits.in.h: Likewise.
56018         * lib/tempname.c: Likewise.
56019         * lib/tempname.h: Likewise.
56020         * lib/timespec.h: Likewise.
56021         * lib/tls.c: Likewise.
56022         * lib/tls.h: Likewise.
56023         * lib/tmpdir.c: Likewise.
56024         * lib/tmpdir.h: Likewise.
56025         * lib/tmpfile-safer.c: Likewise.
56026         * lib/tmpfile.c: Likewise.
56027         * lib/trigl.c: Likewise.
56028         * lib/trigl.h: Likewise.
56029         * lib/trim.c: Likewise.
56030         * lib/trim.h: Likewise.
56031         * lib/trunc.c: Likewise.
56032         * lib/truncf.c: Likewise.
56033         * lib/truncl.c: Likewise.
56034         * lib/tsearch.c: Likewise.
56035         * lib/unicodeio.c: Likewise.
56036         * lib/unicodeio.h: Likewise.
56037         * lib/unistd--.h: Likewise.
56038         * lib/unistd-safer.h: Likewise.
56039         * lib/unistdio/ulc-fprintf.c: Likewise.
56040         * lib/unistdio/ulc-vfprintf.c: Likewise.
56041         * lib/unlinkdir.c: Likewise.
56042         * lib/unlinkdir.h: Likewise.
56043         * lib/unlocked-io.h: Likewise.
56044         * lib/unsetenv.c: Likewise.
56045         * lib/userspec.c: Likewise.
56046         * lib/utime.c: Likewise.
56047         * lib/utimecmp.c: Likewise.
56048         * lib/utimecmp.h: Likewise.
56049         * lib/utimens.c: Likewise.
56050         * lib/verify.h: Likewise.
56051         * lib/verror.c: Likewise.
56052         * lib/verror.h: Likewise.
56053         * lib/version-etc-fsf.c: Likewise.
56054         * lib/version-etc.c: Likewise.
56055         * lib/version-etc.h: Likewise.
56056         * lib/vfprintf.c: Likewise.
56057         * lib/vprintf.c: Likewise.
56058         * lib/vsprintf.c: Likewise.
56059         * lib/w32spawn.h: Likewise.
56060         * lib/wait-process.c: Likewise.
56061         * lib/wait-process.h: Likewise.
56062         * lib/wcwidth.c: Likewise.
56063         * lib/write-any-file.c: Likewise.
56064         * lib/xalloc-die.c: Likewise.
56065         * lib/xalloc.h: Likewise.
56066         * lib/xasprintf.c: Likewise.
56067         * lib/xgetcwd.c: Likewise.
56068         * lib/xgetcwd.h: Likewise.
56069         * lib/xgetdomainname.c: Likewise.
56070         * lib/xgetdomainname.h: Likewise.
56071         * lib/xgethostname.c: Likewise.
56072         * lib/xmalloc.c: Likewise.
56073         * lib/xmalloca.c: Likewise.
56074         * lib/xmalloca.h: Likewise.
56075         * lib/xmemcoll.c: Likewise.
56076         * lib/xnanosleep.c: Likewise.
56077         * lib/xreadlink.c: Likewise.
56078         * lib/xreadlink.h: Likewise.
56079         * lib/xsetenv.c: Likewise.
56080         * lib/xsetenv.h: Likewise.
56081         * lib/xstriconv.c: Likewise.
56082         * lib/xstriconv.h: Likewise.
56083         * lib/xstrndup.c: Likewise.
56084         * lib/xstrndup.h: Likewise.
56085         * lib/xstrtod.c: Likewise.
56086         * lib/xstrtod.h: Likewise.
56087         * lib/xstrtol-error.c: Likewise.
56088         * lib/xstrtol.c: Likewise.
56089         * lib/xstrtol.h: Likewise.
56090         * lib/xtime.h: Likewise.
56091         * lib/xvasprintf.c: Likewise.
56092         * lib/xvasprintf.h: Likewise.
56093         * lib/yesno.c: Likewise.
56094         * lib/yesno.h: Likewise.
56095         * posix-modules: Likewise.
56096         * tests/test-alloca-opt.c: Likewise.
56097         * tests/test-arcfour.c: Likewise.
56098         * tests/test-arctwo.c: Likewise.
56099         * tests/test-argmatch.c: Likewise.
56100         * tests/test-argp-2.sh: Likewise.
56101         * tests/test-argp.c: Likewise.
56102         * tests/test-arpa_inet.c: Likewise.
56103         * tests/test-array_list.c: Likewise.
56104         * tests/test-array_oset.c: Likewise.
56105         * tests/test-atexit.c: Likewise.
56106         * tests/test-avltree_list.c: Likewise.
56107         * tests/test-avltree_oset.c: Likewise.
56108         * tests/test-avltreehash_list.c: Likewise.
56109         * tests/test-base64.c: Likewise.
56110         * tests/test-binary-io.c: Likewise.
56111         * tests/test-byteswap.c: Likewise.
56112         * tests/test-c-ctype.c: Likewise.
56113         * tests/test-c-strcasecmp.c: Likewise.
56114         * tests/test-c-strcasestr.c: Likewise.
56115         * tests/test-c-strncasecmp.c: Likewise.
56116         * tests/test-c-strstr.c: Likewise.
56117         * tests/test-canonicalize-lgpl.c: Likewise.
56118         * tests/test-canonicalize.c: Likewise.
56119         * tests/test-carray_list.c: Likewise.
56120         * tests/test-ceilf.c: Likewise.
56121         * tests/test-ceill.c: Likewise.
56122         * tests/test-count-one-bits.c: Likewise.
56123         * tests/test-crc.c: Likewise.
56124         * tests/test-dirname.c: Likewise.
56125         * tests/test-fbufmode.c: Likewise.
56126         * tests/test-fcntl.c: Likewise.
56127         * tests/test-fflush.c: Likewise.
56128         * tests/test-floorf.c: Likewise.
56129         * tests/test-floorl.c: Likewise.
56130         * tests/test-fopen.c: Likewise.
56131         * tests/test-fprintf-posix.c: Likewise.
56132         * tests/test-fprintf-posix.h: Likewise.
56133         * tests/test-fpurge.c: Likewise.
56134         * tests/test-freadable.c: Likewise.
56135         * tests/test-freadahead.c: Likewise.
56136         * tests/test-freading.c: Likewise.
56137         * tests/test-freopen.c: Likewise.
56138         * tests/test-frexp.c: Likewise.
56139         * tests/test-frexpl.c: Likewise.
56140         * tests/test-fseek.c: Likewise.
56141         * tests/test-fseeko.c: Likewise.
56142         * tests/test-fseterr.c: Likewise.
56143         * tests/test-fstrcmp.c: Likewise.
56144         * tests/test-ftell.c: Likewise.
56145         * tests/test-ftello.c: Likewise.
56146         * tests/test-fwritable.c: Likewise.
56147         * tests/test-fwriting.c: Likewise.
56148         * tests/test-getaddrinfo.c: Likewise.
56149         * tests/test-getpass.c: Likewise.
56150         * tests/test-gettimeofday.c: Likewise.
56151         * tests/test-hmac-md5.c: Likewise.
56152         * tests/test-hmac-sha1.c: Likewise.
56153         * tests/test-iconv.c: Likewise.
56154         * tests/test-iconvme.c: Likewise.
56155         * tests/test-inttypes.c: Likewise.
56156         * tests/test-isnan.c: Likewise.
56157         * tests/test-isnanf.c: Likewise.
56158         * tests/test-isnanl-nolibm.c: Likewise.
56159         * tests/test-isnanl.c: Likewise.
56160         * tests/test-isnanl.h: Likewise.
56161         * tests/test-ldexpl.c: Likewise.
56162         * tests/test-linked_list.c: Likewise.
56163         * tests/test-linkedhash_list.c: Likewise.
56164         * tests/test-locale.c: Likewise.
56165         * tests/test-localename.c: Likewise.
56166         * tests/test-lock.c: Likewise.
56167         * tests/test-lseek.c: Likewise.
56168         * tests/test-malloca.c: Likewise.
56169         * tests/test-math.c: Likewise.
56170         * tests/test-mbscasecmp.c: Likewise.
56171         * tests/test-mbscasestr1.c: Likewise.
56172         * tests/test-mbscasestr2.c: Likewise.
56173         * tests/test-mbscasestr3.c: Likewise.
56174         * tests/test-mbscasestr4.c: Likewise.
56175         * tests/test-mbschr.c: Likewise.
56176         * tests/test-mbscspn.c: Likewise.
56177         * tests/test-mbsncasecmp.c: Likewise.
56178         * tests/test-mbspbrk.c: Likewise.
56179         * tests/test-mbspcasecmp.c: Likewise.
56180         * tests/test-mbsrchr.c: Likewise.
56181         * tests/test-mbsspn.c: Likewise.
56182         * tests/test-mbsstr1.c: Likewise.
56183         * tests/test-mbsstr2.c: Likewise.
56184         * tests/test-mbsstr3.c: Likewise.
56185         * tests/test-md5.c: Likewise.
56186         * tests/test-memmem.c: Likewise.
56187         * tests/test-netinet_in.c: Likewise.
56188         * tests/test-open.c: Likewise.
56189         * tests/test-printf-frexp.c: Likewise.
56190         * tests/test-printf-frexpl.c: Likewise.
56191         * tests/test-printf-posix.c: Likewise.
56192         * tests/test-printf-posix.h: Likewise.
56193         * tests/test-rbtree_list.c: Likewise.
56194         * tests/test-rbtree_oset.c: Likewise.
56195         * tests/test-rbtreehash_list.c: Likewise.
56196         * tests/test-read-file.c: Likewise.
56197         * tests/test-rijndael.c: Likewise.
56198         * tests/test-search.c: Likewise.
56199         * tests/test-signbit.c: Likewise.
56200         * tests/test-sleep.c: Likewise.
56201         * tests/test-snprintf-posix.c: Likewise.
56202         * tests/test-snprintf-posix.h: Likewise.
56203         * tests/test-snprintf.c: Likewise.
56204         * tests/test-sprintf-posix.c: Likewise.
56205         * tests/test-sprintf-posix.h: Likewise.
56206         * tests/test-stat-time.c: Likewise.
56207         * tests/test-stdbool.c: Likewise.
56208         * tests/test-stdint.c: Likewise.
56209         * tests/test-stdio.c: Likewise.
56210         * tests/test-stdlib.c: Likewise.
56211         * tests/test-stpncpy.c: Likewise.
56212         * tests/test-strcasestr.c: Likewise.
56213         * tests/test-striconv.c: Likewise.
56214         * tests/test-striconveh.c: Likewise.
56215         * tests/test-striconveha.c: Likewise.
56216         * tests/test-string.c: Likewise.
56217         * tests/test-sys_select.c: Likewise.
56218         * tests/test-sys_socket.c: Likewise.
56219         * tests/test-sys_stat.c: Likewise.
56220         * tests/test-sys_time.c: Likewise.
56221         * tests/test-sysexits.c: Likewise.
56222         * tests/test-time.c: Likewise.
56223         * tests/test-tls.c: Likewise.
56224         * tests/test-trunc.c: Likewise.
56225         * tests/test-truncf.c: Likewise.
56226         * tests/test-truncl.c: Likewise.
56227         * tests/test-unistd.c: Likewise.
56228         * tests/test-vasnprintf-posix.c: Likewise.
56229         * tests/test-vasnprintf-posix2.c: Likewise.
56230         * tests/test-vasnprintf.c: Likewise.
56231         * tests/test-vasprintf-posix.c: Likewise.
56232         * tests/test-vasprintf.c: Likewise.
56233         * tests/test-verify.c: Likewise.
56234         * tests/test-vfprintf-posix.c: Likewise.
56235         * tests/test-vprintf-posix.c: Likewise.
56236         * tests/test-vsnprintf-posix.c: Likewise.
56237         * tests/test-vsnprintf.c: Likewise.
56238         * tests/test-vsprintf-posix.c: Likewise.
56239         * tests/test-wchar.c: Likewise.
56240         * tests/test-wctype.c: Likewise.
56241         * tests/test-wcwidth.c: Likewise.
56242         * tests/test-xstrtol.c: Likewise.
56243         * tests/test-xvasprintf.c: Likewise.
56244         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56245         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56246         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56247         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56248         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56249         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56250         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56251         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56252         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56253         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56254         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56255         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56256         * tests/uniname/test-uninames.c: Likewise.
56257         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56258         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56259         * tests/unistdio/test-u16-printf1.h: Likewise.
56260         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56261         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56262         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56263         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56264         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56265         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56266         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56267         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56268         * tests/unistdio/test-u32-printf1.h: Likewise.
56269         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56270         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56271         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56272         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56273         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56274         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56275         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56276         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56277         * tests/unistdio/test-u8-printf1.h: Likewise.
56278         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56279         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56280         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56281         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56282         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56283         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56284         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56285         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56286         * tests/unistdio/test-ulc-printf1.h: Likewise.
56287         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56288         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56289         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56290         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56291         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56292         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56293         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56294         * tests/uniwidth/test-u16-width.c: Likewise.
56295         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56296         * tests/uniwidth/test-u32-width.c: Likewise.
56297         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56298         * tests/uniwidth/test-u8-width.c: Likewise.
56299         * tests/uniwidth/test-uc_width.c: Likewise.
56300         * config/srclist-update: Likewise.
56301         (fixlicense): Update to GPLv3+.
56302
56303         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56304         * tests/test-tsearch.c: Change copyright notice.
56305
56306         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56307         * lib/c-strcaseeq.h: Change copyright notice.
56308         * lib/streq.h: Likewise.
56309         * lib/uniconv.h: Likewise.
56310         * lib/uniconv/u-conv-from-enc.h: Likewise.
56311         * lib/uniconv/u-conv-to-enc.h: Likewise.
56312         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56313         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56314         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56315         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56316         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56317         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56318         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56319         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56320         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56321         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56322         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56323         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56324         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56325         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56326         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56327         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56328         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56329         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56330         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56331         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56332         * lib/uniname.h: Likewise.
56333         * lib/uniname/uniname.c: Likewise.
56334         * lib/unistdio.h: Likewise.
56335         * lib/unistdio/u-asnprintf.h: Likewise.
56336         * lib/unistdio/u-asprintf.h: Likewise.
56337         * lib/unistdio/u-printf-args.c: Likewise.
56338         * lib/unistdio/u-printf-args.h: Likewise.
56339         * lib/unistdio/u-printf-parse.h: Likewise.
56340         * lib/unistdio/u-snprintf.h: Likewise.
56341         * lib/unistdio/u-sprintf.h: Likewise.
56342         * lib/unistdio/u-vasprintf.h: Likewise.
56343         * lib/unistdio/u-vsnprintf.h: Likewise.
56344         * lib/unistdio/u-vsprintf.h: Likewise.
56345         * lib/unistdio/u16-asnprintf.c: Likewise.
56346         * lib/unistdio/u16-asprintf.c: Likewise.
56347         * lib/unistdio/u16-printf-parse.c: Likewise.
56348         * lib/unistdio/u16-snprintf.c: Likewise.
56349         * lib/unistdio/u16-sprintf.c: Likewise.
56350         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56351         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56352         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56353         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56354         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56355         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56356         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56357         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56358         * lib/unistdio/u16-vasnprintf.c: Likewise.
56359         * lib/unistdio/u16-vasprintf.c: Likewise.
56360         * lib/unistdio/u16-vsnprintf.c: Likewise.
56361         * lib/unistdio/u16-vsprintf.c: Likewise.
56362         * lib/unistdio/u32-asnprintf.c: Likewise.
56363         * lib/unistdio/u32-asprintf.c: Likewise.
56364         * lib/unistdio/u32-printf-parse.c: Likewise.
56365         * lib/unistdio/u32-snprintf.c: Likewise.
56366         * lib/unistdio/u32-sprintf.c: Likewise.
56367         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56368         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56369         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56370         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56371         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56372         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56373         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56374         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56375         * lib/unistdio/u32-vasnprintf.c: Likewise.
56376         * lib/unistdio/u32-vasprintf.c: Likewise.
56377         * lib/unistdio/u32-vsnprintf.c: Likewise.
56378         * lib/unistdio/u32-vsprintf.c: Likewise.
56379         * lib/unistdio/u8-asnprintf.c: Likewise.
56380         * lib/unistdio/u8-asprintf.c: Likewise.
56381         * lib/unistdio/u8-printf-parse.c: Likewise.
56382         * lib/unistdio/u8-snprintf.c: Likewise.
56383         * lib/unistdio/u8-sprintf.c: Likewise.
56384         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56385         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56386         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56387         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56388         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56389         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56390         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56391         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56392         * lib/unistdio/u8-vasnprintf.c: Likewise.
56393         * lib/unistdio/u8-vasprintf.c: Likewise.
56394         * lib/unistdio/u8-vsnprintf.c: Likewise.
56395         * lib/unistdio/u8-vsprintf.c: Likewise.
56396         * lib/unistdio/ulc-asnprintf.c: Likewise.
56397         * lib/unistdio/ulc-asprintf.c: Likewise.
56398         * lib/unistdio/ulc-printf-parse.c: Likewise.
56399         * lib/unistdio/ulc-snprintf.c: Likewise.
56400         * lib/unistdio/ulc-sprintf.c: Likewise.
56401         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56402         * lib/unistdio/ulc-vasprintf.c: Likewise.
56403         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56404         * lib/unistdio/ulc-vsprintf.c: Likewise.
56405         * lib/unistr.h: Likewise.
56406         * lib/unistr/u-cpy-alloc.h: Likewise.
56407         * lib/unistr/u-cpy.h: Likewise.
56408         * lib/unistr/u-endswith.h: Likewise.
56409         * lib/unistr/u-move.h: Likewise.
56410         * lib/unistr/u-set.h: Likewise.
56411         * lib/unistr/u-startswith.h: Likewise.
56412         * lib/unistr/u-stpcpy.h: Likewise.
56413         * lib/unistr/u-stpncpy.h: Likewise.
56414         * lib/unistr/u-strcat.h: Likewise.
56415         * lib/unistr/u-strcpy.h: Likewise.
56416         * lib/unistr/u-strcspn.h: Likewise.
56417         * lib/unistr/u-strdup.h: Likewise.
56418         * lib/unistr/u-strlen.h: Likewise.
56419         * lib/unistr/u-strncat.h: Likewise.
56420         * lib/unistr/u-strncpy.h: Likewise.
56421         * lib/unistr/u-strnlen.h: Likewise.
56422         * lib/unistr/u-strpbrk.h: Likewise.
56423         * lib/unistr/u-strspn.h: Likewise.
56424         * lib/unistr/u-strstr.h: Likewise.
56425         * lib/unistr/u-strtok.h: Likewise.
56426         * lib/unistr/u16-check.c: Likewise.
56427         * lib/unistr/u16-chr.c: Likewise.
56428         * lib/unistr/u16-cmp.c: Likewise.
56429         * lib/unistr/u16-cpy-alloc.c: Likewise.
56430         * lib/unistr/u16-cpy.c: Likewise.
56431         * lib/unistr/u16-endswith.c: Likewise.
56432         * lib/unistr/u16-mblen.c: Likewise.
56433         * lib/unistr/u16-mbsnlen.c: Likewise.
56434         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56435         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56436         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56437         * lib/unistr/u16-mbtouc.c: Likewise.
56438         * lib/unistr/u16-mbtoucr.c: Likewise.
56439         * lib/unistr/u16-move.c: Likewise.
56440         * lib/unistr/u16-next.c: Likewise.
56441         * lib/unistr/u16-prev.c: Likewise.
56442         * lib/unistr/u16-set.c: Likewise.
56443         * lib/unistr/u16-startswith.c: Likewise.
56444         * lib/unistr/u16-stpcpy.c: Likewise.
56445         * lib/unistr/u16-stpncpy.c: Likewise.
56446         * lib/unistr/u16-strcat.c: Likewise.
56447         * lib/unistr/u16-strchr.c: Likewise.
56448         * lib/unistr/u16-strcmp.c: Likewise.
56449         * lib/unistr/u16-strcpy.c: Likewise.
56450         * lib/unistr/u16-strcspn.c: Likewise.
56451         * lib/unistr/u16-strdup.c: Likewise.
56452         * lib/unistr/u16-strlen.c: Likewise.
56453         * lib/unistr/u16-strmblen.c: Likewise.
56454         * lib/unistr/u16-strmbtouc.c: Likewise.
56455         * lib/unistr/u16-strncat.c: Likewise.
56456         * lib/unistr/u16-strncmp.c: Likewise.
56457         * lib/unistr/u16-strncpy.c: Likewise.
56458         * lib/unistr/u16-strnlen.c: Likewise.
56459         * lib/unistr/u16-strpbrk.c: Likewise.
56460         * lib/unistr/u16-strrchr.c: Likewise.
56461         * lib/unistr/u16-strspn.c: Likewise.
56462         * lib/unistr/u16-strstr.c: Likewise.
56463         * lib/unistr/u16-strtok.c: Likewise.
56464         * lib/unistr/u16-to-u32.c: Likewise.
56465         * lib/unistr/u16-to-u8.c: Likewise.
56466         * lib/unistr/u16-uctomb-aux.c: Likewise.
56467         * lib/unistr/u16-uctomb.c: Likewise.
56468         * lib/unistr/u32-check.c: Likewise.
56469         * lib/unistr/u32-chr.c: Likewise.
56470         * lib/unistr/u32-cmp.c: Likewise.
56471         * lib/unistr/u32-cpy-alloc.c: Likewise.
56472         * lib/unistr/u32-cpy.c: Likewise.
56473         * lib/unistr/u32-endswith.c: Likewise.
56474         * lib/unistr/u32-mblen.c: Likewise.
56475         * lib/unistr/u32-mbsnlen.c: Likewise.
56476         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56477         * lib/unistr/u32-mbtouc.c: Likewise.
56478         * lib/unistr/u32-mbtoucr.c: Likewise.
56479         * lib/unistr/u32-move.c: Likewise.
56480         * lib/unistr/u32-next.c: Likewise.
56481         * lib/unistr/u32-prev.c: Likewise.
56482         * lib/unistr/u32-set.c: Likewise.
56483         * lib/unistr/u32-startswith.c: Likewise.
56484         * lib/unistr/u32-stpcpy.c: Likewise.
56485         * lib/unistr/u32-stpncpy.c: Likewise.
56486         * lib/unistr/u32-strcat.c: Likewise.
56487         * lib/unistr/u32-strchr.c: Likewise.
56488         * lib/unistr/u32-strcmp.c: Likewise.
56489         * lib/unistr/u32-strcpy.c: Likewise.
56490         * lib/unistr/u32-strcspn.c: Likewise.
56491         * lib/unistr/u32-strdup.c: Likewise.
56492         * lib/unistr/u32-strlen.c: Likewise.
56493         * lib/unistr/u32-strmblen.c: Likewise.
56494         * lib/unistr/u32-strmbtouc.c: Likewise.
56495         * lib/unistr/u32-strncat.c: Likewise.
56496         * lib/unistr/u32-strncmp.c: Likewise.
56497         * lib/unistr/u32-strncpy.c: Likewise.
56498         * lib/unistr/u32-strnlen.c: Likewise.
56499         * lib/unistr/u32-strpbrk.c: Likewise.
56500         * lib/unistr/u32-strrchr.c: Likewise.
56501         * lib/unistr/u32-strspn.c: Likewise.
56502         * lib/unistr/u32-strstr.c: Likewise.
56503         * lib/unistr/u32-strtok.c: Likewise.
56504         * lib/unistr/u32-to-u16.c: Likewise.
56505         * lib/unistr/u32-to-u8.c: Likewise.
56506         * lib/unistr/u32-uctomb.c: Likewise.
56507         * lib/unistr/u8-check.c: Likewise.
56508         * lib/unistr/u8-chr.c: Likewise.
56509         * lib/unistr/u8-cmp.c: Likewise.
56510         * lib/unistr/u8-cpy-alloc.c: Likewise.
56511         * lib/unistr/u8-cpy.c: Likewise.
56512         * lib/unistr/u8-endswith.c: Likewise.
56513         * lib/unistr/u8-mblen.c: Likewise.
56514         * lib/unistr/u8-mbsnlen.c: Likewise.
56515         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56516         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56517         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56518         * lib/unistr/u8-mbtouc.c: Likewise.
56519         * lib/unistr/u8-mbtoucr.c: Likewise.
56520         * lib/unistr/u8-move.c: Likewise.
56521         * lib/unistr/u8-next.c: Likewise.
56522         * lib/unistr/u8-prev.c: Likewise.
56523         * lib/unistr/u8-set.c: Likewise.
56524         * lib/unistr/u8-startswith.c: Likewise.
56525         * lib/unistr/u8-stpcpy.c: Likewise.
56526         * lib/unistr/u8-stpncpy.c: Likewise.
56527         * lib/unistr/u8-strcat.c: Likewise.
56528         * lib/unistr/u8-strchr.c: Likewise.
56529         * lib/unistr/u8-strcmp.c: Likewise.
56530         * lib/unistr/u8-strcpy.c: Likewise.
56531         * lib/unistr/u8-strcspn.c: Likewise.
56532         * lib/unistr/u8-strdup.c: Likewise.
56533         * lib/unistr/u8-strlen.c: Likewise.
56534         * lib/unistr/u8-strmblen.c: Likewise.
56535         * lib/unistr/u8-strmbtouc.c: Likewise.
56536         * lib/unistr/u8-strncat.c: Likewise.
56537         * lib/unistr/u8-strncmp.c: Likewise.
56538         * lib/unistr/u8-strncpy.c: Likewise.
56539         * lib/unistr/u8-strnlen.c: Likewise.
56540         * lib/unistr/u8-strpbrk.c: Likewise.
56541         * lib/unistr/u8-strrchr.c: Likewise.
56542         * lib/unistr/u8-strspn.c: Likewise.
56543         * lib/unistr/u8-strstr.c: Likewise.
56544         * lib/unistr/u8-strtok.c: Likewise.
56545         * lib/unistr/u8-to-u16.c: Likewise.
56546         * lib/unistr/u8-to-u32.c: Likewise.
56547         * lib/unistr/u8-uctomb-aux.c: Likewise.
56548         * lib/unistr/u8-uctomb.c: Likewise.
56549         * lib/unitypes.h: Likewise.
56550         * lib/uniwidth.h: Likewise.
56551         * lib/uniwidth/cjk.h: Likewise.
56552         * lib/uniwidth/u16-strwidth.c: Likewise.
56553         * lib/uniwidth/u16-width.c: Likewise.
56554         * lib/uniwidth/u32-strwidth.c: Likewise.
56555         * lib/uniwidth/u32-width.c: Likewise.
56556         * lib/uniwidth/u8-strwidth.c: Likewise.
56557         * lib/uniwidth/u8-width.c: Likewise.
56558         * lib/uniwidth/width.c: Likewise.
56559
56560 2007-10-07  Bruno Haible  <bruno@clisp.org>
56561
56562         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56563         The file is still under LGPL (see modules/inttypes).
56564
56565 2007-10-06  Bruno Haible  <bruno@clisp.org>
56566
56567         * modules/trunc (Dependencies): Add 'extensions'.
56568         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56569         Reported by Ben Pfaff <blp@gnu.org>.
56570
56571 2007-10-06  Bruno Haible  <bruno@clisp.org>
56572
56573         * modules/freopen-tests: New file.
56574         * tests/test-freopen.c: New file.
56575
56576         * modules/fopen-tests: New file.
56577         * tests/test-fopen.c: New file.
56578
56579         * modules/fopen: New file.
56580         * lib/fopen.c: New file.
56581         * m4/fopen.m4: New file.
56582         * modules/freopen: New file.
56583         * lib/freopen.c: New file.
56584         * m4/freopen.m4: New file.
56585         * lib/stdio.in.h (fopen, freopen): New declarations.
56586         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56587         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56588         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56589         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56590         * doc/functions/fopen.texi: Mention the 'fopen' module.
56591         * doc/functions/freopen.texi: Mention the 'freopen' module.
56592
56593 2007-10-06  Bruno Haible  <bruno@clisp.org>
56594
56595         * modules/open-tests: New file.
56596         * tests/test-open.c: New file.
56597
56598         * modules/open: New file.
56599         * lib/open.c: New file.
56600         * m4/open.m4: New file.
56601         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56602         lib/open.c does.
56603         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56604         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56605         macros.
56606         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56607         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56608         REPLACE_OPEN.
56609         * doc/functions/open.texi: Mention the 'open' module.
56610
56611 2007-10-04  Bruno Haible  <bruno@clisp.org>
56612
56613         * modules/ceill-tests: New file.
56614         * tests/test-ceill.c: New file.
56615
56616         * modules/ceill: New file.
56617         * lib/ceill.c: Replace entire file.
56618         * m4/ceill.m4: New file.
56619         * lib/math.in.h (ceill): Replace declaration.
56620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56621         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56622         * doc/functions/ceill.texi: Mention the 'ceill' module.
56623         * modules/mathl (Files): Remove lib/ceill.c.
56624         (Depends-on): Add ceill.
56625
56626 2007-10-04  Bruno Haible  <bruno@clisp.org>
56627
56628         * modules/ceilf-tests: New file.
56629         * tests/test-ceilf.c: New file.
56630
56631         * modules/ceilf: New file.
56632         * lib/ceil.c: New file.
56633         * lib/ceilf.c: New file.
56634         * m4/ceilf.m4: New file.
56635         * lib/math.in.h (ceilf): New declaration.
56636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56637         HAVE_DECL_CEILF.
56638         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56639         HAVE_DECL_CEILF.
56640         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56641
56642 2007-10-04  Bruno Haible  <bruno@clisp.org>
56643
56644         * modules/floorl-tests: New file.
56645         * tests/test-floorl.c: New file.
56646
56647         * modules/floorl: New file.
56648         * lib/floorl.c: Replace entire file.
56649         * m4/floorl.m4: New file.
56650         * lib/math.in.h (floorl): Replace declaration.
56651         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56652         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56653         * doc/functions/floorl.texi: Mention the 'floorl' module.
56654         * modules/mathl (Files): Remove lib/floorl.c.
56655         (Depends-on): Add floorl.
56656
56657 2007-10-04  Bruno Haible  <bruno@clisp.org>
56658
56659         * modules/floorf-tests: New file.
56660         * tests/test-floorf.c: New file.
56661
56662         * modules/floorf: New file.
56663         * lib/floor.c: New file.
56664         * lib/floorf.c: New file.
56665         * m4/floorf.m4: New file.
56666         * lib/math.in.h (floorf): New declaration.
56667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56668         HAVE_DECL_FLOORF.
56669         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56670         HAVE_DECL_FLOORF.
56671         * doc/functions/floorf.texi: Mention the 'floorf' module.
56672
56673 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56674             Bruno Haible  <bruno@clisp.org>
56675
56676         Advertise for the Git server instead of the CVS server.
56677         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56678         repository instead of the CVS one.
56679         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56680         about all VCS systems generically.
56681         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56682
56683 2007-10-04  Bruno Haible  <bruno@clisp.org>
56684
56685         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56686         means.
56687         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56688
56689 2007-10-04  Bruno Haible  <bruno@clisp.org>
56690
56691         * modules/truncl-tests: New file.
56692         * tests/test-truncl.c: New file.
56693
56694         * modules/truncl: New file.
56695         * lib/truncl.c: New file.
56696         * m4/truncl.m4: New file.
56697         * lib/math.in.h (truncl): New declaration.
56698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56699         HAVE_DECL_TRUNCL.
56700         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56701         HAVE_DECL_TRUNCL.
56702         * doc/functions/truncl.texi: Mention the 'truncl' module.
56703
56704 2007-10-04  Bruno Haible  <bruno@clisp.org>
56705
56706         * modules/truncf-tests: New file.
56707         * tests/test-truncf.c: New file.
56708
56709         * modules/truncf: New file.
56710         * lib/trunc.c: Make paramerizable through USE_* macros.
56711         * lib/truncf.c: New file.
56712         * m4/truncf.m4: New file.
56713         * lib/math.in.h (truncf): New declaration.
56714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56715         HAVE_DECL_TRUNCF.
56716         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56717         HAVE_DECL_TRUNCF.
56718         * doc/functions/truncf.texi: Mention the 'truncf' module.
56719
56720 2007-10-03  Bruno Haible  <bruno@clisp.org>
56721
56722         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56723         augmentation also for tests modules.
56724         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56725         * modules/atexit-tests (Makefile.am): Likewise.
56726         * modules/binary-io-tests (Makefile.am): Likewise.
56727         * modules/c-strcase-tests (Makefile.am): Likewise.
56728         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56729         * modules/canonicalize-tests (Makefile.am): Likewise.
56730         * modules/closein-tests (Makefile.am): Likewise.
56731         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56732         * modules/freadahead-tests (Makefile.am): Likewise.
56733         * modules/fseek-tests (Makefile.am): Likewise.
56734         * modules/fseeko-tests (Makefile.am): Likewise.
56735         * modules/ftell-tests (Makefile.am): Likewise.
56736         * modules/ftello-tests (Makefile.am): Likewise.
56737         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56738         * modules/isnanl-tests (Makefile.am): Likewise.
56739         * modules/lseek-tests (Makefile.am): Likewise.
56740         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56741         * modules/mbscasestr-tests (Makefile.am): Likewise.
56742         * modules/mbschr-tests (Makefile.am): Likewise.
56743         * modules/mbscspn-tests (Makefile.am): Likewise.
56744         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56745         * modules/mbspbrk-tests (Makefile.am): Likewise.
56746         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56747         * modules/mbsrchr-tests (Makefile.am): Likewise.
56748         * modules/mbsspn-tests (Makefile.am): Likewise.
56749         * modules/mbsstr-tests (Makefile.am): Likewise.
56750         * modules/printf-posix-tests (Makefile.am): Likewise.
56751         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56752         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56753         * modules/tsearch-tests (Makefile.am): Likewise.
56754         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56755         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56756         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56757         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56758         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56759         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56760         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56761         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56762         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56763         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56764         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56765         * modules/xstrtol-tests (Makefile.am): Likewise.
56766         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56767         * modules/yesno-tests (Makefile.am): Likewise.
56768
56769 2007-10-03  Bruno Haible  <bruno@clisp.org>
56770
56771         * modules/trunc-tests: New file.
56772         * tests/test-trunc.c: New file.
56773
56774         * modules/trunc: New file.
56775         * lib/trunc.c: New file.
56776         * m4/trunc.m4: New file.
56777         * lib/math.in.h (trunc): New declaration.
56778         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56779         HAVE_DECL_TRUNC.
56780         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56781         HAVE_DECL_TRUNC.
56782         * doc/functions/trunc.texi: Mention the 'trunc' module.
56783
56784 2007-10-03  Bruno Haible  <bruno@clisp.org>
56785
56786         * tests/test-fpending.c: New file, mostly copied
56787         from coreutils/lib/t-fpending.c.
56788         * modules/fpending-tests: New file.
56789
56790 2007-10-03  Bruno Haible  <bruno@clisp.org>
56791
56792         Port the stdio extensions to QNX (untested).
56793         * lib/fseterr.c (fseterr): Add support for QNX.
56794         * lib/fbufmode.c (fbufmode): Likewise.
56795         * lib/freadable.c (freadable): Likewise.
56796         * lib/fwritable.c (fwritable): Likewise.
56797         * lib/freading.c (freading): Likewise.
56798         * lib/fwriting.c (fwriting): Likewise.
56799         * lib/freadahead.c (freadahed): Likewise.
56800         * lib/fpurge.c (fpurge): Likewise.
56801         * lib/fseeko.c (rpl_fseeko): Likewise.
56802
56803 2007-10-03  Bruno Haible  <bruno@clisp.org>
56804             Jim Meyering  <jim@meyering.net>
56805             Eric Blake  <ebb9@byu.net>
56806
56807         * doc/relocatable.texi: Use @command instead of @program.
56808
56809 2007-10-02  Jim Meyering  <jim@meyering.net>
56810
56811         Perform one more "_.h" -> ".in.h" substitution.
56812         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56813         instead of unistd_.h here, too.
56814
56815 2007-10-01  Bruno Haible  <bruno@clisp.org>
56816
56817         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56818         Needed for the alloca-opt module.
56819
56820 2007-09-30  Bruno Haible  <bruno@clisp.org>
56821
56822         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56823         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56824         alloca_.h.
56825         * lib/argz.in.h: Renamed from lib/argz_.h.
56826         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56827         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56828         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56829         byteswap_.h.
56830         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56831         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56832         dirent_.h.
56833         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56834         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56835         fcntl_.h.
56836         * lib/float.in.h: Renamed from lib/float_.h.
56837         * modules/float (Files, Makefile.am): Use float.in.h instead of
56838         float_.h.
56839         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56840         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56841         fnmatch_.h.
56842         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56843         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56844         getopt_.h.
56845         * lib/glob.in.h: Renamed from lib/glob_.h.
56846         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56847         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56848         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56849         iconv_.h.
56850         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56851         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56852         inttypes_.h.
56853         * lib/locale.in.h: Renamed from lib/locale_.h.
56854         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56855         locale_.h.
56856         * lib/math.in.h: Renamed from lib/math_.h.
56857         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56858         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56859         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56860         of netinet_in_.h. Add dependency.
56861         * lib/poll.in.h: Renamed from lib/poll_.h.
56862         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56863         * lib/search.in.h: Renamed from lib/search_.h.
56864         * modules/search (Files, Makefile.am): Use search.in.h instead of
56865         search_.h.
56866         * lib/signal.in.h: Renamed from lib/signal_.h.
56867         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56868         _signal.h.
56869         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56870         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56871         stdbool_.h.
56872         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56873         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56874         stdint_.h.
56875         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56876         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56877         stdio_.h.
56878         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56879         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56880         stdlib_.h.
56881         * lib/string.in.h: Renamed from lib/string_.h.
56882         * modules/string (Files, Makefile.am): Use string.in.h instead of
56883         string_.h.
56884         * doc/gnulib-tool.texi (Initial import): Update.
56885         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56886         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56887         of sys_select_.h. Add dependency.
56888         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56889         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56890         of sys_socket_.h.
56891         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56892         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56893         sys_stat_.h.
56894         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56895         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56896         sys_time_.h.
56897         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56898         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56899         sysexits_.h.
56900         * lib/time.in.h: Renamed from lib/time_.h.
56901         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56902         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56903         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56904         unistd_.h.
56905         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56906         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56907         wchar_.h.
56908         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56909         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56910         wctype_.h.
56911         * build-aux/bootstrap (slurp): Update.
56912         * lib/.cppi-disable: Update.
56913
56914 2007-09-30  Bruno Haible  <bruno@clisp.org>
56915
56916         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56917         Needed on BeOS.
56918
56919 2007-09-30  Bruno Haible  <bruno@clisp.org>
56920
56921         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56922
56923 2007-09-29  Bruno Haible  <bruno@clisp.org>
56924
56925         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56926
56927 2007-09-29  Bruno Haible  <bruno@clisp.org>
56928
56929         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56930         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56931         * build-aux/install-reloc: Compile also areadlink.c.
56932         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56933
56934 2007-09-29  Bruno Haible  <bruno@clisp.org>
56935
56936         * gnulib-tool (func_emit_initmacro_done): Indentation.
56937
56938 2007-09-29  Bruno Haible  <bruno@clisp.org>
56939
56940         * README: Add CVS checkout update instructions.
56941         Info from Bob Proulx <bob@proulx.com>.
56942
56943 2007-09-28  Eric Blake  <ebb9@byu.net>
56944
56945         Provide move-if-change.
56946         * build-aux/move-if-change: New file, based on best practice
56947         rather than any canonical upstream location.
56948
56949 2007-09-28  Jim Meyering  <jim@meyering.net>
56950
56951         Fix canonicalize loop-detection corner case.
56952         Do not attempt to stat the symlink values stored via seen_triple.
56953         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56954         on linux-2.6.18, (but not 2.6.22).
56955         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56956         triple_compare.  The former compares dev,ino,filename, while the latter
56957         would actually stat dirname(filename) when dev and ino were equal.
56958         * lib/hash-triple.c: Install <string.h>.
56959         (STREQ): Define.
56960         (triple_compare_ino_str): New function.
56961         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56962
56963 2007-09-28  Eric Blake  <ebb9@byu.net>
56964
56965         Enforce that AC_REPLACE_FUNCS files exist.
56966         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56967         override check for typos.
56968
56969         Fix test-closein on Solaris 10.
56970         * tests/test-closein.c (main): Don't assume stdin can be inherited
56971         closed on all systems.
56972         * tests/test-closein.sh: Likewise.
56973         Reported by Piotr Tarnowski.
56974
56975 2007-09-28  Jim Meyering  <jim@meyering.net>
56976
56977         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56978
56979 2007-09-27  Jim Meyering  <jim@meyering.net>
56980
56981         canonicalize: Avoid a false-positive cycle failure.
56982         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56983         Sort.  Remove cycle-check.
56984         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56985         not cycle-check.h.
56986         (seen_triple): New function.
56987         (canonicalize_filename_mode): Use it instead of cycle-check.
56988         * tests/test-canonicalize.c: Add a test for this bug.
56989         * tests/test-canonicalize.sh: Set up and run the test.
56990
56991         New module, file-set, from coreutils.
56992         * modules/file-set: Define it.
56993         * lib/file-set.c, lib/file-set.h: Implement.
56994
56995         New module, hash-triple, from coreutils.
56996         * modules/hash-triple: Define it.
56997         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56998
56999 2007-09-25  Eric Blake  <ebb9@byu.net>
57000
57001         Fix strerror on Interix.
57002         * lib/string_.h (strerror): Declare replacement.
57003         * doc/functions/strerror.texi (strerror): Document the Interix
57004         shortcoming.
57005         * modules/string (Makefile.am): Support new hooks.
57006         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57007         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57008         gl_FUNC_STRERROR_SEPARATE.
57009         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57010         * lib/strerror.c (rpl_strerror): Provide replacement.
57011         * modules/strerror (Depends-on): Add string.
57012         (configure.ac): Detect use of module.
57013         * tests/test-strerror.c: New file.
57014         * modules/strerror-tests: New test module.
57015         * modules/argp (Depends-on): Add strerror.
57016         * modules/error (Depends-on): Likewise.
57017         Reported by Martin Koeppe.
57018
57019 2007-09-24  Bruno Haible  <bruno@clisp.org>
57020
57021         * README: Update git instructions.
57022
57023 2007-09-24  Eric Blake  <ebb9@byu.net>
57024
57025         Revert fpending breakage from 2007-09-08.
57026         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57027         __fpending.c.
57028
57029 2007-09-24  Jim Meyering  <jim@meyering.net>
57030
57031         filenamecat.c: Add a test.
57032         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57033         showing how the function works when DIR is the empty string.
57034
57035 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57036
57037         * tests/test-canonicalize.sh: Turn on executable bit.
57038
57039 2007-09-19  Eric Blake  <ebb9@byu.net>
57040
57041         * README: Update CVS instructions.
57042
57043 2007-09-18  Bruno Haible  <bruno@clisp.org>
57044
57045         * modules/areadlink: New file.
57046         * lib/areadlink.h (areadlink): New declaration.
57047         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57048
57049 2007-09-17  Jim Meyering  <jim@meyering.net>
57050
57051         * lib/savewd.c (ESTALE) [!defined]: Define.
57052         Reported to be required on Interix by Martin Koeppe.
57053
57054 2007-09-17  Bruno Haible  <bruno@clisp.org>
57055
57056         * gnulib-tool (func_version): Use $version.
57057
57058 2007-09-16  Bruno Haible  <bruno@clisp.org>
57059
57060         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57061         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57062         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57063         Reported by Greg Schafer <gschafer@zip.com.au>.
57064
57065 2007-09-15  Bruno Haible  <bruno@clisp.org>
57066
57067         * gnulib-tool (sed): Try a little harder to make bash understand the
57068         alias.
57069         Reported by Bruce Korb <bruce.korb@gmail.com>.
57070
57071 2007-09-13  Eric Blake  <ebb9@byu.net>
57072
57073         * ChangeLog: Remove conflict markers.
57074
57075 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57076
57077         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57078         Reported by Bruno Haible <bruno@clisp.org>.
57079
57080 2007-09-12  Bruno Haible  <bruno@clisp.org>
57081
57082         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57083         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57084         is not defined.
57085
57086 2007-09-12  Eric Blake  <ebb9@byu.net>
57087
57088         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57089         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57090         Autoconf definition.
57091         * modules/euidaccess (Depends-on): Add extensions, for
57092         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57093         * modules/fnmatch (Depends-on): Likewise.
57094         * modules/getaddrinfo (Depends-on): Likewise.
57095         * modules/getdelim (Depends-on): Likewise.
57096         * modules/getline (Depends-on): Likewise.
57097         * modules/getsubopt (Depends-on): Likewise.
57098         * modules/gettext (Depends-on): Likewise.
57099         * modules/group-member (Depends-on): Likewise.
57100         * modules/mbchar (Depends-on): Likewise.
57101         * modules/memmem (Depends-on): Likewise.
57102         * modules/mempcpy (Depends-on): Likewise.
57103         * modules/memrchr (Depends-on): Likewise.
57104         * modules/pagealign_alloc (Depends-on): Likewise.
57105         * modules/readutmp (Depends-on): Likewise.
57106         * modules/stpcpy (Depends-on): Likewise.
57107         * modules/stpncpy (Depends-on): Likewise.
57108         * modules/strchrnul (Depends-on): Likewise.
57109         * modules/strndup (Depends-on): Likewise.
57110         * modules/strsep (Depends-on): Likewise.
57111         * modules/strverscmp (Depends-on): Likewise.
57112         * modules/vasprintf (Depends-on): Likewise.
57113         * modules/wcwidth (Depends-on): Likewise.
57114         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57115         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57116         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57117         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57118         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57119         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57120         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57121         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57122         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57123         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57124         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57125         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57126         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57127         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57128         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57129         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57130         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57131         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57132         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57133         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57134         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57135         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57136         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57137         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57138         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57139         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57140         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57141         so that lock.m4 can be used in gettext without extensions module.
57142
57143 2007-09-11  Bruno Haible  <bruno@clisp.org>
57144
57145         * m4/isc-posix.m4: Remove file.
57146         Suggested by Eric Blake.
57147
57148 2007-09-11  Eric Blake  <ebb9@byu.net>
57149
57150         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57151
57152 2007-09-10  Bruno Haible  <bruno@clisp.org>
57153
57154         * posix-modules: Fix typo in error message.
57155         Reported by Matt <mkraai@beckman.com>.
57156
57157 2007-09-09  Bruno Haible  <bruno@clisp.org>
57158
57159         * doc/functions/getdelim.texi: Update list of platforms lacking the
57160         function.
57161         * doc/functions/getline.texi: Likewise.
57162
57163 2007-09-09  Jim Meyering  <jim@meyering.net>
57164
57165         * lib/hash.c (hash_initialize): Detect calloc failure.
57166         Reported by Bruno Haible.
57167
57168 2007-09-09  Bruno Haible  <bruno@clisp.org>
57169
57170         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57171         malloc or realloc fails.
57172
57173 2007-09-09  Bruno Haible  <bruno@clisp.org>
57174
57175         * modules/getcwd (Depends-on): Add malloc-posix.
57176         * modules/glob (Depends-on): Likewise.
57177         * modules/putenv (Depends-on): Likewise.
57178         * modules/strdup (Depends-on): Likewise.
57179         * modules/getdelim (Depends-on): Add realloc-posix.
57180         * modules/read-file (Depends-on): Likewise.
57181
57182 2007-09-09  Bruno Haible  <bruno@clisp.org>
57183
57184         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57185         (gl_FUNC_MALLOC_POSIX): Require it.
57186         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57187         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57188         * modules/realloc (Files): Add m4/malloc.m4.
57189         * modules/calloc (Files): Likewise.
57190
57191 2007-09-09  Bruno Haible  <bruno@clisp.org>
57192
57193         * modules/malloc-posix: New file.
57194         * modules/malloc (Depends-on): Add malloc-posix.
57195         * lib/malloc.c: Include errno.h.
57196         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57197         and a POSIX-compatible malloc into a single function. Set ENOMEM
57198         when returning NULL.
57199         * m4/malloc.m4: New file.
57200         * doc/functions/malloc.texi: Mention the malloc-posix module.
57201         * lib/stdlib_.h (malloc): New declaration.
57202         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57203         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57204         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57205         and HAVE_MALLOC_POSIX.
57206
57207 2007-09-09  Bruno Haible  <bruno@clisp.org>
57208
57209         * modules/realloc-posix: New file.
57210         * modules/realloc (Depends-on): Add realloc-posix.
57211         * lib/realloc.c: Include errno.h.
57212         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57213         and a POSIX-compatible realloc into a single function. Set ENOMEM
57214         when returning NULL.
57215         * m4/realloc.m4: New file.
57216         * doc/functions/realloc.texi: Mention the realloc-posix module.
57217         * lib/stdlib_.h (realloc): New declaration.
57218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57219         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57220         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57221         and HAVE_REALLOC_POSIX.
57222
57223 2007-09-09  Bruno Haible  <bruno@clisp.org>
57224
57225         * modules/calloc-posix: New file.
57226         * modules/calloc (Depends-on): Add calloc-posix.
57227         * lib/calloc.c: Include errno.h.
57228         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57229         and a POSIX-compatible calloc into a single function. Set ENOMEM
57230         when returning NULL.
57231         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57232         * doc/functions/calloc.texi: Mention the calloc-posix module.
57233         * lib/stdlib_.h (calloc): New declaration.
57234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57235         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57236         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57237         and HAVE_CALLOC_POSIX.
57238
57239 2007-09-09  Bruno Haible  <bruno@clisp.org>
57240
57241         Allow for modules to show an arbitrary notice.
57242         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57243         * gnulib-tool: New option --extract-notice.
57244         (func_usage): Document it.
57245         (sed_extract_prog): Update.
57246         (func_get_notice): New function.
57247         (func_modules_notice): New function.
57248         (func_import, func_create_testdir): Invoke it.
57249         Suggested by Jim Meyering.
57250
57251 2007-09-09  Bruno Haible  <bruno@clisp.org>
57252
57253         * gnulib-tool: New options --verbose, --quiet.
57254         (func_usage): Document them.
57255         (verbose): New variable.
57256         (func_execute_command): New function.
57257         (func_import): Don't show the module list and the file list if
57258         $verbose < 0.
57259         (func_create_testdir): Likewise. Use func_execute_command.
57260         (func_create_megatestdir): Use func_execute_command.
57261
57262 2007-09-08  Bruno Haible  <bruno@clisp.org>
57263
57264         * gnulib-tool (func_import): Prefer rsync over wget when available,
57265         for fetching the PO files.
57266
57267 2007-09-08  Bruno Haible  <bruno@clisp.org>
57268
57269         * posix-modules: New file. Portions copied from gnulib-tool.
57270         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57271
57272 2007-09-08  Jim Meyering  <jim@meyering.net>
57273
57274         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57275         * lib/fpending.h: Rename from __fpending.h.
57276         * lib/fpending.c: Rename from __fpending.c.
57277         Include "fpending.h", not "__fpending.h".
57278         * lib/__fpending.h, lib/__fpending.c: Remove files.
57279         * modules/fpending (Files): Reflect new file names.
57280         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57281
57282 2007-09-08  Bruno Haible  <bruno@clisp.org>
57283
57284         * m4/inttypes-h.m4: Remove stub file.
57285
57286 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57287
57288         * doc/headers/stdint.texi: Discuss #include_next issue.
57289
57290 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57291
57292         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57293
57294 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57295
57296         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57297         in variable name.
57298
57299 2007-09-03  Jim Meyering  <jim@meyering.net>
57300
57301         New module: git-version-gen.
57302         * modules/git-version-gen: New file.
57303
57304         Import changes from coreutils for bootstrap script.
57305
57306         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57307
57308         bootstrap: uses rsync to download the .po files
57309         * build-aux/bootstrap (po_download_command_format): New global.
57310         (download_po_files): Use rsync.
57311         (update_po_files): Don't remove .po files after download,
57312         so future rsync runs can take advantage of the copies.
57313
57314         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57315
57316         Solve the unnecessary-.po-file-regeneration problem once and for all.
57317         * build-aux/bootstrap (download_po_files): New function, renamed from
57318         get_translations.  Now, downloads, but doesn't update LINGUAS.
57319         (update_po_files): New function.
57320
57321         bootstrap: Ignore more.
57322         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57323         uniwidth to e.g., lib/.gitignore.
57324         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57325
57326         * build-aux/bootstrap: New setting: vc_ignore.
57327         (insert_sorted_if_absent): Create $file if absent.
57328         Adapt to new, possibly empty, list: $vc_ignore.
57329
57330         bootstrap: generate more ignorable names
57331         * build-aux/bootstrap (slurp): When generating ignorable names,
57332         also map .sin to .sed, .gperf to .c, and .y to .c.
57333
57334 2007-09-03  Jim Meyering  <jim@meyering.net>
57335
57336         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57337         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57338
57339 2007-09-02  Bruno Haible  <bruno@clisp.org>
57340
57341         Fix mis-recognition of 'mcs' on QNX 6.
57342         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57343         output contains the string "Mono".
57344         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57345         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57346
57347 2007-09-01  Bruno Haible  <bruno@clisp.org>
57348
57349         Fix collision between uniwidth/* and linebreak modules.
57350         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57351         u32_width): Remove declarations.
57352         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57353         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57354         streq3, streq2, streq1, streq0): Remove functions.
57355         (STREQ): Remove macro.
57356         (is_cjk_encoding): Remove function.
57357         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57358         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57359         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57360         * NEWS: Document the change.
57361
57362 2007-09-01  Bruno Haible  <bruno@clisp.org>
57363
57364         * lib/streq.h: Add double-inclusion guard.
57365
57366 2007-09-01  Karl Berry  <karl@gnu.org>
57367
57368         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57369
57370 2007-08-28  Jim Meyering  <jim@meyering.net>
57371
57372         Rename mreadlink_with_size to areadlink_with_size.
57373         * NEWS: Document the change.
57374         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57375         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57376         * lib/mreadlink.h: Rename this to...
57377         * lib/areadlink.h: ...this.
57378         * modules/mreadlink-with-size: Rename this to...
57379         * modules/areadlink-with-size: ...this.
57380         * lib/canonicalize.c: Reflect the renaming.
57381         * modules/canonicalize: Likewise.
57382
57383 2007-08-26  Bruno Haible  <bruno@clisp.org>
57384
57385         * gnulib-tool (func_import): When deciding which files to remove,
57386         consider also dangling symbolic links.
57387         Reported by Eric Blake.
57388
57389 2007-08-26  Bruno Haible  <bruno@clisp.org>
57390
57391         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57392
57393 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57394
57395         * lib/readline.c: Don't include getline.h, the prototype is now
57396         found in stdio.h.
57397
57398 2007-08-23  Jim Meyering  <jim@meyering.net>
57399
57400         Getdelim touchup.
57401         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57402         around the funlockfile call, since funlockfile never sets errno.
57403         Don't set errno upon failed realloc.
57404
57405 2007-08-22  Eric Blake  <ebb9@byu.net>
57406
57407         Getline touchups.
57408         * lib/getdelim.c (getdelim): Revert regression that required *n to
57409         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57410         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57411         getdelim, rather than whether implementation is missing.
57412         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57413         * lib/stdio_.h (getline): Also declare if replacement is
57414         required.
57415         * doc/functions/getdelim.texi: New file.
57416         * doc/functions/getline.texi: Likewise.
57417         * doc/gnulib.texi (Function Substitutes): Add new files.
57418         Reported by Bruno Haible.
57419
57420 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57421
57422         * users.txt: Add Guile.
57423
57424 2007-08-22  Eric Blake  <ebb9@byu.net>
57425
57426         * tests/test-getdelim.c (main): Use remove, not unlink.
57427         * tests/test-getline.c (main): Likewise.
57428
57429         Move getline and getdelim into stdio.h, per POSIX 200x.
57430         * modules/getline (Files): Remove getline.h.
57431         (Depends-on): Add stdio.
57432         (configure.ac): Add module indicator.
57433         * modules/getdelim (Files): Remove getdelim.h.
57434         (Depends-on): Add stdio.
57435         (configure.ac): Add module indicator.
57436         * modules/stdio (Makefile.am): Work with new indicators.
57437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57438         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57439         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57440         * lib/getdelim.h: Delete.
57441         * lib/getline.h: Delete.
57442         * lib/stdio_.h (getdelim, getline): Declare.
57443         * modules/getdelim-tests: New module.
57444         * modules/getline-tests: Likewise.
57445         * tests/test-getdelim.c: New file.
57446         * tests/test-getline.c: Likewise.
57447         * NEWS: Document the change.
57448         * lib/getline.c: Update choice of header.
57449         * lib/csharpcomp.c: Likewise.
57450         * lib/getpass.c: Likewise.
57451         * lib/javacomp.c: Likewise.
57452         * lib/javaversion.c: Likewise.
57453         * lib/yesno.c: Likewise.
57454         * lib/getdelim.c: Likewise.
57455         (getdelim): Set errno on failure, and avoid memory leak.
57456
57457 2007-08-19  Bruno Haible  <bruno@clisp.org>
57458
57459         * modules/closein (Depends-on): Add freadahead.
57460         * lib/closein.c: Include freadahead.h.
57461         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57462         is zero.
57463
57464 2007-08-19  Bruno Haible  <bruno@clisp.org>
57465
57466         * modules/freadahead-tests: New file.
57467         * tests/test-freadahead.sh: New file.
57468         * tests/test-freadahead.c: New file.
57469
57470         * modules/freadahead: New file.
57471         * lib/freadahead.h: New file.
57472         * lib/freadahead.c: New file.
57473         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57474         fbufmode, fpurge, freadable, fwritable.
57475
57476 2007-08-19  Eric Blake  <ebb9@byu.net>
57477
57478         Test yesno in combination with closein.
57479         * lib/yesno.c (yesno): Document use of stdin.
57480         * modules/yesno-tests (Files): New module.
57481         * tests/test-yesno.c (main): New file.
57482         * tests/test-yesno.sh: Likewise.
57483
57484 2007-08-19  Bruno Haible  <bruno@clisp.org>
57485
57486         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57487         * lib/fseeko.c (rpl_fseeko): Likewise.
57488         * lib/fseterr.c (fseterr): Likewise.
57489
57490 2007-08-19  Bruno Haible  <bruno@clisp.org>
57491
57492         * tests/test-lseek.c (main): Disable a test for BeOS.
57493         * doc/functions/lseek.texi: Document the BeOS bug.
57494
57495 2007-08-19  Bruno Haible  <bruno@clisp.org>
57496             Eric Blake  <ebb9@byu.net>
57497
57498         * lib/lseek.c: Include <sys/stat.h>.
57499         (rpl_lseek): Add workaround code also for Unix platforms.
57500         Needed for BeOS.
57501         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57502         * doc/functions/lseek.texi: Document BeOS definiency.
57503
57504 2007-08-18  Bruno Haible  <bruno@clisp.org>
57505
57506         * modules/fstrcmp-tests: New file.
57507         * tests/test-fstrcmp.c: New file.
57508
57509 2007-08-18  Bruno Haible  <bruno@clisp.org>
57510
57511         * modules/fstrcmp: New file, from GNU gettext with modifications.
57512         * lib/fstrcmp.h: New file, from GNU gettext.
57513         * lib/fstrcmp.c: New file, from GNU gettext.
57514         * MODULES.html.sh (String handling): Add fstrcmp.
57515
57516 2007-08-18  Bruno Haible  <bruno@clisp.org>
57517
57518         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57519         'bool'.
57520         (diag, compareseq): Remove const from the ctxt argument.
57521         (USE_HEURISTIC): Undefine at the end.
57522
57523 2007-08-18  Jim Meyering  <jim@meyering.net>
57524
57525         New file: lib/idcache.h
57526         * NEWS: Mention the addition.
57527         * modules/idcache (Files): Add lib/idcache.h
57528         * lib/idcache.c: Include "idcache.h".
57529         Don't include <sys/types.h>.
57530         Add a FIXME comment.
57531         Move file-scoped "static" declarations to the top.
57532         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57533
57534 2007-08-17  Bruno Haible  <bruno@clisp.org>
57535         and Paul Eggert  <eggert@cs.ucla.edu>
57536
57537         * MODULES.html.sh: Add diffseq.
57538         * modules/diffseq: New file.
57539         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57540         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57541
57542 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57543
57544         Import changes from coreutils for bootstrap script.
57545
57546         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57547
57548         * build-aux/bootstrap (slurp): Work even in environments where
57549         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57550         current code does not slurp files whose names start with ".", and
57551         this looks like it might be a troublesome area.
57552
57553         2007-07-11  Jim Meyering  <jim@meyering.net>
57554
57555         If there's a GPL vN copyright comment, require that N == 3.
57556
57557         2007-07-08  Jim Meyering  <jim@meyering.net>
57558
57559         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57560         * build-aux/bootstrap (mam_template): Move definition out of loop.
57561
57562         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57563
57564         * build-aux/bootstrap (symlink_to_dir): Rename function from
57565         symlink_to_gnulib.  Add a directory parameter.  Update all
57566         callers.
57567         (cp_mark_as_generated): Also check for -- and link to -- files in
57568         gl/.
57569
57570         2007-07-08  Jim Meyering  <jim@meyering.net>
57571
57572         Adapt to deeper hierarchy in gnulib.
57573         * build-aux/bootstrap (symlink_to_dir): If the destination
57574         directory doesn't exist, create it. This is required at least for
57575         "lib/uniwidth/cjk.h".
57576
57577         2007-05-15  Jim Meyering  <jim@meyering.net>
57578
57579         * build-aux/bootstrap: Now that generated Makefile.am files
57580         are no longer under version control, they must be created at
57581         bootstrap time.
57582
57583 2007-08-14  Ben Pfaff  <blp@gnu.org>
57584
57585         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57586
57587 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57588
57589         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57590         given the changes below.
57591         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57592         even on hosts that have padding bits beyond the supported 64.
57593
57594 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57595
57596         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57597         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57598         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57599         depends on it.
57600         (xstrtol_error): Remove.
57601         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57602         but with a different signature.
57603         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57604         * lib/xstrtol-error.c: Include exitfail.h.
57605         (xstrtol_fatal): New function, with a different signature from the
57606         old xstrtol_error, so that the caller need not worry about passing
57607         in an exit status, or about storage management of the option argument.
57608         (xstrtol_error): Now a static function.  Redo signature to
57609         implement xstrtol_fatal.  Output the correct number of hyphens in
57610         front of the option so that the caller need not worry about
57611         storage management.
57612         (N_): New macro.
57613         (_): Remove; not used now.
57614         * modules/xstrtol: Depend on getopt.
57615         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57616         of old STRTOL_FATAL_ERROR macro.
57617         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57618         of test program.
57619         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57620         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57621
57622 2007-08-08  Eric Blake  <ebb9@byu.net>
57623
57624         * lib/xstrtol-error.c: Add missing include.
57625
57626         Move xstrtol messages into gnulib domain, when --pobase is used.
57627         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57628         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57629         * modules/xstrtol (Files): Distribute new file.
57630         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57631         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57632         * tests/test-xstrtol.c: ...into new file.
57633         * tests/test-xstrtoul.c: Also test xstrtoul.
57634         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57635         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57636         * tests/test-xstrtol.sh: Drive the tests.
57637         * tests/test-xstrtoimax.sh: Likewise.
57638         * tests/test-xstrtoumax.sh: Likewise.
57639         * modules/xstrtol-tests: New module.
57640         * modules/xstrtoimax-tests: Likewise.
57641         * modules/xstrtoumax-tests: Likewise.
57642
57643 2007-08-08  Jim Meyering  <jim@meyering.net>
57644
57645         New function: mfile_name_concat.
57646         * lib/filenamecat.c (mfile_name_concat): New function, just like
57647         file_name_concat, but return NULL upon failure rather than exiting
57648         with a diagnostic.
57649         * lib/filenamecat.h: Declare it.
57650
57651 2007-08-07  Bruno Haible  <bruno@clisp.org>
57652
57653         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57654         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57655         warning from gcc.
57656         Reported by Eric Blake.
57657
57658 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57659
57660         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57661         * modules/crypto/arcfour (License): Likewise.
57662         * modules/crypto/des-tests (License): Likewise.
57663         * modules/crypto/gc-arctwo-tests (License): Likewise.
57664         * modules/crypto/gc-des-tests (License): Likewise.
57665         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57666         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57667         * modules/crypto/gc-md2-tests (License): Likewise.
57668         * modules/crypto/gc-md4-tests (License): Likewise.
57669         * modules/crypto/gc-md5-tests (License): Likewise.
57670         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57671         * modules/crypto/gc-rijndael-tests (License): Likewise.
57672         * modules/crypto/gc-sha1-tests (License): Likewise.
57673         * modules/crypto/gc-tests (License): Likewise.
57674         * modules/crypto/hmac-md5 (License): Likewise.
57675         * modules/crypto/hmac-sha1 (License): Likewise.
57676         * modules/crypto/md2-tests (License): Likewise.
57677         * modules/crypto/md4-tests (License): Likewise.
57678         * modules/crypto/md5 (License): Likewise.
57679         * modules/crypto/rijndael (License): Likewise.
57680         * modules/crypto/sha1 (License): Likewise.
57681         * modules/memxor (License): Likewise.
57682
57683 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57684         and Bruno Haible  <bruno@clisp.org>
57685
57686         * NEWS: Describe interface changes to human, xstrtol.
57687         * lib/human.h: Include <xstrtol.h>.
57688         (human_options): Return enum strtol_error, not int.  Remove
57689         bool arg; take int * instead.
57690         * lib/human.c: Don't include "gettext.h".
57691         (_): Remove; no longer used.
57692         Don't include <xstrtol.h>, since human.h does it.
57693         (human_options): Adjust to abovementioned interface changes.
57694         Do not report error to stderr; that's now the caller's
57695         responsibility.
57696         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57697         interface change.
57698         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57699         Str, Argument_type_string.  All uses changed.  Put " argument"
57700         in diagnostics to make them clearer.  Change wording of suffix
57701         message for clarity.
57702         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57703         Argument_type_string.
57704         (STRTOL_FATAL_WARN): Remove; no longer used.
57705         * modules/human (Depends-on): Remove gettext-h.
57706
57707 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57708
57709         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57710
57711 2007-07-31  Bruno Haible  <bruno@clisp.org>
57712
57713         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57714         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57715         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57716
57717 2007-07-31  Bruno Haible  <bruno@clisp.org>
57718
57719         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57720         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57721
57722 2007-07-30  Bruno Haible  <bruno@clisp.org>
57723
57724         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57725         * modules/c-ctype (License): Likewise.
57726         * modules/c-strcase (License): Likewise.
57727         * modules/check-version (License): Likewise.
57728         * modules/iconv (License): Likewise.
57729         * modules/iconv_open (License): Likewise.
57730         * modules/read-file (License): Likewise.
57731         * modules/striconv (License): Likewise.
57732         * modules/strverscmp (License): Likewise.
57733         * modules/vasprintf (License): Likewise.
57734         * modules/crypto/des (License): Likewise.
57735         * modules/crypto/gc (License): Likewise.
57736         * modules/crypto/gc-arcfour (License): Likewise.
57737         * modules/crypto/gc-arctwo (License): Likewise.
57738         * modules/crypto/gc-des (License): Likewise.
57739         * modules/crypto/gc-hmac-md5 (License): Likewise.
57740         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57741         * modules/crypto/gc-md2 (License): Likewise.
57742         * modules/crypto/gc-md4 (License): Likewise.
57743         * modules/crypto/gc-md5 (License): Likewise.
57744         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57745         * modules/crypto/gc-random (License): Likewise.
57746         * modules/crypto/gc-rijndael (License): Likewise.
57747         * modules/crypto/gc-sha1 (License): Likewise.
57748         * modules/crypto/md2 (License): Likewise.
57749         * modules/crypto/md4 (License): Likewise.
57750
57751 2007-07-30  Jim Meyering  <jim@meyering.net>
57752
57753         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57754         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57755         it has valid stat data.  This bug would cause du not to count the
57756         sizes of inaccessible directories.
57757         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57758         in <http://bugzilla.redhat.com/250077>.
57759
57760 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57761             Bruno Haible  <bruno@clisp.org>
57762
57763         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57764         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57765         #include_next, gives a diagnostic about it, but reports no error in
57766         the exit code.
57767         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57768
57769 2007-07-24  Ben Pfaff  <blp@gnu.org>
57770
57771         Improve name: "count-one-bits" is better than "popcount".
57772         * MODULES.html.sh: Update name.
57773         * lib/popcount.h: Renamed lib/count-one-bits.h.
57774         (popcount): Renamed count_one_bits.
57775         (popcountl): Renamed count_one_bits_l.
57776         (popcountll): Renamed count_one_bits_ll.
57777         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57778         * modules/popcount: Renamed module/count-one-bits.
57779         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57780         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57781
57782 2007-07-23  Ben Pfaff  <blp@gnu.org>
57783
57784         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57785         better code generation, and add U to large constants to avoid
57786         warnings, in non-GCC case.
57787         Suggested by Bruno Haible.
57788
57789 2007-07-23  Ben Pfaff  <blp@gnu.org>
57790
57791         * lib/popcount.h: Use verify_true instead of if...abort.
57792         * modules/popcount: Depend on verify module.
57793         Suggested by Jim Meyering.
57794
57795 2007-07-23  Bruno Haible  <bruno@clisp.org>
57796
57797         * gnulib-tool (func_import): Create a .cvsignore file also when the
57798         directory is not yet in CVS but the toplevel directory is. When
57799         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57800         Reported by Karl Berry.
57801
57802 2007-07-22  Ben Pfaff  <blp@gnu.org>
57803
57804         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57805         case.
57806         Suggested by Eric Blake.
57807
57808 2007-07-22  Ben Pfaff  <blp@gnu.org>
57809
57810         New module: popcount.
57811         * MODULES.html.sh: Add popcount.
57812         * modules/popcount: New file.
57813         * modules/popcount-tests: New file.
57814         * tests/test-popcount.c: New file.
57815         * lib/popcount.h: New file.
57816         * m4/popcount.m4: New file.
57817
57818 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57819
57820         * build-aux/announce-gen: Update to GPLv3.
57821
57822         * build-aux/config.guess: Update from config.
57823
57824 2007-07-21  Bruno Haible  <bruno@clisp.org>
57825
57826         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57827         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57828
57829 2007-07-20  Jim Meyering  <jim@meyering.net>
57830
57831         * check-module: Diagnose a self-dependency.
57832
57833 2007-07-19  Bruno Haible  <bruno@clisp.org>
57834
57835         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57836         empty.
57837         Reported by Eric Blake.
57838
57839 2007-07-18  Bruno Haible  <bruno@clisp.org>
57840
57841         * gnulib-tool: New options --po-base, --po-domain.
57842         (func_usage): Document them.
57843         (pobase, po_domain): New variables.
57844         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57845         DEFAULT_TEXT_DOMAIN.
57846         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57847         (func_import): Consider pobase and po_domain. Create a po/ directory.
57848         (func_create_testdir): Set pobase and po_domain to empty.
57849         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57850         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57851
57852 2007-07-18  Bruno Haible  <bruno@clisp.org>
57853
57854         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57855         EXTRA_DIST augmentation for files in build-aux/.
57856
57857 2007-07-16  Bruno Haible  <bruno@clisp.org>
57858
57859         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57860         * modules/getdelim (License): Likewise.
57861
57862 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57863
57864         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57865         * modules/d-type (License): Likewise.
57866         * modules/extensions (License): Likewise.
57867         * modules/fnmatch (License): Likewise.
57868         * modules/fseeko (License): Likewise.
57869         * modules/getaddrinfo (License): Likewise.
57870         * modules/getline (License): Likewise.
57871         * modules/getlogin_r (License): Likewise.
57872         * modules/getpass (License): Likewise.
57873         * modules/gettimeofday (License): Likewise.
57874         * modules/glob (License): Likewise.
57875         * modules/inet_ntop (License): Likewise.
57876         * modules/malloc (License): Likewise.
57877         * modules/malloca (License): Likewise.
57878         * modules/memmem (License): Likewise.
57879         * modules/mempcpy (License): Likewise.
57880         * modules/memset (License): Likewise.
57881         * modules/minmax (License): Likewise.
57882         * modules/mktime (License): Likewise.
57883         * modules/netinet_in (License): Likewise.
57884         * modules/pathmax (License): Likewise.
57885         * modules/poll (License): Likewise.
57886         * modules/regex (License): Likewise.
57887         * modules/snprintf (License): Likewise.
57888         * modules/stdbool (License): Likewise.
57889         * modules/stdint (License): Likewise.
57890         * modules/stdio (License): Likewise.
57891         * modules/strcase (License): Likewise.
57892         * modules/strcasestr (License): Likewise.
57893         * modules/strdup (License): Likewise.
57894         * modules/string (License): Likewise.
57895         * modules/strndup (License): Likewise.
57896         * modules/strnlen (License): Likewise.
57897         * modules/strpbrk (License): Likewise.
57898         * modules/strptime (License): Likewise.
57899         * modules/strsep (License): Likewise.
57900         * modules/sys_select (License): Likewise.
57901         * modules/sys_socket (License): Likewise.
57902         * modules/sys_stat (License): Likewise.
57903         * modules/sys_time (License): Likewise.
57904         * modules/time (License): Likewise.
57905         * modules/time_r (License): Likewise.
57906         * modules/timegm (License): Likewise.
57907         * modules/unistd (License): Likewise.
57908         * modules/vsnprintf (License): Likewise.
57909         * modules/wctype (License): Likewise.
57910
57911 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57912
57913         * modules/argz (License): LGPLv2+.
57914
57915 2007-07-15  Karl Berry  <karl@gnu.org>
57916
57917         * doc/gnulib.texi: revise node structure per new fdl.texi.
57918
57919 2007-07-14  Bruno Haible  <bruno@clisp.org>
57920
57921         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57922         the output file.
57923         * lib/uniname/uninames.h: Regenerated.
57924
57925 2007-07-14  Karl Berry  <karl@gnu.org>
57926
57927         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57928         omitting sectioning and index commands.
57929
57930 2007-07-13  Bruno Haible  <bruno@clisp.org>
57931
57932         New gnulib-tool option --more-symlinks.
57933         * gnulib-tool (func_usage): Document --more-symlinks.
57934         (do_copyrights): New variable.
57935         Recognize option --more-symlinks.
57936         (func_import): Don't add a copyright notice transform to
57937         sed_transform_lib_file if do_copyrights is empty.
57938
57939 2007-07-13  Bruno Haible  <bruno@clisp.org>
57940
57941         * lib/vasnprintf.c (decimal_point_char): Define also if
57942         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57943         && !NEED_PRINTF_DIRECTIVE_A.
57944         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57945         Gary V. Vaughan <gary@gnu.org>.
57946
57947 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57948
57949         * lib/inttypes_.h: Undo previous change, since it was fixed
57950         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57951
57952 2007-07-13  Bruno Haible  <bruno@clisp.org>
57953
57954         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57955         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57956
57957 2007-07-13  Jim Meyering  <jim@meyering.net>
57958
57959         df: Don't fail for Tru64's "file-on-file mount".
57960         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57961         so we fall through and use statfs instead.  Details here:
57962         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57963         Reported by Albert Chin.
57964
57965 2007-07-13  Bruno Haible  <bruno@clisp.org>
57966
57967         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57968         * modules/configmake (License): Likewise.
57969         * modules/gettext (License): Likewise.
57970         * modules/gettext-h (License): Likewise.
57971         * modules/include_next (License): Likewise.
57972         * modules/link-warning (License): Likewise.
57973         * modules/localcharset (License): Likewise.
57974         * modules/localename (License): Likewise.
57975         * modules/lock (License): Likewise.
57976         * modules/relocatable-lib-lgpl (License): Likewise.
57977         * modules/size_max (License): Likewise.
57978         * modules/vasnprintf (License): Likewise.
57979         * modules/wchar (License): Likewise.
57980         * modules/xsize (License): Likewise.
57981
57982 2007-07-13  Bruno Haible  <bruno@clisp.org>
57983
57984         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57985         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57986
57987 2007-07-12  Bruno Haible  <bruno@clisp.org>
57988
57989         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57990         in the modules files.
57991
57992 2007-07-11  Karl Berry  <karl@gnu.org>
57993
57994         * MODULES.html.sh (func_module): use
57995          sed -e '\|^'"${includefile}"'$|d'
57996          instead of /.../d, to avoid errors on $includefile's containing /.
57997
57998 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57999
58000         * gnulib-tool (func_import): Avoid duplication of --avoid
58001         statements
58002         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58003         names to `_' in variable names.
58004
58005 2007-07-10  Eric Blake  <ebb9@byu.net>
58006
58007         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58008         * NEWS: Document this change.
58009
58010 2007-07-08  Bruno Haible  <bruno@clisp.org>
58011
58012         Update to Unicode 5.0.
58013         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58014         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58015         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58016         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58017         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58018         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58019         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58020         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58021         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58022         U+10A3F, U+1D242..U+1D244.
58023         (nonspacing_table_ind): Update.
58024         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58025         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58026
58027 2007-07-08  Bruno Haible  <bruno@clisp.org>
58028
58029         Update to Unicode 5.0.
58030         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58031         code transform. Extend the name index field of unicode_name_to_code and
58032         unicode_code_to_name from 16 to 24 bits.
58033         * lib/uniname/uniname.c (unicode_character_name,
58034         unicode_name_character): Add the range 0x12xxx to the code transform.
58035         * lib/uniname/uninames.h: Regenerated.
58036         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58037
58038 2007-07-07  Bruno Haible  <bruno@clisp.org>
58039
58040         * modules/wcwidth-tests: New file.
58041         * tests/test-wcwidth.c: New file.
58042
58043         Work around MacOS X wcwidth() bug.
58044         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58045         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58046         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58047         original wcwidth in non-UTF-8 locales.
58048         * modules/wcwidth (Depends-on): Add localcharset, streq,
58049         uniwidth/width.
58050         * doc/functions/wcwidth.texi: Update.
58051
58052 2007-07-07  Bruno Haible  <bruno@clisp.org>
58053
58054         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58055         (wcwidth): New declaration.
58056         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58057         macros.
58058         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58059         here. Prepare for creating <wchar.h> unconditionally.
58060         * modules/wchar (Depends-on): Add link-warning.
58061         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58062         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58063         * lib/wcwidth.h: Remove file.
58064         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58065         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58066         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58067         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58068         (Include): Replace wcwidth.h with <wchar.h>.
58069         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58070         * lib/mbchar.h: Don't include wcwidth.h.
58071         * lib/mbswidth.c: Likewise.
58072         * NEWS: Mention the change.
58073
58074 2007-07-07  Bruno Haible  <bruno@clisp.org>
58075
58076         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58077         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58078         definition with an external declaration.
58079         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58080         defined as a function. Remove AC_C_INLINE requirement.
58081         * modules/wcwidth (Files): Add lib/wcwidth.c.
58082         (Makefile.am): Remove redundant statement.
58083
58084 2007-07-07  Bruno Haible  <bruno@clisp.org>
58085
58086         * MODULES.html.sh (Unicode string functions): Add the new modules.
58087
58088         * tests/uniwidth/test-u32-strwidth.c: New file.
58089         * modules/uniwidth/u32-strwidth-tests: New file.
58090
58091         * lib/uniwidth/u32-strwidth.c: New file.
58092         * modules/uniwidth/u32-strwidth: New file.
58093
58094         * tests/uniwidth/test-u16-strwidth.c: New file.
58095         * modules/uniwidth/u16-strwidth-tests: New file.
58096
58097         * lib/uniwidth/u16-strwidth.c: New file.
58098         * modules/uniwidth/u16-strwidth: New file.
58099
58100         * tests/uniwidth/test-u8-strwidth.c: New file.
58101         * modules/uniwidth/u8-strwidth-tests: New file.
58102
58103         * lib/uniwidth/u8-strwidth.c: New file.
58104         * modules/uniwidth/u8-strwidth: New file.
58105
58106         * tests/uniwidth/test-u32-width.c: New file.
58107         * modules/uniwidth/u32-width-tests: New file.
58108
58109         * lib/uniwidth/u32-width.c: New file.
58110         * modules/uniwidth/u32-width: New file.
58111
58112         * tests/uniwidth/test-u16-width.c: New file.
58113         * modules/uniwidth/u16-width-tests: New file.
58114
58115         * lib/uniwidth/u16-width.c: New file.
58116         * modules/uniwidth/u16-width: New file.
58117
58118         * tests/uniwidth/test-u8-width.c: New file.
58119         * modules/uniwidth/u8-width-tests: New file.
58120
58121         * lib/uniwidth/u8-width.c: New file.
58122         * modules/uniwidth/u8-width: New file.
58123
58124         * tests/uniwidth/test-uc_width.c: New file.
58125         * modules/uniwidth/width-tests: New file.
58126
58127         * lib/uniwidth/width.c: New file, from GNU libiconv.
58128         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58129         * modules/uniwidth/width: New file.
58130
58131         * lib/uniwidth.h: New file, from GNU libiconv.
58132         * modules/uniwidth/base: New file.
58133
58134 2007-07-07  Bruno Haible  <bruno@clisp.org>
58135
58136         * lib/uniname.h: New file, from GNU gettext.
58137         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58138         * lib/uniname/uninames.h: New file, from GNU gettext.
58139         * lib/uniname/uniname.c: New file, from GNU gettext.
58140         * tests/uniname/test-uninames.sh: New file.
58141         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58142         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58143         * modules/uniname/base: New file.
58144         * modules/uniname/uniname: New file.
58145         * modules/uniname/uniname-tests: New file.
58146         * MODULES.html.sh (Unicode string functions): Add the new modules.
58147
58148 2007-07-06  Bruno Haible  <bruno@clisp.org>
58149
58150         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58151
58152 2007-07-06  Bruno Haible  <bruno@clisp.org>
58153
58154         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58155         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58156         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58157         include <sys/time.h>.
58158         Reported by Eric Blake.
58159
58160 2007-07-06  Eric Blake  <ebb9@byu.net>
58161
58162         Fix testing canonicalize on cygwin.
58163         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58164         Revert patch from 2007-06-19.
58165         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58166         canonicalize module is also in use.
58167         * tests/test-canonicalize.c: New file.
58168         * tests/test-canonicalize.sh: Likewise.
58169         * modules/canonicalize-tests: Likewise.
58170
58171 2007-07-06  Jim Meyering  <jim@meyering.net>
58172
58173         * lib/getugroups.c (getugroups): Detect getgrent failure.
58174         Adjust comment to reflect reality: this function may return -1.
58175
58176 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58177
58178         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58179         the new TP address.
58180         (usage): Fix typo
58181         (gnulib_mk): New variable.
58182
58183 2007-07-05  Jim Meyering  <jim@meyering.net>
58184
58185         Don't let endgrent clobber errno, no matter how improbable.
58186         * lib/getugroups.c (getugroups): Save and restore errno around
58187         endgrent call.
58188
58189         Close the group DB even when failing with 2^31 or more members.
58190         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58191
58192 2007-07-04  Jim Meyering  <jim@meyering.net>
58193
58194         * lib/getugroups.h: New file.
58195         * lib/getugroups.c: Include "getugroups.h".
58196         Remove uses of "register" keyword.
58197         Move local variable, "cp", down into scope where used.
58198         Give "username" parameter the "const" attribute.
58199         * modules/getugroups (Files): Add lib/getugroups.h
58200
58201 2007-07-04  Karl Berry  <karl@gnu.org>
58202
58203         * MODULES.html.sh (func_all_modules): Complete rename of
58204         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58205
58206 2007-07-02  Bruno Haible  <bruno@clisp.org>
58207
58208         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58209         mode, when inttypes.h comes from gnulib.
58210         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58211
58212 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58213
58214         * NEWS: Mention lgpl module name change.
58215
58216         * modules/lgpl-2.1: Renamed from lgpl.
58217
58218         * NEWS: Mention gpl module name change.
58219
58220         * modules/gpl-3.0: New file, based on gpl-2.0.
58221
58222         * modules/gpl-2.0: Renamed from gpl.
58223
58224         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58225         doc/gpl-2.0.texi.
58226
58227 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58228
58229         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58230         #define __STDC_LIMIT_MACROS temporarily while including
58231         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58232         Problem reported by Joel E. Denny in
58233         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58234
58235 2007-07-01  Bruno Haible  <bruno@clisp.org>
58236
58237         * lib/unistdio.h: New file.
58238         * lib/unistdio/u-asnprintf.h: New file.
58239         * lib/unistdio/u-asprintf.h: New file.
58240         * lib/unistdio/u-printf-args.c: New file.
58241         * lib/unistdio/u-printf-args.h: New file.
58242         * lib/unistdio/u-printf-parse.h: New file.
58243         * lib/unistdio/u-snprintf.h: New file.
58244         * lib/unistdio/u-sprintf.h: New file.
58245         * lib/unistdio/u-vasprintf.h: New file.
58246         * lib/unistdio/u-vsnprintf.h: New file.
58247         * lib/unistdio/u-vsprintf.h: New file.
58248         * lib/unistdio/ulc-asnprintf.c: New file.
58249         * lib/unistdio/ulc-asprintf.c: New file.
58250         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58251         * lib/unistdio/ulc-printf-parse.c: New file.
58252         * lib/unistdio/ulc-snprintf.c: New file.
58253         * lib/unistdio/ulc-sprintf.c: New file.
58254         * lib/unistdio/ulc-vasnprintf.c: New file.
58255         * lib/unistdio/ulc-vasprintf.c: New file.
58256         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58257         * lib/unistdio/ulc-vsnprintf.c: New file.
58258         * lib/unistdio/ulc-vsprintf.c: New file.
58259         * lib/unistdio/u8-asnprintf.c: New file.
58260         * lib/unistdio/u8-asprintf.c: New file.
58261         * lib/unistdio/u8-printf-parse.c: New file.
58262         * lib/unistdio/u8-snprintf.c: New file.
58263         * lib/unistdio/u8-sprintf.c: New file.
58264         * lib/unistdio/u8-vasnprintf.c: New file.
58265         * lib/unistdio/u8-vasprintf.c: New file.
58266         * lib/unistdio/u8-vsnprintf.c: New file.
58267         * lib/unistdio/u8-vsprintf.c: New file.
58268         * lib/unistdio/u8-u8-asnprintf.c: New file.
58269         * lib/unistdio/u8-u8-asprintf.c: New file.
58270         * lib/unistdio/u8-u8-snprintf.c: New file.
58271         * lib/unistdio/u8-u8-sprintf.c: New file.
58272         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58273         * lib/unistdio/u8-u8-vasprintf.c: New file.
58274         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58275         * lib/unistdio/u8-u8-vsprintf.c: New file.
58276         * lib/unistdio/u16-asnprintf.c: New file.
58277         * lib/unistdio/u16-asprintf.c: New file.
58278         * lib/unistdio/u16-printf-parse.c: New file.
58279         * lib/unistdio/u16-snprintf.c: New file.
58280         * lib/unistdio/u16-sprintf.c: New file.
58281         * lib/unistdio/u16-vasnprintf.c: New file.
58282         * lib/unistdio/u16-vasprintf.c: New file.
58283         * lib/unistdio/u16-vsnprintf.c: New file.
58284         * lib/unistdio/u16-vsprintf.c: New file.
58285         * lib/unistdio/u16-u16-asnprintf.c: New file.
58286         * lib/unistdio/u16-u16-asprintf.c: New file.
58287         * lib/unistdio/u16-u16-snprintf.c: New file.
58288         * lib/unistdio/u16-u16-sprintf.c: New file.
58289         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58290         * lib/unistdio/u16-u16-vasprintf.c: New file.
58291         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58292         * lib/unistdio/u16-u16-vsprintf.c: New file.
58293         * lib/unistdio/u32-asnprintf.c: New file.
58294         * lib/unistdio/u32-asprintf.c: New file.
58295         * lib/unistdio/u32-printf-parse.c: New file.
58296         * lib/unistdio/u32-snprintf.c: New file.
58297         * lib/unistdio/u32-sprintf.c: New file.
58298         * lib/unistdio/u32-vasnprintf.c: New file.
58299         * lib/unistdio/u32-vasprintf.c: New file.
58300         * lib/unistdio/u32-vsnprintf.c: New file.
58301         * lib/unistdio/u32-vsprintf.c: New file.
58302         * lib/unistdio/u32-u32-asnprintf.c: New file.
58303         * lib/unistdio/u32-u32-asprintf.c: New file.
58304         * lib/unistdio/u32-u32-snprintf.c: New file.
58305         * lib/unistdio/u32-u32-sprintf.c: New file.
58306         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58307         * lib/unistdio/u32-u32-vasprintf.c: New file.
58308         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58309         * lib/unistdio/u32-u32-vsprintf.c: New file.
58310         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58311         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58312         * tests/unistdio/test-ulc-printf1.h: New file.
58313         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58314         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58315         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58316         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58317         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58318         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58319         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58320         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58321         * tests/unistdio/test-u8-asnprintf1.c: New file.
58322         * tests/unistdio/test-u8-asnprintf1.h: New file.
58323         * tests/unistdio/test-u8-printf1.h: New file.
58324         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58325         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58326         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58327         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58328         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58329         * tests/unistdio/test-u8-vasprintf1.c: New file.
58330         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58331         * tests/unistdio/test-u8-vsprintf1.c: New file.
58332         * tests/unistdio/test-u16-asnprintf1.c: New file.
58333         * tests/unistdio/test-u16-asnprintf1.h: New file.
58334         * tests/unistdio/test-u16-printf1.h: New file.
58335         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58336         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58337         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58338         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58339         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58340         * tests/unistdio/test-u16-vasprintf1.c: New file.
58341         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58342         * tests/unistdio/test-u16-vsprintf1.c: New file.
58343         * tests/unistdio/test-u32-asnprintf1.c: New file.
58344         * tests/unistdio/test-u32-asnprintf1.h: New file.
58345         * tests/unistdio/test-u32-printf1.h: New file.
58346         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58347         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58348         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58349         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58350         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58351         * tests/unistdio/test-u32-vasprintf1.c: New file.
58352         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58353         * tests/unistdio/test-u32-vsprintf1.c: New file.
58354         * modules/unistdio/base: New file.
58355         * modules/unistdio/u-printf-args: New file.
58356         * modules/unistdio/ulc-asnprintf: New file.
58357         * modules/unistdio/ulc-asprintf: New file.
58358         * modules/unistdio/ulc-fprintf: New file.
58359         * modules/unistdio/ulc-printf-parse: New file.
58360         * modules/unistdio/ulc-snprintf: New file.
58361         * modules/unistdio/ulc-sprintf: New file.
58362         * modules/unistdio/ulc-vasnprintf: New file.
58363         * modules/unistdio/ulc-vasprintf: New file.
58364         * modules/unistdio/ulc-vfprintf: New file.
58365         * modules/unistdio/ulc-vsnprintf: New file.
58366         * modules/unistdio/ulc-vsprintf: New file.
58367         * modules/unistdio/u8-asnprintf: New file.
58368         * modules/unistdio/u8-asprintf: New file.
58369         * modules/unistdio/u8-printf-parse: New file.
58370         * modules/unistdio/u8-snprintf: New file.
58371         * modules/unistdio/u8-sprintf: New file.
58372         * modules/unistdio/u8-vasnprintf: New file.
58373         * modules/unistdio/u8-vasprintf: New file.
58374         * modules/unistdio/u8-vsnprintf: New file.
58375         * modules/unistdio/u8-vsprintf: New file.
58376         * modules/unistdio/u8-u8-asnprintf: New file.
58377         * modules/unistdio/u8-u8-asprintf: New file.
58378         * modules/unistdio/u8-u8-snprintf: New file.
58379         * modules/unistdio/u8-u8-sprintf: New file.
58380         * modules/unistdio/u8-u8-vasnprintf: New file.
58381         * modules/unistdio/u8-u8-vasprintf: New file.
58382         * modules/unistdio/u8-u8-vsnprintf: New file.
58383         * modules/unistdio/u8-u8-vsprintf: New file.
58384         * modules/unistdio/u16-asnprintf: New file.
58385         * modules/unistdio/u16-asprintf: New file.
58386         * modules/unistdio/u16-printf-parse: New file.
58387         * modules/unistdio/u16-snprintf: New file.
58388         * modules/unistdio/u16-sprintf: New file.
58389         * modules/unistdio/u16-vasnprintf: New file.
58390         * modules/unistdio/u16-vasprintf: New file.
58391         * modules/unistdio/u16-vsnprintf: New file.
58392         * modules/unistdio/u16-vsprintf: New file.
58393         * modules/unistdio/u16-u16-asnprintf: New file.
58394         * modules/unistdio/u16-u16-asprintf: New file.
58395         * modules/unistdio/u16-u16-snprintf: New file.
58396         * modules/unistdio/u16-u16-sprintf: New file.
58397         * modules/unistdio/u16-u16-vasnprintf: New file.
58398         * modules/unistdio/u16-u16-vasprintf: New file.
58399         * modules/unistdio/u16-u16-vsnprintf: New file.
58400         * modules/unistdio/u16-u16-vsprintf: New file.
58401         * modules/unistdio/u32-asnprintf: New file.
58402         * modules/unistdio/u32-asprintf: New file.
58403         * modules/unistdio/u32-printf-parse: New file.
58404         * modules/unistdio/u32-snprintf: New file.
58405         * modules/unistdio/u32-sprintf: New file.
58406         * modules/unistdio/u32-vasnprintf: New file.
58407         * modules/unistdio/u32-vasprintf: New file.
58408         * modules/unistdio/u32-vsnprintf: New file.
58409         * modules/unistdio/u32-vsprintf: New file.
58410         * modules/unistdio/u32-u32-asnprintf: New file.
58411         * modules/unistdio/u32-u32-asprintf: New file.
58412         * modules/unistdio/u32-u32-snprintf: New file.
58413         * modules/unistdio/u32-u32-sprintf: New file.
58414         * modules/unistdio/u32-u32-vasnprintf: New file.
58415         * modules/unistdio/u32-u32-vasprintf: New file.
58416         * modules/unistdio/u32-u32-vsnprintf: New file.
58417         * modules/unistdio/u32-u32-vsprintf: New file.
58418         * modules/unistdio/ulc-asnprintf-tests: New file.
58419         * modules/unistdio/ulc-vasnprintf-tests: New file.
58420         * modules/unistdio/ulc-vasprintf-tests: New file.
58421         * modules/unistdio/ulc-vsnprintf-tests: New file.
58422         * modules/unistdio/ulc-vsprintf-tests: New file.
58423         * modules/unistdio/u8-asnprintf-tests: New file.
58424         * modules/unistdio/u8-vasnprintf-tests: New file.
58425         * modules/unistdio/u8-vasprintf-tests: New file.
58426         * modules/unistdio/u8-vsnprintf-tests: New file.
58427         * modules/unistdio/u8-vsprintf-tests: New file.
58428         * modules/unistdio/u16-asnprintf-tests: New file.
58429         * modules/unistdio/u16-vasnprintf-tests: New file.
58430         * modules/unistdio/u16-vasprintf-tests: New file.
58431         * modules/unistdio/u16-vsnprintf-tests: New file.
58432         * modules/unistdio/u16-vsprintf-tests: New file.
58433         * modules/unistdio/u32-asnprintf-tests: New file.
58434         * modules/unistdio/u32-vasnprintf-tests: New file.
58435         * modules/unistdio/u32-vasprintf-tests: New file.
58436         * modules/unistdio/u32-vsnprintf-tests: New file.
58437         * modules/unistdio/u32-vsprintf-tests: New file.
58438         * MODULES.html.sh (Unicode string functions): Add the new modules.
58439
58440 2007-07-01  Bruno Haible  <bruno@clisp.org>
58441
58442         * lib/sprintf.c (sprintf): Limit the available length estimation,
58443         to avoid address wraparound.
58444         * lib/vsprintf.c (vsprintf): Likewise.
58445         * modules/sprintf-posix (Dependencies): Add stdint.
58446         * modules/vsprintf-posix (Dependencies): Likewise.
58447
58448 2007-07-01  Bruno Haible  <bruno@clisp.org>
58449
58450         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58451         Windows PATH as well. Conservative double-quoting. Comments.
58452
58453 2007-07-01  Bruno Haible  <bruno@clisp.org>
58454             Eric Blake  <ebb9@byu.net>
58455             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58456
58457         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58458         empty components in $PATH, denoting '.'.
58459
58460 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58461
58462         * gnulib-tool: Fix indentation.
58463         (func_create_megatestdir): Likewise.
58464         Report by Bruno Haible.
58465
58466 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58467
58468         Sync from Automake.
58469         * build-aux/gnupload: Fix shell portability issues with for loops.
58470         Report by Karl Berry.
58471
58472 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58473
58474         * build-aux/maint.mk (POURL): Use translationproject.org.
58475
58476 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58477             Bruno Haible  <bruno@clisp.org>
58478
58479         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58480         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58481         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58482         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58483         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58484
58485 2007-06-27  Bruno Haible  <bruno@clisp.org>
58486
58487         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58488         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58489
58490 2007-06-26  Karl Berry  <karl@gnu.org>
58491
58492         * MODULES.html.sh: remove xreadlink-with-size.
58493
58494 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58495
58496         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58497         method that I hope also handles the double-include problem noted
58498         by Bruno Haible in
58499         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58500
58501 2007-06-23  Bruno Haible  <bruno@clisp.org>
58502
58503         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58504         Don't let the 'mostlyclean' target fail if the last subdirectory could
58505         not be removed.
58506         Reported by Karl Berry.
58507
58508 2007-06-23  Bruno Haible  <bruno@clisp.org>
58509
58510         * gnulib-tool (echo): Add a speedier workaround for ksh.
58511         * tests/test-echo.sh: Likewise.
58512
58513 2007-06-23  Bruno Haible  <bruno@clisp.org>
58514
58515         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58516         * tests/test-echo.sh: Likewise.
58517
58518 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58519
58520         * gnulib-tool (IFS): Initialize early, so we don't set it to
58521         empty later.
58522         (self_abspathname): Rewrite algorithm to set it, reindent.
58523         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58524         (func_create_megatestdir): Merge some sed scripts.
58525
58526 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58527
58528         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58529         exposed by Sun Studio 11 cc on Solaris 8.
58530
58531 2007-06-22  Bruno Haible  <bruno@clisp.org>
58532
58533         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58534         backslashes.
58535         * tests/test-echo.sh: New file.
58536
58537 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58538
58539         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58540         simplify `sed_replace_build_aux' scripts, they are portable but
58541         echoing them with `echo' is not.
58542         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58543
58544 2007-06-21  Karl Berry  <karl@gnu.org>
58545
58546         * config/srclist.txt: guess we can't handle the licenses via
58547         srclist at the moment.
58548
58549 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58550
58551         * MODULES.html.sh: Add include_next.
58552         * modules/include_next: New file.
58553
58554 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58555
58556         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58557         INCLUDE_NEXT.
58558         (gl_CHECK_NEXT_HEADERS): New macro.
58559         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58560         the obsolescent gl_ABSOLUTE_HEADER.
58561         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58562         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58563         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58564         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58565         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58566         * m4/math_h.m4 (gl_MATH_H): Likewise.
58567         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58568         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58569         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58570         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58571         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58572         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58573         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58574         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58575         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58576         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58577         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58578         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58579         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58580         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58581         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58582         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58583         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58584         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58585         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58586         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58587         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58588         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58589         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58590         * lib/float_.h: Likewise.
58591         * lib/inttypes_.h: Likewise.
58592         * lib/math_.h: Likewise.
58593         * lib/search_.h: Likewise.
58594         * lib/signal_.h: Likewise.
58595         * lib/stdint_.h: Likewise.
58596         * lib/stdio_.h: Likewise.
58597         * lib/stdlib_.h: Likewise.
58598         * lib/string_.h: Likewise.
58599         * lib/sys_stat_.h: Likewise.
58600         * lib/sys_time_.h: Likewise.
58601         * lib/time_.h: Likewise.
58602         * lib/unistd_.h: Likewise.
58603         * lib/wchar_.h: Likewise.
58604         * lib/wctype_.h: Likewise.
58605         * lib/dirent_.h: Likewise.
58606         * lib/iconv_.h: Likewise.
58607         * lib/locale_.h: Likewise.
58608         * lib/netinet_in_.h: Likewise.
58609         * lib/sys_select_.h: Likewise.
58610         * lib/sys_socket_.h: Likewise.
58611         * lib/sysexits_.h: Likewise.
58612         * modules/fcntl (Depends-on): Depend on include_next, not
58613         absolute_header.
58614         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58615         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58616         * modules/fchdir: Likewise.
58617         * modules/float: Likewise.
58618         * modules/iconv_open: Likewise.
58619         * modules/inttypes: Likewise.
58620         * modules/locale: Likewise.
58621         * modules/math: Likewise.
58622         * modules/netinet_in: Likewise.
58623         * modules/search: Likewise.
58624         * modules/signal: Likewise.
58625         * modules/stdint: Likewise.
58626         * modules/stdio: Likewise.
58627         * modules/stdlib: Likewise.
58628         * modules/string: Likewise.
58629         * modules/sys_select: Likewise.
58630         * modules/sys_socket: Likewise.
58631         * modules/sys_stat: Likewise.
58632         * modules/sys_time: Likewise.
58633         * modules/sysexits: Likewise.
58634         * modules/time: Likewise.
58635         * modules/unistd: Likewise.
58636         * modules/wchar: Likewise.
58637         * modules/wctype: Likewise.
58638         * modules/sys_stat: Change maintainer to "all".
58639         * modules/unistd: Likewise.
58640
58641 2007-06-20  Karl Berry  <karl@gnu.org>
58642
58643         * config/srclist.txt: track www changes in license files.
58644
58645 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58646
58647         * build-aux/bootstrap: Remove stray dot.
58648         Make sure build_aux settings are honored when linking
58649         gnulib_extra_files.
58650
58651 2007-06-19  Eric Blake  <ebb9@byu.net>
58652
58653         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58654         Allow compilation on cygwin.
58655
58656 2007-06-19  Jim Meyering  <jim@meyering.net>
58657
58658         xreadlink-with-size: Remove module.  No longer used.
58659         Ex-callers now use xreadlink or mreadlink-with-size.
58660         * modules/xreadlink-with-size: Remove module.
58661         * lib/xreadlink-with-size.c: Remove file.
58662         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58663         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58664         just before the function definition *is* accurate.
58665
58666         Eliminate one way canonicalize_filename_mode could exit.
58667         * lib/canonicalize.c (canonicalize_filename_mode):
58668         Use mreadlink_with_size, not xreadlink_with_size.
58669
58670 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58671
58672         Detect porting problems to FreeBSD/arm, which has time_t wider than
58673         long int.  Original problem reported for GNU diff by Xin Li in
58674         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58675         * modules/getdate (Depends-on): Add intprops, verify.
58676         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58677         is an integer type no wider than long int.
58678
58679 2007-06-18  Jim Meyering  <jim@meyering.net>
58680
58681         New module: mreadlink-with-size.
58682         * MODULES.html.sh: Add mreadlink-with-size.
58683         * modules/mreadlink-with-size: New module
58684         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58685         not xreadlink-with-size.
58686         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58687
58688 2007-06-16  Bruno Haible  <bruno@clisp.org>
58689
58690         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58691         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58692         Reported by Gary V. Vaughan <gary@gnu.org>.
58693
58694 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58695
58696         Revamp lchown so that it lives in unistd.h where it belongs.
58697         * lib/lchown.h: Remove.
58698         * lib/dirchownmod.c: Don't include lib/lchown.h.
58699         * lib/fchownat.c: Likewise.
58700         * lib/openat.c: Likewise.
58701         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58702         does not follow symlinks.
58703         (EOPNOTSUPP): Define if not defined.
58704         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58705         is defined to 0.
58706         (lchown): New decl.
58707         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58708         Do not check for lchown decl.
58709         Set REPLACE_LCHOWN.
58710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58711         REPLACE_LCHOWN.
58712         * modules/chown: Make it clear it follows symlinks.
58713         * modules/lchown: Make it clear it doesn't follow symlinks.
58714         (Files): Remove lib/lchown.h
58715         (Depends-on): Add unistd.
58716         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58717         (Include): Include <unistd.h>, not "lchown.h".
58718         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58719         REPLACE_LCHOWN.
58720
58721 2007-06-15  Jim Meyering  <jim@meyering.net>
58722
58723         Change license (GPL to LGPL) of fsusage and dependents.
58724         * modules/fsusage (License): Change to LGPL.
58725         * modules/full-read (License): Likewise.
58726         * modules/full-write (License): Likewise.
58727         * modules/safe-read (License): Likewise.
58728         * modules/safe-write (License): Likewise.
58729
58730 2007-06-14  Ben Pfaff  <blp@gnu.org>
58731
58732         Missing part of allocsa -> malloca transition.
58733         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58734         gl_MALLOCA.
58735
58736 2007-06-12  Bruno Haible  <bruno@clisp.org>
58737
58738         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58739         to ia64, x86_64, i386.
58740         Reported by Eric Blake.
58741
58742 2007-06-12  Bruno Haible  <bruno@clisp.org>
58743
58744         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58745         cross-compiling to x86_64.
58746
58747 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58748
58749         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58750         glitch reported by Ralf Wildenhues in
58751         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58752
58753         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58754         Vin Shelton.
58755
58756 2007-06-11  Bruno Haible  <bruno@clisp.org>
58757
58758         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58759         replacement string.
58760         Reported by Eric Blake.
58761
58762 2007-06-10  Bruno Haible  <bruno@clisp.org>
58763
58764         Prepare vasnprintf code for use with Unicode strings.
58765         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58766         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58767         TYPE_U32_STRING.
58768         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58769         a_u32_string variants.
58770         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58771         * lib/printf-args.c: Don't include config.h and the specification
58772         header if PRINTF_FETCHARGS is already defined.
58773         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58774         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58775         TYPE_U16_STRING, TYPE_U32_STRING.
58776         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58777         u16_directive, u16_directives, u32_directive, u32_directives): New
58778         types.
58779         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58780         New declarations.
58781         * lib/printf-parse.c: Don't include config.h and the specification
58782         header if PRINTF_PARSE is already defined. Eliminate the set of
58783         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58784         them now. Include c-ctype.h.
58785         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58786         directive and CHAR_T_ONLY_ASCII.
58787         * lib/vasnprintf.c: Don't include config.h and the specification header
58788         if VASNPRINTF is already defined.
58789         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58790         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58791         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58792         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58793         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58794         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58795         code accordingly.
58796         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58797         pad_ourselves also in this case, with the 'c' and 's' directives, and
58798         with a different notion of "width".
58799         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58800
58801 2007-06-10  Bruno Haible  <bruno@clisp.org>
58802
58803         * modules/unistr/u32-mbsnlen: New file.
58804         * lib/unistr/u32-mbsnlen.c: New file.
58805
58806         * modules/unistr/u16-mbsnlen: New file.
58807         * lib/unistr/u16-mbsnlen.c: New file.
58808
58809         * modules/unistr/u8-mbsnlen: New file.
58810         * lib/unistr/u8-mbsnlen.c: New file.
58811
58812         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58813         declarations.
58814
58815 2007-06-10  Bruno Haible  <bruno@clisp.org>
58816
58817         * lib/string_.h (mbsnlen): New declaration.
58818         * lib/mbsnlen.c: New file.
58819         * m4/mbsnlen.m4: New file.
58820         * modules/mbsnlen: New file.
58821         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58822         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58823         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58824
58825 2007-06-10  Bruno Haible  <bruno@clisp.org>
58826
58827         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58828
58829 2007-06-10  Bruno Haible  <bruno@clisp.org>
58830
58831         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58832         * lib/mbuiter.h: Likewise.
58833
58834 2007-06-10  Bruno Haible  <bruno@clisp.org>
58835
58836         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58837         declaration.
58838
58839 2007-06-10  Karl Berry  <karl@gnu.org>
58840
58841         * config/srclist.txt: remove gettext entries, Bruno prefers
58842         to update individually.
58843
58844 2007-06-10  Bruno Haible  <bruno@clisp.org>
58845
58846         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58847         'maxlen'. Ensure only length + width bytes are allocated, not
58848         length + 1 + width.
58849
58850 2007-06-09  Bruno Haible  <bruno@clisp.org>
58851
58852         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58853         (CHAR_T): Remove macro.
58854         (VASNPRINTF): Update.
58855
58856 2007-06-09  Bruno Haible  <bruno@clisp.org>
58857
58858         * MODULES.html.sh (Unicode string functions): Add the new modules.
58859
58860         * modules/uniconv/u32-conv-to-enc: New file.
58861         * lib/uniconv/u32-conv-to-enc.c: New file.
58862         * modules/uniconv/u32-conv-to-enc-tests: New file.
58863         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58864
58865         * modules/uniconv/u16-conv-to-enc: New file.
58866         * lib/uniconv/u16-conv-to-enc.c: New file.
58867         * lib/uniconv/u-conv-to-enc.h: New file.
58868         * modules/uniconv/u16-conv-to-enc-tests: New file.
58869         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58870
58871         * modules/uniconv/u8-conv-to-enc: New file.
58872         * lib/uniconv/u8-conv-to-enc.c: New file.
58873         * modules/uniconv/u8-conv-to-enc-tests: New file.
58874         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58875
58876         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58877         u32_conv_to_encoding): New declarations.
58878
58879 2007-06-09  Bruno Haible  <bruno@clisp.org>
58880
58881         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58882
58883 2007-06-09  Bruno Haible  <bruno@clisp.org>
58884
58885         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58886         * modules/malloca: Renamed from modules/allocsa, updated.
58887         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58888         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58889         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58890         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58891         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58892         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58893         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58894         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58895         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58896         * modules/c-strcasestr (Depends-on): Update.
58897         * lib/c-strcasestr.c: Update.
58898         * modules/c-strstr (Depends-on): Update.
58899         * lib/c-strstr.c: Update.
58900         * modules/canonicalize-lgpl (Depends-on): Update.
58901         * lib/canonicalize-lgpl.c: Update.
58902         * modules/clean-temp (Depends-on): Update.
58903         * lib/clean-temp.c: Update.
58904         * modules/csharpcomp (Depends-on): Update.
58905         * lib/csharpcomp.c: Update.
58906         * modules/csharpexec (Depends-on): Update.
58907         * lib/csharpexec.c: Update.
58908         * modules/javacomp (Depends-on): Update.
58909         * lib/javacomp.c: Update.
58910         * modules/javaexec (Depends-on): Update.
58911         * lib/javaexec.c: Update.
58912         * modules/mbscasestr (Depends-on): Update.
58913         * lib/mbscasestr.c: Update.
58914         * modules/mbsstr (Depends-on): Update.
58915         * lib/mbsstr.c: Update.
58916         * modules/setenv (Depends-on): Update.
58917         * lib/setenv.c: Update.
58918         * modules/strcasestr (Depends-on): Update.
58919         * lib/strcasestr.c: Update.
58920         * modules/striconveha (Depends-on): Update.
58921         * lib/striconveha.c: Update.
58922         * modules/relocatable-prog-wrapper (Files): Update.
58923         * lib/relocwrapper.c: Update.
58924         * build-aux/install-reloc: Update.
58925         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58926
58927 2007-06-08  Bruno Haible  <bruno@clisp.org>
58928
58929         Port to uClibc.
58930         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58931         * lib/fpurge.c (fpurge): Likewise.
58932         * lib/freading.c (freading): Likewise.
58933         * lib/fseeko.c (rpl_fseeko): Likewise.
58934         * lib/fseterr.c (fseterr): Likewise.
58935         * lib/fwriting.c (fwriting): Likewise.
58936         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58937
58938 2007-06-08  Bruno Haible  <bruno@clisp.org>
58939
58940         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58941         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58942         * modules/gettext (Files): Add m4/intlmacosx.m4.
58943
58944 2007-06-07  Bruno Haible  <bruno@clisp.org>
58945
58946         * modules/localename-tests: New file.
58947         * tests/test-localename.c: New file.
58948
58949         New module 'localename'.
58950         * lib/localename.h: New file.
58951         * lib/localename.c: New file, from GNU gettext.
58952         * m4/localename.m4: New file.
58953         * modules/localename: New file.
58954
58955 2007-06-07  Bruno Haible  <bruno@clisp.org>
58956
58957         Work around the lack of <wchar.h> on some builds of uClibc.
58958         * doc/headers/wchar.texi: Update.
58959         * lib/wchar_.h: Include <wchar.h> only if it exists.
58960         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58961         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58962         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58963         doesn't exist.
58964         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58965         * modules/mbfile (Depends-on): Add wchar.
58966         * modules/mbiter (Depends-on): Likewise.
58967         * modules/mbuiter (Depends-on): Likewise.
58968         Reported by Simon Josefsson.
58969
58970 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58971
58972         Work around problem reported by Steven M. Schweda in
58973         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58974         Tru64 5.1B with the Compaq compiler environment installed declares
58975         an 'isblank' function but does not define it in the C library.
58976         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58977         * lib/regex_internal.h (isblank): Likewise.
58978         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58979         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58980
58981 2007-06-05  Bruno Haible  <bruno@clisp.org>
58982
58983         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58984         ia64.
58985         * modules/printf-safe: New file.
58986         * modules/fprintf-posix (Depends-on): Add printf-safe.
58987         * modules/printf-posix (Depends-on): Likewise.
58988         * modules/snprintf-posix (Depends-on): Likewise.
58989         * modules/sprintf-posix (Depends-on): Likewise.
58990         * modules/vasnprintf-posix (Depends-on): Likewise.
58991         * modules/vasprintf-posix (Depends-on): Likewise.
58992         * modules/vfprintf-posix (Depends-on): Likewise.
58993         * modules/vprintf-posix (Depends-on): Likewise.
58994         * modules/vsnprintf-posix (Depends-on): Likewise.
58995         * modules/vsprintf-posix (Depends-on): Likewise.
58996         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58997         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58998         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58999         "no" on i386, x86_64, ia64.
59000         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59001         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59002         on i386, x86_64, ia64.
59003         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59004         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59005         on i386, x86_64, ia64.
59006         * tests/test-vasnprintf-posix.c: Include float.h.
59007         (LDBL80_WORDS): New macro.
59008         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59009         on i386, x86_64, ia64.
59010         * tests/test-vasprintf-posix.c: Include float.h.
59011         (LDBL80_WORDS): New macro.
59012         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59013         on i386, x86_64, ia64.
59014         * tests/test-snprintf-posix.c: Include float.h.
59015         * tests/test-sprintf-posix.c: Likewise.
59016         * tests/test-vsnprintf-posix.c: Likewise.
59017         * tests/test-vsprintf-posix.c: Likewise.
59018
59019 2007-06-05  Bruno Haible  <bruno@clisp.org>
59020
59021         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59022         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59023         non-IEEE numbers on i386, x86_64, ia64.
59024         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59025         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59026         * tests/test-isnanl.h: Include float.h.
59027         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59028
59029 2007-06-05  Bruno Haible  <bruno@clisp.org>
59030
59031         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59032         also the %a / %A. Handle the %a / %A code before this extra handling.
59033
59034 2007-06-05  Bruno Haible  <bruno@clisp.org>
59035
59036         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59037         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59038
59039 2007-06-05  Bruno Haible  <bruno@clisp.org>
59040
59041         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59042         typo in variable name.
59043
59044 2007-06-05  Eric Blake  <ebb9@byu.net>
59045
59046         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59047         Reported by Simon Josefsson.
59048
59049 2007-06-04  Bruno Haible  <bruno@clisp.org>
59050
59051         Avoid test failures on some PowerPC platforms.
59052         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59053         Define differently for PowerPC.
59054         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59055         Reported by Gary V. Vaughan <gary@gnu.org>.
59056
59057 2007-06-02  Bruno Haible  <bruno@clisp.org>
59058
59059         Fix test-stdint failure on FreeBSD/ia64.
59060         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59061         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59062         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59063         * doc/headers/stdint.texi: Update.
59064
59065 2007-06-01  Bruno Haible  <bruno@clisp.org>
59066
59067         * tests/test-binary-io.c (main): Pass a third argument to open().
59068         Reported by Gary V. Vaughan <gary@gnu.org>.
59069
59070 2007-06-01  Bruno Haible  <bruno@clisp.org>
59071
59072         * doc/functions/frexpl.texi: Update for mingw.
59073
59074 2007-06-01  Bruno Haible  <bruno@clisp.org>
59075
59076         * tests/test-lseek.c (main): Disable test of errno for invalid third
59077         argument.
59078         * doc/functions/lseek.texi: Update.
59079         Reported by Gary V. Vaughan <gary@gnu.org>.
59080
59081 2007-05-28  Bruno Haible  <bruno@clisp.org>
59082
59083         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59084
59085 2007-05-31  Eric Blake  <ebb9@byu.net>
59086
59087         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59088         cross compiling.
59089
59090 2007-05-30  Eric Blake  <ebb9@byu.net>
59091         and Bruno Haible  <bruno@clisp.org>
59092
59093         Work around mingw test failures exposed by m4-1.4.9b.
59094         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59095         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59096         moment.
59097
59098 2007-05-30  Bruno Haible  <bruno@clisp.org>
59099
59100         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59101         assuming that they are closed. Needed on HP-UX 11.
59102
59103 2007-05-29  Bruno Haible  <bruno@clisp.org>
59104
59105         Fix a problem with #include_next.
59106         * lib/dirent_.h: Split the double-inclusion guard.
59107         * lib/fcntl_.h: Likewise.
59108         * lib/float_.h: Likewise.
59109         * lib/iconv_.h: Likewise.
59110         * lib/inttypes_.h: Likewise.
59111         * lib/locale_.h: Likewise.
59112         * lib/math_.h: Likewise.
59113         * lib/netinet_in_.h: Likewise.
59114         * lib/search_.h: Likewise.
59115         * lib/signal_.h: Likewise.
59116         * lib/stdint_.h: Likewise.
59117         * lib/stdio_.h: Likewise.
59118         * lib/stdlib_.h: Likewise.
59119         * lib/string_.h: Likewise.
59120         * lib/sys_select_.h: Likewise.
59121         * lib/sys_socket_.h: Likewise.
59122         * lib/sys_stat_.h: Likewise.
59123         * lib/sys_time_.h: Likewise.
59124         * lib/sysexits_.h: Likewise.
59125         * lib/time_.h: Likewise.
59126         * lib/unistd_.h: Likewise.
59127         * lib/wchar_.h: Likewise.
59128         * lib/wctype_.h: Likewise.
59129
59130 2007-05-29  Bruno Haible  <bruno@clisp.org>
59131
59132         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59133         for the moment.
59134
59135 2007-05-29  Bruno Haible  <bruno@clisp.org>
59136
59137         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59138         invocation.
59139         Reported by Eric Blake.
59140
59141 2007-05-29  Bruno Haible  <bruno@clisp.org>
59142
59143         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59144         compiling case.
59145
59146 2007-05-29  Eric Blake  <ebb9@byu.net>
59147             Bruno Haible  <bruno@clisp.org>
59148
59149         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59150         cross compiles.
59151
59152 2007-05-28  Eric Blake  <ebb9@byu.net>
59153
59154         * modules/closein-tests (test_closein_LDADD): Support test on
59155         cygwin with libtool.
59156
59157 2007-05-28  Bruno Haible  <bruno@clisp.org>
59158
59159         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59160         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59161         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59162         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59163         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59164         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59165         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59166         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59167         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59168
59169 2007-05-28  Eric Blake  <ebb9@byu.net>
59170
59171         Unconditionally include <config.h> in unit tests.
59172         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59173         * tests/test-allocsa.c, tests/test-arcfour.c,
59174         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59175         tests/test-array_list.c, tests/test-array_oset.c,
59176         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59177         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59178         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59179         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59180         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59181         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59182         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59183         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59184         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59185         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59186         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59187         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59188         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59189         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59190         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59191         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59192         test-md5.c, test-memmem.c, test-printf-posix.c,
59193         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59194         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59195         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59196         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59197         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59198         test-vasnprintf-posix2.c, test-vasnprintf.c,
59199         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59200         test-vfprintf-posix.c, test-vprintf-posix.c,
59201         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59202         test-xvasprintf.c: Likewise.
59203
59204 2007-05-28  Bruno Haible  <bruno@clisp.org>
59205
59206         * gnulib-tool (func_import): Remember the --with-tests command-line
59207         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59208         Reported by Eric Blake.
59209
59210 2007-05-28  Bruno Haible  <bruno@clisp.org>
59211
59212         * modules/ftell-tests: New file.
59213         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59214         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59215
59216         * lib/ftell.c: New file.
59217         * modules/ftell: New file.
59218         * m4/ftell.m4: New file.
59219         * doc/functions/ftell.texi: Update.
59220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59221         REPLACE_FTELL.
59222         * lib/stdio_.h (rpl_ftell): New declaration.
59223         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59224         REPLACE_FTELL.
59225
59226 2007-05-28  Eric Blake  <ebb9@byu.net>
59227
59228         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59229
59230 2007-05-28  Bruno Haible  <bruno@clisp.org>
59231
59232         * modules/fseek-tests: New file.
59233         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59234         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59235
59236         * lib/fseek.c: New file.
59237         * modules/fseek: New file.
59238         * m4/fseek.m4: New file.
59239         * doc/functions/fseek.texi: Update.
59240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59241         REPLACE_FSEEK.
59242         * lib/stdio_.h (rpl_fseek): New declaration.
59243         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59244         REPLACE_FSEEK.
59245
59246 2007-05-28  Bruno Haible  <bruno@clisp.org>
59247
59248         * lib/stdio_.h (fflush): More comments.
59249
59250 2007-05-28  Bruno Haible  <bruno@clisp.org>
59251
59252         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59253         runtime test.
59254
59255 2007-05-28  Eric Blake  <ebb9@byu.net>
59256
59257         Improve lseek module.
59258         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59259         * lib/unistd_.h (lseek): Scale back link warning message.
59260         * tests/test-lseek.c: Beef up test.
59261         * tests/test-lseek.sh: Exercise more facets of lseek.
59262         Reported by Bruno Haible.
59263
59264 2007-05-28  Bruno Haible  <bruno@clisp.org>
59265
59266         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59267         to define.
59268
59269 2007-05-27  Bruno Haible  <bruno@clisp.org>
59270
59271         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59272
59273 2007-05-27  Bruno Haible  <bruno@clisp.org>
59274
59275         * modules/openmp: New file.
59276         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59277         Noah Misch.
59278
59279 2007-05-26  Bruno Haible  <bruno@clisp.org>
59280
59281         * modules/chdir-long (Depends-on): Add fchdir.
59282         * modules/chdir-safer (Depends-on): Likewise.
59283         * modules/fts (Depends-on): Likewise.
59284         * modules/fts-lgpl (Depends-on): Likewise.
59285         * modules/openat (Depends-on): Likewise.
59286         * modules/savewd (Depends-on): Likewise.
59287
59288 2007-05-24  Eric Blake  <ebb9@byu.net>
59289
59290         Fix lseek on mingw.
59291         * modules/lseek: New module.
59292         * m4/lseek.m4: New file.
59293         * lib/lseek.c: New file.
59294         * modules/lseek-tests: New file.
59295         * tests/test-lseek.c: New file.
59296         * tests/test-lseek.sh: New file.
59297         * MODULES.html.sh: Document lseek module.
59298         * modules/fflush (Depends-on): Add lseek, fseeko.
59299         * modules/fseeko (Depends-on): Likewise.
59300         * modules/ftello (Depends-on): Likewise.
59301         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59302         broken.
59303         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59304         broken.
59305         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59306         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59307         * lib/ftello.c (rpl_ftello): Likewise.
59308         * tests/test-fseeko.c (main): Test this.
59309         * tests/test-fseeko.sh: Likewise.
59310         * tests/test-ftello.c (main): Likewise.
59311         * tests/test-ftello.sh: Likewise.
59312         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59313         implies replacing fseek.
59314         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59315         HAVE_FTELLO.
59316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59317         * modules/unistd (Makefile.am): Likewise.
59318         * lib/unistd_.h (lseek): Declare a replacement.
59319         * doc/functions/lseek.texi (lseek): Document this fix.
59320         * doc/functions/fseek.texi (fseek): Likewise.
59321         * doc/functions/ftell.texi (ftell): Likewise.
59322
59323 2007-05-24  Bruno Haible  <bruno@clisp.org>
59324
59325         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59326         in the printed representation of a NaN.
59327         * tests/test-vasprintf-posix.c (test_function): Likewise.
59328         * tests/test-snprintf-posix.h (test_function): Likewise.
59329         * tests/test-sprintf-posix.h (test_function): Likewise.
59330         Reported by Eric Blake.
59331
59332 2007-05-23  Eric Blake  <ebb9@byu.net>
59333
59334         Fix fseeko/ftello on cygwin 1.5.24.
59335         * doc/functions/fseeko.texi (fseeko): Document the fix.
59336         * doc/functions/ftello.texi (ftello): Document the fix.
59337         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59338         * doc/functions/stdout.text (stdout): New file.
59339         * doc/functions/stderr.text (stderr): New file.
59340         * doc/gnulib.texi (Function Substitutes): Use new files.
59341         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59342         prior to 1.7.0.
59343         * tests/test-ftello.c (main): Likewise for ftello.
59344         * tests/test-fseeko.sh: New file.
59345         * tests/test-ftello.sh: New file.
59346         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59347         with seekable stdin.
59348         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59349         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59350         (gl_REPLACE_FSEEKO): New macro.
59351         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59352         * modules/fseeko (Files): Distribute fseeko.c.
59353         * modules/ftello (Files): Distribute ftello.c.
59354         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59355         mode.
59356         * lib/ftello.c (rpl_ftello): New file.
59357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59358         fseeko, ftello.
59359         (gl_STDIN_LARGE_OFFSET): New macro.
59360         * modules/stdio (Makefile.am): Perform the replacement.
59361         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59362
59363 2007-05-23  Bruno Haible  <bruno@clisp.org>
59364
59365         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59366         GNULIB_POSIXCHECK is defined.
59367
59368 2007-05-21  Bruno Haible  <bruno@clisp.org>
59369
59370         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59371         Check also the output for NaN arguments. When cross-compiling, guess
59372         no on IRIX.
59373         * lib/vasnprintf.c: Update comments.
59374         * tests/test-vasnprintf-posix.c (strisnan): New function.
59375         (test_function): Use it.
59376         * tests/test-vasprintf-posix.c (strisnan): New function.
59377         (test_function): Use it.
59378         * tests/test-snprintf-posix.h (strisnan): New function.
59379         (test_function): Use it.
59380         * tests/test-sprintf-posix.h (strisnan): New function.
59381         (test_function): Use it.
59382         Reported by Eric Blake.
59383
59384 2007-05-20  Bruno Haible  <bruno@clisp.org>
59385
59386         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59387         numbers that fails on BeOS.
59388         * doc/functions/frexpl.texi: Update.
59389
59390 2007-05-20  Jim Meyering  <jim@meyering.net>
59391
59392         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59393         forced upon us by glibc-2.6.
59394
59395 2007-05-20  Bruno Haible  <bruno@clisp.org>
59396
59397         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59398         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59399         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59400         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59401         NEED_PRINTF_INFINITE.
59402         (is_infinitel): New function.
59403         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59404         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59405         gl_PREREQ_VASNPRINTF_INFINITE.
59406         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59407         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59408         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59409         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59410         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59411         gl_PREREQ_VASNPRINTF_INFINITE.
59412         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59413         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59414         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59415         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59416         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59417         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59418         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59419         * doc/functions/fprintf.texi: Update.
59420         * doc/functions/printf.texi: Update.
59421         * doc/functions/snprintf.texi: Update.
59422         * doc/functions/sprintf.texi: Update.
59423         * doc/functions/vfprintf.texi: Update.
59424         * doc/functions/vprintf.texi: Update.
59425         * doc/functions/vsnprintf.texi: Update.
59426         * doc/functions/vsprintf.texi: Update.
59427
59428 2007-05-20  Bruno Haible  <bruno@clisp.org>
59429
59430         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59431         was not found in libc.
59432         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59433
59434 2007-05-20  Bruno Haible  <bruno@clisp.org>
59435
59436         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59437         printed as "-nan" instead of "nan".
59438         * tests/test-vasprintf-posix.c (test_function): Likewise.
59439         * tests/test-snprintf-posix.h (test_function): Likewise.
59440         * tests/test-sprintf-posix.h (test_function): Likewise.
59441         Needed for HP-UX 11.
59442
59443 2007-05-20  Jim Meyering  <jim@meyering.net>
59444
59445         Fix buggy test for the fchownat-deref bug.
59446         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59447         symlink required for the run-test.  Without it, this test would
59448         always declare that fchownat doesn't work, and client code would
59449         unnecessarily use the replacement function with fixed libc.
59450         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59451         Reported by Greg Schafer.
59452
59453 2007-05-19  Bruno Haible  <bruno@clisp.org>
59454
59455         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59456         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59457         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59458         Needed for IRIX 6.5 and Solaris 2.5.1.
59459
59460 2007-05-19  Bruno Haible  <bruno@clisp.org>
59461
59462         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59463         (test_function): Skip tests involving -0.0 on platforms where
59464         -0.0 = 0.0.
59465         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59466         (test_function): Skip tests involving -0.0 on platforms where
59467         -0.0 = 0.0.
59468         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59469         (test_function): Skip tests involving -0.0 on platforms where
59470         -0.0 = 0.0.
59471         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59472         (test_function): Skip tests involving -0.0 on platforms where
59473         -0.0 = 0.0.
59474         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59475         tests.
59476         * tests/test-printf-posix.h (test_function): Likewise.
59477         * tests/test-printf-posix.output: Remove all -0.0 related results.
59478         Needed for IRIX 6.5.
59479
59480 2007-05-19  Bruno Haible  <bruno@clisp.org>
59481
59482         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59483         printed as "nan0x7fffffff" instead of "nan".
59484         * tests/test-vasprintf-posix.c (test_function): Likewise.
59485         * tests/test-snprintf-posix.h (test_function): Likewise.
59486         * tests/test-sprintf-posix.h (test_function): Likewise.
59487         * tests/test-fprintf-posix.h (NaN): Remove macro.
59488         (test_function): Remove all NaN related tests.
59489         * tests/test-printf-posix.h (NaN): Remove macro.
59490         (test_function): Remove all NaN related tests.
59491         * tests/test-printf-posix.output: Remove all NaN related results.
59492         Needed for IRIX 6.5.
59493
59494 2007-05-19  Bruno Haible  <bruno@clisp.org>
59495
59496         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59497         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59498
59499 2007-05-19  Bruno Haible  <bruno@clisp.org>
59500
59501         * lib/float_.h: New file.
59502         * m4/float_h.m4: New file.
59503         * modules/float: New file.
59504         * modules/isnanl (Dependencies): Add float.
59505         * modules/isnanl-nolibm (Dependencies): Likewise.
59506         * modules/mathl (Dependencies): Likewise.
59507         * modules/printf-frexpl (Dependencies): Likewise.
59508         * modules/signbit (Dependencies): Likewise.
59509         * modules/vasnprintf (Dependencies): Likewise.
59510         * doc/headers/float.texi: Update.
59511
59512 2007-05-19  Jim Meyering  <jim@meyering.net>
59513
59514         * lib/utimens.c (gl_futimens): Rename from futimens,
59515         now that glibc-2.6 declares futimens.
59516         * lib/utimens.h: Likewise.
59517
59518 2007-05-19  Bruno Haible  <bruno@clisp.org>
59519
59520         Avoid test failures on mingw.
59521         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59522         * tests/test-printf-posix.sh: Likewise.
59523         * tests/test-vfprintf-posix.sh: Likewise.
59524         * tests/test-vprintf-posix.sh: Likewise.
59525
59526 2007-05-19  Bruno Haible  <bruno@clisp.org>
59527
59528         Fix *printf result for NaN, Inf, -0.0 on mingw.
59529         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59530         * lib/vasnprintf.c: Include math.h and isnan.h.
59531         (is_infinite_or_zero): New function.
59532         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59533         values in the %f, %F, %e, %E, %g, %G directives.
59534         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59535         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59536         gl_PRINTF_INFINITE and test its result. Invoke
59537         gl_PREREQ_VASNPRINTF_INFINITE.
59538         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59539         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59540         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59541         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59542         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59543         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59544         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59545         * doc/functions/fprintf.texi: Update.
59546         * doc/functions/printf.texi: Update.
59547         * doc/functions/snprintf.texi: Update.
59548         * doc/functions/sprintf.texi: Update.
59549         * doc/functions/vfprintf.texi: Update.
59550         * doc/functions/vprintf.texi: Update.
59551         * doc/functions/vsnprintf.texi: Update.
59552         * doc/functions/vsprintf.texi: Update.
59553
59554 2007-05-19  Bruno Haible  <bruno@clisp.org>
59555
59556         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59557         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59558         Instead of multiplying with 10^k, set extra_zeroes to k.
59559         (scale10_round_long_double): Remove function.
59560
59561 2007-05-18  Bruno Haible  <bruno@clisp.org>
59562
59563         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59564         introduced on 2007-05-06.
59565
59566 2007-05-18  Bruno Haible  <bruno@clisp.org>
59567
59568         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59569         %g directives.
59570         * tests/test-vasprintf-posix.c (test_function): Likewise.
59571         * tests/test-snprintf-posix.h (test_function): Likewise.
59572         * tests/test-sprintf-posix.h (test_function): Likewise.
59573
59574 2007-05-18  Bruno Haible  <bruno@clisp.org>
59575
59576         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59577         (strmatch): New function.
59578         (test_function): Test the %f directive on numbers of various exponents.
59579         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59580         (strmatch): New function.
59581         (test_function): Test the %f directive on numbers of various exponents.
59582         * tests/test-snprintf-posix.h (strmatch): New function.
59583         (test_function): Test the %f directive on numbers of various exponents.
59584         * tests/test-sprintf-posix.h (strmatch): New function.
59585         (test_function): Test the %f directive on numbers of various exponents.
59586         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59587         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59588         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59589         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59590
59591 2007-05-18  Bruno Haible  <bruno@clisp.org>
59592
59593         Add support for 'long double' number output.
59594         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59595         * lib/vasnprintf.c: Include math.h and float+.h.
59596         (mp_limb_t): New type.
59597         (GMP_LIMB_BITS): New macro.
59598         (mp_twolimb_t): New type.
59599         (GMP_TWOLIMB_BITS): New macro.
59600         (mpn_t): New type.
59601         (multiply, divide, convert_to_decimal, decode_long_double,
59602         scale10_round_long_double, scale10_round_decimal_long_double,
59603         floorlog10l): New functions.
59604         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59605         for the %f, %F, %e, %E, %g, %G directives.
59606         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59607         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59608         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59609         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59610         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59611         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59612         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59613         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59614         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59615         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59616         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59617         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59618         * modules/snprintf-posix (Depends-on): Likewise.
59619         * modules/sprintf-posix (Depends-on): Likewise.
59620         * modules/vasnprintf-posix (Depends-on): Likewise.
59621         * modules/vasprintf-posix (Depends-on): Likewise.
59622         * modules/vfprintf-posix (Depends-on): Likewise.
59623         * modules/vsnprintf-posix (Depends-on): Likewise.
59624         * modules/vsprintf-posix (Depends-on): Likewise.
59625         * modules/vasnprintf (Files): Add lib/float+.h.
59626         * doc/functions/fprintf.texi: Update.
59627         * doc/functions/printf.texi: Update.
59628         * doc/functions/snprintf.texi: Update.
59629         * doc/functions/sprintf.texi: Update.
59630         * doc/functions/vfprintf.texi: Update.
59631         * doc/functions/vprintf.texi: Update.
59632         * doc/functions/vsnprintf.texi: Update.
59633         * doc/functions/vsprintf.texi: Update.
59634
59635 2007-05-18  Bruno Haible  <bruno@clisp.org>
59636
59637         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59638
59639 2007-05-18  Bruno Haible  <bruno@clisp.org>
59640
59641         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59642         for printing 64-bit integers. Needed for mingw.
59643
59644 2007-05-18  Bruno Haible  <bruno@clisp.org>
59645
59646         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59647         gl_FUNC_FREXPL_WORKS.
59648         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59649
59650 2007-05-18  Bruno Haible  <bruno@clisp.org>
59651
59652         * modules/frexpl-nolibm-tests: New file.
59653
59654         * modules/frexpl-nolibm: New file.
59655         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59656
59657 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59658
59659         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59660         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59661         GCC 4.2, which otherwise issues a lot of warnings.
59662         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59663         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59664         Likewise.
59665         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59666         * modules/iconv_open (iconv.h): Likewise.
59667         * modules/locale (locale.h): Likewise.
59668         * modules/netinet_in (netinet/in.h): Likewise.
59669         * modules/sys_select (sys_select.h): Likewise.
59670         * modules/sys_socket (sys/socket.h): Likewise.
59671         * modules/sys_stat (sys/stat.h): Likewise.
59672         * modules/sysexits (sysexits.h): Likewise.
59673         * modules/unistd (unistd.h): Likewise.
59674
59675 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59676
59677         * modules/closein-tests (Makefile.am): Distribute
59678         `test-closein.sh'.
59679
59680 2007-05-17  Bruno Haible  <bruno@clisp.org>
59681
59682         * tests/test-printf-posix.output: Renamed from
59683         tests/test-fprintf-posix.out.
59684         * modules/fprintf-posix-tests: Update.
59685         * modules/printf-posix-tests: Update.
59686         * modules/vfprintf-posix-tests: Update.
59687         * modules/vprintf-posix-tests: Update.
59688         * tests/test-fprintf-posix.sh: Update.
59689         * tests/test-printf-posix.sh: Update.
59690         * tests/test-vfprintf-posix.sh: Update.
59691         * tests/test-vprintf-posix.sh: Update.
59692         Reported by Ralf Wildenhues.
59693
59694 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59695
59696         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59697         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59698         GCC 4.2, which otherwise issues a lot of warnings.
59699         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59700         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59701         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59702         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59703         it should no longer be needed.
59704         * lib/string_.h: Likewise.
59705         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59706         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59707         * modules/inttypes (inttypes.h): Likewise.
59708         * modules/math (math.h): Likewise.
59709         * modules/search (search.h): Likewise.
59710         * modules/signal (signal.h): Likewise.
59711         * modules/stdint (stdint.h): Likewise.
59712         * modules/stdio (stdio.h): Likewise.
59713         * modules/stdlib (stdlib.h): Likewise.
59714         * modules/string (string.h): Likewise.
59715         * modules/sys_time (sys/time.h): Likewise.
59716         * modules/time (time.h): Likewise.
59717         * modules/wchar (wchar.h): Likewise.
59718         * modules/wctype (wtype.h): Likewise.
59719
59720 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59721
59722         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59723
59724 2007-05-13  Bruno Haible  <bruno@clisp.org>
59725
59726         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59727         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59728         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59729         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59730         (gl_PREREQ_STRTOK_R): Don't require it here.
59731
59732 2007-05-13  Bruno Haible  <bruno@clisp.org>
59733
59734         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59735         when used in C++ mode.
59736
59737 2007-05-12  Bruno Haible  <bruno@clisp.org>
59738
59739         * lib/linebuffer.h: Tweak doc.
59740         * lib/linebuffer.c: Likewise.
59741
59742 2007-05-12  James Youngman  <jay@gnu.org>
59743
59744         * lib/linebuffer.c (readlinebuffer_delim): New function,
59745         like readlinebuffer, but use a caller-specified delimiter.
59746         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59747         as the delimiter.
59748         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59749
59750 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59751
59752         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59753         * modules/openat (Files): Remove openat-die.c.
59754         (Depends-on): Add openat-die.
59755         * modules/openat-die: New module.
59756
59757 2007-05-06  Bruno Haible  <bruno@clisp.org>
59758
59759         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59760         Update with info about Cygwin.
59761         * doc/functions/fprintf.texi: Update.
59762         * doc/functions/printf.texi: Update.
59763         * doc/functions/snprintf.texi: Update.
59764         * doc/functions/sprintf.texi: Update.
59765         * doc/functions/vfprintf.texi: Update.
59766         * doc/functions/vprintf.texi: Update.
59767         * doc/functions/vsnprintf.texi: Update.
59768         * doc/functions/vsprintf.texi: Update.
59769         Reported by Eric Blake.
59770
59771 2007-05-06  Bruno Haible  <bruno@clisp.org>
59772
59773         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59774         padding ourselves for the floating-point directives.
59775         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59776         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59777         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59778         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59779         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59780         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59781         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59782         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59783         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59784         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59785         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59786         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59787         * tests/test-snprintf-posix.h (test_function): Also check the width
59788         and some flags in the %f directive.
59789         * tests/test-sprintf-posix.h (test_function): Likewise.
59790         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59791         * tests/test-vasprintf-posix.c (test_function): Likewise.
59792         * doc/functions/fprintf.texi: Update.
59793         * doc/functions/printf.texi: Update.
59794         * doc/functions/snprintf.texi: Update.
59795         * doc/functions/sprintf.texi: Update.
59796         * doc/functions/vfprintf.texi: Update.
59797         * doc/functions/vprintf.texi: Update.
59798         * doc/functions/vsnprintf.texi: Update.
59799         * doc/functions/vsprintf.texi: Update.
59800
59801 2007-05-06  Bruno Haible  <bruno@clisp.org>
59802
59803         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59804         pass the ' flag character to sprintf or snprintf.
59805         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59806         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59807         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59808         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59809         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59810         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59811         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59812         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59813         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59814         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59815         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59816         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59817         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59818         flag.
59819         * tests/test-sprintf-posix.h (test_function): Likewise.
59820         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59821         * tests/test-vasprintf-posix.c (test_function): Likewise.
59822         * doc/functions/fprintf.texi: Update.
59823         * doc/functions/printf.texi: Update.
59824         * doc/functions/snprintf.texi: Update.
59825         * doc/functions/sprintf.texi: Update.
59826         * doc/functions/vfprintf.texi: Update.
59827         * doc/functions/vprintf.texi: Update.
59828         * doc/functions/vsnprintf.texi: Update.
59829         * doc/functions/vsprintf.texi: Update.
59830
59831 2007-05-01  Bruno Haible  <bruno@clisp.org>
59832
59833         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59834
59835 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59836
59837         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59838         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59839
59840 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59841
59842         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59843         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59844         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59845
59846 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59847
59848         * lib/argp-help.c (struct hol_entry): New member `ord'.
59849         (HOL_ENTRY_PTRCMP): Use ord for comparison
59850         (hol_sort): Initialize ord.
59851
59852 2007-05-01  Bruno Haible  <bruno@clisp.org>
59853
59854         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59855         Reported by Eric Blake.
59856         * doc/gnulib.texi (Function Substitutes): Update.
59857
59858 2007-05-01  Bruno Haible  <bruno@clisp.org>
59859
59860         * doc/functions.texi: Remove file, now redundant through
59861         doc/functions/*.texi.
59862
59863 2007-05-01  Bruno Haible  <bruno@clisp.org>
59864
59865         * modules/argp (Depends-on): Add sleep.
59866
59867 2007-05-01  Bruno Haible  <bruno@clisp.org>
59868
59869         * modules/sleep-tests: New file.
59870         * tests/test-sleep.c: New file.
59871
59872         * modules/sleep: New file.
59873         * lib/sleep.c: New file.
59874         * m4/sleep.m4: New file.
59875         * lib/unistd_.h (sleep): New declaration.
59876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59877         HAVE_SLEEP.
59878         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59879         * doc/functions/sleep.texi: Document the sleep module.
59880
59881 2007-05-01  Bruno Haible  <bruno@clisp.org>
59882
59883         * lib/sigprocmask.h: Remove file.
59884         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59885         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59886         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59887         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59888         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59889         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59890         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59891         HAVE_SIGSET_T as a shell variable.
59892         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59893         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59894         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59895         (Depends-on): Add signal. Remove verify.
59896         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59897         (Include): Mention <signal.h> instead of sigprocmask.h.
59898         * NEWS: Mention the change.
59899         * lib/fatal-signal.c: Don't include sigprocmask.h.
59900
59901 2007-05-01  Bruno Haible  <bruno@clisp.org>
59902
59903         * modules/signal: New file.
59904         * lib/signal_.h: New file.
59905         * m4/signal_h.m4: New file.
59906
59907 2007-05-01  Bruno Haible  <bruno@clisp.org>
59908
59909         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59910         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59911         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59912         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59913
59914 2007-05-01  Bruno Haible  <bruno@clisp.org>
59915
59916         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59917         configure time.
59918         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59919         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59920         * modules/sys_stat (Makefile.am): Substitute their values into
59921         sys/stat.h.
59922
59923 2007-05-01  Bruno Haible  <bruno@clisp.org>
59924
59925         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59926         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59927         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59928
59929 2007-05-01  Bruno Haible  <bruno@clisp.org>
59930
59931         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59932         'assert' module here.
59933
59934 2007-05-01  Bruno Haible  <bruno@clisp.org>
59935
59936         * doc/functions/*.texi: New files.
59937         * doc/functions/google-ranking.txt: New file.
59938         * doc/gnulib.texi (Function Substitutes): New chapter.
59939         (ctime, inet_ntoa): Remove sections.
59940         * doc/ctime.texi: Remove file.
59941         * doc/inet_ntoa.texi: Remove file.
59942         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59943         dependencies.
59944         (%.info): New rule, specifying a --reference-limit.
59945
59946 2007-05-01  Bruno Haible  <bruno@clisp.org>
59947
59948         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59949
59950 2007-05-01  Bruno Haible  <bruno@clisp.org>
59951
59952         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59953         the portability of 'mkdir' to mingw systems.
59954
59955 2007-05-01  Bruno Haible  <bruno@clisp.org>
59956
59957         * doc/headers/google-ranking.txt: New file.
59958
59959 2007-04-30  Eric Blake  <ebb9@byu.net>
59960
59961         Prefer fseeko to fseek.
59962         * modules/getpass (Depends-on): Add fseeko.
59963         * lib/getpass.c (getpass): Use fseeko, not fseek.
59964
59965 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59966
59967         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59968         assumes the sorting is stable, while most qsort implementations
59969         are not.  Use argument addresses to ensure they never compare as
59970         equal.
59971
59972         * tests/test-argp-2.sh (usage-indent test): Fix output
59973         (func_compare): Restore diff options
59974         * tests/test-argp.c: Restore #include "progname.h"
59975
59976 2007-04-29  Bruno Haible  <bruno@clisp.org>
59977
59978         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59979         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59980         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59981         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59982         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59983         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59984         (TESTS, check_PROGRAMS): Add test-snprintf.
59985         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59986         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59987         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59988         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59989         assertions that fail on HP-UX, OSF/1, or IRIX.
59990         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59991
59992 2007-04-29  Bruno Haible  <bruno@clisp.org>
59993
59994         * MODULES.html.sh (posix_functions): Remove 'contents'.
59995
59996 2007-04-29  Karl Berry  <karl@gnu.org>
59997
59998         * config/srclist.txt (gendocs_template_min): new entry.
59999
60000 2007-04-29  Bruno Haible  <bruno@clisp.org>
60001
60002         Work around fpurge bug on BSD systems.
60003         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60004         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60005         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60006         fpurge to rpl_fpurge if the system already has this function.
60007         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60008         the case where the system already has this function. Correct invariants
60009         on BSD systems.
60010         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60011         BSD systems.
60012
60013 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60014
60015         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60016         proposed by Sven Verdoolaege.
60017
60018         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60019         options.
60020         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60021         (usage and help tests): Update
60022
60023 2007-04-29  Bruno Haible  <bruno@clisp.org>
60024
60025         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60026         Print more information in case of failure. Disable a test on BeOS.
60027
60028 2007-04-29  Bruno Haible  <bruno@clisp.org>
60029
60030         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60031         This helps debugging on systems on which no gdb is available.
60032
60033 2007-04-29  Bruno Haible  <bruno@clisp.org>
60034
60035         * lib/freading.h: Improve comments.
60036         * lib/fwriting.h: Likewise.
60037         * tests/test-freading.c (main): Don't check freading immediately after
60038         repositioning. Needed for glibc.
60039
60040 2007-04-29  Bruno Haible  <bruno@clisp.org>
60041
60042         * lib/freading.c (freading): Trivial simplification.
60043
60044 2007-04-28  Bruno Haible  <bruno@clisp.org>
60045
60046         * tests/test-fwriting.c (main): Also test the interaction between
60047         fflush and fwriting.
60048         * modules/fwriting-tests (Depends-on): Add fflush.
60049
60050         * tests/test-freading.c (main): Also test the interaction between
60051         fflush and freading.
60052         * modules/freading-tests (Depends-on): Add fflush.
60053
60054 2007-04-28  Bruno Haible  <bruno@clisp.org>
60055
60056         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60057         fseeko and ftello.
60058         Suggested by Eric Blake.
60059
60060 2007-04-28  Jim Meyering  <jim@meyering.net>
60061
60062         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60063         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60064         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60065
60066 2007-04-27  Eric Blake  <ebb9@byu.net>
60067
60068         * doc/headers/assert.texi (assert.h): Document assert module use.
60069
60070 2007-04-27  Bruno Haible  <bruno@clisp.org>
60071
60072         * doc/headers/*.texi: New files.
60073         * doc/gnulib.texi (Header File Substitutes): New chapter.
60074         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60075         dependencies.
60076         (standards.info ,standards.html, standards.dvi): Update dependencies.
60077         (mostlyclean, clean): New targets.
60078
60079 2007-04-27  Bruno Haible  <bruno@clisp.org>
60080
60081         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60082         * modules/sysexits (Files, Makefile.am): Update.
60083
60084         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60085         * modules/sys_socket (Files, Makefile.am): Update.
60086
60087         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60088         * modules/sys_stat (Files, Makefile.am): Update.
60089
60090 2007-04-27  Eric Blake  <ebb9@byu.net>
60091
60092         * lib/freading.h: Improve comments.
60093         * lib/fwriting.h: Likewise.
60094         * lib/fflush.c: Likewise.
60095
60096         Fix closein for mingw.
60097         * modules/closein-tests: Add tests for closein.
60098         * tests/test-closein.c: New file.
60099         * tests/test-closein.sh: Likewise.
60100         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60101         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60102
60103 2007-04-27  Bruno Haible  <bruno@clisp.org>
60104
60105         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60106         version is < 6.
60107         * lib/math_.h [__DECC]: Likewise.
60108         * lib/stdio_.h [__DECC]: Likewise.
60109         * lib/stdlib_.h [__DECC]: Likewise.
60110         * lib/string_.h [__DECC]: Likewise.
60111         * lib/time_.h [__DECC]: Likewise.
60112         * lib/wchar_.h [__DECC]: Likewise.
60113         * lib/wctype_.h [__DECC]: Likewise.
60114
60115 2007-04-27  Bruno Haible  <bruno@clisp.org>
60116
60117         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60118
60119 2007-04-27  Bruno Haible  <bruno@clisp.org>
60120
60121         * lib/fflush.c: Add comments.
60122         * modules/fpurge-tests (Depends-on): Add fflush.
60123         * modules/freadable-tests (Depends-on): Likewise.
60124         * modules/fwritable-tests (Depends-on): Likewise.
60125
60126 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60127
60128         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60129         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60130         Report by Bruno Haible <bruno@clisp.org>.
60131
60132 2007-04-26  Eric Blake  <ebb9@byu.net>
60133
60134         Fix fflush on mingw.
60135         * modules/fflush (Depends-on): Add freading.
60136         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60137         but unread data.
60138
60139 2007-04-26  Eric Blake  <ebb9@byu.net>
60140         and Bruno Haible  <bruno@clisp.org>
60141
60142         Implement freading and fwriting.
60143         * lib/freading.c: New file.
60144         * lib/freading.h: Likewise.
60145         * m4/freading.m4: Likewise.
60146         * modules/freading: Likewise.
60147         * modules/freading-tests: Likewise.
60148         * tests/test-freading.c: Likewise.
60149         * lib/fwriting.c: New file.
60150         * lib/fwriting.h: Likewise.
60151         * m4/fwriting.m4: Likewise.
60152         * modules/fwriting: Likewise.
60153         * modules/fwriting-tests: Likewise.
60154         * tests/test-fwriting.c: Likewise.
60155         * MODULES.html.sh (File stream based Input/Output): Mention them.
60156
60157 2007-04-26  Bruno Haible  <bruno@clisp.org>
60158
60159         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60160         'long' when we assume it.
60161         Suggested by Eric Blake.
60162
60163 2007-04-26  Bruno Haible  <bruno@clisp.org>
60164
60165         Ensure fseeko, ftello are declared on glibc systems.
60166         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60167         * modules/fseeko (configure.ac-early): Likewise.
60168         * modules/ftello (configure.ac-early): Likewise.
60169         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60170         AC_FUNC_FSEEKO for this.
60171         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60172         (gl_CHECK_FSEEKO): Remove macro.
60173
60174 2007-04-26  Bruno Haible  <bruno@clisp.org>
60175
60176         * tests/test-fflush.c (main): Also check the ftell result after
60177         fflush and fseek/fseeko.
60178         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60179         file descriptor position cache in the stream.
60180         * lib/fseeko.c (rpl_fseeko): Likewise.
60181
60182 2007-04-26  Bruno Haible  <bruno@clisp.org>
60183
60184         * modules/fflush-tests (Depends-on): Add fseeko.
60185
60186 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60187             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60188
60189         * lib/argz_.h: ensure error_t definition is obtained in same
60190         mechanism system argz.h would have.
60191         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60192         argz facilities are known bad.  Err on the side of caution if
60193         cross-compiling.
60194
60195 2007-04-25  Eric Blake  <ebb9@byu.net>
60196
60197         * lib/fpurge.c (includes): Use stdlib.h for free.
60198         * tests/test-fflush.c (main): Also test fflush-fseeko.
60199
60200 2007-04-25  Bruno Haible  <bruno@clisp.org>
60201
60202         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60203         * lib/fseeko.c: New file.
60204         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60205         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60206         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60207         gl_FUNC_FSEEKO.
60208         (gl_FUNC_FSEEKO): Invoke it.
60209         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60210         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60211         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60212
60213 2007-04-25  Bruno Haible  <bruno@clisp.org>
60214
60215         * modules/fflush (Depends-on): Add ftello.
60216
60217 2007-04-25  Bruno Haible  <bruno@clisp.org>
60218
60219         * modules/ftello-tests: New file.
60220         * tests/test-ftello.c: New file.
60221
60222         * modules/ftello: New file.
60223         * m4/ftello.m4: New file.
60224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60225         HAVE_FTELLO.
60226         * lib/stdio_.h (ftello): New declaration.
60227         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60228         HAVE_FTELLO.
60229
60230 2007-04-25  Bruno Haible  <bruno@clisp.org>
60231
60232         * modules/fseeko-tests: New file.
60233         * tests/test-fseeko.c: New file.
60234
60235         * modules/fseeko: New file.
60236         * m4/fseeko.m4: New file.
60237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60238         HAVE_FSEEKO.
60239         * lib/stdio_.h (fseeko): New declaration.
60240         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60241         HAVE_FSEEKO.
60242
60243 2007-04-25  Bruno Haible  <bruno@clisp.org>
60244
60245         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60246
60247 2007-04-25  Bruno Haible  <bruno@clisp.org>
60248
60249         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60250         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60251         * tests/test-unistd.c: Likewise.
60252         * tests/test-fcntl.c: Likewise.
60253
60254 2007-04-23  Eric Blake  <ebb9@byu.net>
60255
60256         * lib/fflush.c: Fix missing include.
60257         Reported by Bruno Haible.
60258
60259 2007-04-23  Bruno Haible  <bruno@clisp.org>
60260
60261         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60262         Reported by Eric Blake.
60263
60264 2007-04-23  Bruno Haible  <bruno@clisp.org>
60265
60266         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60267
60268 2007-04-23  Bruno Haible  <bruno@clisp.org>
60269
60270         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60271
60272 2007-04-23  Bruno Haible  <bruno@clisp.org>
60273
60274         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60275         Needed on HP-UX 11.
60276
60277 2007-04-16  Eric Blake  <ebb9@byu.net>
60278
60279         Make fflush rely on fpurge.
60280         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60281         open coding all variants.
60282         * modules/fflush (Depends-on): Add fpurge and unistd.
60283         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60284         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60285
60286         Fix --with-tests compilation on cygwin.
60287         * modules/argmatch-tests (Makefile.am): List gnulib library first
60288         in LDADD.
60289         * modules/argp-tests (Makefile.am): Likewise.
60290         * modules/array-list-tests (Makefile.am): Likewise.
60291         * modules/array-oset-tests (Makefile.am): Likewise.
60292         * modules/avltree-list-tests (Makefile.am): Likewise.
60293         * modules/avltree-oset-tests (Makefile.am): Likewise.
60294         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60295         * modules/carray-list-tests (Makefile.am): Likewise.
60296         * modules/dirname-tests (Makefile.am): Likewise.
60297         * modules/frexp-tests (Makefile.am): Likewise.
60298         * modules/isnanl-tests (Makefile.am): Likewise.
60299         * modules/linked-list-tests (Makefile.am): Likewise.
60300         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60301         * modules/lock-tests (Makefile.am): Likewise.
60302         * modules/rbtree-list-tests (Makefile.am): Likewise.
60303         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60304         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60305         * modules/tls-tests (Makefile.am): Likewise.
60306         * modules/tsearch-tests (Makefile.am): Likewise.
60307         * modules/xvasprintf-tests (Makefile.am): Likewise.
60308
60309         Fix fpurge for cygwin.
60310         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60311         value.
60312         * modules/fpurge-tests (Depends-on): Clean up trash.
60313
60314 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60315
60316         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60317
60318         * m4/autobuild.m4: Re-indent.
60319
60320 2007-04-13  Bruno Haible  <bruno@clisp.org>
60321
60322         * modules/fpurge-tests: New file.
60323         * tests/test-fpurge.c: New file.
60324
60325         * modules/fpurge: New file.
60326         * lib/fpurge.h: New file.
60327         * lib/fpurge.c: New file.
60328         * m4/fpurge.m4: New file.
60329
60330 2007-04-13  Bruno Haible  <bruno@clisp.org>
60331
60332         * modules/fbufmode-tests: New file.
60333         * tests/test-fbufmode.c: New file.
60334
60335         * modules/fbufmode: New file.
60336         * lib/fbufmode.h: New file.
60337         * lib/fbufmode.c: New file.
60338         * m4/fbufmode.m4: New file.
60339
60340 2007-04-13  Bruno Haible  <bruno@clisp.org>
60341
60342         * modules/fwritable-tests: New file.
60343         * tests/test-fwritable.c: New file.
60344
60345         * modules/fwritable: New file.
60346         * lib/fwritable.h: New file.
60347         * lib/fwritable.c: New file.
60348         * m4/fwritable.m4: New file.
60349
60350 2007-04-13  Bruno Haible  <bruno@clisp.org>
60351
60352         * modules/freadable-tests: New file.
60353         * tests/test-freadable.c: New file.
60354
60355         * modules/freadable: New file.
60356         * lib/freadable.h: New file.
60357         * lib/freadable.c: New file.
60358         * m4/freadable.m4: New file.
60359
60360 2007-04-13  Bruno Haible  <bruno@clisp.org>
60361
60362         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60363         MOSTLYCLEANFILES.
60364
60365 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60366
60367         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60368         gzip bootstrap.conf to avoid dragging in i18n machinery.
60369         (gnulib_tool_option): Use it.
60370
60371 2007-04-13  Bruno Haible  <bruno@clisp.org>
60372
60373         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60374         %F directives.
60375         * tests/test-vasprintf-posix.c (test_function): Likewise.
60376         * tests/test-snprintf-posix.h (test_function): Likewise.
60377         * tests/test-sprintf-posix.h (test_function): Likewise.
60378         * tests/test-fprintf-posix.h (test_function): Likewise.
60379         * tests/test-printf-posix.h (test_function): Likewise.
60380         * tests/test-fprintf-posix.out: Likewise.
60381
60382 2007-04-13  Bruno Haible  <bruno@clisp.org>
60383
60384         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60385         * modules/tls-tests (configure.ac): Likewise.
60386         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60387
60388 2007-04-13  Bruno Haible  <bruno@clisp.org>
60389
60390         * lib/tls.c (glthread_tls_get): Fix return type.
60391         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60392
60393 2007-04-12  Eric Blake  <ebb9@byu.net>
60394
60395         * modules/gettime (Depends-on): Remove gettime.
60396         Reported by Dmitry V. Levin.
60397
60398 2007-04-12  Bruno Haible  <bruno@clisp.org>
60399
60400         * modules/fflush (Include): Mention <stdio.h>.
60401         * modules/strtoimax (Include): Mention <inttypes.h>.
60402         * modules/strtoumax (Include): Likewise.
60403
60404 2007-04-12  Eric Blake  <ebb9@byu.net>
60405
60406         * .cvsignore: New file.
60407         * .gitignore: Likewise.
60408
60409 2007-04-12  Bruno Haible  <bruno@clisp.org>
60410
60411         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60412         not before, since $(LDADD) often contains libgnu.a.
60413         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60414         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60415         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60416         Needed on Cygwin.
60417
60418 2007-04-12  Eric Blake  <ebb9@byu.net>
60419
60420         Work around glibc's failure to flush stdin on fclose.
60421         * lib/closein.c (close_stdin): Flush stdin before closing.
60422
60423         Work around glibc's failure to reset seekable stdin on exit.
60424         * modules/closein: New module.
60425         * lib/closein.c: New file.
60426         * lib/closein.h: Likewise.
60427         * m4/closein.m4: Likewise.
60428         * MODULES.html.sh (File stream based Input/Output): Document it.
60429
60430 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60431
60432         * gnulib-tool: Rename generated 'autobuild' script to
60433         'do-autobuild' in --create-megatestdir output.
60434
60435         * doc/gnulib.texi (Build robot for gnulib): Fix.
60436
60437 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60438
60439         * modules/sysexits (Depends-on): Add absolute-header.
60440
60441 2007-04-12  Eric Blake  <ebb9@byu.net>
60442
60443         No need to preserve errno on success.
60444         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60445         Reported by Bruno Haible.
60446
60447 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60448
60449         * MODULES.html.sh (Support for maintaining and releasing
60450         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60451
60452 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60453
60454         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60455
60456 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60457
60458         * modules/autobuild: New module.
60459
60460         * m4/autobuild.m4: New file.
60461
60462 2007-04-11  Bruno Haible  <bruno@clisp.org>
60463
60464         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60465         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60466         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60467         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60468         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60469         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60470         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60471         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60472         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60473         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60474         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60475         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60476         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60477         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60478         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60479         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60480         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60481         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60482         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60483         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60484         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60485         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60486         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60487         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60488         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60489         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60490         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60491         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60492         Reported by Eric Blake.
60493
60494 2007-04-11  Bruno Haible  <bruno@clisp.org>
60495
60496         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60497
60498 2007-04-10  Bruno Haible  <bruno@clisp.org>
60499
60500         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60501         for NaN and Infinity. Needed on FreeBSD 6.1.
60502         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60503         regarding results for "%010a" of Infinity and NaN.
60504         * tests/test-vasprintf-posix.c (test_function): Likewise.
60505         * tests/test-snprintf-posix.h (test_function): Likewise.
60506         * tests/test-sprintf-posix.h (test_function): Likewise.
60507         * tests/test-fprintf-posix.h (test_function): Likewise.
60508         * tests/test-printf-posix.h (test_function): Likewise.
60509         * tests/test-fprintf-posix.out: Likewise.
60510
60511 2007-04-10  Bruno Haible  <bruno@clisp.org>
60512
60513         * modules/locale-tests: New file.
60514         * tests/test-locale.c: New file.
60515
60516         * modules/locale: New file.
60517         * lib/locale_.h: New file.
60518         * m4/locale_h.m4: New file.
60519
60520 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60521             Bruno Haible  <bruno@clisp.org>
60522
60523         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60524         be determined, test for availability of the copysignf, copysign,
60525         copysignl functions.
60526         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60527         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60528         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60529
60530 2007-04-09  Eric Blake  <ebb9@byu.net>
60531
60532         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60533         * modules/stdio (Makefile.am): Support fflush.
60534         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60535         * modules/fflush: New file.
60536         * lib/fflush.c: Likewise.
60537         * m4/fflush.m4: Likewise.
60538         * modules/fflush-tests: New test.
60539         * tests/test-fflush.c: Likewise.
60540         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60541
60542 2007-04-06  Bruno Haible  <bruno@clisp.org>
60543
60544         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60545         (VASNPRINTF): Use signbit for faster determination whether to print a
60546         minus sign.
60547         * modules/vasnprintf (Files): Remove lib/float+.h.
60548         * modules/fprintf-posix (Depends-on): Add signbit.
60549         * modules/snprintf-posix (Depends-on): Likewise.
60550         * modules/sprintf-posix (Depends-on): Likewise.
60551         * modules/vasnprintf-posix (Depends-on): Likewise.
60552         * modules/vasprintf-posix (Depends-on): Likewise.
60553         * modules/vfprintf-posix (Depends-on): Likewise.
60554         * modules/vsnprintf-posix (Depends-on): Likewise.
60555         * modules/vsprintf-posix (Depends-on): Likewise.
60556
60557 2007-04-06  Bruno Haible  <bruno@clisp.org>
60558
60559         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60560         * tests/test-frexpl.c (main): Likewise.
60561         * tests/test-ldexpl.c (main): Likewise.
60562         * modules/frexp-tests (Depends-on): Add signbit.
60563         * modules/frexpl-tests (Depdends-on): Likewise.
60564         * modules/ldexpl-tests (Depdends-on): Likewise.
60565
60566 2007-04-06  Bruno Haible  <bruno@clisp.org>
60567
60568         * modules/signbit-tests: New file.
60569         * tests/test-signbit.c: New file.
60570
60571         * modules/signbit: New file.
60572         * lib/signbitf.c: New file.
60573         * lib/signbitd.c: New file.
60574         * lib/signbitl.c: New file.
60575         * m4/signbit.m4: New file.
60576         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60577         (signbit): New macro.
60578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60579         REPLACE_SIGNBIT.
60580         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60581         REPLACE_FREXPL into math.h.
60582
60583 2007-04-06  Bruno Haible  <bruno@clisp.org>
60584
60585         * modules/isnanf-nolibm-tests: New file.
60586         * tests/test-isnanf.c: New file.
60587
60588         * modules/isnanf-nolibm: New file.
60589         * lib/isnanf.h: New file.
60590         * lib/isnanf.c: New file.
60591         * lib/isnan.c: Consider the USE_FLOAT macro.
60592         * m4/isnanf.m4: New file.
60593
60594 2007-04-06  Bruno Haible  <bruno@clisp.org>
60595
60596         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60597         (Link): New section.
60598
60599         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60600
60601 2007-04-06  Bruno Haible  <bruno@clisp.org>
60602
60603         Assume the 'long double' type.
60604         * m4/longdouble.m4: Remove file.
60605         * config/srclist.txt: Don't mention longdouble.m4.
60606         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60607         * lib/float+.h: Likewise.
60608         * lib/frexp.c: Likewise.
60609         * lib/printf-args.h: Likewise.
60610         * lib/printf-args.c: Likewise.
60611         * lib/printf-frexp.c: Likewise.
60612         * lib/printf-parse.c: Likewise.
60613         * lib/vasnprintf.c: Likewise.
60614         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60615         * m4/intl.m4: Likewise.
60616         * m4/isnanl.m4: Likewise.
60617         * m4/printf.m4: Likewise.
60618         * m4/printf-frexpl.m4: Likewise.
60619         * m4/vasnprintf.m4: Likewise.
60620         * modules/allocsa (Files): Remove m4/longdouble.m4.
60621         * modules/gettext (Files): Likewise.
60622         * modules/relocatable-prog-wrapper (Files): Likewise.
60623         * modules/vasnprintf (Files): Likewise.
60624         * modules/isnanl (Files): Likewise.
60625         (Include): Simplify.
60626         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60627         (Include): Simplify.
60628         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60629         (Include): Simplify.
60630         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60631         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60632         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60633         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60634         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60635         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60636         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60637         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60638         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60639         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60640         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60641         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60642         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60643         * tests/test-isnanl.c: Likewise.
60644         * tests/test-snprintf-posix.h: Likewise.
60645         * tests/test-sprintf-posix.h: Likewise.
60646         * tests/test-vasnprintf-posix.c: Likewise.
60647         * tests/test-vasnprintf-posix2.c: Likewise.
60648         * tests/test-vasprintf-posix.c: Likewise.
60649
60650 2007-04-06  Bruno Haible  <bruno@clisp.org>
60651
60652         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60653         * lib/math_.h [__DECC]: Include the overridden include file through
60654         #include_next, outside the double-inclusion guard.
60655         * lib/stdio_.h [__DECC]: Likewise.
60656         * lib/stdlib_.h [__DECC]: Likewise.
60657         * lib/string_.h [__DECC]: Likewise.
60658         * lib/time_.h [__DECC]: Likewise.
60659         * lib/wchar_.h [__DECC]: Likewise.
60660         * lib/wctype_.h [__DECC]: Likewise.
60661         * lib/inttypes_.h [__DECC]: Likewise.
60662         Reported by Albert Chin <china@thewrittenword.com> in
60663         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60664
60665 2007-04-04  Eric Blake  <ebb9@byu.net>
60666
60667         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60668         1.5.x.
60669
60670 2007-04-04  Bruno Haible  <bruno@clisp.org>
60671
60672         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60673         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60674
60675 2007-04-04  Bruno Haible  <bruno@clisp.org>
60676
60677         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60678         results for "%010a" of Infinity and NaN.
60679         * tests/test-vasprintf-posix.c (test_function): Likewise.
60680         * tests/test-snprintf-posix.h (test_function): Likewise.
60681         * tests/test-sprintf-posix.h (test_function): Likewise.
60682         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60683         * tests/test-printf-posix.h (test_function): Likewise.
60684         * tests/test-fprintf-posix.out: Update.
60685         Needed for FreeBSD 6.1.
60686
60687 2007-04-04  Bruno Haible  <bruno@clisp.org>
60688
60689         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60690         directly used by the gnulib modules nor by gnulib-tool.
60691
60692 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60693
60694         * DEPENDENCIES: Give overall description of version dependency
60695         desirability.  Use more-typical names for apps.
60696         Add shell, coreutils, diffutils, grep, tar, gzip.
60697
60698 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60699
60700         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60701
60702 2007-04-04  Karl Berry  <karl@gnu.org>
60703
60704         * MODULES.html.sh (func_module): missing '.
60705
60706 2007-04-03  Bruno Haible  <bruno@clisp.org>
60707
60708         * modules/argmatch-tests (Makefile.am): New variable
60709         test_argmatch_LDADD.
60710         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60711         * modules/array-list-tests (Makefile.am): New variable
60712         test_array_list_LDADD.
60713         * modules/array-oset-tests (Makefile.am): New variable
60714         test_array_oset_LDADD.
60715         * modules/avltree-list-tests (Makefile.am): New variable
60716         test_avltree_list_LDADD.
60717         * modules/avltree-oset-tests (Makefile.am): New variable
60718         test_avltree_oset_LDADD.
60719         * modules/avltreehash-list-tests (Makefile.am): New variable
60720         test_avltreehash_list_LDADD.
60721         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60722         test_canonicalize_lgpl_LDADD.
60723         * modules/carray-list-tests (Makefile.am): New variable
60724         test_carray_list_LDADD.
60725         * modules/dirname-tests (Makefile.am): New variable
60726         test_dirname_LDADD.
60727         * modules/linked-list-tests (Makefile.am): New variable
60728         test_linked_list_LDADD.
60729         * modules/linkedhash-list-tests (Makefile.am): New variable
60730         test_linkedhash_list_LDADD.
60731         * modules/rbtree-list-tests (Makefile.am): New variable
60732         test_rbtree_list_LDADD.
60733         * modules/rbtree-oset-tests (Makefile.am): New variable
60734         test_rbtree_oset_LDADD.
60735         * modules/rbtreehash-list-tests (Makefile.am): New variable
60736         test_rbtreehash_list_LDADD.
60737         * modules/xvasprintf-tests (Makefile.am): New variable
60738         test_xvasprintf_LDADD.
60739         Reported by Eric Blake.
60740
60741 2007-04-03  Eric Blake  <ebb9@byu.net>
60742
60743         * DEPENDENCIES: Weaken m4 requirements.
60744
60745 2007-04-03  Bruno Haible  <bruno@clisp.org>
60746
60747         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60748         * modules/isnanl-tests (configure.ac): Likewise.
60749
60750 2007-04-03  Ben Pfaff  <blp@gnu.org>
60751
60752         * modules/iconv_open: Add $(srcdir)/ to source directory
60753         references in Makefile fragments that call gperf, to fix VPATH
60754         builds.
60755
60756 2007-04-03  Bruno Haible  <bruno@clisp.org>
60757
60758         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60759         * lib/ldexpl.c: Undo last change.
60760
60761 2007-04-03  Bruno Haible  <bruno@clisp.org>
60762
60763         * modules/printf-frexpl (Depends-on): Undo last change.
60764         (Files): Add m4/ldexpl.m4.
60765
60766 2007-04-03  Bruno Haible  <bruno@clisp.org>
60767
60768         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60769         * modules/isnanl (Link): New section.
60770
60771         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60772         * modules/frexp (Link): New section.
60773
60774         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60775         * modules/frexpl (Link): New section.
60776
60777         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60778         * modules/ldexpl (Link): New section.
60779
60780 2007-04-03  Bruno Haible  <bruno@clisp.org>
60781
60782         * modules/TEMPLATE-EXTENDED: New file.
60783         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60784
60785 2007-04-03  Bruno Haible  <bruno@clisp.org>
60786
60787         * DEPENDENCIES: New file.
60788         Suggested by Simon Josefsson.
60789
60790 2007-04-03  Bruno Haible  <bruno@clisp.org>
60791
60792         * doc/gnulib.texi: Escape @.
60793
60794 2007-04-03  James Youngman  <jay@gnu.org>
60795         and Paul Eggert  <eggert@cs.ucla.edu>
60796
60797         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60798         birthtime on all systems that have birthtime, not just those which
60799         use st_birthtimensec rather than st_birthtim.  Putting zero in
60800         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60801         that the birth time is not available for files on an NFS mount.
60802
60803 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60804
60805         * modules/memxor: Move back from crypto/, suggested by Bruno.
60806         * modules/crypto/hmac-sha1: Fix memxor dependency.
60807
60808         * modules/crypto/gc: Moved from ../.
60809
60810 2007-04-02  Eric Blake  <ebb9@byu.net>
60811
60812         * lib/ldexpl.c (includes): Avoid libm.
60813
60814         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60815
60816 2007-04-02  Bruno Haible  <bruno@clisp.org>
60817
60818         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60819         on IRIX.
60820
60821 2007-04-02  Bruno Haible  <bruno@clisp.org>
60822
60823         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60824         x86 or x86_64 platforms running MacOS X.
60825         Reported by Ryan Schmidt <@ryandesign.com>.
60826
60827 2007-04-02  Bruno Haible  <bruno@clisp.org>
60828
60829         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60830         i386.
60831
60832 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60833
60834         * modules/crypto/arcfour: Moved from ../.
60835         * modules/crypto/arcfour-tests: Moved from ../.
60836         * modules/crypto/arctwo: Moved from ../.
60837         * modules/crypto/arctwo-tests: Moved from ../.
60838         * modules/crypto/des: Moved from ../.
60839         * modules/crypto/des-tests: Moved from ../.
60840         * modules/crypto/gc-arcfour: Moved from ../.
60841         * modules/crypto/gc-arcfour-tests: Moved from ../.
60842         * modules/crypto/gc-arctwo: Moved from ../.
60843         * modules/crypto/gc-arctwo-tests: Moved from ../.
60844         * modules/crypto/gc-des: Moved from ../.
60845         * modules/crypto/gc-des-tests: Moved from ../.
60846         * modules/crypto/gc-hmac-md5: Moved from ../.
60847         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60848         * modules/crypto/gc-hmac-sha1: Moved from ../.
60849         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60850         * modules/crypto/gc-md2: Moved from ../.
60851         * modules/crypto/gc-md2-tests: Moved from ../.
60852         * modules/crypto/gc-md4: Moved from ../.
60853         * modules/crypto/gc-md4-tests: Moved from ../.
60854         * modules/crypto/gc-md5: Moved from ../.
60855         * modules/crypto/gc-md5-tests: Moved from ../.
60856         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60857         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60858         * modules/crypto/gc-random: Moved from ../.
60859         * modules/crypto/gc-rijndael: Moved from ../.
60860         * modules/crypto/gc-rijndael-tests: Moved from ../.
60861         * modules/crypto/gc-sha1: Moved from ../.
60862         * modules/crypto/gc-sha1-tests: Moved from ../.
60863         * modules/crypto/gc-tests: Moved from ../.
60864         * modules/crypto/hmac-md5: Moved from ../.
60865         * modules/crypto/hmac-md5-tests: Moved from ../.
60866         * modules/crypto/hmac-sha1: Moved from ../.
60867         * modules/crypto/hmac-sha1-tests: Moved from ../.
60868         * modules/crypto/md2: Moved from ../.
60869         * modules/crypto/md2-tests: Moved from ../.
60870         * modules/crypto/md4: Moved from ../.
60871         * modules/crypto/md4-tests: Moved from ../.
60872         * modules/crypto/md5: Moved from ../.
60873         * modules/crypto/md5-tests: Moved from ../.
60874         * modules/crypto/memxor: Moved from ../.
60875         * modules/crypto/rijndael: Moved from ../.
60876         * modules/crypto/rijndael-tests: Moved from ../.
60877         * modules/crypto/sha1: Moved from ../.
60878
60879 2007-03-30  James Youngman  <jay@gnu.org>
60880
60881         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60882         rename() to change the ctime of a file (because ctime is unaffected
60883         by rename on jfs2 on AIX 5.1).
60884         (main): Start by doing cleanup, in case a previous run failed leaving
60885         test files behind.
60886
60887 2007-03-31  Bruno Haible  <bruno@clisp.org>
60888
60889         Support old proprietary implementations of iconv.
60890         * modules/iconv_open: New file.
60891         * lib/iconv_.h: New file.
60892         * m4/iconv_h.m4: New file.
60893         * lib/iconv_open.c: New file.
60894         * lib/iconv_open-aix.gperf: New file.
60895         * lib/iconv_open-hpux.gperf: New file.
60896         * lib/iconv_open-irix.gperf: New file.
60897         * lib/iconv_open-osf.gperf: New file.
60898         * m4/iconv_open.m4: New file.
60899         * modules/linebreak (Depends-on): Add iconv_open.
60900         * modules/striconv (Depends-on): Likewise.
60901         * modules/striconveh (Depends-on): Likewise.
60902         * modules/unicodeio (Depends-on): Likewise.
60903         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60904         (iconv_t)(-1).
60905         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60906         conversion if cd is (iconv_t)(-1).
60907         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60908         is not possible.
60909
60910 2007-03-31  Bruno Haible  <bruno@clisp.org>
60911
60912         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60913         work on Solaris either. Protect also second use of "autodetect_jp".
60914
60915 2007-03-31  Bruno Haible  <bruno@clisp.org>
60916
60917         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60918         the function is not present.
60919
60920 2007-03-31  Bruno Haible  <bruno@clisp.org>
60921
60922         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60923         the function is not present.
60924
60925 2007-03-31  Bruno Haible  <bruno@clisp.org>
60926
60927         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60928         a bug in HP-UX iconv_open().
60929
60930 2007-03-31  Bruno Haible  <bruno@clisp.org>
60931
60932         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60933         (Mathematics <math.h>): New section, add fpieee.
60934         (Input/output <stdio.h>): Add fseterr.
60935         (Mathematics <math.h>): New section, add printf-frexp.
60936         (Container data structures): Add sublist.
60937         (Core language properties): Add fpucw, inline.
60938         (Functions for greatest-width integer types <inttypes.h>): Add
60939         imaxabs, imaxdiv, inttypes.
60940         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60941         isnanl-nolibm, ldexp.
60942         (Mathematics <math.h>): New section, add printf-frexpl.
60943         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60944         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60945         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60946         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60947         (Unicode string functions): Add unistr/u*-mbtoucr.
60948         (Java): Add javacomp-script, javaexec-script.
60949         (C#): Add csharpcomp-script, csharpexec-script.
60950         (Support for building libraries and executables): Add havelib,
60951         relocatable-*.
60952         (Support for maintaining and releasing projects): Renamed from
60953         'Support for maintaining and release projects'. Add announce-gen.
60954
60955 2007-03-31  Bruno Haible  <bruno@clisp.org>
60956
60957         * README: Talk primarily about git.
60958         (git and CVS): Renamed from CVS.
60959         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60960         gnulib is available through git.
60961         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60962
60963 2007-03-30  Bruno Haible  <bruno@clisp.org>
60964
60965         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60966         * lib/poll_.h: Likewise.
60967         * lib/stat_.h: Likewise.
60968         * lib/sys_time_.h: Likewise.
60969         * lib/sysexit_.h: Likewise.
60970         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60971         * lib/stdbool_.h: Likewise.
60972         * lib/byteswap_.h: Add double-inclusion guard.
60973
60974 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60975
60976         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60977
60978 2007-03-30  Karl Berry  <karl@gnu.org>
60979
60980         * config/srclist-update: double space after USA in the license
60981         substitution, since that's how it's usually (?) written.
60982
60983 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60984
60985         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60986         reported by Bruno Haible.
60987
60988 2007-03-29  Bruno Haible  <bruno@clisp.org>
60989
60990         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60991         a bug in AIX iconv().
60992
60993 2007-03-29  Bruno Haible  <bruno@clisp.org>
60994
60995         * modules/ldexpl-tests: New file.
60996         * tests/test-ldexpl.c: New file.
60997
60998 2007-03-29  Bruno Haible  <bruno@clisp.org>
60999
61000         * lib/ldexpl.c: Include fpucw.h.
61001         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61002         multiplication.
61003         * modules/ldexpl (Depends-on): Add fpucw.
61004
61005 2007-03-29  Bruno Haible  <bruno@clisp.org>
61006
61007         * modules/ldexpl: New file.
61008         * m4/ldexpl.m4: New file.
61009         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61010         set.
61011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61012         REPLACE_LDEXPL.
61013         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61014         REPLACE_LDEXPL.
61015         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61016         gl_FUNC_LDEXPL_WORKS.
61017         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61018         * modules/mathl (Files): Remove lib/ldexpl.c.
61019         (Depends-on): Add ldexpl.
61020
61021 2007-03-29  Bruno Haible  <bruno@clisp.org>
61022
61023         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61024
61025 2007-03-29  Bruno Haible  <bruno@clisp.org>
61026
61027         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61028         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61029         and possibly also HP-UX.
61030         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61031         work on AIX, IRIX, HP-UX, OSF/1.
61032         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61033         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61034         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61035         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61036         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61037         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61038
61039 2007-03-29  Bruno Haible  <bruno@clisp.org>
61040
61041         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61042
61043 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61044
61045         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61046         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61047
61048 2007-03-29  Eric Blake  <ebb9@byu.net>
61049
61050         * lib/acl-internal.h: Remove redundant include.
61051         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61052         Cygwin when a file is locked.
61053
61054 2007-03-29  Bruno Haible  <bruno@clisp.org>
61055
61056         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61057         file.
61058         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61059
61060 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61061
61062         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61063         try to remove a parent directory if the child couldn't be removed
61064         (except for the first rmdir, which could fail because the child
61065         doesn't exist).  Problem reported by Jeff Blaine in
61066         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61067
61068 2007-03-28  Bruno Haible  <bruno@clisp.org>
61069
61070         * lib/striconveh.c (utf8conv_carefully): New function.
61071         (mem_cd_iconveh_internal): Invoke it.
61072
61073 2007-03-28  Bruno Haible  <bruno@clisp.org>
61074
61075         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61076         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61077         input.
61078         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61079         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61080         unistr/u8-uctomb.
61081
61082 2007-03-28  Bruno Haible  <bruno@clisp.org>
61083
61084         * modules/unistr/u8-mbtoucr: New file.
61085         * lib/unistr/u8-mbtoucr.c: New file.
61086         * modules/unistr/u16-mbtoucr: New file.
61087         * lib/unistr/u16-mbtoucr.c: New file.
61088         * modules/unistr/u16-mbtoucr: New file.
61089         * lib/unistr/u16-mbtoucr.c: New file.
61090         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61091
61092 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61093             Bruno Haible  <bruno@clisp.org>
61094
61095         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61096         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61097         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61098
61099         * m4/stdio_h.m4: Add stubs for vasprintf too.
61100
61101         * modules/stdio: Support vasprintf in sed command.
61102
61103         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61104         vasprintf.h.  Add stdio module indicator.
61105
61106         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61107         vasprintf.h.
61108
61109         * lib/vasprintf.h: File removed.
61110
61111         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61112         * lib/vasprintf.c: Ditto.
61113         * lib/xvasprintf.c: Ditto.
61114         * tests/test-vasprintf-posix.c: Ditto.
61115         * tests/test-vasprintf.c: Ditto.
61116
61117 2007-03-27  Bruno Haible  <bruno@clisp.org>
61118
61119         Make vasnprintf multithread-safe.
61120         * lib/vasnprintf.c (decimal_point_char): New function.
61121         (VASNPRINTF): Use it.
61122         Suggested by Simon Josefsson.
61123
61124 2007-03-27  Eric Blake  <ebb9@byu.net>
61125
61126         Support sub-second birthtime on cygwin.
61127         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61128         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61129         (get_stat_birthtime): Also work with st_birthtim.
61130
61131 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61132
61133         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61134         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61135         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61136         (get_stat_birthtime_ns): Simplify compile-time tests.
61137         (get_stat_birthtime): Change the API to look like
61138         get_stat_mtime etc., except return a negative tv_nsec on error.
61139         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61140         Don't check for "spare" fields.
61141         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61142         or for struct stat.st_birthtime, as these tests aren't used.
61143         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61144
61145 2007-03-27  Bruno Haible  <bruno@clisp.org>
61146
61147         * lib/stat-time.h: Include <sys/stat.h>.
61148
61149 2007-03-27  James Youngman  <jay@gnu.org>
61150
61151         * lib/stat-time.h (get_stat_birthtime): New function for
61152           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61153         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61154           and its variants.
61155         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61156         * modules/stat-time-test: New file.
61157         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61158
61159 2007-03-26  Bruno Haible  <bruno@clisp.org>
61160
61161         Better support of signalling NaNs.
61162         * lib/atanl.c: Include isnanl.h.
61163         (atanl): Perform test for NaN at the beginning of the function and
61164         through a call to isnanl.
61165         * lib/cosl.c: Include isnanl.h.
61166         (cosl): Perform test for NaN at the beginning of the function and
61167         through a call to isnanl.
61168         * lib/ldexpl.c: Include isnanl.h.
61169         (ldexpl): Perform test for NaN through a call to isnanl.
61170         * lib/logl.c: Include isnanl.h.
61171         (logl): Perform test for NaN at the beginning of the function and
61172         through a call to isnanl.
61173         * lib/sinl.c: Include isnanl.h.
61174         (sinl): Perform test for NaN at the beginning of the function and
61175         through a call to isnanl.
61176         * lib/sqrtl.c: Include isnanl.h.
61177         (sqrtl): Perform test for NaN at the beginning of the function and
61178         through a call to isnanl.
61179         * lib/tanl.c: Include isnanl.h.
61180         (tanl): Perform test for NaN at the beginning of the function and
61181         through a call to isnanl.
61182         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61183         * modules/mathl (Depends-on): Add isnanl.
61184
61185 2007-03-26  Eric Blake  <ebb9@byu.net>
61186
61187         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61188         regression in logic sense of previous patch.
61189
61190 2007-03-26  Bruno Haible  <bruno@clisp.org>
61191
61192         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61193         unportable shell command "if ! ...".
61194         Reported by Ralf Wildenhues.
61195
61196 2007-03-25  Bruno Haible  <bruno@clisp.org>
61197
61198         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61199         <sysexits.h> file, and only add EX_CONFIG.
61200         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61201         absolute file name and whether it is sufficient. Substitute also
61202         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61203         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61204         ABSOLUTE_SYSEXITS_H into sysexits.h.
61205
61206 2007-03-25  Bruno Haible  <bruno@clisp.org>
61207
61208         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61209         hints is NULL.
61210
61211 2007-03-25  Bruno Haible  <bruno@clisp.org>
61212
61213         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61214         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61215
61216 2007-03-25  Bruno Haible  <bruno@clisp.org>
61217
61218         * lib/vasnprintf.c: Include langinfo.h.
61219         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61220         multithread-safe.
61221         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61222         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61223         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61224         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61225         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61226         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61227         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61228         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61229         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61230         Reported by Simon Josefsson.
61231
61232 2007-03-25  Bruno Haible  <bruno@clisp.org>
61233
61234         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61235         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61236         * modules/vasnprintf (Depends-on): Add stdint.
61237
61238 2007-03-25  Bruno Haible  <bruno@clisp.org>
61239
61240         * modules/fpieee: New file.
61241         * m4/fpieee.m4: New file.
61242         * modules/isnan-nolibm (Depends-on): Add fpieee.
61243         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61244         * modules/isnanl (Depends-on): Add fpieee.
61245
61246 2007-03-25  Bruno Haible  <bruno@clisp.org>
61247
61248         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61249
61250 2007-03-25  Bruno Haible  <bruno@clisp.org>
61251
61252         Avoid test failures on IRIX 6.5.
61253         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61254         (main): Use it.
61255         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61256         macros.
61257         (main): Use them.
61258
61259 2007-03-25  Bruno Haible  <bruno@clisp.org>
61260
61261         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61262         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61263         exists but doesn't work.
61264         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61265         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61267         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61268         math.h.
61269
61270 2007-03-25  Bruno Haible  <bruno@clisp.org>
61271
61272         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61273         returns inf. Needed on IRIX 6.5.
61274
61275 2007-03-25  Bruno Haible  <bruno@clisp.org>
61276
61277         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61278         (main): Use isnanl instead of x != x idiom.
61279         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61280
61281         * tests/test-frexp.c: Include isnan.h.
61282         (main): Use isnan instead of x != x idiom.
61283         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61284
61285 2007-03-25  Bruno Haible  <bruno@clisp.org>
61286
61287         * tests/test-frexp.c (NaN): New function/macro.
61288         (main): Use it instead of 0.0 / 0.0.
61289         * tests/test-isnan.c (NaN): New function/macro.
61290         (main): Use it instead of 0.0 / 0.0.
61291         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61292         (test_function): Use it instead of 0.0 / 0.0.
61293         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61294         (test_function): Use it instead of 0.0 / 0.0.
61295         * tests/test-snprintf-posix.h (NaN): New function/macro.
61296         (test_function): Use it instead of 0.0 / 0.0.
61297         * tests/test-sprintf-posix.h (NaN): New function/macro.
61298         (test_function): Use it instead of 0.0 / 0.0.
61299         * tests/test-fprintf-posix.h (NaN): New function/macro.
61300         (test_function): Use it instead of 0.0 / 0.0.
61301         * tests/test-printf-posix.h (NaN): New function/macro.
61302         (test_function): Use it instead of 0.0 / 0.0.
61303
61304         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61305
61306 2007-03-25  Bruno Haible  <bruno@clisp.org>
61307
61308         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61309
61310 2007-03-25  Bruno Haible  <bruno@clisp.org>
61311
61312         * lib/regexec.c (merge_state_with_log): Make static.
61313
61314 2007-03-25  Bruno Haible  <bruno@clisp.org>
61315
61316         * lib/trigl.c (kernel_rem_pio2): Make static.
61317
61318 2007-03-25  Bruno Haible  <bruno@clisp.org>
61319
61320         * lib/sincosl.c (sincosl_table): Make static.
61321
61322 2007-03-25  Bruno Haible  <bruno@clisp.org>
61323
61324         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61325         if the compiler does not support C99.
61326
61327 2007-03-25  Bruno Haible  <bruno@clisp.org>
61328
61329         * modules/time (Makefile.am): Ensure all rule action lines start with a
61330         tab.
61331
61332 2007-03-24  Bruno Haible  <bruno@clisp.org>
61333
61334         * modules/tsearch-tests: New file.
61335         * tests/test-tsearch.sh: New file.
61336         * tests/test-tsearch.c: New file, mostly copied from glibc.
61337
61338         * modules/search-tests: New file.
61339         * tests/test-search.c: New file.
61340
61341         * modules/search: New file.
61342         * lib/search_.h: New file, incorporating lib/tsearch.h.
61343         * m4/search_h.m4: New file.
61344         * lib/tsearch.h: Remove file.
61345         * lib/tsearch.c: Include search.h instead of tsearch.h.
61346         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61347         HAVE_TSEARCH.
61348         * modules/tsearch (Files): Remove lib/tsearch.h.
61349         (Depends-on): Add search.
61350         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61351         (Include): Change tsearch.h into search.h.
61352
61353 2007-03-24  Bruno Haible  <bruno@clisp.org>
61354
61355         * modules/fpucw: New file.
61356         * lib/fpucw.h: New file.
61357         * lib/frexp.c: Include fpucw.h.
61358         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61359         (FUNC): Use them.
61360         * lib/printf-frexp.c: Include fpucw.h.
61361         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61362         (FUNC): Use them.
61363         * lib/vasnprintf.c: Include fpucw.h.
61364         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61365         'long double' calculations.
61366         * tests/test-frexpl.c: Include fpucw.h.
61367         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61368         * tests/test-printf-frexpl.c: Include fpucw.h.
61369         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61370         * modules/frexpl (Depends-on): Add fpucw.
61371         * modules/printf-frexpl (Depends-on): Likewise.
61372         * modules/fprintf-posix (Depends-on): Likewise.
61373         * modules/snprintf-posix (Depends-on): Likewise.
61374         * modules/sprintf-posix (Depends-on): Likewise.
61375         * modules/vasnprintf-posix (Depends-on): Likewise.
61376         * modules/vasprintf-posix (Depends-on): Likewise.
61377         * modules/vfprintf-posix (Depends-on): Likewise.
61378         * modules/vsnprintf-posix (Depends-on): Likewise.
61379         * modules/vsprintf-posix (Depends-on): Likewise.
61380         * modules/frexpl-tests (Depends-on): Likewise.
61381         * modules/printf-frexpl-tests (Depends-on): Likewise.
61382
61383 2007-03-24  Bruno Haible  <bruno@clisp.org>
61384
61385         * lib/float+.h: New file.
61386         * lib/isnan.c: Include float+.h.
61387         (SIZE): New macro.
61388         (FUNC): Compare only SIZE bytes of the value.
61389         * lib/vasnprintf.c: Include float+.h.
61390         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61391         SIZEOF_LDBL or SIZEOF_DBL bytes.
61392         * modules/isnan-nolibm (Files): Add lib/float+.h.
61393         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61394         * modules/isnanl (Files): Add lib/float+.h.
61395         * modules/vasnprintf (Files): Add lib/float+.h.
61396
61397 2007-03-24  Bruno Haible  <bruno@clisp.org>
61398
61399         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61400         include isnanl-nolibm.h.
61401
61402 2007-03-24  Bruno Haible  <bruno@clisp.org>
61403
61404         * tests/test-read-file.c (main): Don't produce spurious output for
61405         expected situations. Make the test fail if it encountered unexpected
61406         results.
61407
61408 2007-03-24  Bruno Haible  <bruno@clisp.org>
61409
61410         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61411         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61412
61413 2007-03-24  Bruno Haible  <bruno@clisp.org>
61414
61415         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61416
61417 2007-03-24  Bruno Haible  <bruno@clisp.org>
61418
61419         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61420         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61421
61422         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61423         * modules/utf8-ucs4: Turn into a symbolic link to module
61424         unistr/u8-mbtouc.
61425
61426         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61427         utf8-ucs4-unsafe.
61428         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61429         unistr/u8-mbtouc-unsafe.
61430
61431         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61432         * modules/utf16-ucs4: Turn into a symbolic link to module
61433         unistr/u16-mbtouc.
61434
61435         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61436         utf16-ucs4-unsafe.
61437         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61438         unistr/u16-mbtouc-unsafe.
61439
61440         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61441         * modules/ucs4-utf8: Turn into a symbolic link to module
61442         unistr/u8-ubtomb.
61443
61444         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61445         * modules/ucs4-utf16: Turn into a symbolic link to module
61446         unistr/u16-ubtomb.
61447
61448 2007-03-24  Bruno Haible  <bruno@clisp.org>
61449
61450         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61451         Enable the function only if HAVE_INLINE.
61452         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61453         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61454         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61455         Enable the function only if HAVE_INLINE.
61456         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61457         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61458         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61459         Enable the function only if HAVE_INLINE.
61460         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61461         Enable the function only if HAVE_INLINE.
61462         * modules/utf8-ucs4: Update.
61463         * modules/utf8-ucs4-unsafe: Update.
61464         * modules/utf16-ucs4: Update.
61465         * modules/utf16-ucs4-unsafe: Update.
61466         * modules/ucs4-utf8: Update.
61467         * modules/ucs4-utf16: Update.
61468
61469 2007-03-24  Bruno Haible  <bruno@clisp.org>
61470
61471         * lib/utf8-ucs4.h: Remove file.
61472         * lib/utf8-ucs4-unsafe.h: Remove file.
61473         * lib/utf16-ucs4.h: Remove file.
61474         * lib/utf16-ucs4-unsafe.h: Remove file.
61475         * lib/ucs4-utf8.h: Remove file.
61476         * lib/ucs4-utf16.h: Remove file.
61477         * lib/unistr.h: Include their previous contents.
61478         * m4/utf-ucs4.m4: Remove file.
61479         * m4/ucs4-utf.m4: Remove file.
61480         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61481         (Depends-on): Add unistr/base.
61482         (configure.ac): Remove gl_UTF_UCS4.
61483         (Makefile.am): Update.
61484         (Include): Change to unistr.h.
61485         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61486         (Depends-on): Add unistr/base.
61487         (configure.ac): Remove gl_UTF_UCS4.
61488         (Makefile.am): Update.
61489         (Include): Change to unistr.h.
61490         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61491         (Depends-on): Add unistr/base.
61492         (configure.ac): Remove gl_UTF_UCS4.
61493         (Makefile.am): Update.
61494         (Include): Change to unistr.h.
61495         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61496         (Depends-on): Add unistr/base.
61497         (configure.ac): Remove gl_UTF_UCS4.
61498         (Makefile.am): Update.
61499         (Include): Change to unistr.h.
61500         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61501         (Depends-on): Add unistr/base.
61502         (configure.ac): Remove gl_UCS4_UTF.
61503         (Makefile.am): Update.
61504         (Include): Change to unistr.h.
61505         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61506         (Depends-on): Add unistr/base.
61507         (configure.ac): Remove gl_UCS4_UTF.
61508         (Makefile.am): Update.
61509         (Include): Change to unistr.h.
61510         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61511         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61512         utf8-ucs4-unsafe.h.
61513         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61514         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61515         utf16-ucs4-unsafe.h.
61516         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61517         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61518         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61519         * lib/unistr/u8-strchr.c: Likewise.
61520         * lib/unistr/u8-strrchr.c: Likewise.
61521         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61522         * lib/unistr/u16-strchr.c: Likewise.
61523         * lib/unistr/u16-strrchr.c: Likewise.
61524         * lib/striconveh.c: Update.
61525         * lib/linebreak.c: Update.
61526
61527 2007-03-24  Bruno Haible  <bruno@clisp.org>
61528
61529         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61530         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61531
61532 2007-03-22  Bruno Haible  <bruno@clisp.org>
61533
61534         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61535
61536 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61537
61538         * MODULES.html.sh (File system functions): New module write-any-file.
61539         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61540         * m4/write-any-file.m4: New files.
61541
61542 2007-03-23  Eric Blake  <ebb9@byu.net>
61543
61544         * gnulib-tool: Rearrange space-tab sequences, since some editors
61545         like to eat them.
61546
61547 2007-03-23  Eric Blake  <ebb9@byu.net>
61548
61549         * lib/version-etc.c (version_etc_va): Update license wording to
61550         be more concise.  Recommended by Richard Stallman.
61551
61552 2007-03-22  Bruno Haible  <bruno@clisp.org>
61553
61554         * lib/poll.c (MSG_PEEK): New fallback definition.
61555
61556 2007-03-22  Bruno Haible  <bruno@clisp.org>
61557
61558         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61559         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61560         (main): Update.
61561         Fixes a compilation error on BeOS.
61562
61563 2007-03-22  Bruno Haible  <bruno@clisp.org>
61564
61565         * modules/frexpl-tests: New file.
61566         * tests/test-frexpl.c: New file.
61567
61568         * modules/frexpl: New file.
61569         * m4/frexpl.m4: New file.
61570         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61571         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61572         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61573         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61574         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61575         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61576
61577 2007-03-22  Bruno Haible  <bruno@clisp.org>
61578
61579         * lib/frexpl.c: Share code with lib/frexp.c.
61580         * modules/mathl (Files): Add lib/frexp.c.
61581         (Depends-on): Add isnanl-nolibm.
61582
61583 2007-03-22  Bruno Haible  <bruno@clisp.org>
61584
61585         * modules/printf-frexp (Files): Add m4/frexp.m4.
61586         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61587         only if the found frexp function actually works.
61588
61589 2007-03-22  Bruno Haible  <bruno@clisp.org>
61590
61591         * lib/frexp.c: Remove older implementation that uses divisions.
61592
61593 2007-03-21  Bruno Haible  <bruno@clisp.org>
61594
61595         * modules/frexp-tests: New file.
61596         * tests/test-frexp.c: New file.
61597
61598         * modules/frexp: New file.
61599         * lib/frexp.c: New file.
61600         * m4/frexp.m4: New file.
61601         * lib/math_.h (frexp): New declaration.
61602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61603         REPLACE_FREXP.
61604         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61605
61606 2007-03-21  Bruno Haible  <bruno@clisp.org>
61607
61608         * modules/isnanl-tests: New file.
61609         * tests/test-isnanl.c: New file.
61610
61611         * modules/isnanl: New file.
61612         * lib/isnanl.h: New file.
61613         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61614         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61615         gl_FUNC_ISNANL_WORKS.
61616         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61617         New macros.
61618
61619 2007-03-21  Bruno Haible  <bruno@clisp.org>
61620
61621         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61622         lib/isnanl.h.
61623         (Include): Update.
61624         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61625         * lib/vasnprintf.c: Update.
61626         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61627         tests/test-isnanl.h, remove tests/test-isnanl.c.
61628         (Makefile.am): Update.
61629         * tests/test-isnanl-nolibm.c: New file.
61630         * tests/test-isnanl.h: New file.
61631         * tests/test-isnanl.c: Remove file.
61632
61633 2007-03-21  Jim Meyering  <jim@meyering.net>
61634
61635         When trying to open ".", treat ESTALE like EACCES.
61636         * lib/savewd.c (savewd_save): Resort to forking not just upon
61637         failure with EACCES, but also when errno is ESTALE.
61638
61639 2007-03-20  Bruno Haible  <bruno@clisp.org>
61640
61641         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61642         Needed on AIX 5.1. Reported by Matthew Woehlke.
61643
61644 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61645
61646         Suggestions by Bruno Haible:
61647         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61648         our own.
61649         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61650         * modules/acl (Depends-on): Add gettext.
61651
61652 2007-03-19  Bruno Haible  <bruno@clisp.org>
61653
61654         * modules/iconvme: Remove file.
61655         * lib/iconvme.h: Remove file.
61656         * lib/iconvme.c: Remove file.
61657         * m4/iconvme.m4: Remove file.
61658
61659 2007-03-19  Bruno Haible  <bruno@clisp.org>
61660
61661         * doc/relocatable-maint.texi: Break long shell script line.
61662         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61663
61664 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61665
61666         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61667         handle file_has_acl.
61668         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61669         * lib/acl.c: Move header inclusions and related macro defns into
61670         lib/acl-internal.h.
61671         (S_ISLNK): Remove defn, since that's now done for us.
61672         (file_has_acl): Move to lib/file-has-acl.c.
61673         Call acl_trivial if available.  This is the crucial part of the fix.
61674         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61675         shared within the library.  Rewrite a bit, partly to make it compatible
61676         with the GNU coding style.
61677         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61678         Remove unnecessary double-quotes.
61679         Don't test for acl_to_text; the build will catch that.
61680         Replace acl_entries if it doesn't exist and it is needed.
61681         Check for -lsec and acl_trivial (as used on Solaris 10).
61682         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61683         lib/file-has-acl.c.
61684         (Depends-on): Add sys_stat, for S_ISLNK.
61685
61686 2007-03-19  Ben Pfaff  <blp@gnu.org>
61687
61688         * doc/gnulib.texi: Fix typos.
61689         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61690
61691 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61692
61693         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61694         If size is zero here, buf must be zero.
61695
61696 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61697
61698         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61699         <bruno@clisp.org>.
61700
61701 2007-03-18  Bruno Haible  <bruno@clisp.org>
61702
61703         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61704         Suggested by Eric Blake.
61705
61706 2007-03-18  Ben Pfaff  <blp@gnu.org>
61707
61708         * doc/relocatable.texi: Recommend using as prefix a directory
61709         that does not exist and will never be created.  Based on
61710         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61711         and others.
61712
61713 2007-03-17  Bruno Haible  <bruno@clisp.org>
61714
61715         * lib/fchownat.c: Include lchown.h.
61716
61717 2007-03-17  Bruno Haible  <bruno@clisp.org>
61718
61719         Fix endless loop when the given allocated size was > INT_MAX.
61720         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61721         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61722         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61723         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61724         * lib/sprintf.c (sprintf): Likewise.
61725
61726 2007-03-17  Bruno Haible  <bruno@clisp.org>
61727
61728         * tests/test-argp-2.sh (func_compare): Output a context diff.
61729
61730 2007-03-17  Bruno Haible  <bruno@clisp.org>
61731
61732         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61733         locale's decimal-point character.
61734
61735 2007-03-17  Bruno Haible  <bruno@clisp.org>
61736
61737         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61738         before comparing it. Needed because on some platforms (e.g. x86) a
61739         'long double' occupies less bytes than sizeof (long double).
61740
61741 2007-03-17  Bruno Haible  <bruno@clisp.org>
61742
61743         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61744         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61745         * tests/test-getaddrinfo.c (simple): Likewise.
61746         * tests/test-read-file.c (main): Likewise.
61747
61748 2007-03-17  Bruno Haible  <bruno@clisp.org>
61749
61750         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61751
61752 2007-03-17  Bruno Haible  <bruno@clisp.org>
61753
61754         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61755         unused variable.
61756
61757 2007-03-17  Bruno Haible  <bruno@clisp.org>
61758
61759         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61760         * tests/test-c-strncasecmp.c: Likewise.
61761
61762 2007-03-17  Bruno Haible  <bruno@clisp.org>
61763
61764         * modules/stdlib (Depends-on): Add unistd.
61765         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61766         Needed for MacOS X 10.3.
61767
61768 2007-03-17  Bruno Haible  <bruno@clisp.org>
61769
61770         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61771
61772 2007-03-17  Bruno Haible  <bruno@clisp.org>
61773
61774         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61775
61776 2007-03-17  Bruno Haible  <bruno@clisp.org>
61777
61778         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61779         to reflect files copied from gnulib (with or without modifications).
61780         Suggested by Jim Meyering.
61781
61782 2007-03-17  Eric Blake  <ebb9@byu.net>
61783
61784         * NEWS: Document stdlib change from 2007-02-18.
61785
61786 2007-03-17  Jim Meyering  <jim@meyering.net>
61787
61788         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61789         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61790         someone uses a name containing shell meta-characters.
61791         Reported by Alfred M. Szmidt.
61792
61793         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61794
61795 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61796
61797         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61798         and copy gettext configuration files only if configure.ac contains
61799         a use of AM_GNU_GETTEXT_VERSION.
61800
61801 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61802
61803         * build-aux/bootstrap (gnulib_name): New variable.
61804         (gnulib_tool_options): Use it.
61805
61806 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61807
61808         * tests/test-des.c: Use new namespace.
61809
61810 2007-03-15  Bruno Haible  <bruno@clisp.org>
61811
61812         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61813         Reported by James Youngman <jay@gnu.org>.
61814
61815 2007-03-15  Bruno Haible  <bruno@clisp.org>
61816
61817         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61818         declared prototype. Needed with cc on OSF/1 5.1.
61819
61820 2007-03-15  Bruno Haible  <bruno@clisp.org>
61821
61822         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61823         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61824         (struct gl_list_implementation): Add dispose_fn argument to the
61825         'create_empty', 'create' methods.
61826         (struct gl_list_impl_base): Add field 'dispose_fn'.
61827         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61828         argument.
61829         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61830         dispose_fn argument.
61831         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61832         dispose_fn on the dropped values.
61833         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61834         dispose_fn argument.
61835         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61836         dropped values.
61837         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61838         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61839         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61840         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61841         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61842         argument.
61843         (gl_tree_list_free): Call dispose_fn on the dropped values.
61844         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61845         the dropped values.
61846         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61847         Add dispose_fn argument.
61848         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61849         Call dispose_fn on the dropped values.
61850         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61851         Add dispose_fn argument.
61852         (gl_sublist_create): Initialize the 'dispose_fn' field.
61853         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61854         * tests/test-array_list.c (main): Update.
61855         * tests/test-carray_list.c (main): Update.
61856         * tests/test-avltree_list.c (main): Update.
61857         * tests/test-rbtree_list.c (main): Update.
61858         * tests/test-avltreehash_list.c (main): Update.
61859         * tests/test-rbtreehash_list.c (main): Update.
61860         * tests/test-linked_list.c (main): Update.
61861         * tests/test-linkedhash_list.c (main): Update.
61862         * tests/test-array_oset.c (main): Update.
61863
61864 2007-03-15  Bruno Haible  <bruno@clisp.org>
61865
61866         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61867         (gl_oset_create_empty): Add dispose_fn argument.
61868         (struct gl_oset_implementation): Add dispose_fn argument to
61869         'create_empty' method.
61870         (struct gl_oset_impl_base): Add dispose_fn field.
61871         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61872         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61873         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61874         values.
61875         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61876         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61877         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61878         dropped value.
61879         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61880         dropped value.
61881         * tests/test-array_oset.c (main): Update.
61882         * tests/test-avltree_oset.c (main): Update.
61883         * tests/test-rbtree_oset.c (main): Update.
61884         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61885
61886 2007-03-13  Bruno Haible  <bruno@clisp.org>
61887
61888         * tests/test-stdbool.c (i): Update after last patch.
61889
61890 2007-03-12  Bruno Haible  <bruno@clisp.org>
61891
61892         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61893         the iswprint macro. Needed on Solaris 2.5.1.
61894
61895 2007-03-12  Bruno Haible  <bruno@clisp.org>
61896
61897         * tests/test-printf-frexp.c (main): Declare x as volatile.
61898
61899 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61900
61901         * doc/gnulib.texi (Build robot for gnulib): New section.
61902
61903 2007-03-12  Jim Meyering  <jim@meyering.net>
61904
61905         * build-aux/bootstrap: New file.
61906         * build-aux/bootstrap.conf: New file, from coreutils.
61907
61908 2007-03-11  Bruno Haible  <bruno@clisp.org>
61909
61910         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61911
61912 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61913
61914         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61915         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61916         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61917
61918 2007-03-11  Bruno Haible  <bruno@clisp.org>
61919
61920         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61921         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61922
61923 2007-03-11  Bruno Haible  <bruno@clisp.org>
61924
61925         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61926         formula. Needed for SunPRO C 5.0.
61927
61928 2007-03-11  Bruno Haible  <bruno@clisp.org>
61929
61930         * modules/long-options (Depends-on): Add getopt.
61931
61932 2007-03-11  Bruno Haible  <bruno@clisp.org>
61933
61934         * modules/modechange (Depends-on): Add stdbool.
61935
61936 2007-03-11  Bruno Haible  <bruno@clisp.org>
61937
61938         * modules/i-ring (Depends-on): Add stdbool.
61939
61940 2007-03-11  Bruno Haible  <bruno@clisp.org>
61941
61942         * modules/gc-des (Depends-on): Add stdbool.
61943
61944 2007-03-11  Bruno Haible  <bruno@clisp.org>
61945
61946         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61947
61948 2007-03-11  Bruno Haible  <bruno@clisp.org>
61949
61950         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61951
61952 2007-03-11  Bruno Haible  <bruno@clisp.org>
61953
61954         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61955
61956 2007-03-11  Bruno Haible  <bruno@clisp.org>
61957
61958         * lib/vasnprintf.c (sprintf): Undefine.
61959
61960 2007-03-11  Bruno Haible  <bruno@clisp.org>
61961
61962         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61963         initializers in SunPRO C and Compaq C compilers.
61964
61965 2007-03-11  Bruno Haible  <bruno@clisp.org>
61966
61967         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61968         decrementing code ANSI C compliant.
61969
61970 2007-03-11  Bruno Haible  <bruno@clisp.org>
61971
61972         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61973         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61974
61975 2007-03-11  Bruno Haible  <bruno@clisp.org>
61976
61977         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61978         <stdbool.h> substitute doesn't pass.
61979
61980 2007-03-11  Bruno Haible  <bruno@clisp.org>
61981
61982         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61983
61984 2007-03-11  Bruno Haible  <bruno@clisp.org>
61985
61986         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61987         script, for submission to autobuild.josefsson.org.
61988
61989 2007-03-10  Bruno Haible  <bruno@clisp.org>
61990
61991         * modules/canonicalize-lgpl-tests: New file.
61992         * tests/test-canonicalize-lgpl.sh: New file.
61993         * tests/test-canonicalize-lgpl.c: New file.
61994
61995         * modules/c-strcase-tests: New file.
61996         * tests/test-c-strcase.sh: New file.
61997         * tests/test-c-strcasecmp.c: New file.
61998         * tests/test-c-strncasecmp.c: New file.
61999
62000         * modules/atexit-tests: New file.
62001         * tests/test-atexit.sh: New file.
62002         * tests/test-atexit.c: New file.
62003
62004 2007-03-10  Bruno Haible  <bruno@clisp.org>
62005
62006         * tests/test-binary-io.sh: Use temporary filenames that are not so
62007         likely to clash with those of other tests (in a parallel make).
62008         * tests/test-binary-io.c: Likewise.
62009
62010 2007-03-10  Bruno Haible  <bruno@clisp.org>
62011
62012         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62013         fallback; use #error instead.
62014         Suggested by Simon Josefsson.
62015
62016 2007-03-10  Bruno Haible  <bruno@clisp.org>
62017
62018         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62019         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62020         first and the last.
62021
62022 2007-03-10  Bruno Haible  <bruno@clisp.org>
62023
62024         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62025
62026 2007-03-10  Bruno Haible  <bruno@clisp.org>
62027
62028         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62029         "make distcheck".
62030         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62031         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62032         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62033
62034 2007-03-10  Bruno Haible  <bruno@clisp.org>
62035
62036         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62037         variable.
62038         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62039         variable.
62040
62041 2007-03-09  Eric Blake  <ebb9@byu.net>
62042         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62043
62044         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62045         types are not being provided by gnulib.
62046         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62047         types are supported.
62048
62049 2007-03-10  Bruno Haible  <bruno@clisp.org>
62050
62051         * lib/stdio_.h (__attribute__): New macro.
62052         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62053         vsprintf): Specify __attribute__ __format__ for GCC.
62054         Suggested by Eric Blake.
62055
62056 2007-03-09  Bruno Haible  <bruno@clisp.org>
62057
62058         * modules/printf-posix-tests: New file.
62059         * tests/test-printf-posix.sh: New file.
62060         * tests/test-printf-posix.c: New file.
62061
62062         * modules/printf-posix: New file.
62063         * lib/printf.c: New file.
62064         * m4/printf-posix-rpl.m4: New file.
62065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62066         REPLACE_PRINTF.
62067         * lib/stdio_.h (printf): New declaration.
62068         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62069         ____strfmon____): New macros.
62070         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62071         REPLACE_PRINTF.
62072
62073 2007-03-09  Bruno Haible  <bruno@clisp.org>
62074
62075         * tests/test-vasnprintf-posix2.sh: New file.
62076         * tests/test-vasnprintf-posix2.c: New file.
62077         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62078         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62079         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62080
62081         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62082         a locale dependent decimal point, rather than always '.'.
62083
62084 2007-03-09  Eric Blake  <ebb9@byu.net>
62085
62086         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62087         spite of platforms like Tandem/NSK that define it to -1.
62088
62089 2007-03-08  Bruno Haible  <bruno@clisp.org>
62090
62091         * modules/vprintf-posix-tests: New file.
62092         * tests/test-vprintf-posix.sh: New file.
62093         * tests/test-vprintf-posix.c: New file.
62094         * tests/test-printf-posix.h: New file.
62095
62096         * modules/vprintf-posix: New file.
62097         * lib/vprintf.c: New file.
62098         * m4/vprintf-posix.m4: New file.
62099         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62100         REPLACE_VPRINTF.
62101         * lib/stdio_.h (vprintf): New declaration.
62102         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62103         REPLACE_VPRINTF.
62104
62105 2007-03-08  Bruno Haible  <bruno@clisp.org>
62106
62107         * modules/fprintf-posix-tests: New file.
62108         * tests/test-fprintf-posix.sh: New file.
62109         * tests/test-fprintf-posix.c: New file.
62110
62111         * modules/fprintf-posix: New file.
62112         * lib/fprintf.c: New file.
62113         * m4/fprintf-posix.m4: New file.
62114         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62115         REPLACE_FPRINTF.
62116         * lib/stdio_.h (fprintf): New declaration.
62117         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62118         REPLACE_FPRINTF.
62119
62120 2007-03-08  Bruno Haible  <bruno@clisp.org>
62121
62122         * modules/vfprintf-posix-tests: New file.
62123         * tests/test-vfprintf-posix.sh: New file.
62124         * tests/test-vfprintf-posix.c: New file.
62125         * tests/test-fprintf-posix.h: New file.
62126         * tests/test-fprintf-posix.out: New file.
62127
62128         * modules/vfprintf-posix: New file.
62129         * lib/vfprintf.c: New file.
62130         * m4/vfprintf-posix.m4: New file.
62131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62132         REPLACE_VFPRINTF.
62133         * lib/stdio_.h (vfprintf): New declaration.
62134         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62135         REPLACE_VFPRINTF.
62136
62137 2007-03-08  Bruno Haible  <bruno@clisp.org>
62138
62139         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62140
62141 2007-03-08  Bruno Haible  <bruno@clisp.org>
62142
62143         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62144         instead of 'expr' invocations.
62145         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62146         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62147         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62148         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62149         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62150         Suggested by Paul Eggert.
62151
62152 2007-03-08  Bruno Haible  <bruno@clisp.org>
62153
62154         * modules/fseterr-tests: New file.
62155         * tests/test-fseterr.c: New file.
62156
62157         * modules/fseterr: New file.
62158         * lib/fseterr.h: New file.
62159         * lib/fseterr.c: New file.
62160
62161 2007-03-08  Bruno Haible  <bruno@clisp.org>
62162
62163         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62164         * lib/getopt_.h: Likewise.
62165         * lib/mbswidth.h: Likewise.
62166         * lib/setenv.h: Likewise.
62167         * lib/vasnprintf.h: Likewise.
62168         * lib/vasprintf.h: Likewise.
62169         * lib/verror.h: Likewise.
62170         * lib/xsetenv.h: Likewise.
62171         * lib/xvasprintf.h: Likewise.
62172
62173 2007-03-08  Jim Meyering  <jim@meyering.net>
62174
62175         * users.txt: Add parted.
62176
62177         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62178
62179 2007-03-07  Bruno Haible  <bruno@clisp.org>
62180
62181         * m4/printf.m4: Make the shell script snippets copy&pastable.
62182
62183 2007-03-02  Bruno Haible  <bruno@clisp.org>
62184
62185         * lib/netinet_in_.h: New file.
62186         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62187         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62188         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62189         (Depends-on): Add absolute-header.
62190         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62191         into netinet/in.h.
62192
62193 2007-03-03  Bruno Haible  <bruno@clisp.org>
62194
62195         * lib/sys_select_.h: New file.
62196         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62197         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62198         * modules/sys_select (Files): Add lib/sys_select_.h.
62199         (Depends-on): Add absolute-header.
62200         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62201         into sys/select.h.
62202
62203 2007-03-02  Bruno Haible  <bruno@clisp.org>
62204
62205         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62206         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62207         values.
62208         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62209         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62210         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62211         * modules/sys_socket (Depends-on): Add absolute-header.
62212         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62213         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62214         (Include): Remove requirement of inclusion of <sys/types.h>.
62215
62216 2007-03-02  Bruno Haible  <bruno@clisp.org>
62217
62218         * lib/byteswap_.h (bswap_32): Fix formula.
62219
62220 2007-03-06  Bruno Haible  <bruno@clisp.org>
62221
62222         * modules/sprintf-posix-tests: New file.
62223         * tests/test-sprintf-posix.c: New file.
62224
62225         * modules/sprintf-posix: New file.
62226         * lib/sprintf.c: New file.
62227         * m4/sprintf-posix.m4: New file.
62228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62229         REPLACE_SPRINTF.
62230         * lib/stdio_.h (sprintf): New declaration.
62231         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62232         REPLACE_SPRINTF.
62233
62234 2007-03-06  Bruno Haible  <bruno@clisp.org>
62235
62236         * modules/vsprintf-posix-tests: New file.
62237         * tests/test-vsprintf-posix.c: New file.
62238         * tests/test-sprintf-posix.h: New file.
62239
62240         * modules/vsprintf-posix: New file.
62241         * lib/vsprintf.c: New file.
62242         * m4/vsprintf-posix.m4: New file.
62243         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62244         REPLACE_VSPRINTF.
62245         * lib/stdio_.h (vsprintf): New declaration.
62246         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62247         REPLACE_VSPRINTF.
62248
62249 2007-03-06  Bruno Haible  <bruno@clisp.org>
62250
62251         * modules/vsnprintf (Depend-on): Remove minmax.
62252
62253 2007-03-06  Bruno Haible  <bruno@clisp.org>
62254
62255         * modules/snprintf-posix-tests: New file.
62256         * tests/test-snprintf-posix.c: New file.
62257
62258         * modules/snprintf-posix: New file.
62259         * m4/snprintf-posix.m4: New file.
62260         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62261         gl_FUNC_SNPRINTF.
62262         (gl_FUNC_SNPRINTF): Invoke it.
62263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62264         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62265         is set.
62266         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62267
62268 2007-03-06  Bruno Haible  <bruno@clisp.org>
62269
62270         * modules/vsnprintf-posix-tests: New file.
62271         * tests/test-vsnprintf-posix.c: New file.
62272         * tests/test-snprintf-posix.h: New file.
62273
62274         * modules/vsnprintf-posix: New file.
62275         * m4/vsnprintf-posix.m4: New file.
62276         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62277         gl_FUNC_VSNPRINTF.
62278         (gl_FUNC_VSNPRINTF): Invoke it.
62279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62280         * lib/stdio_.h (vsnprintf): Define as a replacement if
62281         REPLACE_VSNPRINTF is set.
62282         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62283
62284 2007-03-06  Bruno Haible  <bruno@clisp.org>
62285
62286         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62287         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62288
62289 2007-03-06  Bruno Haible  <bruno@clisp.org>
62290
62291         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62292         (asinl): Declare also if HAVE_DECL_ASINL is set.
62293         (atanl): Declare also if HAVE_DECL_ATANL is set.
62294         (ceill): Declare also if HAVE_DECL_CEILL is set.
62295         (cosl): Declare also if HAVE_DECL_COSL is set.
62296         (expl): Declare also if HAVE_DECL_EXPL is set.
62297         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62298         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62299         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62300         (logl): Declare also if HAVE_DECL_LOGL is set.
62301         (sinl): Declare also if HAVE_DECL_SINL is set.
62302         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62303         (tanl): Declare also if HAVE_DECL_TANL is set.
62304         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62306         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62307         declaration of frexpl, ldexpl.
62308         * modules/printf-frexpl (Depends-on): Add math.
62309         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62310
62311 2007-03-05  Bruno Haible  <bruno@clisp.org>
62312
62313         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62314         frexpl and ldexpl are declared.
62315         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62316
62317 2007-03-05  Bruno Haible  <bruno@clisp.org>
62318
62319         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62320         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62321
62322 2007-03-05  Bruno Haible  <bruno@clisp.org>
62323
62324         * lib/stdio_.h: Include <stddef.h>.
62325
62326 2007-03-05  Bruno Haible  <bruno@clisp.org>
62327
62328         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62329
62330 2007-03-05  Bruno Haible  <bruno@clisp.org>
62331
62332         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62333         NetBSD 4, from Ralf Wildenhues.
62334
62335 2007-03-04  Bruno Haible  <bruno@clisp.org>
62336
62337         * lib/vasprintf.h: Update #if logic for the case when the functions
62338         exist but are overridden.
62339
62340 2007-03-04  Bruno Haible  <bruno@clisp.org>
62341
62342         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62343         implementations: glibc-2.4 and MacOS X 10.3.
62344         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62345         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62346         * tests/test-vasprintf-posix.c (test_function): Likewise.
62347
62348 2007-03-04  Bruno Haible  <bruno@clisp.org>
62349
62350         * modules/vasprintf-posix-tests: New file.
62351         * tests/test-vasprintf-posix.c: New file.
62352
62353         * modules/vasprintf-posix: New file.
62354         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62355         defined.
62356         * m4/vasprintf-posix.m4: New file.
62357         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62358         gl_FUNC_VASPRINTF.
62359         (gl_FUNC_VASPRINTF): Invoke it.
62360         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62361         here.
62362         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62363
62364 2007-03-04  Bruno Haible  <bruno@clisp.org>
62365
62366         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62367         REPLACE_GETTIMEOFDAY.
62368         * modules/sys_time (Makefile.am): Likewise.
62369         * m4/sys_time_h.m4: Likewise.
62370         * m4/gettimeofday.m4: Likewise.
62371
62372 2007-03-04  Bruno Haible  <bruno@clisp.org>
62373
62374         * modules/vasnprintf-posix-tests: New file.
62375         * tests/test-vasnprintf-posix.c: New file.
62376
62377         * modules/vasnprintf-posix: New file.
62378         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62379         printf-frexpl.h.
62380         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62381         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62382         REPLACE_VASNPRINTF is defined.
62383         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62384         gl_FUNC_VASNPRINTF.
62385         (gl_FUNC_VASNPRINTF): Invoke it.
62386         * m4/vasnprintf-posix.m4: New file.
62387         * m4/printf.m4: New file.
62388
62389 2007-03-04  Bruno Haible  <bruno@clisp.org>
62390
62391         Compile progreloc.c only if --enable-relocatable is specified.
62392         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62393         if --enable-relocatable was specified.
62394         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62395         lib_SOURCES.
62396
62397 2007-03-04  Jim Meyering  <jim@meyering.net>
62398
62399         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62400         Use it consistently, rather than enumerating errno constants.
62401
62402 2007-03-04  Bruno Haible  <bruno@clisp.org>
62403
62404         * modules/xvasprintf-tests: New file.
62405         * tests/test-xvasprintf.c: New file.
62406
62407         * modules/vasprintf-tests: New file.
62408         * tests/test-vasprintf.c: New file.
62409
62410         * modules/vasnprintf-tests: New file.
62411         * tests/test-vasnprintf.c: New file.
62412
62413         * modules/vsnprintf-tests: New file.
62414         * tests/test-vsnprintf.c: New file.
62415
62416         * modules/snprintf-tests: New file.
62417         * tests/test-snprintf.c: New file.
62418
62419 2007-03-04  Bruno Haible  <bruno@clisp.org>
62420
62421         Compile relocatable.c only if --enable-relocatable is specified.
62422         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62423         gl_RELOCATABLE_LIBRARY.
62424         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62425         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62426         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62427         gl_RELOCATABLE_LIBRARY.
62428         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62429         (Makefile.am): Remove lib_SOURCES.
62430         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62431         gl_RELOCATABLE_LIBRARY.
62432         (Makefile.am): Remove lib_SOURCES.
62433         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62434         always.
62435         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62436         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62437
62438 2007-03-04  Bruno Haible  <bruno@clisp.org>
62439
62440         * modules/argmatch-tests: New file.
62441         * tests/test-argmatch.c: New file.
62442
62443         * tests/test-allocsa.c (main): Halve the number of loop runs.
62444
62445         * modules/alloca-opt-tests: New file.
62446         * tests/test-alloca-opt.c: New file.
62447
62448 2007-03-04  Jim Meyering  <jim@meyering.net>
62449
62450         Work around difference between Linux ACLs and Solaris 10 ZFS.
62451         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62452         for EINVAL.
62453
62454 2007-03-03  Bruno Haible  <bruno@clisp.org>
62455
62456         * modules/relocatable-prog (Depends-on): Add back progreloc's
62457         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62458
62459 2007-03-03  Bruno Haible  <bruno@clisp.org>
62460
62461         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62462         * modules/relocatable-lib: New file.
62463
62464 2007-03-03  Bruno Haible  <bruno@clisp.org>
62465
62466         * modules/relocatable-prog: Renamed from modules/relocatable.
62467         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62468
62469 2007-03-03  Bruno Haible  <bruno@clisp.org>
62470
62471         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62472         m4/relocatable-lib.m4.
62473         (Depends-on): Remove 'relocatable'.
62474         (configure.ac): Add gl_RELOCATABLE_NOP.
62475
62476 2007-03-03  Bruno Haible  <bruno@clisp.org>
62477
62478         * modules/relocatable-prog-wrapper: New file.
62479         * modules/relocatable (Depends-on): Add it. Remove all other
62480         dependencies except progname.
62481         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62482
62483         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62484         (gl_FUNC_STRERROR): Nop.
62485         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62486
62487         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62488         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62489
62490         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62491         (gl_FUNC_READLINK): Update.
62492
62493         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62494
62495 2007-03-03  Bruno Haible  <bruno@clisp.org>
62496
62497         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62498         * modules/xreadlink (Depends-on): Add unistd.
62499         * modules/xreadlink-with-size (Depends-on): Likewise.
62500
62501 2007-03-03  Bruno Haible  <bruno@clisp.org>
62502
62503         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62504         extracted from gt_FUNC_SETENV.
62505         (gt_FUNC_SETENV): Remove macro.
62506         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62507         remove gt_FUNC_SETENV.
62508
62509 2007-03-03  Bruno Haible  <bruno@clisp.org>
62510
62511         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62512         ENABLE_RELOCATABLE here.
62513         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62514
62515 2007-03-03  Bruno Haible  <bruno@clisp.org>
62516
62517         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62518         * tests/test-rbtreehash_list.c: Include progname.h.
62519         (main): Call set_program_name.
62520
62521         * modules/rbtree-oset-tests (Depends-on): Add progname.
62522         * tests/test-rbtree_oset.c: Include progname.h.
62523         (main): Call set_program_name.
62524
62525         * modules/rbtree-list-tests (Depends-on): Add progname.
62526         * tests/test-rbtree_list.c: Include progname.h.
62527         (main): Call set_program_name.
62528
62529         * modules/linked-list-tests (Depends-on): Add progname.
62530         * tests/test-linked_list.c: Include progname.h.
62531         (main): Call set_program_name.
62532
62533 2007-03-03  Bruno Haible  <bruno@clisp.org>
62534
62535         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62536         All uses of __restrict changed to _Restrict_.
62537         * lib/glob_.h (__restrict): Remove macro.
62538
62539 2007-03-02  Bruno Haible  <bruno@clisp.org>
62540
62541         * modules/gettext (configure.ac): Require gettext infrastructure
62542         from version 0.16.1.
62543
62544 2007-03-02  Bruno Haible  <bruno@clisp.org>
62545
62546         * modules/linkedhash-list-tests (Depends-on): Add progname.
62547         * tests/test-linkedhash_list.c: Include progname.h.
62548         (main): Call set_program_name.
62549
62550         * modules/carray-list-tests (Depends-on): Add progname.
62551         * tests/test-carray_list.c: Include progname.h.
62552         (main): Call set_program_name.
62553
62554         * modules/avltreehash-list-tests (Depends-on): Add progname.
62555         * tests/test-avltreehash_list.c: Include progname.h.
62556         (main): Call set_program_name.
62557
62558         * modules/avltree-oset-tests (Depends-on): Add progname.
62559         * tests/test-avltree_oset.c: Include progname.h.
62560         (main): Call set_program_name.
62561
62562         * modules/avltree-list-tests (Depends-on): Add progname.
62563         * tests/test-avltree_list.c: Include progname.h.
62564         (main): Call set_program_name.
62565
62566         * modules/array-oset-tests (Depends-on): Add progname.
62567         * tests/test-array_oset.c: Include progname.h.
62568         (main): Call set_program_name.
62569
62570         * modules/array-list-tests (Depends-on): Add progname.
62571         * tests/test-array_list.c: Include progname.h.
62572         (main): Call set_program_name.
62573
62574         * modules/argp-tests (Depends-on): Add progname.
62575         * tests/test-argp.c: Include argp.h first. Include progname.h.
62576         (main): Call set_program_name.
62577
62578 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62579
62580         * doc/gnulib-tool.texi (Initial import): Reword description of
62581         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62582         limited effect even if defined after the first system include.
62583
62584 2007-03-01  Bruno Haible  <bruno@clisp.org>
62585
62586         * build-aux/config.libpath: Update to libtool-1.5.22.
62587         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62588
62589 2007-03-01  Bruno Haible  <bruno@clisp.org>
62590
62591         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62592         foo_CFLAGS.
62593         Reported by Ralf Wildenhues.
62594
62595 2007-03-01  Bruno Haible  <bruno@clisp.org>
62596
62597         * build-aux/install-reloc: Remove object files left over by some
62598         compilers.
62599         Reported by Ralf Wildenhues.
62600
62601 2007-03-01  Bruno Haible  <bruno@clisp.org>
62602
62603         * build-aux/install-reloc: Break long lines.
62604
62605 2007-03-01  Bruno Haible  <bruno@clisp.org>
62606
62607         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62608         Reported by Ralf Wildenhues.
62609
62610 2007-03-01  Bruno Haible  <bruno@clisp.org>
62611
62612         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62613         include ordering constraints.
62614
62615 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62616
62617         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62618         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62619         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62620         as another example.
62621         * lib/time_.h: Fix misspelling.
62622         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62623         Require gl_HEADER_TIME_H_DEFAULTS.
62624         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62625         * m4/time_r.m4 (gl_TIME_R): Likewise.
62626         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62627
62628 2007-03-01  Bruno Haible  <bruno@clisp.org>
62629
62630         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62631         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62632
62633 2007-03-01  Jim Meyering  <jim@meyering.net>
62634
62635         * modules/xreadlink (Maintainer): Add my name.
62636         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62637
62638 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62639             Bruno Haible  <bruno@clisp.org>
62640
62641         * build-aux/install-reloc: Compile also c-ctype.c.
62642         * build-aux/relocatable.sh.in: New file.
62643         * doc/relocatable.texi: New file.
62644         * doc/relocatable-maint.texi: New file.
62645         * doc/gnulib.texi: Include relocatable-maint.texi.
62646         * lib/progreloc.c: Include unistd.h unconditionally.
62647         * lib/relocwrapper.c: Include unistd.h unconditionally.
62648         Include c-ctype.h.
62649         (add_dotbin): Use c_tolower.
62650         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62651         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62652         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62653         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62654         to m4/relocatable-lib.m4.
62655         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62656         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62657         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62658         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62659         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62660         * modules/relocatable: New file.
62661         * modules/relocatable-lib: New file.
62662         * modules/relocatable-script: New file.
62663
62664 2007-02-28  Bruno Haible  <bruno@clisp.org>
62665
62666         Import --enable-relocatable infrastructure.
62667         * build-aux/config.libpath: New file, from GNU gettext.
62668         * build-aux/install-reloc: New file, from GNU gettext.
62669         * build-aux/reloc-ldflags: New file, from GNU gettext.
62670         * lib/relocatable.h: New file, from GNU gettext.
62671         * lib/relocatable.c: New file, from GNU gettext.
62672         * lib/relocwrapper.c: New file, from GNU gettext.
62673         * m4/relocatable.m4: New file, from GNU gettext.
62674
62675 2007-02-28  Bruno Haible  <bruno@clisp.org>
62676
62677         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62678
62679         * modules/xreadlink: New file, from GNU gettext with modifications.
62680         * lib/xreadlink.c: New file, from GNU gettext.
62681         * lib/xreadlink.h: Add comments.
62682         (xreadlink): New declaration.
62683
62684         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62685         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62686         lib/xreadlink-with-size.c.
62687         (configure.ac): Remove gl_XREADLINK invocation.
62688         (Makefile.am): Augment lib_SOURCES.
62689         * m4/xreadlink.m4: Remove file.
62690         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62691         (xreadlink_with_size): Renamed from xreadink.
62692         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62693         * modules/canonicalize (Depends-on): Replace xreadlink with
62694         xreadlink-with-size.
62695         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62696
62697 2007-02-25  Jim Meyering  <jim@meyering.net>
62698
62699         * build-aux/announce-gen: When complaining about excess arguments,
62700         list them.
62701
62702 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62703
62704         * README: Document signed integer overflow situation more
62705         accurately.
62706
62707 2007-02-25  Bruno Haible  <bruno@clisp.org>
62708
62709         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62710         'a' or 'A' conversion.
62711
62712 2007-02-25  Bruno Haible  <bruno@clisp.org>
62713
62714         * modules/filename: Renamed from modules/pathname.
62715         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62716         lib/concatpath.c with lib/concat-filename.c.
62717         (Makefile.am): Update.
62718         (Include): Replace pathname.h with filename.h.
62719         * lib/filename.h: Renamed from lib/pathname.h.
62720         (concatenated_filename): Renamed from concatenated_pathname.
62721         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62722         (concatenated_filename): Renamed from concatenated_pathname.
62723         * lib/findprog.c: Include filename.h instead of pathname.h.
62724         (find_in_path): Update.
62725         * lib/javacomp.c: Include filename.h instead of pathname.h.
62726         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62727         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62728         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62729         is_oldgcj_14_13_usable, is_javac_usable): Update.
62730         * lib/javaexec.c: Include filename.h instead of pathname.h.
62731         (execute_java_class): Update.
62732         * modules/findprog: Update.
62733         * modules/javacomp: Update.
62734         * modules/javaexec: Update.
62735         * MODULES.html.sh (File system functions): Add 'filename', remove
62736         'pathname'.
62737
62738 2007-02-25  Bruno Haible  <bruno@clisp.org>
62739
62740         * modules/printf-frexpl-tests: New file.
62741         * tests/test-printf-frexpl.c: New file.
62742
62743         * modules/printf-frexpl: New file.
62744         * lib/printf-frexpl.h: New file.
62745         * lib/printf-frexpl.c: New file.
62746         * m4/printf-frexpl.m4: New file.
62747
62748 2007-02-25  Bruno Haible  <bruno@clisp.org>
62749
62750         * modules/printf-frexp-tests: New file.
62751         * tests/test-printf-frexp.c: New file.
62752
62753         * modules/printf-frexp: New file.
62754         * lib/printf-frexp.h: New file.
62755         * lib/printf-frexp.c: New file.
62756         * m4/printf-frexp.m4: New file.
62757
62758 2007-02-25  Bruno Haible  <bruno@clisp.org>
62759
62760         Assume automake >= 1.10 for the tests.
62761         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62762         * modules/arctwo-tests: Likewise.
62763         * modules/argp-tests: Likewise.
62764         * modules/avltree-list-tests: Likewise.
62765         * modules/avltree-oset-tests: Likewise.
62766         * modules/avltreehash-list-tests: Likewise.
62767         * modules/carray-list-tests: Likewise.
62768         * modules/crc-tests: Likewise.
62769         * modules/des-tests: Likewise.
62770         * modules/gc-arcfour-tests: Likewise.
62771         * modules/gc-arctwo-tests: Likewise.
62772         * modules/gc-des-tests: Likewise.
62773         * modules/gc-hmac-md5-tests: Likewise.
62774         * modules/gc-hmac-sha1-tests: Likewise.
62775         * modules/gc-md2-tests: Likewise.
62776         * modules/gc-md4-tests: Likewise.
62777         * modules/gc-md5-tests: Likewise.
62778         * modules/gc-pbkdf2-sha1-tests: Likewise.
62779         * modules/gc-rijndael-tests: Likewise.
62780         * modules/gc-sha1-tests: Likewise.
62781         * modules/gc-tests: Likewise.
62782         * modules/getaddrinfo-tests: Likewise.
62783         * modules/hmac-md5-tests: Likewise.
62784         * modules/hmac-sha1-tests: Likewise.
62785         * modules/linked-list-tests: Likewise.
62786         * modules/linkedhash-list-tests: Likewise.
62787         * modules/lock-tests: Likewise.
62788         * modules/md2-tests: Likewise.
62789         * modules/md4-tests: Likewise.
62790         * modules/md5-tests: Likewise.
62791         * modules/rbtree-list-tests: Likewise.
62792         * modules/rbtree-oset-tests: Likewise.
62793         * modules/rbtreehash-list-tests: Likewise.
62794         * modules/read-file-tests: Likewise.
62795         * modules/rijndael-tests: Likewise.
62796         * modules/stdint-tests: Likewise.
62797         * modules/tls-tests: Likewise.
62798
62799 2007-02-24  Bruno Haible  <bruno@clisp.org>
62800
62801         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62802         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62803         function; instead check whether isnan with a double argument links.
62804         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62805         function; instead check whether isnan with a 'long double' argument
62806         links.
62807         Reported by Eric Blake <ebb9@byu.net>.
62808
62809 2007-02-24  Bruno Haible  <bruno@clisp.org>
62810
62811         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62812         defined.
62813         * lib/isnanl.c: Remove all code. Just include isnan.c.
62814         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62815
62816 2007-02-25  Jim Meyering  <jim@meyering.net>
62817
62818         Avoid conflicting types for 'unsetenv' on FreeBSD.
62819         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62820         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62821         in stdlib.h.
62822
62823 2007-02-24  Bruno Haible  <bruno@clisp.org>
62824
62825         * modules/isnanl-nolibm-tests: New file.
62826         * tests/test-isnanl.c: New file.
62827
62828         * modules/isnanl-nolibm: New file.
62829         * lib/isnanl.h: New file.
62830         * lib/isnanl.c: New file.
62831         * m4/isnanl.m4: New file.
62832
62833 2007-02-24  Bruno Haible  <bruno@clisp.org>
62834
62835         * modules/isnan-nolibm-tests: New file.
62836         * tests/test-isnan.c: New file.
62837
62838         * modules/isnan-nolibm: New file.
62839         * lib/isnan.h: New file.
62840         * lib/isnan.c: New file.
62841         * m4/isnan.m4: New file.
62842
62843 2007-02-24  Bruno Haible  <bruno@clisp.org>
62844
62845         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62846         assume that an exponent fits in 20 bits.
62847
62848 2007-02-24  Jim Meyering  <jim@meyering.net>
62849
62850         * m4/regex.m4: Update the description of the configure-time option,
62851         --without-included-regex, to state accurately what the defaults are,
62852         and perhaps to give people an idea why using this option is risky.
62853
62854 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62855
62856         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62857         loops on small arguments.  This attempts to avoid the problem
62858         Bruno Haible reported for AIX 4.3.2 in
62859         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62860
62861 2007-02-23  Bruno Haible  <bruno@clisp.org>
62862
62863         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62864         Needed for help2man.
62865
62866 2007-02-23  Karl Berry  <karl@gnu.org>
62867
62868         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62869         exists, foo.h should be cvs-ignored, not committed.
62870
62871 2007-02-23  Eric Blake  <ebb9@byu.net>
62872
62873         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62874         * lib/stat-time.h (includes): Likewise.
62875         * lib/utimecmp.c (includes): Likewise.
62876         * lib/utimens.h (includes): Likewise.
62877         * lib/getdate.y (includes): Also include "timespec.h" for use
62878         internal to the module.
62879         * modules/utimens (Depends-on): Revert yesterday's patch.
62880         * modules/nanosleep (Depends-on): Add missing dependency.
62881
62882 2007-02-22  Bruno Haible  <bruno@clisp.org>
62883
62884         * lib/glob.c: Don't include getlogin_r.h.
62885
62886 2007-02-22  Jim Meyering  <jim@meyering.net>
62887
62888         * modules/utimens (Depends-on): Add timespec, required for
62889         utimens.h's inclusion of timespec.h.
62890
62891 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62892
62893         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62894         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62895         Schwab in
62896         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62897         I'll try to think of a better way to fix the Solaris problem.
62898
62899         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62900         like glibc; on Solaris 10, it fails with errno == EINVAL.
62901         POSIX says the behavior is unspecified if the first argument is NULL,
62902         so play it safe and never pass NULL to the system getcwd.
62903
62904 2007-02-21  Jim Meyering  <jim@meyering.net>
62905
62906         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62907         of gettimeofday.  It would conflict with the one now always
62908         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62909         an IRIX 6.5 build failure.
62910
62911 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62912
62913         Minor fixups to port to Solaris 10 with Sun C 5.8.
62914         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62915         * modules/getcwd (Depends-on): Add dirfd.
62916         * lib/putenv.c (putenv): #undef it.
62917         (rpl_putenv): New decl.
62918         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62919
62920 2007-02-20  Bruno Haible  <bruno@clisp.org>
62921
62922         * modules/stdio-tests: New file.
62923         * tests/test-stdio.c: New file.
62924
62925         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62926         (Depends-on): Add stdio.
62927         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62928         (Include): Use <stdio.h> instead of vsnprintf.h.
62929         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62930         HAVE_DECL_VSNPRINTF.
62931         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62932
62933         * modules/snprintf (Files): Remove lib/snprintf.h.
62934         (Depends-on): Add stdio.
62935         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62936         (Include): Use <stdio.h> instead of snprintf.h.
62937         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62938         HAVE_DECL_SNPRINTF.
62939         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62940         * lib/getaddrinfo.c: Likewise.
62941
62942         * modules/stdio: New file.
62943         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62944         * lib/snprintf.h: Remove file.
62945         * lib/vsnprintf.h: Remove file.
62946         * lib/.cppi-disable: Remove snprintf.h.
62947         * m4/stdio_h.m4: New file.
62948         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62949
62950 2007-02-20  Jim Meyering  <jim@meyering.net>
62951
62952         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62953         used by e.g., mingw.  From Bruno Haible.
62954
62955 2007-02-19  Bruno Haible  <bruno@clisp.org>
62956
62957         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62958         warnings.
62959         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62960
62961 2007-02-19  Bruno Haible  <bruno@clisp.org>
62962
62963         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62964         from mingw users.
62965
62966 2007-02-19  Bruno Haible  <bruno@clisp.org>
62967
62968         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62969         warnings.
62970         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62971
62972 2007-02-19  Jim Meyering  <jim@meyering.net>
62973
62974         Don't use FD after a successful "fdopendir (fd)".
62975         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62976         Reset it by calling dirfd on the just-obtained DIR*.
62977
62978         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62979         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62980
62981 2007-02-18  Bruno Haible  <bruno@clisp.org>
62982
62983         * lib/readlink.c: Include <unistd.h>.
62984         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62985         HAVE_READLINK.
62986         * modules/readlink (Depends-on): Add unistd.
62987         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62988         (Include): Add <unistd.h>.
62989
62990         * lib/getlogin_r.h: Remove file.
62991         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62992         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62993         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62994         HAVE_DECL_GETLOGIN_R.
62995         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62996         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62997         (Include): Use <unistd.h> instead of getlogin_r.h.
62998
62999         * lib/getcwd.h: Remove file.
63000         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63001         * lib/xgetcwd.c: Likewise.
63002         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63003         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63004         * modules/getcwd (Files): Remove lib/getcwd.h.
63005         (Depends-on): Add unistd.
63006         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63007         (Include): Use <unistd.h> instad of getcwd.h.
63008
63009         * lib/ftruncate.c: Include <unistd.h> first.
63010         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63011         Set HAVE_FTRUNCATE.
63012         * modules/ftruncate (Depends-on): Add unistd.
63013         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63014
63015         * lib/fchdir.c: Include <unistd.h> first.
63016         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63017         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63018         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63019         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63020         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63021
63022         * lib/dup2.c: Include <unistd.h> first.
63023         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63024         HAVE_DUP2.
63025         * modules/dup2 (Depends-on): Add unistd.
63026         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63027
63028         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63029         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63030         REPLACE_CHOWN. Don't define chown as a macro here.
63031         * modules/chown (Depends-on): Add unistd.
63032         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63033
63034         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63035         Add definition for GL_LINK_WARNING.
63036         (chown, dup2): New declarations.
63037         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63038         link warning.
63039         (ftruncate): New declaration.
63040         (getcwd): New declaration, taken from old getcwd.h.
63041         (getlogin_r): New declaration, taken from old getlogin_r.h.
63042         (readlink): New declaration.
63043         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63044         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63045         (gl_PREREQ_UNISTD): Remove macro.
63046         (gl_UNISTD_MODULE_INDICATOR): New macro.
63047         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63048         many new variables. Don't set UNISTD_H.
63049         * modules/unistd (Description): Change.
63050         (Depends-on): Add link-warning.
63051         (configure.ac): Update.
63052         (Makefile.am): Create unistd.h always. Substitute many new variables
63053         into it.
63054
63055 2007-02-18  Bruno Haible  <bruno@clisp.org>
63056
63057         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63058         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63059         HAVE_GETSUBOPT.
63060         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63061         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63062         * lib/getsubopt.h: Remove file.
63063         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63064         (Depends-on): Add stdlib.
63065         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63066         (Includes): Use <stdlib.h> instead of getsubopt.h.
63067         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63068         Set HAVE_GETSUBOPT.
63069         * lib/getsubopt.c: Don't include getsubopt.h.
63070
63071 2007-02-18  Bruno Haible  <bruno@clisp.org>
63072
63073         * modules/fchdir (Depends-on): Add dup2.
63074
63075 2007-02-18  Bruno Haible  <bruno@clisp.org>
63076
63077         * lib/stdlib_.h: Handle glibc's special invocation convention
63078         specially.
63079
63080 2007-02-18  Bruno Haible  <bruno@clisp.org>
63081
63082         * modules/stdlib-tests: New file.
63083         * tests/test-stdlib.c: New file.
63084
63085         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63086         (Depends-on): Add stdlib.
63087         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63088         (Includes): Use <stdlib.h> instead of mkstemp.h.
63089         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63090         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63091         * lib/mkstemp.c: Don't include mkstemp.h.
63092         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63093         * lib/stdlib--.h: Don't include mkstemp.h.
63094
63095         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63096         (Depends-on): Add stdlib.
63097         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63098         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63099         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63100         HAVE_MKDTEMP.
63101         * lib/mkdtemp.c: Don't include mkdtemp.h.
63102         * lib/clean-temp.c: Don't include mkdtemp.h.
63103
63104         * modules/exit (Files): Remove lib/exit.h.
63105         (Depends-on): Add stdlib.
63106         (Makefile.am): Remove lib_SOURCES.
63107         (Include): Use <stdlib.h> instead of exit.h.
63108         * lib/argmatch.c: Don't include exit.h.
63109         * lib/execute.c: Likewise.
63110         * lib/pagealign_alloc.c: Likewise.
63111         * lib/pipe.c: Likewise.
63112         * lib/wait-process.c: Likewise.
63113         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63114         * lib/exitfail.c: Likewise.
63115         * lib/savewd.c: Likewise.
63116         * lib/xsetenv.c: Likewise.
63117
63118         * modules/stdlib: New file.
63119         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63120         and extra comments about mkstemp().
63121         * lib/exit.h: Remove file.
63122         * lib/mkdtemp.h: Remove file.
63123         * lib/mkstemp.h: Remove file.
63124         * m4/stdlib_h.m4: New file.
63125         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63126
63127 2007-02-18  Bruno Haible  <bruno@clisp.org>
63128
63129         * modules/math-tests: New file.
63130         * tests/test-math.c: New file.
63131
63132         * modules/math: New file.
63133         * modules/mathl (Files): Remove lib/mathl.h.
63134         (Depends-on): Add math.
63135         (Makefile.am): Don't mention mathl.h.
63136         (Include): Use <math.h> instead of mathl.h.
63137         * lib/math_.h: New file.
63138         * lib/mathl.h: Remove file.
63139         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63140         mathl.h.
63141         * lib/asinl.c: Likewise.
63142         * lib/atanl.c: Likewise.
63143         * lib/ceill.c: Likewise.
63144         * lib/cosl.c: Likewise.
63145         * lib/expl.c: Likewise.
63146         * lib/floorl.c: Likewise.
63147         * lib/frexpl.c: Likewise.
63148         * lib/ldexpl.c: Likewise.
63149         * lib/logl.c: Likewise.
63150         * lib/sincosl.c: Likewise.
63151         * lib/sinl.c: Likewise.
63152         * lib/sqrtl.c: Likewise.
63153         * lib/tanl.c: Likewise.
63154         * lib/trigl.c: Likewise.
63155         * m4/math_h.m4: New file.
63156         * MODULES.html.sh (Mathematics): Add math.
63157
63158 2007-02-17  Bruno Haible  <bruno@clisp.org>
63159
63160         * modules/wctype-tests: New file.
63161         * tests/test-wctype.c: New file.
63162
63163         * modules/wchar-tests: New file.
63164         * tests/test-wchar.c: New file.
63165
63166         * modules/unistd-tests: New file.
63167         * tests/test-unistd.c: New file.
63168
63169         * modules/time-tests: New file.
63170         * tests/test-time.c: New file.
63171
63172         * modules/sysexits-tests: New file.
63173         * tests/test-sysexits.c: New file.
63174
63175         * modules/sys_time-tests: New file.
63176         * tests/test-sys_time.c: New file.
63177
63178         * modules/sys_stat-tests: New file.
63179         * tests/test-sys_stat.c: New file.
63180
63181         * modules/sys_socket-tests: New file.
63182         * tests/test-sys_socket.c: New file.
63183
63184         * modules/sys_select-tests: New file.
63185         * tests/test-sys_select.c: New file.
63186
63187         * modules/string-tests: New file.
63188         * tests/test-string.c: New file.
63189
63190         * modules/stdbool-tests: New file.
63191         * tests/test-stdbool.c: New file.
63192
63193         * modules/netinet_in-tests: New file.
63194         * tests/test-netinet_in.c: New file.
63195
63196         * modules/inttypes-tests: New file.
63197         * tests/test-inttypes.c: New file.
63198
63199         * modules/fcntl-tests: New file.
63200         * tests/test-fcntl.c: New file.
63201
63202         * modules/byteswap-tests: New file.
63203         * tests/test-byteswap.c: New file.
63204
63205         * modules/arpa_inet-tests: New file.
63206         * tests/test-arpa_inet.c: New file.
63207
63208 2007-02-17  Bruno Haible  <bruno@clisp.org>
63209
63210         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63211         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63212         if the corresponding module is not enabled. Emit link warnings if
63213         the function is used nevertheless.
63214         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63215         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63216         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63217         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63218         * modules/inttypes (Depends-on): Add link-warning.
63219         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63220         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63221         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63222         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63223         * modules/imaxdiv (configure.ac): Likewise.
63224         * modules/strtoimax (configure.ac): Likewise.
63225         * modules/strtoumax (configure.ac): Likewise.
63226
63227 2007-02-17  Bruno Haible  <bruno@clisp.org>
63228
63229         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63230         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63231         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63232         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63233
63234 2007-02-17  Bruno Haible  <bruno@clisp.org>
63235
63236         * modules/link-warning: New file.
63237         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63238         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63239         * modules/string (Depends-on): Add link-warning.
63240         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63241         string.h.
63242         * MODULES.html.sh (Support for building libraries and executables): Add
63243         link-warning.
63244
63245 2007-02-17  Bruno Haible  <bruno@clisp.org>
63246
63247         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63248         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63249         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63250         long lines.
63251
63252 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63253             Bruno Haible  <bruno@clisp.org>
63254
63255         * modules/tmpfile: New file.
63256         * lib/tmpfile.c: New file.
63257         * m4/tmpfile.m4: New file.
63258         * MODULES.html.sh (func_all_modules): New section "Input/output".
63259
63260 2007-02-15  Bruno Haible  <bruno@clisp.org>
63261
63262         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63263         (supports_delete_on_close): New function.
63264         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63265
63266 2007-02-14  Bruno Haible  <bruno@clisp.org>
63267
63268         * modules/mbspcasecmp-tests: New file.
63269         * tests/test-mbspcasecmp.sh: New file.
63270         * tests/test-mbspcasecmp.c: New file.
63271
63272         New module mbspcasecmp.
63273         * modules/mbspcasecmp: New file.
63274         * lib/mbspcasecmp.c: New file.
63275         * lib/string_.h (strncasecmp): Change warning message.
63276         (mbspcasecmp): New declaration.
63277         * m4/mbspcasecmp.m4: New file.
63278         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63279         GNULIB_MBSPCASECMP.
63280         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63281         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63282
63283 2007-02-14  Bruno Haible  <bruno@clisp.org>
63284
63285         * modules/mbsncasecmp-tests: New file.
63286         * tests/test-mbsncasecmp.sh: New file.
63287         * tests/test-mbsncasecmp.c: New file.
63288
63289         New module mbsncasecmp.
63290         * modules/mbsncasecmp: New file.
63291         * lib/mbsncasecmp.c: New file.
63292         * lib/string_.h (mbsncasecmp): New declaration.
63293         * m4/mbsncasecmp.m4: New file.
63294         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63295         GNULIB_MBSNCASECMP.
63296         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63297         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63298
63299 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63300
63301         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63302         Verify that it doesn't overlap with our flags.
63303         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63304         do not have the desired effect in multibyte locales; instead, use
63305         mbscasecmp.
63306         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63307         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63308         we don't require GNU fnmatch ourselves (if our users require it, they
63309         should do so explicitly).
63310
63311         Fix regex code so it doesn't rely on strcasecmp.
63312         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63313         Otherwise, include gnulib's langinfo.h.
63314         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63315         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63316         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63317         * modules/regex (FILES): Remove m4/codeset.m4.
63318         (Depends-on): Add localcharset.  Remove strcase.
63319
63320 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63321
63322         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63323         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63324
63325 2007-02-13  Bruno Haible  <bruno@clisp.org>
63326
63327         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63328         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63329
63330 2007-02-12  Bruno Haible  <bruno@clisp.org>
63331
63332         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63333         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63334         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63335         time warning rather than a link error.
63336
63337 2007-02-12  Bruno Haible  <bruno@clisp.org>
63338
63339         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63340         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63341         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63342
63343 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63344
63345         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63346         args, not 2.
63347
63348 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63349
63350         New module 'time', so that apps can include <time.h> as per
63351         POSIX and GNU instead of separate include files like time_r.h
63352         and timegm.h.  This implementation tries out a simpler approach
63353         for replacing decls in standard include files (as compared to
63354         the string module), somewhat as an experiment.
63355
63356         * config/srclist.txt: Comment out mktime.c for now.
63357         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63358         since it doesn't apply any more.  Use generic wording instead.
63359         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63360         'time'.
63361         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63362         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63363         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63364         Don't include <sys/types.h>; no longer needed since we assume C89.
63365         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63366         * lib/strftime.c: Likewise.
63367         * lib/time_r.c: Likewise.
63368         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63369         * lib/nanosleep.c: Include <time.h> first, to check interface.
63370         * lib/strptime.c: Likewise.
63371         * lib/time_r.c: Likewise.
63372         * lib/timegm.c: Likewise.
63373         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63374         needed.
63375         * lib/timegm.c: Don't include timegm.h; no longer needed.
63376         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63377         time.h now handles any problems in that area.
63378         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63379         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63380         that time.h defines struct timespec.
63381         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63382         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63383         handles that.
63384         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63385         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63386         needed.  Set REPLACE_LOCALTIME.
63387         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63388         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63389         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63390         nanosleep; time_h.m4 now does that.  Don't require
63391         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63392         module handles this now.
63393         * modules/getdate (Depends-on): Remove timespec.  Add time.
63394         * modules/nanosleep (Depends-on): Likewise.
63395         * modules/stat-time (Depends-on): Likewise.
63396         * modules/nanosleep (Include): Include time.h, not timespec.h.
63397         * modules/strptime (Files): Remove lib/strptime.h.
63398         (Depends-on): Add extensions, time.
63399         (Include): Include time.h, not strptime.h.
63400         * modules/time_r (Files): Remove lib/time_r.h.
63401         (Depends-on): Add time.
63402         (Include): Include time.h, not time_r.h.
63403         * modules/timegm: Likewise.
63404         * modules/timespec (Description): Now does timespec-related decls
63405         of our own, instead of struct timespec itself.
63406         (Depends-on): Add time; remove extensions.
63407         (Maintainer): Add self.
63408         * modules/utimecmp (Depends-on): Add time; remove timespec.
63409         * modules/utimens (Depends-on): Likewise.
63410         * modules/xnanosleep (Depends-on): Likewise.
63411
63412 2007-02-11  Bruno Haible  <bruno@clisp.org>
63413
63414         * lib/c-strstr.c: Include allocsa.h.
63415         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63416         * lib/c-strcasestr.c: Include allocsa.h.
63417         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63418         * lib/strcasestr.c: Include allocsa.h.
63419         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63420         * lib/mbsstr.c: Include allocsa.h.
63421         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63422         allocsa/freesa instead of malloc/free.
63423         * lib/mbscasestr.c: Include allocsa.h.
63424         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63425         allocsa/freesa instead of malloc/free.
63426         * modules/c-strstr (Depends-on): Add allocsa.
63427         * modules/c-strcasestr (Depends-on): Likewise.
63428         * modules/strcasestr (Depends-on): Likewise.
63429         * modules/mbsstr (Depends-on): Likewise.
63430         * modules/mbscasestr (Depends-on): Likewise.
63431
63432 2007-02-11  Bruno Haible  <bruno@clisp.org>
63433
63434         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63435
63436         * modules/mbsspn-tests: New file.
63437         * tests/test-mbsspn.sh: New file.
63438         * tests/test-mbsspn.c: New file.
63439
63440 2007-02-11  Bruno Haible  <bruno@clisp.org>
63441
63442         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63443
63444         * modules/mbspbrk-tests: New file.
63445         * tests/test-mbspbrk.sh: New file.
63446         * tests/test-mbspbrk.c: New file.
63447
63448 2007-02-11  Bruno Haible  <bruno@clisp.org>
63449
63450         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63451         unneeded cast.
63452
63453         * modules/mbscspn-tests: New file.
63454         * tests/test-mbscspn.sh: New file.
63455         * tests/test-mbscspn.c: New file.
63456
63457 2007-02-11  Bruno Haible  <bruno@clisp.org>
63458
63459         * modules/mbscasecmp-tests: New file.
63460         * tests/test-mbscasecmp.sh: New file.
63461         * tests/test-mbscasecmp.c: New file.
63462
63463 2007-02-11  Bruno Haible  <bruno@clisp.org>
63464
63465         Ensure O(n) worst-case complexity of mbscasestr.
63466         * lib/mbscasestr.c: Include stdbool.h.
63467         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63468         functions.
63469         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63470         the bookkeeping indicates that it's worth it.
63471         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63472
63473         * modules/mbscasestr-tests: New file.
63474         * tests/test-mbscasestr1.c: New file.
63475         * tests/test-mbscasestr2.sh: New file.
63476         * tests/test-mbscasestr2.c: New file.
63477         * tests/test-mbscasestr3.sh: New file.
63478         * tests/test-mbscasestr3.c: New file.
63479         * tests/test-mbscasestr4.sh: New file.
63480         * tests/test-mbscasestr4.c: New file.
63481         * m4/locale-tr.m4: New file.
63482
63483 2007-02-11  Bruno Haible  <bruno@clisp.org>
63484
63485         Ensure O(n) worst-case complexity of mbsstr.
63486         * lib/mbsstr.c: Include stdbool.h.
63487         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63488         functions.
63489         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63490         bookkeeping indicates that it's worth it.
63491         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63492
63493         * modules/mbsstr-tests: New file.
63494         * tests/test-mbsstr1.c: New file.
63495         * tests/test-mbsstr2.sh: New file.
63496         * tests/test-mbsstr2.c: New file.
63497         * tests/test-mbsstr3.sh: New file.
63498         * tests/test-mbsstr3.c: New file.
63499         * m4/locale-fr.m4: New file.
63500
63501 2007-02-11  Bruno Haible  <bruno@clisp.org>
63502
63503         * lib/mbsrchr.c (mbsrchr): Fix bug.
63504
63505         * modules/mbsrchr-tests: New file.
63506         * tests/test-mbsrchr.sh: New file.
63507         * tests/test-mbsrchr.c: New file.
63508
63509 2007-02-11  Bruno Haible  <bruno@clisp.org>
63510
63511         * lib/mbschr.c (mbschr): Fix bug.
63512
63513         * modules/mbschr-tests: New file.
63514         * tests/test-mbschr.sh: New file.
63515         * tests/test-mbschr.c: New file.
63516         * m4/locale-zh.m4: New file.
63517
63518 2007-02-11  Bruno Haible  <bruno@clisp.org>
63519
63520         Support for copying multibyte string iterators.
63521         * lib/mbiter.h: Include <string.h>.
63522         (mbiter_multi_copy): New function.
63523         (mbi_copy): New macro.
63524         * lib/mbuiter.h: Include <string.h>.
63525         (mbuiter_multi_copy): New function.
63526         (mbui_copy): New macro.
63527
63528 2007-02-11  Bruno Haible  <bruno@clisp.org>
63529
63530         New module mbslen.
63531         * modules/mbslen: New file.
63532         * lib/mbslen.c: New file.
63533         * lib/string_.h (mbslen): New declaration.
63534         * m4/mbslen.m4: New file.
63535         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63536         GNULIB_MBSLEN.
63537         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63538         * MODULES.html.sh (Internationalization functions): Add mbslen.
63539
63540 2007-02-11  Bruno Haible  <bruno@clisp.org>
63541
63542         Ensure O(n) worst-case complexity of strcasestr substitute.
63543         * lib/strcasestr.c: Include stdbool.h.
63544         (knuth_morris_pratt): New function.
63545         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63546         bookkeeping indicates that it's worth it.
63547         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63548
63549         * modules/strcasestr-tests: New file.
63550         * tests/test-strcasestr.c: New file.
63551
63552 2007-02-11  Bruno Haible  <bruno@clisp.org>
63553
63554         Ensure O(n) worst-case complexity of c_strcasestr.
63555         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63556         (knuth_morris_pratt): New function.
63557         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63558         the bookkeeping indicates that it's worth it.
63559         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63560
63561         * modules/c-strcasestr-tests: New file.
63562         * tests/test-c-strcasestr.c: New file.
63563
63564 2007-02-11  Bruno Haible  <bruno@clisp.org>
63565
63566         Ensure O(n) worst-case complexity of c_strstr.
63567         * lib/c-strstr.c: Include stdbool.h, string.h.
63568         (knuth_morris_pratt): New function.
63569         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63570         bookkeeping indicates that it's worth it.
63571         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63572
63573         * lib/c-strstr.c: Complete rewrite for maintainability.
63574
63575         * modules/c-strstr-tests: New file.
63576         * tests/test-c-strstr.c: New file.
63577
63578 2007-02-11  Bruno Haible  <bruno@clisp.org>
63579
63580         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63581         5.2.1 and earlier, whereby \055 was treated just like the range
63582         delimiter '-'.
63583         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63584
63585 2007-02-08  Bruno Haible  <bruno@clisp.org>
63586
63587         * modules/regex (Depends-on): Add stdbool.
63588         Reported by Dalibor Topic <robilad@kaffe.org>.
63589
63590 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63591
63592         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63593         Prefer returning from main to exiting from it.
63594         Remove unnecessary parens after sizeof.
63595
63596 2007-02-05  Bruno Haible  <bruno@clisp.org>
63597
63598         New module mbssep.
63599         * modules/mbssep: New file.
63600         * lib/mbssep.c: New file.
63601         * lib/string_.h (strsep): Add a conditional link warning.
63602         (mbssep): New declaration.
63603         * m4/mbssep.m4: New file.
63604         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63605         GNULIB_MBSSEP.
63606         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63607         * MODULES.html.sh (Internationalization functions): Add mbssep.
63608
63609 2007-02-05  Bruno Haible  <bruno@clisp.org>
63610
63611         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63612         Optimize search in case of 1 delimiter.
63613
63614 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63615
63616         * lib/acl.h: Include sys/types.h before sys/acl.h.
63617
63618 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63619
63620         Merge upstream fix for glibc bugzilla #3957:
63621
63622         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63623
63624         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63625         bit for RE_HAT_LISTS_NOT_NEWLINE.
63626         (build_charclass_op): Remove bogus comment.
63627
63628 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63629
63630         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63631
63632 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63633
63634         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63635         * lib/memmem.c [!defined _LIBC]: Include config.h.
63636
63637 2007-02-04  Bruno Haible  <bruno@clisp.org>
63638
63639         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63640         warning message.
63641
63642 2007-02-04  Bruno Haible  <bruno@clisp.org>
63643
63644         New module mbstok_r.
63645         * modules/mbstok_r: New file.
63646         * lib/mbstok_r.c: New file.
63647         * lib/string_.h (strtok_r): Change argument names to match the
63648         comments. Add a conditional link warning.
63649         (mbstok_r): New declaration.
63650         * m4/mbstok_r.m4: New file.
63651         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63652         GNULIB_MBSTOK_R.
63653         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63654         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63655
63656 2007-02-04  Bruno Haible  <bruno@clisp.org>
63657
63658         New module mbsspn.
63659         * modules/mbsspn: New file.
63660         * lib/mbsspn.c: New file.
63661         * lib/string_.h (strspn): Add a conditional link warning.
63662         (mbsspn): New declaration.
63663         * m4/mbsspn.m4: New file.
63664         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63665         GNULIB_MBSSPN.
63666         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63667         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63668
63669 2007-02-04  Bruno Haible  <bruno@clisp.org>
63670
63671         New module mbspbrk.
63672         * modules/mbspbrk: New file.
63673         * lib/mbspbrk.c: New file.
63674         * lib/string_.h (strpbrk): Add a conditional link warning.
63675         (mbspbrk): New declaration.
63676         * m4/mbspbrk.m4: New file.
63677         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63678         GNULIB_MBSPBRK.
63679         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63680         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63681
63682 2007-02-04  Bruno Haible  <bruno@clisp.org>
63683
63684         New module mbscspn.
63685         * modules/mbscspn: New file.
63686         * lib/mbscspn.c: New file.
63687         * lib/string_.h (strcspn): Add a conditional link warning.
63688         (mbscspn): New declaration.
63689         * m4/mbscspn.m4: New file.
63690         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63691         GNULIB_MBSCSPN.
63692         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63693         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63694
63695 2007-02-04  Bruno Haible  <bruno@clisp.org>
63696
63697         New module mbscasestr, reduced goal of strcasestr.
63698         * modules/mbscasestr: New file.
63699         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63700         (mbscasestr): Renamed from strcasestr.
63701         * lib/strcasestr.c: Don't include mbuiter.h.
63702         (strcasestr): Remove support for multibyte locales.
63703         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63704         Change the conditional link warning.
63705         (mbscasestr): New declaration.
63706         * m4/mbscasestr.m4: New file.
63707         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63708         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63709         REPLACE_STRCASESTR.
63710         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63711         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63712         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63713         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63714         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63715         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63716         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63717         (Depends-on): Remove mbuiter.
63718         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63719
63720 2007-02-04  Bruno Haible  <bruno@clisp.org>
63721
63722         Simplify handling of strncasecmp.
63723         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63724         the conditional link warning.
63725         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63726         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63727         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63728         * modules/strcase (configure.ac): Don't invoke
63729         gl_STRING_MODULE_INDICATOR.
63730         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63731
63732 2007-02-04  Bruno Haible  <bruno@clisp.org>
63733
63734         New module mbscasecmp, reduced goal of strcasecmp.
63735         * modules/mbscasecmp: New file.
63736         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63737         (mbscasecmp): Renamed from strcasecmp.
63738         * lib/strcasecmp.c: Don't include mbuiter.h.
63739         (strcasecmp): Remove support for multibyte locales.
63740         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63741         Change the conditional link warning.
63742         (mbscasecmp): New declaration.
63743         * m4/mbscasecmp.m4: New file.
63744         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63745         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63746         REPLACE_STRCASECMP.
63747         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63748         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63749         GNULIB_MBSCASECMP.
63750         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63751         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63752         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63753         (Depends-on): Remove mbuiter.
63754         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63755
63756 2007-02-04  Bruno Haible  <bruno@clisp.org>
63757
63758         New module mbsstr. Remove module strstr.
63759         * modules/mbsstr: New file.
63760         * modules/strstr: Remove file.
63761         * lib/mbsstr.c: Renamed from lib/strstr.c.
63762         (mbsstr): Renamed from strstr.
63763         * lib/string_.h (strstr): Remove declaration. Change the conditional
63764         link warning.
63765         (mbsstr): New declaration.
63766         * m4/mbsstr.m4: New file.
63767         * m4/strstr.m4: Remove file.
63768         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63769         REPLACE_STRSTR.
63770         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63771         Don't initialize GNULIB_STRSTR.
63772         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63773         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63774         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63775         (Support for systems lacking ANSI C 89): Remove strstr.
63776
63777 2007-02-04  Bruno Haible  <bruno@clisp.org>
63778
63779         New module mbsrchr.
63780         * modules/mbsrchr: New file.
63781         * lib/mbsrchr.c: New file.
63782         * lib/string_.h (strrchr): Add a conditional link warning.
63783         (mbsrchr): New declaration.
63784         * m4/mbsrchr.m4: New file.
63785         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63786         GNULIB_MBSRCHR.
63787         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63788         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63789
63790 2007-02-04  Bruno Haible  <bruno@clisp.org>
63791
63792         New module mbschr.
63793         * modules/mbschr: New file.
63794         * lib/mbschr.c: New file.
63795         * lib/string_.h (strchr): Add a conditional link warning.
63796         (mbschr): New declaration.
63797         * m4/mbschr.m4: New file.
63798         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63799         GNULIB_MBSCHR.
63800         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63801         * MODULES.html.sh (Internationalization functions): Add mbschr.
63802
63803 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63804
63805         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63806
63807         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63808
63809 2007-02-04  Bruno Haible  <bruno@clisp.org>
63810
63811         New module description section 'configure.ac-early'.
63812         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63813         (func_get_autoconf_early_snippet): New function.
63814         (func_import, func_create_testdir): Use it. Remove special cases for
63815         modules 'extensions' and 'lock'.
63816         * modules/extensions (configure.ac-early): Require
63817         gl_USE_SYSTEM_EXTENSIONS.
63818         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63819
63820 2007-02-04  Bruno Haible  <bruno@clisp.org>
63821
63822         Make use of gcj-4.3's -fsource and -ftarget option.
63823         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63824         and if so try the options -fsource and -ftarget.
63825         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63826         source_version, ftarget_option, target_version arguments.
63827         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63828         (is_envjavac_oldgcj_14_14_usable): Renamed from
63829         is_envjavac_gcj_14_14_usable.
63830         (is_envjavac_oldgcj_14_13_usable): Renamed from
63831         is_envjavac_gcj_14_13_usable.
63832         (is_gcj_present): Update.
63833         (is_gcj_43, is_gcj43_usable): New functions.
63834         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63835         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63836         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63837         try the options -fsource and -ftarget.
63838
63839 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63840
63841         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63842         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63843         larger value.
63844
63845 2007-02-03  Jim Meyering  <jim@meyering.net>
63846
63847         Give tools a better chance to allocate space for very large buffers.
63848         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63849
63850         Make pwd and readlink work also when run with an unreadable parent dir
63851         on systems with openat support.
63852         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63853         provided getcwd function, even when we have openat support.
63854         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63855
63856 2007-02-02  Bruno Haible  <bruno@clisp.org>
63857
63858         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63859         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63860         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63861         portability problems if one of these functions is only used on specific
63862         platforms.
63863         Reported by Paul Eggert.
63864
63865 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63866
63867         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63868         is causing more trouble than it's curing.
63869         * lib/regex_internal.h (__mempcpy): Remove.
63870         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63871         (and make the code a tad smaller to boot).
63872         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63873
63874 2007-02-02  Jim Meyering  <jim@meyering.net>
63875
63876         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63877         section, not in the Makefile.am: one.
63878
63879 2007-02-02  Eric Blake  <ebb9@byu.net>
63880
63881         * lib/strchrnul.c: Always include config.h first.
63882
63883         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63884         gnulib strstr is not necessary here.
63885
63886 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63887
63888         * m4/socklen.m4: Fix typo.
63889
63890 2007-02-02  Eric Blake  <ebb9@byu.net>
63891
63892         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63893         * modules/netinet_in (Makefile.am): Likewise.
63894
63895 2007-02-01  Bruno Haible  <bruno@clisp.org>
63896
63897         * lib/string_.h (GL_LINK_WARNING): New macro.
63898         (strcasecmp, strstr, strcasestr): If provided by the system,
63899         conditionally define as a macro that leads to a warning instead of to
63900         an error.
63901         (strncasecmp): Conditionally define as a macro that leads to a warning.
63902
63903 2007-02-01  Karl Berry  <karl@gnu.org>
63904
63905         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63906
63907 2007-02-01  Bruno Haible  <bruno@clisp.org>
63908
63909         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63910         renamings.
63911
63912 2007-02-01  Eric Blake  <ebb9@byu.net>
63913
63914         * modules/regex (Depends-on): Revert dependence on mempcpy.
63915         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63916         module's definition of mempcpy.
63917         Reported by Paul Eggert.
63918
63919 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63920
63921         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63922         the symbol XYZ before redefining it.  This fixes a problem with
63923         programs that don't use XYZ, when compiled on systems that define
63924         XYZ to something else.
63925
63926 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63927
63928         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63929         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63930         writeable to group or other and (2) is intended to have a special
63931         mode bit that is set or cleared.  In such a case, the directory
63932         should be neither group- nor other-writeable until the special
63933         mode bits are right.
63934
63935 2007-01-31  Eric Blake  <ebb9@byu.net>
63936
63937         * modules/mountlist (Depends-on): Add strstr.
63938
63939         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63940         bug.
63941         * modules/string (Makefile.am): Remove redundant replacement.
63942         * modules/regex (Depends-on): Add mempcpy.
63943
63944 2007-01-31  Bruno Haible  <bruno@clisp.org>
63945
63946         New module description field 'Link'.
63947         * gnulib-tool (func_usage): Document --extract-link-directive.
63948         (sed_extract_prog): Recognize 'Link' directive.
63949         (func_get_link_directive): New function.
63950         (func_import): Show summary of link directives.
63951         Handle --extract-link-directive option.
63952         * modules/acl (Link): New section.
63953         * modules/clock-time (Link): New section.
63954         * modules/euidaccess (Link): New section.
63955         * modules/gettext (Link): New section.
63956         * modules/iconv (Link): New section.
63957         * modules/lock (Link): New section.
63958         * modules/nanosleep (Link): New section.
63959         * modules/readline (Link): New section.
63960
63961 2007-01-27  Bruno Haible  <bruno@clisp.org>
63962
63963         Enforce the use of gnulib modules for unportable <string.h> functions.
63964         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63965         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63966         (gl_HEADER_STRING_H_BODY): Require it.
63967         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63968         the symbol XYZ to one that gives a link error.
63969         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63970         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63971         * modules/mempcpy (configure.ac): Likewise.
63972         * modules/memrchr (configure.ac): Likewise.
63973         * modules/stpcpy (configure.ac): Likewise.
63974         * modules/stpncpy (configure.ac): Likewise.
63975         * modules/strcase (configure.ac): Likewise.
63976         * modules/strcasestr (configure.ac): Likewise.
63977         * modules/strchrnul (configure.ac): Likewise.
63978         * modules/strdup (configure.ac): Likewise.
63979         * modules/strndup (configure.ac): Likewise.
63980         * modules/strnlen (configure.ac): Likewise.
63981         * modules/strpbrk (configure.ac): Likewise.
63982         * modules/strsep (configure.ac): Likewise.
63983         * modules/strstr (configure.ac): Likewise.
63984         * modules/strtok_r (configure.ac): Likewise.
63985
63986 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63987
63988         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63989
63990 2007-01-30  Jim Meyering  <jim@meyering.net>
63991
63992         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63993
63994 2007-01-29  Bruno Haible  <bruno@clisp.org>
63995
63996         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63997         * lib/execute.c: Likewise.
63998         * lib/pipe.c: Likewise.
63999         * lib/printf-args.h: Likewise.
64000         * lib/printf-args.c: Likewise.
64001         * lib/printf-parse.c: Likewise.
64002         * lib/vasnprintf.c: Likewise.
64003
64004 2007-01-29  Eric Blake  <ebb9@byu.net>
64005
64006         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64007         declaration.
64008
64009 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64010
64011         * lib/strptime.h (strptime): Use 'restrict' for args where
64012         POSIX requires this.
64013         * lib/strptime.c (strptime): Likewise.
64014         Change license notice from LGPL to GPL, since gnulib-tool will
64015         change this as needed.
64016         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64017         defined.
64018         Include "strptime.h" first, to check interface.
64019         Do not #undef _LIBC and _NL_CURRENT.
64020         Do not include <stdlib.h>; no longer needed.
64021         Include "time_r.h" and declare ptime_locale_status
64022         only if _LIBC is not defined.
64023         (__P): Remove unused macro.
64024         (match_string): Bring back glibc version, but use it only if _LIBC
64025         is defined.
64026         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64027         Remove unnecessary assertion and abort() call.
64028         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64029         * m4/strptime.m4: Fix serial number comment.
64030         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64031         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64032         (Depends-on): Add time_r.
64033
64034 2007-01-29  Bruno Haible  <bruno@clisp.org>
64035
64036         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64037         strptime.
64038         * modules/strptime (Depends-on): Add stdbool.
64039         * lib/strptime.h: Include <time.h> always. Add comments.
64040
64041 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64042
64043         * modules/strptime: New file.
64044         * lib/strptime.h: New file.
64045         * lib/strptime.c: New file.
64046         * m4/strptime.m4: New file.
64047
64048 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64049
64050         * MODULES.html.sh: New module mpsort.
64051         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64052
64053         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64054         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64055         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64056         All uses changed.
64057         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64058         All uses changed.
64059         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64060         to _Restrict_.
64061         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64062         the parameter matches the prototype.
64063
64064 2007-01-28  Jim Meyering  <jim@meyering.net>
64065
64066         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64067         sys/time.h here, reverting that part of the previous patch:
64068         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64069
64070 2007-01-28  Bruno Haible  <bruno@clisp.org>
64071
64072         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64073         value of $(SYS_TIME_H).
64074         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64075         remove it conditionally, too. [added by Jim Meyering]
64076         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64077         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64078         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64079         GETTIMEOFDAY_REPLACEMENT to 1.
64080
64081 2007-01-28  Bruno Haible  <bruno@clisp.org>
64082
64083         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64084         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64085         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64086         Set UNISTD_H instead of UNISTD_H2.
64087         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64088
64089 2007-01-28  Bruno Haible  <bruno@clisp.org>
64090
64091         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64092         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64093
64094 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64095
64096         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64097         (func_create_testdir): Ensure C locale for `grep' and `tr'
64098         character ranges.
64099         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64100         ACLOCAL_AMFLAGS parsing state machine.
64101
64102 2007-01-27  Bruno Haible  <bruno@clisp.org>
64103
64104         * modules/unistr/base: Update.
64105
64106 2007-01-27  Bruno Haible  <bruno@clisp.org>
64107
64108         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64109         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64110         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64111         modules/unistr/u32-mbtouc.
64112         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64113         * lib/unistr.h: Update.
64114         * lib/linebreak.c: Update.
64115         * modules/unistr/u32-mbtouc: Renamed from
64116         modules/unistr/u32-mbtouc-safe.
64117         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64118         * lib/unistr.h: Update.
64119         * lib/unistr/u32-to-u8.c: Update.
64120         * lib/unistr/u32-to-u16.c: Update.
64121
64122 2007-01-27  Bruno Haible  <bruno@clisp.org>
64123
64124         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64125         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64126         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64127         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64128         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64129         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64130         modules/unistr/u16-mbtouc.
64131         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64132         * lib/unistr.h: Update.
64133         * lib/linebreak.c: Update.
64134         * modules/linebreak: Update.
64135         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64136         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64137         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64138         * modules/unistr/u16-mbtouc: Renamed from
64139         modules/unistr/u16-mbtouc-safe.
64140         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64141         * lib/unistr.h: Update.
64142         * lib/unistr/u16-to-u8.c: Update.
64143         * modules/unistr/u16-to-u8: Update.
64144         * lib/unistr/u16-to-u32.c: Update.
64145         * modules/unistr/u16-to-u32: Update.
64146
64147 2007-01-27  Bruno Haible  <bruno@clisp.org>
64148
64149         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64150         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64151         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64152         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64153         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64154         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64155         modules/unistr/u8-mbtouc.
64156         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64157         * lib/unistr.h: Update.
64158         * lib/striconveh.c: Update.
64159         * modules/striconveh: Update.
64160         * lib/linebreak.c: Update.
64161         * modules/linebreak: Update.
64162         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64163         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64164         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64165         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64166         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64167         * lib/unistr.h: Update.
64168         * lib/striconveh.c: Update.
64169         * modules/striconveh: Update.
64170         * lib/unistr/u8-to-u16.c: Update.
64171         * modules/unistr/u8-to-u16: Update.
64172         * lib/unistr/u8-to-u32.c: Update.
64173         * modules/unistr/u8-to-u32: Update.
64174
64175 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64176
64177         Sync from Libtool.
64178         * lib/argz.c: Do not include strings.h nor memory.h, include
64179         string.h unconditionally.  Patch by Simon Josefsson.
64180
64181 2007-01-27  Bruno Haible  <bruno@clisp.org>
64182
64183         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64184         from gl_HEADER_STRING_H_BODY.
64185         (gl_HEADER_STRING_H_BODY): Require it.
64186         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64187         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64188         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64189         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64190         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64191         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64192         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64193         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64194         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64195         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64196         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64197         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64198         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64199         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64200         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64201
64202 2007-01-27  Bruno Haible  <bruno@clisp.org>
64203
64204         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64205         check_PROGRAMS into noinst_PROGRAMS.
64206         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64207         check_PROGRAMS in this case.
64208         (func_import): Set for_test to false.
64209         (func_create_testdir): Set for_test to true.
64210
64211 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64212             Bruno Haible  <bruno@clisp.org>
64213
64214         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64215         (Depends-on): Add string.
64216         (Includes): Use <string.h> instead of strcasestr.h.
64217         * modules/string (Makefile.am): Also substitute the value of
64218         REPLACE_STRCASESTR.
64219         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64220         assume strcasestr is declared in <string.h> not <strings.h>. Also
64221         set REPLACE_STRCASESTR.
64222         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64223         REPLACE_STRCASESTR.
64224         * lib/strcasestr.h: Remove file.
64225         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64226         * lib/string_.h (strcasestr): New declaration.
64227
64228 2007-01-27  Bruno Haible  <bruno@clisp.org>
64229
64230         * lib/string_.h: Use 'extern'.
64231
64232 2007-01-27  Jim Meyering  <jim@meyering.net>
64233
64234         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64235         of set-but-not-used local, "q".
64236
64237         * lib/mempcpy.c: Include <config.h> before <string.h>.
64238         This fixes a compilation error on HP-UX, due to the system's
64239         "restrict"-using mempcpy prototype.
64240
64241 2007-01-26  Bruno Haible  <bruno@clisp.org>
64242
64243         Small optimization.
64244         * lib/javacomp.c: Include c-strstr.h.
64245          (is_envjavac_gcj): Use c_strstr instead of strstr.
64246         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64247
64248 2007-01-26  Bruno Haible  <bruno@clisp.org>
64249
64250         * MODULES.html.sh (Unicode string functions): Add the new modules.
64251
64252         * modules/uniconv/u32-strconv-to-locale: New file.
64253         * lib/uniconv/u32-strconv-to-locale.c: New file.
64254
64255         * modules/uniconv/u16-strconv-to-locale: New file.
64256         * lib/uniconv/u16-strconv-to-locale.c: New file.
64257
64258         * modules/uniconv/u8-strconv-to-locale: New file.
64259         * lib/uniconv/u8-strconv-to-locale.c: New file.
64260
64261         * modules/uniconv/u32-strconv-from-locale: New file.
64262         * lib/uniconv/u32-strconv-from-locale.c: New file.
64263
64264         * modules/uniconv/u16-strconv-from-locale: New file.
64265         * lib/uniconv/u16-strconv-from-locale.c: New file.
64266
64267         * modules/uniconv/u8-strconv-from-locale: New file.
64268         * lib/uniconv/u8-strconv-from-locale.c: New file.
64269
64270         * modules/uniconv/u32-strconv-to-enc: New file.
64271         * lib/uniconv/u32-strconv-to-enc.c: New file.
64272         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64273         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64274
64275         * modules/uniconv/u16-strconv-to-enc: New file.
64276         * lib/uniconv/u16-strconv-to-enc.c: New file.
64277         * lib/uniconv/u-strconv-to-enc.h: New file.
64278         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64279         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64280
64281         * modules/uniconv/u8-strconv-to-enc: New file.
64282         * lib/uniconv/u8-strconv-to-enc.c: New file.
64283         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64284         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64285
64286         * modules/uniconv/u32-strconv-from-enc: New file.
64287         * lib/uniconv/u32-strconv-from-enc.c: New file.
64288         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64289         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64290
64291         * modules/uniconv/u16-strconv-from-enc: New file.
64292         * lib/uniconv/u16-strconv-from-enc.c: New file.
64293         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64294         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64295
64296         * modules/uniconv/u8-strconv-from-enc: New file.
64297         * lib/uniconv/u8-strconv-from-enc.c: New file.
64298         * lib/uniconv/u-strconv-from-enc.h: New file.
64299         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64300         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64301
64302         * modules/uniconv/u32-conv-from-enc: New file.
64303         * lib/uniconv/u32-conv-from-enc.c: New file.
64304         * modules/uniconv/u32-conv-from-enc-tests: New file.
64305         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64306
64307         * modules/uniconv/u16-conv-from-enc: New file.
64308         * lib/uniconv/u16-conv-from-enc.c: New file.
64309         * lib/uniconv/u-conv-from-enc.h: New file.
64310         * modules/uniconv/u16-conv-from-enc-tests: New file.
64311         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64312
64313         * modules/uniconv/u8-conv-from-enc: New file.
64314         * lib/uniconv/u8-conv-from-enc.c: New file.
64315         * modules/uniconv/u8-conv-from-enc-tests: New file.
64316         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64317
64318         * modules/uniconv/base: New file.
64319         * lib/uniconv.h: New file.
64320
64321 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64322
64323         * doc/gnulib-tool.texi (Initial import): Update to match current
64324         behavior with strdup module.
64325         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64326         * lib/memmem.h: Remove; all uses removed.  This is now done
64327         by <string.h>.
64328         * lib/mempcpy.h: Likewise.
64329         * lib/memrchr.h: Likewise.
64330         * lib/stpcpy.h: Likewise.
64331         * lib/stpncpy.h: Likewise.
64332         * lib/strcase.h: Likewise.
64333         * lib/strchrnul.h: Likewise.
64334         * lib/strdup.h: Likewise.
64335         * lib/strndup.h: Likewise.
64336         * lib/strnlen.h: Likewise.
64337         * lib/strpbrk.h: Likewise.
64338         * lib/strsep.h: Likewise.
64339         * lib/strstr.h: Likewise.
64340         * lib/strtok_r.h: Likewise.
64341         * lib/string_.h: New file.
64342         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64343         Rely on <string.h> instead.
64344         * lib/canon-host.c: Likewise.
64345         * lib/chdir-long.c: Likewise.
64346         * lib/concatpath.c: Likewise.
64347         * lib/exclude.c: Likewise.
64348         * lib/fchdir.c: Likewise.
64349         * lib/getaddrinfo.c: Likewise.
64350         * lib/getcwd.c: Likewise.
64351         * lib/getsubopt.c: Likewise.
64352         * lib/glob.c: Likewise.
64353         * lib/hard-locale.c: Likewise.
64354         * lib/iconvme.c: Likewise.
64355         * lib/javacomp.c: Likewise.
64356         * lib/mempcpy.c: Likewise.
64357         * lib/memrchr.c: Likewise.
64358         * lib/regex_internal.h: Likewise.
64359         * lib/stpncpy.c: Likewise.
64360         * lib/strcasecmp.c: Likewise.
64361         * lib/strchrnul.c: Likewise.
64362         * lib/strdup.c: Likewise.
64363         * lib/striconv.c: Likewise.
64364         * lib/striconveh.c: Likewise.
64365         * lib/striconveha.c: Likewise.
64366         * lib/strncasecmp.c: Likewise.
64367         * lib/strndup.c: Likewise.
64368         * lib/strnlen.c: Likewise.
64369         * lib/strsep.c: Likewise.
64370         * lib/strstr.c: Likewise.
64371         * lib/strtok_r.c: Likewise.
64372         * lib/userspec.c: Likewise.
64373         * lib/w32spawn.h: Likewise.
64374         * lib/xstrndup.c: Likewise.
64375         * lib/mountlist.c (strstr): Remove decl.
64376         * m4/string_h.m4: New file.
64377         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64378         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64379         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64380         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64381         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64382         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64383         Set REPLACE_STRCASECMP if necessary.
64384         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64385         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64386         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64387         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64388         HAVE_DECL_STRDUP if necessary.
64389         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64390         since gl_FUNC_STRNDUP does that now.
64391         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64392         Check for decl here...
64393         (gl_PREREQ_STRNLEN): ... not here.
64394         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64395         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64396         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64397         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64398         necessary.
64399         * modules/string: New file.
64400         * modules/memmem (Files): Remove special-purpose include file.
64401         (Depends-on): Add string.
64402         (Include): Include <string.h>, not the removed file.
64403         * modules/mempcpy: Likewise.
64404         * modules/memrchr: Likewise.
64405         * modules/stpcpy: Likewise.
64406         * modules/stpncpy: Likewise.
64407         * modules/strcase: Likewise.
64408         * modules/strchrnul: Likewise.
64409         * modules/strdup: Likewise.
64410         * modules/strndup: Likewise.
64411         * modules/strnlen: Likewise.
64412         * modules/strpbrk: Likewise.
64413         * modules/strsep: Likewise.
64414         * modules/strstr: Likewise.
64415         * modules/strtok_r: Likewise.
64416         * tests/test-dirname.c: Don't include "strdup.h", since
64417         <string.h> now suffices.
64418         * tests/test-memmem.c: Don't include "memmem.h", since
64419         <string.h> now suffices.
64420
64421 2007-01-25  Bruno Haible  <bruno@clisp.org>
64422
64423         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64424         *resultp is 0.
64425
64426         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64427         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64428         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64429         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64430
64431         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64432         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64433         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64434         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64435         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64436         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64437
64438 2007-01-24  Bruno Haible  <bruno@clisp.org>
64439
64440         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64441         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64442         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64443         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64444         gl_FUNC_FTS_CORE.
64445         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64446         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64447         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64448         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64449         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64450         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64451         gl_FUNC_FCHOWNAT.
64452         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64453         gl_FUNC_STRFTIME.
64454         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64455         Reported by Ralf Wildenhues.
64456
64457 2007-01-24  Bruno Haible  <bruno@clisp.org>
64458
64459         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64460         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64461         gl_GETADDRINFO.
64462         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64463         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64464         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64465
64466 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64467
64468         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64469         Don't use 'exit'; just return from 'main'.
64470         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64471
64472         * lib/fnmatch_.h: Readjust white space and comments to match
64473         glibc, to avoid spurious diffs.
64474
64475 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64476
64477         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64478         2004-12-01 change by Jakub Jelinek, since this code won't compile
64479         if !LIBC.  Problem reported by Bob Proulx.
64480
64481 2007-01-23  Bruno Haible  <bruno@clisp.org>
64482
64483         * lib/striconveh.c: Include c-strcaseeq.h.
64484         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64485         * modules/striconveh (Depends-on): Add c-strcaseeq.
64486
64487 2007-01-23  Bruno Haible  <bruno@clisp.org>
64488
64489         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64490
64491         * modules/c-strcaseeq: New file.
64492         * lib/c-strcaseeq.h: New file.
64493
64494         * modules/streq: New file.
64495         * lib/streq.h: New file.
64496
64497 2007-01-23  Bruno Haible  <bruno@clisp.org>
64498
64499         * modules/striconveha-tests: New file.
64500         * tests/test-striconveha.c: New file.
64501
64502         * lib/striconveha.h: Include <stdbool.h>.
64503         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64504         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64505         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64506         (mem_iconveha): New function.
64507         (str_iconveha_notranslit): Renamed from str_iconveha.
64508         (str_iconveha): New function.
64509         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64510         c-strcase.
64511
64512 2007-01-23  Bruno Haible  <bruno@clisp.org>
64513
64514         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64515         encodings without forgiving before trying any encoding with handler.
64516         (str_iconveha): Try all encodings without forgiving before trying any
64517         encoding with handler.
64518
64519 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64520
64521         Import the following changes from libc.
64522
64523         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64524
64525         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64526
64527         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64528
64529         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64530         normal_bracket label.
64531
64532         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64533
64534         [BZ #361]
64535         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64536         to normal_bracket after fetching the next character.
64537
64538 2007-01-22  Bruno Haible  <bruno@clisp.org>
64539
64540         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64541         argument.
64542         * lib/striconveh.c (iconv_carefully_1): New function.
64543         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64544         argument.
64545         (str_cd_iconveh): Update.
64546         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64547         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64548         * tests/test-striconveh.c (MAGIC): New macro.
64549         (new_offsets): New function.
64550         (main): Test call with and without offsets.
64551
64552 2007-01-22  Bruno Haible  <bruno@clisp.org>
64553
64554         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64555         * modules/sys_select (Makefile.am): Likewise.
64556         * modules/sys_socket (Makefile.am): Likewise.
64557         * modules/sys_time (Makefile.am): Likewise.
64558
64559 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64560
64561         * modules/gettimeofday (License): Change from GPL to LGPL, since
64562         gettimeofday is a library function.
64563
64564 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64565
64566         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64567
64568 2007-01-21  Bruno Haible  <bruno@clisp.org>
64569
64570         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64571
64572 2007-01-21  Bruno Haible  <bruno@clisp.org>
64573
64574         * modules/striconveha: New file.
64575         * lib/striconveha.h: New file.
64576         * lib/striconveha.c: New file.
64577         * MODULES.html.sh (Internationalization functions): Add striconveha.
64578         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64579         string.
64580         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64581
64582 2007-01-21  Bruno Haible  <bruno@clisp.org>
64583
64584         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64585         * lib/striconveh.c (str_iconveh): Likewise.
64586
64587 2007-01-21  Bruno Haible  <bruno@clisp.org>
64588
64589         * lib/striconveh.h (mem_iconveh): New declaration.
64590         * lib/striconveh.c (mem_iconveh): New function.
64591         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64592
64593 2007-01-21  Bruno Haible  <bruno@clisp.org>
64594
64595         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64596
64597         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64598         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64599         original result buffer.
64600         (str_cd_iconveh): Update.
64601         * tests/test-striconveh.c (main): Update.
64602
64603         * lib/striconv.h (mem_cd_iconv): Change specification.
64604         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64605         result buffer.
64606         (str_cd_iconv): Update.
64607         * tests/test-striconv.c (main): Update.
64608
64609 2007-01-21  Bruno Haible  <bruno@clisp.org>
64610
64611         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64612
64613 2007-01-20  Jim Meyering  <jim@meyering.net>
64614
64615         * lib/userspec.c (parse_with_separator): If a user or group string
64616         starts with "+", skip the corresponding name-to-ID look-up, since
64617         such a look-up must fail: user and group names may not include "+".
64618
64619 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64620
64621         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64622         since we now assume the sys_time module.
64623         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64624         check for sys/time.h; no longer needed.
64625         * modules/poll (Depends-on): Depend on sys_time.
64626
64627 2007-01-18  Bruno Haible  <bruno@clisp.org>
64628
64629         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64630         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64631
64632         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64633         gettimeofday.
64634
64635         * tests/test-gettimeofday.c: Include <time.h>.
64636         (dummy): Remove variable.
64637
64638         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64639         gl_HEADER_SYS_TIME_H.
64640         (gl_HEADER_SYS_TIME_H): New macro.
64641
64642         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64643         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64644         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64645         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64646         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64647         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64648         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64649         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64650         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64651         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64652         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64653
64654         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64655         last change; it caused a compilation error when cross-compiling to
64656         Cygwin.
64657
64658 2007-01-18  Jim Meyering  <jim@meyering.net>
64659
64660         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64661         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64662         than the race-prone "test -d sys || mkdir sys".
64663         (configure.ac): Use AC_PROG_MKDIR_P.
64664         * modules/sys_select: Likewise.
64665         * modules/sys_socket: Likewise.
64666         * modules/sys_time: Likewise.
64667
64668 2007-01-18  Eric Blake  <ebb9@byu.net>
64669
64670         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64671         replace gettimeofday.
64672         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64673         name, to avoid infinite recursion.
64674
64675 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64676
64677         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64678         module sys_time.
64679         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64680         assume timespec.h defines struct timeval.
64681         * lib/settime.c: Likewise.
64682         * lib/utimens.c: Likewise.
64683         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64684         since we now assume the gettimeofday module.
64685         * lib/tempname.c (__gen_tempname): Likewise.
64686         * lib/gettimeofday.h: Remove.
64687         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64688         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64689         Include <time.h>, for 'time()'.
64690         (localtime_buffer_addr): Also use this workaround if
64691         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64692         to simplify the uses.  All uses changed.
64693         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64694         that #undef is inside {}, and 'const' follows type name consistently.
64695         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64696         (gettimeofday): Do not use the maximum possible value for
64697         tv->tv_usec, since that might break usages other than ls.c.
64698         Instead, we'll leave ls.c alone.  This undoes today's patch
64699         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64700         we've never observed the problem but might as well keep the
64701         canary.
64702         * lib/nanosleep.c: Include timespec.h first, for interface check.
64703         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64704         now assume the sys_time module.
64705         * lib/tempname.c: Likewise.
64706         * lib/timespec.h: Likewise.
64707         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64708         needed.
64709         * lib/strftime.c: Likewise.
64710         * lib/timespec.h: Likewise.
64711         * lib/posixtm.c: Include posixtm.h first, for interface check.
64712         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64713         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64714         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64715         * lib/sys_time_.h: New file.
64716         * lib/timespec.h (struct timespec): Use long int, not long.
64717         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64718         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64719         Remove obsolescent call to AC_HEADER_TIME.
64720         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64721         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64722         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64723         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64724         Likewise.
64725         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64726         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64727         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64728         into the sys_time module.  Check for gettimeofday just once.
64729         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64730         for gettimeofday signature to just check the signature.  Merely
64731         compile it, since linking doesn't test signature.  Improve test for
64732         whether gettimeofday.o is actually needed.
64733         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64734         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64735         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64736         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64737         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64738         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64739         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64740         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64741         than worrying about sys/time.h.
64742         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64743         Don't bother worrying about TIME_WITH_SYS_TIME.
64744         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64745         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64746         * m4/sys_time_h.m4: New file.
64747         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64748         Don't include sys/time.h.  Return from main rather than exiting.
64749         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64750         all uses changed.
64751         * modules/gethrxtime (Depends-on): Add sys_time.
64752         * modules/gettime (Depends-on): Likewise.
64753         * modules/gettimeofday (Depends-on): Likewise.
64754         * modules/nanosleep (Depends-on): Likewise.
64755         * modules/settime (Depends-on): Likewise.
64756         * modules/tempname (Depends-on): Likewise.
64757         * modules/utimens (Depends-on): Likewise.
64758         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64759         (Include): Change back to <sys/time.h>.
64760         (Maintainer): Add self.
64761         * modules/sys_time: New file.
64762         * modules/tempname (Depends-on): Add gettimeofday.
64763         * tests/test-gettimeofday.c: Include <sys/time.h>
64764         rather than gettimeofday.h.
64765
64766 2007-01-17  Bruno Haible  <bruno@clisp.org>
64767
64768         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64769         the license default to GPL.
64770         (func_create_testdir): Don't complain if a module is LGPL and its
64771         tests module depends on GPLed modules.
64772
64773 2007-01-17  Bruno Haible  <bruno@clisp.org>
64774
64775         * lib/gettimeofday.c (gettimeofday): Add code for the case
64776         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64777         maximum possible value for tv->tv_usec, rather than the minimum one.
64778
64779 2005-10-08  Martin Lambers  <marlam@marlam.de>
64780 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64781 2007-01-16  Bruno Haible  <bruno@clisp.org>
64782
64783         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64784         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64785         gl_FUNC_GETTIMEOFDAY.
64786         (Include): Add gettimeofday.h.
64787         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64788         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64789         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64790         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64791         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64792         * lib/gettimeofday.h: New file.
64793         * lib/gettimeofday.c: Include <sys/timeb.h>.
64794         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64795         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64796         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64797         fall back on time().
64798
64799         * tests/test-gettimeofday.c: New file.
64800         * modules/gettimeofday-tests: New file.
64801
64802 2007-01-16  Eric Blake  <ebb9@byu.net>
64803
64804         * modules/fnmatch (Depends-on): Depend on wchar.
64805         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64806         * m4/fnmatch.m4: Likewise.
64807         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64808         * m4/mbchar.m4: Likewise.
64809         * modules/mbswidth (Depends-on): Depend on wchar.
64810         * lib/mbswidth.c: Assume <wchar.h>.
64811         * m4/mbswidth.m4: Likewise.
64812         * modules/quotearg (Depends-on): Depend on wchar.
64813         * lib/quotearg.c: Assume <wchar.h>.
64814         * m4/quotearg.m4: Likewise.
64815         * modules/regex (Depends-on): Depend on wchar.
64816         * lib/regex_internal.h: Assume <wchar.h>.
64817         * m4/regex.m4: Likewise.
64818         * modules/stdint (Depends-on): Depend on wchar.
64819         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64820         * m4/stdint.m4: Likewise.
64821         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64822         * modules/strftime (Depends-on): Depend on wchar.
64823         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64824         * modules/strtol (Depends-on): Depend on wchar.
64825         * lib/strtol.c: Assume <wchar.h>.
64826         * modules/wcwidth (Depends-on): Depend on wchar.
64827         * lib/wcwidth.h: Assume <wchar.h>.
64828         * m4/wcwidth.m4: Likewise.
64829
64830 2007-01-16  Bruno Haible  <bruno@clisp.org>
64831
64832         * modules/csharpexec-script: New, created from...
64833         * modules/csharpexec: ... this.
64834
64835 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64836
64837         * modules/javaexec-script: New, created from...
64838         * modules/javaexec: ... this.
64839
64840 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64841
64842         * modules/poll (Dependencies): Add sys_select.
64843
64844 2007-01-15  Jim Meyering  <jim@meyering.net>
64845
64846         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64847         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64848         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64849         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64850
64851 2007-01-15  Bruno Haible  <bruno@clisp.org>
64852
64853         * modules/striconveh: New file.
64854         * lib/striconveh.h: New file.
64855         * lib/striconveh.c: New file.
64856         * MODULES.html.sh (Internationalization functions): Add striconveh.
64857
64858         * modules/striconveh-tests: New file.
64859         * tests/test-striconveh.c: New file.
64860
64861 2007-01-15  Bruno Haible  <bruno@clisp.org>
64862
64863         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64864         not from GNU libiconv or GNU libc.
64865
64866 2007-01-15  Bruno Haible  <bruno@clisp.org>
64867
64868         * doc/gnulib-intro.texi (Copyright): Explain the different license
64869         terms for module descriptions, autoconf macros, tests, documentation.
64870
64871 2007-01-14  Bruno Haible  <bruno@clisp.org>
64872
64873         * modules/striconv-tests: New file.
64874         * tests/test-striconv.c: New file.
64875
64876 2007-01-14  Bruno Haible  <bruno@clisp.org>
64877
64878         * modules/iconv-tests: New file.
64879         * tests/test-iconv.c: New file.
64880
64881 2007-01-14  Bruno Haible  <bruno@clisp.org>
64882
64883         * gnulib-tool (func_get_license): For test modules, use the license of
64884         the main module.
64885
64886 2007-01-14  Bruno Haible  <bruno@clisp.org>
64887
64888         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64889         if iconv is found to exist.
64890
64891 2007-01-14  Bruno Haible  <bruno@clisp.org>
64892
64893         * modules/c-ctype-tests: New file.
64894         * tests/test-c-ctype.c: New file.
64895
64896 2007-01-14  Bruno Haible  <bruno@clisp.org>
64897
64898         * modules/binary-io-tests: New file.
64899         * tests/test-binary-io.sh: New file.
64900         * tests/test-binary-io.c: New file.
64901
64902 2007-01-14  Bruno Haible  <bruno@clisp.org>
64903
64904         * modules/array-oset-tests: New file.
64905         * tests/test-array_oset.c: New file.
64906
64907 2007-01-14  Bruno Haible  <bruno@clisp.org>
64908
64909         * modules/array-list-tests: New file.
64910         * tests/test-array_list.c: New file.
64911
64912 2007-01-14  Bruno Haible  <bruno@clisp.org>
64913
64914         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64915         and make.
64916         Reported by Simon Josefsson in
64917         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64918
64919 2007-01-14  Bruno Haible  <bruno@clisp.org>
64920
64921         * modules/allocsa-tests: New file.
64922         * tests/test-allocsa.c: New file.
64923
64924 2007-01-14  Bruno Haible  <bruno@clisp.org>
64925
64926         * modules/fchdir (Depends-on): Add absolute-header.
64927         * modules/unistd (Depends-on): Likewise.
64928
64929 2006-12-30  Bruno Haible  <bruno@clisp.org>
64930
64931         * modules/fchdir: New file.
64932         * modules/unistd (Files): Add lib/unistd_.h.
64933         (Makefile.am): Generate unistd.h from unistd_.h.
64934         * lib/fchdir.c: New file.
64935         * lib/dirent_.h: New file.
64936         * lib/unistd_.h: New file.
64937         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64938         * m4/fchdir.m4: New file.
64939         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64940         (gl_HEADER_UNISTD): Invoke it.
64941         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64942         function.
64943         * lib/backupfile.c (opendir, closedir): Undefine.
64944         * lib/chown.c (open, close): Undefine.
64945         * lib/clean-temp.c (open, close): Undefine.
64946         * lib/copy-file.c (open, close): Undefine.
64947         * lib/execute.c (open, close): Undefine.
64948         * lib/fsusage.c (open, close): Undefine.
64949         * lib/gc-gnulib.c (open, close): Undefine.
64950         * lib/getcwd.c (opendir, closedir): Undefine.
64951         * lib/glob.c (opendir, closedir): Undefine.
64952         * lib/javacomp.c (open, close): Undefine.
64953         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64954         * lib/openat-proc.c (open, close): Undefine.
64955         * lib/pagealign_alloc.c (open, close): Undefine.
64956         * lib/pipe.c (open, close): Undefine.
64957         * lib/progreloc.c (open, close): Undefine.
64958         * lib/savedir.c (opendir, closedir): Undefine.
64959         * lib/utime.c (open, close): Undefine.
64960         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64961
64962 2007-01-10  Bruno Haible  <bruno@clisp.org>
64963
64964         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64965
64966 2007-01-12  Eric Blake  <ebb9@byu.net>
64967
64968         Provide a robust <wchar.h>.  Further simplifications are now
64969         possible in other modules, but not included here.
64970         * modules/wchar: New module.
64971         * m4/wchar.m4: New file.
64972         * lib/wchar_.h: Likewise.
64973         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64974         of the new module.
64975         * MODULES.html.sh (Extended multibyte and wide character utilities):
64976         New section.
64977
64978 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64979
64980         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64981         to a reasonable default for memory allocation.
64982         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64983         file system that reports garbage st_size values for symlinks.
64984         Problem reported by Liyang Hu.
64985
64986 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64987
64988         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64989         Emacs .#* auto-save files).
64990
64991 2007-01-11  Bruno Haible  <bruno@clisp.org>
64992
64993         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64994         directory.
64995
64996 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64997
64998         Use @...@ consistently in lib/wctype_.h.
64999         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65000         on it being set to 1 or 0.
65001         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65002         go back to AC_SUBSTing it.
65003         * modules/wctype (Makefile.am): Undo previous change.
65004
65005 2007-01-10  Eric Blake  <ebb9@byu.net>
65006
65007         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65008         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65009         * modules/wctype (Makefile.am): Likewise.
65010         Reported by Chris McGuire.
65011
65012 2007-01-10  Jim Meyering  <jim@meyering.net>
65013
65014         fts.c: a small readability/maintainability improvement
65015         * lib/fts.c (fts_read): Make this code slightly more readable and
65016         maintainable by hoisting the "sp->fts_cur = p" assignments to
65017         immediately follow the statements that set P.  Derived from
65018         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65019
65020 2007-01-10  Eric Blake  <ebb9@byu.net>
65021
65022         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65023         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65024         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65025         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65026         Reported by Chris McGuire.
65027
65028 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65029
65030         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65031         in sed script.
65032
65033 2007-01-09  Bruno Haible  <bruno@clisp.org>
65034
65035         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65036         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65037         variables.
65038         (func_module): Use them.
65039
65040 2007-01-09  Bruno Haible  <bruno@clisp.org>
65041
65042         * modules/unistr/base: New file.
65043         * lib/unistr.h: New file.
65044
65045         * modules/unistr/u8-to-u16: New file.
65046         * lib/unistr/u8-to-u16.c: New file.
65047
65048         * modules/unistr/u8-to-u32: New file.
65049         * lib/unistr/u8-to-u32.c: New file.
65050
65051         * modules/unistr/u16-to-u8: New file.
65052         * lib/unistr/u16-to-u8.c: New file.
65053
65054         * modules/unistr/u16-to-u32: New file.
65055         * lib/unistr/u16-to-u32.c: New file.
65056
65057         * modules/unistr/u32-to-u8: New file.
65058         * lib/unistr/u32-to-u8.c: New file.
65059
65060         * modules/unistr/u32-to-u16: New file.
65061         * lib/unistr/u32-to-u16.c: New file.
65062
65063         * modules/unistr/u8-check: New file.
65064         * modules/unistr/u16-check: New file.
65065         * modules/unistr/u32-check: New file.
65066         * lib/unistr/u8-check.c: New file.
65067         * lib/unistr/u16-check.c: New file.
65068         * lib/unistr/u32-check.c: New file.
65069
65070         * modules/unistr/u8-chr: New file.
65071         * modules/unistr/u16-chr: New file.
65072         * modules/unistr/u32-chr: New file.
65073         * lib/unistr/u8-chr.c: New file.
65074         * lib/unistr/u16-chr.c: New file.
65075         * lib/unistr/u32-chr.c: New file.
65076
65077         * modules/unistr/u8-cmp: New file.
65078         * modules/unistr/u16-cmp: New file.
65079         * modules/unistr/u32-cmp: New file.
65080         * lib/unistr/u8-cmp.c: New file.
65081         * lib/unistr/u16-cmp.c: New file.
65082         * lib/unistr/u32-cmp.c: New file.
65083
65084         * modules/unistr/u8-cpy: New file.
65085         * modules/unistr/u16-cpy: New file.
65086         * modules/unistr/u32-cpy: New file.
65087         * lib/unistr/u8-cpy.c: New file.
65088         * lib/unistr/u16-cpy.c: New file.
65089         * lib/unistr/u32-cpy.c: New file.
65090         * lib/unistr/u-cpy.h: New file.
65091
65092         * modules/unistr/u8-cpy-alloc: New file.
65093         * modules/unistr/u16-cpy-alloc: New file.
65094         * modules/unistr/u32-cpy-alloc: New file.
65095         * lib/unistr/u8-cpy-alloc.c: New file.
65096         * lib/unistr/u16-cpy-alloc.c: New file.
65097         * lib/unistr/u32-cpy-alloc.c: New file.
65098         * lib/unistr/u-cpy-alloc.h: New file.
65099
65100         * modules/unistr/u8-endswith: New file.
65101         * modules/unistr/u16-endswith: New file.
65102         * modules/unistr/u32-endswith: New file.
65103         * lib/unistr/u8-endswith.c: New file.
65104         * lib/unistr/u16-endswith.c: New file.
65105         * lib/unistr/u32-endswith.c: New file.
65106         * lib/unistr/u-endswith.h: New file.
65107
65108         * modules/unistr/u8-mblen: New file.
65109         * modules/unistr/u16-mblen: New file.
65110         * modules/unistr/u32-mblen: New file.
65111         * lib/unistr/u8-mblen.c: New file.
65112         * lib/unistr/u16-mblen.c: New file.
65113         * lib/unistr/u32-mblen.c: New file.
65114
65115         * modules/unistr/u8-mbtouc: New file.
65116         * modules/unistr/u16-mbtouc: New file.
65117         * modules/unistr/u32-mbtouc: New file.
65118         * lib/unistr/u8-mbtouc.c: New file.
65119         * lib/unistr/u16-mbtouc.c: New file.
65120         * lib/unistr/u32-mbtouc.c: New file.
65121
65122         * modules/unistr/u8-mbtouc-safe: New file.
65123         * modules/unistr/u16-mbtouc-safe: New file.
65124         * modules/unistr/u32-mbtouc-safe: New file.
65125         * lib/unistr/u8-mbtouc-safe.c: New file.
65126         * lib/unistr/u16-mbtouc-safe.c: New file.
65127         * lib/unistr/u32-mbtouc-safe.c: New file.
65128
65129         * modules/unistr/u8-move: New file.
65130         * modules/unistr/u16-move: New file.
65131         * modules/unistr/u32-move: New file.
65132         * lib/unistr/u8-move.c: New file.
65133         * lib/unistr/u16-move.c: New file.
65134         * lib/unistr/u32-move.c: New file.
65135         * lib/unistr/u-move.h: New file.
65136
65137         * modules/unistr/u8-next: New file.
65138         * modules/unistr/u16-next: New file.
65139         * modules/unistr/u32-next: New file.
65140         * lib/unistr/u8-next.c: New file.
65141         * lib/unistr/u16-next.c: New file.
65142         * lib/unistr/u32-next.c: New file.
65143
65144         * modules/unistr/u8-prev: New file.
65145         * modules/unistr/u16-prev: New file.
65146         * modules/unistr/u32-prev: New file.
65147         * lib/unistr/u8-prev.c: New file.
65148         * lib/unistr/u16-prev.c: New file.
65149         * lib/unistr/u32-prev.c: New file.
65150
65151         * modules/unistr/u8-set: New file.
65152         * modules/unistr/u16-set: New file.
65153         * modules/unistr/u32-set: New file.
65154         * lib/unistr/u8-set.c: New file.
65155         * lib/unistr/u16-set.c: New file.
65156         * lib/unistr/u32-set.c: New file.
65157         * lib/unistr/u-set.h: New file.
65158
65159         * modules/unistr/u8-startswith: New file.
65160         * modules/unistr/u16-startswith: New file.
65161         * modules/unistr/u32-startswith: New file.
65162         * lib/unistr/u8-startswith.c: New file.
65163         * lib/unistr/u16-startswith.c: New file.
65164         * lib/unistr/u32-startswith.c: New file.
65165         * lib/unistr/u-startswith.h: New file.
65166
65167         * modules/unistr/u8-stpcpy: New file.
65168         * modules/unistr/u16-stpcpy: New file.
65169         * modules/unistr/u32-stpcpy: New file.
65170         * lib/unistr/u8-stpcpy.c: New file.
65171         * lib/unistr/u16-stpcpy.c: New file.
65172         * lib/unistr/u32-stpcpy.c: New file.
65173         * lib/unistr/u-stpcpy.h: New file.
65174
65175         * modules/unistr/u8-stpncpy: New file.
65176         * modules/unistr/u16-stpncpy: New file.
65177         * modules/unistr/u32-stpncpy: New file.
65178         * lib/unistr/u8-stpncpy.c: New file.
65179         * lib/unistr/u16-stpncpy.c: New file.
65180         * lib/unistr/u32-stpncpy.c: New file.
65181         * lib/unistr/u-stpncpy.h: New file.
65182
65183         * modules/unistr/u8-strcat: New file.
65184         * modules/unistr/u16-strcat: New file.
65185         * modules/unistr/u32-strcat: New file.
65186         * lib/unistr/u8-strcat.c: New file.
65187         * lib/unistr/u16-strcat.c: New file.
65188         * lib/unistr/u32-strcat.c: New file.
65189         * lib/unistr/u-strcat.h: New file.
65190
65191         * modules/unistr/u8-strchr: New file.
65192         * modules/unistr/u16-strchr: New file.
65193         * modules/unistr/u32-strchr: New file.
65194         * lib/unistr/u8-strchr.c: New file.
65195         * lib/unistr/u16-strchr.c: New file.
65196         * lib/unistr/u32-strchr.c: New file.
65197
65198         * modules/unistr/u8-strcmp: New file.
65199         * modules/unistr/u16-strcmp: New file.
65200         * modules/unistr/u32-strcmp: New file.
65201         * lib/unistr/u8-strcmp.c: New file.
65202         * lib/unistr/u16-strcmp.c: New file.
65203         * lib/unistr/u32-strcmp.c: New file.
65204
65205         * modules/unistr/u8-strcpy: New file.
65206         * modules/unistr/u16-strcpy: New file.
65207         * modules/unistr/u32-strcpy: New file.
65208         * lib/unistr/u8-strcpy.c: New file.
65209         * lib/unistr/u16-strcpy.c: New file.
65210         * lib/unistr/u32-strcpy.c: New file.
65211         * lib/unistr/u-strcpy.h: New file.
65212
65213         * modules/unistr/u8-strcspn: New file.
65214         * modules/unistr/u16-strcspn: New file.
65215         * modules/unistr/u32-strcspn: New file.
65216         * lib/unistr/u8-strcspn.c: New file.
65217         * lib/unistr/u16-strcspn.c: New file.
65218         * lib/unistr/u32-strcspn.c: New file.
65219         * lib/unistr/u-strcspn.h: New file.
65220
65221         * modules/unistr/u8-strdup: New file.
65222         * modules/unistr/u16-strdup: New file.
65223         * modules/unistr/u32-strdup: New file.
65224         * lib/unistr/u8-strdup.c: New file.
65225         * lib/unistr/u16-strdup.c: New file.
65226         * lib/unistr/u32-strdup.c: New file.
65227         * lib/unistr/u-strdup.h: New file.
65228
65229         * modules/unistr/u8-strlen: New file.
65230         * modules/unistr/u16-strlen: New file.
65231         * modules/unistr/u32-strlen: New file.
65232         * lib/unistr/u8-strlen.c: New file.
65233         * lib/unistr/u16-strlen.c: New file.
65234         * lib/unistr/u32-strlen.c: New file.
65235         * lib/unistr/u-strlen.h: New file.
65236
65237         * modules/unistr/u8-strmblen: New file.
65238         * modules/unistr/u16-strmblen: New file.
65239         * modules/unistr/u32-strmblen: New file.
65240         * lib/unistr/u8-strmblen.c: New file.
65241         * lib/unistr/u16-strmblen.c: New file.
65242         * lib/unistr/u32-strmblen.c: New file.
65243
65244         * modules/unistr/u8-strmbtouc: New file.
65245         * modules/unistr/u16-strmbtouc: New file.
65246         * modules/unistr/u32-strmbtouc: New file.
65247         * lib/unistr/u8-strmbtouc.c: New file.
65248         * lib/unistr/u16-strmbtouc.c: New file.
65249         * lib/unistr/u32-strmbtouc.c: New file.
65250
65251         * modules/unistr/u8-strncat: New file.
65252         * modules/unistr/u16-strncat: New file.
65253         * modules/unistr/u32-strncat: New file.
65254         * lib/unistr/u8-strncat.c: New file.
65255         * lib/unistr/u16-strncat.c: New file.
65256         * lib/unistr/u32-strncat.c: New file.
65257         * lib/unistr/u-strncat.h: New file.
65258
65259         * modules/unistr/u8-strncmp: New file.
65260         * modules/unistr/u16-strncmp: New file.
65261         * modules/unistr/u32-strncmp: New file.
65262         * lib/unistr/u8-strncmp.c: New file.
65263         * lib/unistr/u16-strncmp.c: New file.
65264         * lib/unistr/u32-strncmp.c: New file.
65265
65266         * modules/unistr/u8-strncpy: New file.
65267         * modules/unistr/u16-strncpy: New file.
65268         * modules/unistr/u32-strncpy: New file.
65269         * lib/unistr/u8-strncpy.c: New file.
65270         * lib/unistr/u16-strncpy.c: New file.
65271         * lib/unistr/u32-strncpy.c: New file.
65272         * lib/unistr/u-strncpy.h: New file.
65273
65274         * modules/unistr/u8-strnlen: New file.
65275         * modules/unistr/u16-strnlen: New file.
65276         * modules/unistr/u32-strnlen: New file.
65277         * lib/unistr/u8-strnlen.c: New file.
65278         * lib/unistr/u16-strnlen.c: New file.
65279         * lib/unistr/u32-strnlen.c: New file.
65280         * lib/unistr/u-strnlen.h: New file.
65281
65282         * modules/unistr/u8-strpbrk: New file.
65283         * modules/unistr/u16-strpbrk: New file.
65284         * modules/unistr/u32-strpbrk: New file.
65285         * lib/unistr/u8-strpbrk.c: New file.
65286         * lib/unistr/u16-strpbrk.c: New file.
65287         * lib/unistr/u32-strpbrk.c: New file.
65288         * lib/unistr/u-strpbrk.h: New file.
65289
65290         * modules/unistr/u8-strrchr: New file.
65291         * modules/unistr/u16-strrchr: New file.
65292         * modules/unistr/u32-strrchr: New file.
65293         * lib/unistr/u8-strrchr.c: New file.
65294         * lib/unistr/u16-strrchr.c: New file.
65295         * lib/unistr/u32-strrchr.c: New file.
65296
65297         * modules/unistr/u8-strspn: New file.
65298         * modules/unistr/u16-strspn: New file.
65299         * modules/unistr/u32-strspn: New file.
65300         * lib/unistr/u8-strspn.c: New file.
65301         * lib/unistr/u16-strspn.c: New file.
65302         * lib/unistr/u32-strspn.c: New file.
65303         * lib/unistr/u-strspn.h: New file.
65304
65305         * modules/unistr/u8-strstr: New file.
65306         * modules/unistr/u16-strstr: New file.
65307         * modules/unistr/u32-strstr: New file.
65308         * lib/unistr/u8-strstr.c: New file.
65309         * lib/unistr/u16-strstr.c: New file.
65310         * lib/unistr/u32-strstr.c: New file.
65311         * lib/unistr/u-strstr.h: New file.
65312
65313         * modules/unistr/u8-strtok: New file.
65314         * modules/unistr/u16-strtok: New file.
65315         * modules/unistr/u32-strtok: New file.
65316         * lib/unistr/u8-strtok.c: New file.
65317         * lib/unistr/u16-strtok.c: New file.
65318         * lib/unistr/u32-strtok.c: New file.
65319         * lib/unistr/u-strtok.h: New file.
65320
65321         * modules/unistr/u8-uctomb: New file.
65322         * modules/unistr/u16-uctomb: New file.
65323         * modules/unistr/u32-uctomb: New file.
65324         * lib/unistr/u8-uctomb.c: New file.
65325         * lib/unistr/u16-uctomb.c: New file.
65326         * lib/unistr/u32-uctomb.c: New file.
65327
65328         * MODULES.html.sh (Unicode string functions): Add the new modules.
65329
65330 2007-01-08  Bruno Haible  <bruno@clisp.org>
65331
65332         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65333         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65334         subdirectories.
65335
65336 2007-01-08  Karl Berry  <karl@gnu.org>
65337
65338         * doc/error.texi: mention that main() fns must set program_name
65339         when progname is used.
65340
65341 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65342
65343         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65344         WCTYPE_H is empty, for the benefit of builds from non-distclean
65345         directories.  Problem reported by Eric Blake in
65346         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65347
65348 2007-01-08  Bruno Haible  <bruno@clisp.org>
65349
65350         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65351         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65352         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65353         PROVIDE_CANONICALIZE_FILENAME_MODE.
65354         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65355
65356 2007-01-08  Bruno Haible  <bruno@clisp.org>
65357
65358         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65359         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65360         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65361         * lib/fts.c: Likewise.
65362         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65363
65364 2006-12-25  Bruno Haible  <bruno@clisp.org>
65365
65366         * modules/utf8-ucs4-safe: New file.
65367         * lib/utf8-ucs4-safe.h: New file.
65368         * lib/unistr/utf8-ucs4-safe.c: New file.
65369
65370         * modules/utf16-ucs4-safe: New file.
65371         * lib/utf16-ucs4-safe.h: New file.
65372         * lib/unistr/utf16-ucs4-safe.c: New file.
65373
65374         * MODULES.html.sh (Unicode string functions): Add the new modules.
65375
65376 2007-01-08  Bruno Haible  <bruno@clisp.org>
65377
65378         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65379         (Depends-on): Add unitypes.
65380         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65381         (u8_mbtouc_aux): Move out to separate file.
65382         (u8_mbtouc): Use ucs4_t, uint8_t types.
65383         * lib/unistr/utf8-ucs4.c: New file.
65384
65385         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65386         (Depends-on): Add unitypes.
65387         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65388         (u16_mbtouc_aux): Move out to separate file.
65389         (u16_mbtouc): Use ucs4_t, uint16_t types.
65390         * lib/unistr/utf16-ucs4.c: New file.
65391
65392         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65393         (Depends-on): Add unitypes.
65394         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65395         (u8_uctomb_aux): Move out to separate file.
65396         (u8_uctomb): Use ucs4_t, uint8_t types.
65397         * lib/unistr/ucs4-utf8.c: New file.
65398
65399         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65400         (Depends-on): Add unitypes.
65401         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65402         (u16_uctomb_aux): Move out to separate file.
65403         (u16_uctomb): Use ucs4_t, uint16_t types.
65404         * lib/unistr/ucs4-utf16.c: New file.
65405
65406 2006-12-25  Bruno Haible  <bruno@clisp.org>
65407
65408         * modules/unitypes: New file.
65409         * lib/unitypes.h: New file.
65410         * MODULES.html.sh (func_all_modules): New section "Unicode string
65411         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65412         this section. Add unitypes.
65413
65414 2007-01-08  Bruno Haible  <bruno@clisp.org>
65415
65416         Avoid variable names that conflict with those from libtool.
65417         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65418         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65419         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65420         library_names_spec to acl_library_names_spec, hardcode_* to
65421         acl_hardcode_*.
65422         Reported by Ralf Wildenhues.
65423
65424 2007-01-08  Bruno Haible  <bruno@clisp.org>
65425
65426         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65427         definition.
65428         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65429         definition.
65430         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65431         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65432         definition.
65433         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65434         definition.
65435         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65436         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65437         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65438         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65439         definition.
65440         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65441         definition.
65442         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65443         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65444         GC_USE_<algorithm>.
65445         * lib/gc-libgcrypt.c: Likewise.
65446         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65447         * modules/gc-arctwo (configure.ac): Likewise.
65448         * modules/gc-des (configure.ac): Likewise.
65449         * modules/gc-hmac-md5 (configure.ac): Likewise.
65450         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65451         * modules/gc-md2 (configure.ac): Likewise.
65452         * modules/gc-md4 (configure.ac): Likewise.
65453         * modules/gc-md5 (configure.ac): Likewise.
65454         * modules/gc-random (configure.ac): Likewise.
65455         * modules/gc-rijndael (configure.ac): Likewise.
65456         * modules/gc-sha1 (configure.ac): Likewise.
65457
65458 2007-01-08  Bruno Haible  <bruno@clisp.org>
65459
65460         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65461         macro definition.
65462         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65463         definition.
65464         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65465         definition.
65466         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65467         * modules/fcntl-safer (configure.ac): Likewise.
65468         * modules/fopen-safer (configure.ac): Likewise.
65469         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65470         GNULIB_FWRITEERROR macro definition.
65471
65472 2007-01-08  Bruno Haible  <bruno@clisp.org>
65473
65474         * m4/gnulib-common.m4: New file.
65475         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65476         (func_get_filelist): Add m4/gnulib-common.m4.
65477
65478 2007-01-08  Bruno Haible  <bruno@clisp.org>
65479
65480         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65481         command.
65482
65483 2007-01-08  Jim Meyering  <jim@meyering.net>
65484
65485         Use a more robust test for a "can't happen" condition.
65486         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65487         narrowed the st_size value.  Presuming the "can't happen" condition
65488         is true, that narrowing could conceivably convert an invalid st_size
65489         value into a valid one.  Instead, use a change based on Matthew
65490         Woehlke's original patch.
65491
65492         Slight readability improvement: use an assert-like macro
65493         in place of literal "abort ()" uses.
65494         * lib/fts.c (fts_assert): Define.
65495         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65496         Use this macro instead of a bare 'abort'.
65497
65498 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65499
65500         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65501         simply work around them.
65502         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65503         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65504         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65505         declaring.
65506         Don't bother to define as macros, since the standard doesn't require it.
65507         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65508         longer worry about IRIX 5.3.
65509         (HAVE_WCTYPE_CTMP_BUG): Remove.
65510
65511 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65512
65513         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65514         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65515         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65516         Problems reported by Georg Schwarz for IRIX 5.3.
65517
65518         * gnulib-tool (autoconf_minversion): Take the maximum version number
65519         found, not the minimum.  Problem reported by James Youngman.
65520
65521 2007-01-03  Karl Berry  <karl@gnu.org>
65522
65523         * doc/error.texi: new file, explaining interaction with progname.
65524         * doc/gnulib.texi: include it.  Update copyright.
65525
65526 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65527
65528         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65529         AC_CANONICAL_HOST, to improve autobuild outputs.
65530
65531 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65532             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65533
65534         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65535         sockets, server sockets, and other file descriptors.  Count errors
65536         to compute the return value.  Reorder the code a bit to be easier
65537         to follow.  Don't set event bits that were not requested (except
65538         POLLERR and POLLHUP).
65539
65540 2007-01-01  Bruno Haible  <bruno@clisp.org>
65541
65542         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65543
65544 2007-01-03  Jim Meyering  <jim@meyering.net>
65545
65546         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65547
65548 2007-01-02  Bruno Haible  <bruno@clisp.org>
65549
65550         * modules/settime (Include): Require timespec.h.
65551         * modules/nanosleep (Include): Likewise.
65552
65553 2007-01-01  Bruno Haible  <bruno@clisp.org>
65554
65555         * gnulib-tool (func_emit_copyright_notice): Bump year.
65556         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65557
65558 2007-01-01  Bruno Haible  <bruno@clisp.org>
65559
65560         Improve support for OpenBSD.
65561         * build-aux/config.rpath (libname_spec): Export.
65562         (library_names_spec): New variable. Export.
65563         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65564         library_names_spec from the config.rpath output. Locate shared library
65565         through the name pattern in library_names_spec.
65566
65567 2007-01-01  Eric Blake  <ebb9@byu.net>
65568
65569         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65570
65571 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65572
65573         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65574         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65575         assume the C locale, and avoid an "eval" that could cause trouble.
65576         Problem with SORT reported by Bob Proulx.
65577
65578         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65579         Define.  Trivial patch from Henning Nielsen Lund, originally
65580         sent to bug-grep@gnu.org today.
65581
65582 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65583
65584         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65585         struct stat.  Problem reported by Henning Nielsen Lund.
65586         * lib/acl.c: Include acl.h first, to check interface.  Don't
65587         bother to include sys/types.h and sys/stat.h again.
65588
65589 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65590
65591         Import the following change from libc; problem reported by
65592         Sven Verdoolaege.
65593
65594         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65595
65596         [BZ #1373]
65597         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65598
65599 2006-12-28  Jim Meyering  <jim@meyering.net>
65600
65601         * build-aux/announce-gen: Do not assume that the package
65602         builds any of tar.gz, tar.bz2, and .xdelta files.
65603         Suggestion from Simon Josefsson.
65604
65605 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65606
65607         * modules/announce-gen: New file.
65608
65609 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65610
65611         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65612         handles its gotchas now.
65613         * lib/mbswidth.c: Likewise.
65614         * lib/wcwidth.h: Likewise.
65615         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65616         and iswcntrl; the wctype module does this stuff now.
65617         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65618         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65619         * modules/mbchar (Depends-on): Add wctype.
65620         * modules/mbswidth (Depends-on): Likewise.
65621         * modules/wcwidth (Depends-on): Likewise.
65622
65623 2006-12-27  Eric Blake  <ebb9@byu.net>
65624
65625         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65626         module uses more than what <wctype.h> is required to provide.
65627
65628 2006-12-26  Eric Blake  <ebb9@byu.net>
65629
65630         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65631
65632 2006-12-26  Eric Blake  <ebb9@byu.net>
65633
65634         * modules/absolute-header: New module.
65635         * modules/fcntl (Depends-on): Depend on it.
65636         * modules/inttypes (Depends-on): Likewise.
65637         * modules/stdint (Depends-on): Likewise.
65638         * modules/sys_stat (Depends-on): Likewise.
65639         * modules/wctype (Depends-on): Likewise.
65640         * MODULES.html.sh (Support for building libraries and
65641         executables): Document it.
65642
65643 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65644
65645         * gnulib-tool (SED): Remove, undoing previous change.
65646         The problem was that it broke coreutils on Solaris, because
65647         "sed --posix" leaked into a makefile.
65648         (sed): New alias, if 'alias' and GNU sed.
65649
65650 2006-12-24  Jim Meyering  <jim@meyering.net>
65651
65652         Work around an fchownat bug in glibc-2.4:
65653         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65654         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65655         in spite of the -P option.
65656         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65657         New macros.
65658         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65659         * modules/openat (Files): Add lib/fchownat.c.
65660         * lib/openat.c (fchownat): Don't define here.  Move to...
65661         * lib/fchownat.c: ...this new file.
65662
65663 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65664
65665         Fix bug reported by Bruno Haible in
65666         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65667         where quotearg.c didn't compile on Mac OS X 10.2 because it
65668         lacks <wchar.h> and wint_t.
65669         * lib/wctype_.h (__wctype_wint_t): New type.
65670         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65671         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65672         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65673         Arg is now of type __wctype_wint_t, not wint_t.
65674         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65675         substitute HAVE_WINT_T.
65676         * modules/wctype (Files): Add m4/wint_t.m4.
65677         (wctype.h): Substitute HAVE_WINT_T.
65678
65679 2006-12-23  Bruno Haible  <bruno@clisp.org>
65680
65681         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65682
65683 2006-12-23  Bruno Haible  <bruno@clisp.org>
65684
65685         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65686         S_ISLNK.
65687         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65688         mingw.
65689
65690 2006-12-22  Bruno Haible  <bruno@clisp.org>
65691
65692         * lib/copy-file.c: Include acl.h.
65693         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65694         Close the file descriptors only after being done with copy_acl.
65695         * modules/copy-file (Depends-on): Add acl.
65696
65697 2006-12-22  Bruno Haible  <bruno@clisp.org>
65698
65699         * gnulib-tool (SED): New variable.
65700         Use $SED instead of sed everywhere.
65701
65702 2006-12-22  Bruno Haible  <bruno@clisp.org>
65703
65704         * modules/no-c++: New file.
65705         * m4/no-c++.m4: New file.
65706         * MODULES.html.sh (Support for building libraries and executables):
65707         Add no-c++.
65708
65709 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65710
65711         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65712         Include <limits.h>, and use its INT_MAX to rewrite the
65713         j loop so that it does not overflow 'int'.  Problem reported by
65714         Ralf Wildenhues in
65715         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65716         Play it safe by shifting left by 1 rather than multiplying by 2,
65717         as GCC is less likely to optimize this away when the value
65718         is signed (when it assumes overflow leads to undefined behavior).
65719         Also, don't assume time_t uses two's complement.
65720
65721 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65722
65723         * MODULES.html.sh: New module wctype.
65724         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65725         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65726         <wctype.h>, since the new wctype module should fix this.
65727         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65728         the wctype module should arrange for it.
65729         * lib/regex_internal.h: Likewise.
65730         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65731         since the wctype module should handle this now.
65732         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65733         * modules/fnmatch (Depends-on): Add wctype.
65734         * modules/quotearg (Depends-on): Likewise.
65735         * modules/regex (Depends-on): Likewise.
65736
65737 2006-12-19  Bruno Haible  <bruno@clisp.org>
65738
65739         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65740         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65741
65742 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65743
65744         * modules/savewd (Depends-on): Fix dependency on fcntl.
65745
65746 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65747
65748         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65749         conforms to C99, rather than relying on the user's environment
65750         setting of STDINT_H.
65751
65752 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65753         and Eric Blake  <ebb9@byu.net>
65754
65755         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65756         This is more consistent with the other defines here.
65757         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65758         Port to z/OS.  Problem reported by Paul Gilmartin.
65759         Change local vars to use gl_ prefix rather than ac_.
65760         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65761         with other defines.
65762         * modules/double-slash-root: New module.
65763         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65764         (Depends-on): Add double-slash-root.
65765         * MODULES.html.sh (File system functions): Mention new module.
65766
65767 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65768
65769         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65770         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65771         This is for the benefit of gzip, which doesn't do i18n.
65772
65773 2006-12-12  Jim Meyering  <jim@meyering.net>
65774
65775         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65776         Reported by Andreas Schwab <schwab@suse.de>.
65777
65778 2006-12-12  Bruno Haible  <bruno@clisp.org>
65779
65780         Merge these changes.
65781         2006-09-05  Bruno Haible  <bruno@clisp.org>
65782         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65783         iconv_alloc succeeded.
65784         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65785         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65786         test for " && dest " at the end - dest is always != NULL there. Call
65787         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65788         with 2xNULL arguments, also to flush the state storage. Handle the
65789         IRIX iconv behaviour. Realloc the final result, to throw away unused
65790         memory.
65791
65792 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65793
65794         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65795         and fchmodat unconditionally, since glibc 2.4 has them.
65796         Problem reported by Arkadiusz Miskiewicz.
65797
65798 2006-12-10  Bruno Haible  <bruno@clisp.org>
65799
65800         * gnulib-tool (func_import): Show the include files only for those
65801         modules that are copied and specified.
65802         Reported by Karl Berry.
65803
65804 2006-12-08  Jim Meyering  <jim@meyering.net>
65805
65806         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65807         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65808
65809         * build-aux/announce-gen: Add two new options, both optional:
65810         --bootstrap-tools=TOOL_LIST
65811               a comma-separated list of tools, e.g.,
65812               autoconf,automake,bison,gnulib
65813         --gnulib-snapshot-date=DATE
65814               if gnulib is in the bootstrap tool list,
65815               then report this as the snapshot date.
65816               If not specified, use the current date/time.
65817               If you specify a date here, be sure it's UTC.
65818
65819 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65820
65821         * tests/test-argp-2.sh: Fix test to match actual output.
65822         (func_compare): Fix sed script to be portable.
65823
65824 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65825
65826         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65827         workaround for this case.  It is not autoconfigured now; offhand
65828         it's hard to see how to autoconfigure it.
65829
65830 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65831
65832         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65833         a directory that is about to be chowned.  Such a directory's
65834         initial file permissions should permit the owner only and this
65835         should not be changed until after the chown, since the group and
65836         other bits would be incorrect if they granted permission before
65837         the chown.
65838
65839         Fix porting problem for iswctype reported by Georg Schwarz in:
65840         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65841         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65842         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65843         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65844         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65845
65846 2006-12-03  Jim Meyering  <jim@meyering.net>
65847
65848         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65849         p->fts_statp may not yet be defined.
65850         (fts_read): Instead, set it in the caller, once p->fts_statp is
65851         sure to be defined, and corresponds to a top-level directory.
65852         This bug made du -x fail.  Here's the coreutils test case:
65853         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65854         Reported by Mike Frysinger.
65855
65856 2006-12-01  Jim Meyering  <jim@meyering.net>
65857
65858         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65859         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65860         Reported by Simon Josefsson.
65861
65862 2006-11-30  Jim Meyering  <jim@meyering.net>
65863
65864         * m4/warning.m4: Use the all-permissive copyright notice
65865         recommended by RMS (rather than LGPL).
65866         * m4/vararrays.m4: Likewise.
65867         * m4/flexmember.m4: Likewise.
65868
65869 2006-11-29  Bruno Haible  <bruno@clisp.org>
65870
65871         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65872         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65873         using +=.
65874         Reported by Simon Josefsson <simon@josefsson.org>.
65875
65876 2006-11-28  James Youngman <jay@gnu.org>
65877
65878         * README: Advise users that they might find the bug-gnulib@gnu.org
65879         and autotools-announce@gnu.org mailing lists useful.
65880
65881 2006-11-28  Bruno Haible  <bruno@clisp.org>
65882
65883         * m4/ptrdiff_max.m4: Remove file.
65884
65885 2006-11-21  Bruno Haible  <bruno@clisp.org>
65886
65887         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65888         _AC_COMPUTE_INT.
65889         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65890         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65891         _AC_COMPUTE_INT.
65892         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65893         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65894         _AC_COMPUTE_INT.
65895         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65896
65897 2006-11-28  Jim Meyering  <jim@meyering.net>
65898
65899         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65900         warning from "gcc -Wshadow" about shadowing the builtin.
65901
65902 2006-11-27  Bruno Haible  <bruno@clisp.org>
65903
65904         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65905         _AC_COMPUTE_INT.
65906         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65907
65908 2006-11-27  Bruno Haible  <bruno@clisp.org>
65909             Paul Eggert  <eggert@cs.ucla.edu>
65910
65911         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65912
65913 2006-11-26  Bruno Haible  <bruno@clisp.org>
65914
65915         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65916         noinst_LTLIBRARIES.
65917
65918 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65919             Bruno Haible  <bruno@clisp.org>
65920
65921         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65922         if compiling with "gcc -ansi".
65923
65924 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65925
65926         Fix some incompatibilities with gcc -ansi -pedantic.
65927         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65928         if compiling pedantically with GCC, unless it's C99 or later.
65929         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65930         it mishandles gcc -ansi -pedantic as well.
65931         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65932         if gcc -pedantic.
65933         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65934         initializers for struct if -pedantic, unless it's C99 or later.
65935
65936 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65937
65938         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65939         Don't close an fd more than once. Identical atimes indicate
65940         success, not failure.
65941
65942 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65943
65944         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65945
65946 2006-11-23  Jim Meyering  <jim@meyering.net>
65947
65948         * build-aux/announce-gen: New file.  From coreutils.
65949
65950 2006-11-22  Jim Meyering  <jim@meyering.net>
65951
65952         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65953         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65954         (fts_read): Use a temporary to narrow the overused st_size member
65955         before using it in a switch statement.  Reported by Matthew Woehlke.
65956
65957         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65958         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65959
65960 2006-11-20  Bruno Haible  <bruno@clisp.org>
65961
65962         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65963         changequote instead of pairs of brackets.
65964         Reported by Andreas Schwab <schwab@suse.de>.
65965
65966 2006-11-21  Jim Meyering  <jim@meyering.net>
65967
65968         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65969         so as to remain compatible with older compilers.
65970         Patch from Michael Deutschmann.
65971
65972 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65973
65974         * MODULES.html.sh (File system functions): Add openat.
65975
65976         * lib/openat.h (rpl_fstatat): New macro, if
65977         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65978         (fstatat): Define to rpl_fstatat under the same conditions,
65979         unless COMPILING_FSTATAT.
65980         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65981         seems to have the bug.
65982         * lib/fstatat.c: New file.
65983         * modules/openat (Files): Add it.
65984
65985 2006-11-20  Bruno Haible  <bruno@clisp.org>
65986
65987         * Makefile: New file.
65988
65989 2006-11-20  Jim Meyering  <jim@meyering.net>
65990
65991         The beginnings of syntax-related checks for gnulib.
65992         * lib/Makefile: New file.
65993         * lib/t-idcache: New script.  Ensure that the two halves of
65994         idcache.c stay in sync.
65995
65996         * lib/idcache.c: Adjust comments in user- and group- portions to
65997         be more accurate, and to be consistent with one another.
65998
65999 2006-11-20  Jim Meyering  <jim@meyering.net>
66000
66001         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66002         continue using the flexible array member (thus, this module performs
66003         half as many malloc calls), with the addition that...
66004         (getgroup, getuser): Consistently record a non-match via an empty
66005         "name" string, and map an empty string match to a NULL return value.
66006         * modules/idcache (Depends-on): Re-add flexmember.
66007
66008         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66009         (getuidbyname, getgroup, getgidbyname): Likewise.
66010
66011         Use cleaner syntax: NULL rather than 0.
66012         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66013
66014 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66015
66016         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66017         It mishandled the case where the group was missing.
66018         Problem reported by Greg Schafer.
66019         * modules/idcache: Likewise.
66020
66021 2006-11-18  Jim Meyering  <jim@meyering.net>
66022
66023         * check-module (%exempt_header): Add exception for some
66024         conditionally-included headers.
66025
66026         * modules/i-ring (Depends-on): Add verify.
66027         (License): Change to LGPL.
66028
66029 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66030
66031         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66032         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66033         and inttostr.h.  Use snprintf rather than uinttostr, so that
66034         LGPLed code doesn't depend on GPLed.
66035
66036 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66037
66038         * modules/inline (License): Change from GPL to LGPL.
66039
66040 2006-11-17  Jim Meyering  <jim@meyering.net>
66041
66042         * modules/d-type (License): Switch to LGPL.
66043
66044 2006-11-15  Bruno Haible  <bruno@clisp.org>
66045
66046         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66047
66048 2006-11-15  Eric Blake  <ebb9@byu.net>
66049
66050         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66051         the module dependency.
66052
66053 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66054             Bruno Haible  <bruno@clisp.org>
66055
66056         * gnulib-tool (func_create_testdir): Add license consistency check.
66057
66058 2006-11-15  Eric Blake  <ebb9@byu.net>
66059
66060         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66061         random "(cached)" in configure output.
66062
66063 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66064
66065         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66066         test for conforming inttypes.h is both announced and cached.
66067
66068         * MODULES.html.sh (seen_modules, seen_files): New variables.
66069         (func_module): Rewrite to use a few less gnulib-tool and sed
66070         invocations.  Avoid a couple of quadratic algorithms for ...
66071         (missed_modules, missed_files): ... these, with ...
66072         (func_append, func_tmpdir): ... these new functions, from
66073         gnulib-tool.  Analogously, install traps for cleanup.
66074
66075         * tests/test-gc.c (main): Remove unused variables.
66076         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66077
66078 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66079
66080         * modules/inttostr (License): Change to LGPL.
66081
66082 2006-11-14  Eric Blake  <ebb9@byu.net>
66083
66084         * modules/tempname (License): Change to LGPL.
66085
66086 2006-11-14  Eric Blake  <ebb9@byu.net>
66087
66088         * doc/functions.texi (Function Portability): *printf functions on
66089         Cygwin now understand all POSIX size specifiers.
66090
66091 2006-11-14  Bruno Haible  <bruno@clisp.org>
66092
66093         * modules/c-ctype (License): Change to LGPL.
66094
66095 2006-11-12  Bruno Haible  <bruno@clisp.org>
66096
66097         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66098         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66099         for GNOME libraries, for which the include files are installed in
66100         subdirectories of $prefix/include.
66101
66102 2006-11-12  Bruno Haible  <bruno@clisp.org>
66103
66104         * m4/lib-link.m4: Require at least autoconf-2.54.
66105         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66106         name to underscores for the --with option.
66107
66108 2006-11-13  Bruno Haible  <bruno@clisp.org>
66109
66110         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66111         the tests directory.
66112         Reported by Ralf Wildenhues.
66113
66114 2006-11-13  Bruno Haible  <bruno@clisp.org>
66115
66116         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66117         (func_emit_initmacro_end): Undo the override here.
66118         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66119         Works around the famous automake error in coreutils.
66120
66121 2006-11-13  Eric Blake  <ebb9@byu.net>
66122
66123         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66124         element, not its node.
66125
66126 2006-11-12  Bruno Haible  <bruno@clisp.org>
66127
66128         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66129         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66130
66131 2006-11-12  Bruno Haible  <bruno@clisp.org>
66132
66133         * gnulib-tool: New option --local-symlink.
66134         (func_usage): Document it.
66135         (lsymbolic): New variable.
66136         (func_import, func_create_testdir): If --symlink was not specified,
66137         test whether --local-symlink was specified and the file comes from
66138         the local_gnulib_dir.
66139
66140 2006-11-12  Bruno Haible  <bruno@clisp.org>
66141
66142         * gnulib-tool (func_ln): New function.
66143         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66144
66145 2006-11-12  Bruno Haible  <bruno@clisp.org>
66146
66147         Finish support for source files in subdirectories.
66148         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66149         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66150         AUTOMAKE_OPTIONS.
66151         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66152
66153 2006-11-12  Bruno Haible  <bruno@clisp.org>
66154
66155         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66156         EXTRA_lib_SOURCES augmentation.
66157         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66158
66159 2006-11-12  Jim Meyering  <jim@meyering.net>
66160
66161         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66162         file descriptors.  This also averts a failure on systems with
66163         native openat support when a traversed directory lacks "x" access.
66164         * lib/fts_.h: Include "i-ring.h"
66165         (struct FTS) [fts_fd_ring]: New member.
66166         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66167         (FCHDIR): Add parentheses.
66168         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66169         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66170         When descending, rather than simply closing the previous
66171         fts_cwd_fd value, push that file descriptor onto the ring.
66172         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66173         (fts_open): Initialize the new fd_ring member.
66174         (fts_close): Clear the ring.
66175         (fts_safe_changedir): When possible, use our new fd_ring to skip
66176         the diropen and fstat and dev/ino comparison that would normally
66177         accompany a virtual `chdir ("..")'.
66178
66179         * modules/fts (Depends-on): Add i-ring.
66180         * modules/i-ring: New module.
66181         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66182         * m4/i-ring.m4: New file.
66183
66184 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66185
66186         * gnulib-tool (func_create_testdir): Fix replacement of
66187         `build-aux' in configure.ac.  Run autotools in gltests
66188         subdirectory.
66189         (func_create_testdir, func_create_megatestdir, test): There is
66190         no need for '--force' in most autotool invocations in a new
66191         tree.  Actually fail the whole test if any of the tools, or the
66192         configure or make stages fail.
66193
66194         Sync from Automake.
66195         * build-aux/gnupload: Revert last change.  Add pointer to upload
66196         instructions of the GNU Maintenance Instructions.
66197         Suggestion by Karl Berry.
66198
66199 2006-11-10  Jim Meyering  <jim@meyering.net>
66200
66201         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66202
66203 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66204
66205         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66206         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66207         (bind_textdomain_codeset) [! ENABLE_NLS]:
66208         Evaluate all the arguments.  That way, callers get compatible behavior
66209         if the arguments have side effects.  Also, it avoids some GCC
66210         diagnostics in some cases; Joel E. Denny reported problems when Bison
66211         was configured with --enable-gcc-warnigs.
66212
66213 2006-11-10  Jim Meyering  <jim@meyering.net>
66214
66215         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66216         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66217         account.
66218
66219 2006-11-10  Jim Meyering  <jim@meyering.net>
66220
66221         * modules/inline: New file/module.
66222         * modules/xalloc (Files): Remove m4/inline.m4.
66223         (Depends-on): Add inline, instead.
66224         * modules/oset: Likewise.
66225         * modules/list: Likewise.
66226
66227 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66228
66229         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66230         Problem reported by Matthew Woehlke.
66231
66232 2006-11-09  Bruno Haible  <bruno@clisp.org>
66233
66234         * lib/tempname.c (gen_tempname): Remove variant that invokes
66235         __gen_tempname.
66236         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66237         __gen_tempname.
66238
66239 2006-11-08  Bruno Haible  <bruno@clisp.org>
66240
66241         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66242         to 'yes' instead of 'cross-compiling'.
66243
66244 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66245
66246         * lib/quotearg.h (quotearg_free): New decl.
66247         * lib/quotearg.c (quotearg_free): New function.
66248         (slot0, nslots, slotvec0, slotvec):
66249         Now file-scope so that quotearg_free can get at them.
66250
66251 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66252
66253         Sync from Automake.
66254         * build-aux/gnupload: Add missing 'gnu' to example URL.
66255         Report by Karl Berry.
66256
66257 2006-11-08  Bruno Haible  <bruno@clisp.org>
66258
66259         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66260         Suggested by Paul Eggert.
66261
66262 2006-11-08  Jim Meyering  <jim@meyering.net>
66263
66264         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66265         It's already included if !_LIBC.
66266         (fts_safe_changedir): Add a comment.
66267
66268 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66269
66270         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66271         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66272         Matthew Woehlke.
66273
66274         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66275         definitions up, to avoid colliding with change below.
66276         (static_inline) [HAVE_INLINE]: New macro.
66277         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66278         Provide extern decls when !HAVE_INLINE.  Do not define unless
66279         static_inline is defined, either by us or by xmalloc.c.  Use
66280         static_inline rather than static inline.
66281         (XCALLOC): Optimize sizeof(T) = 1 case.
66282         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66283
66284 2006-11-07  Bruno Haible  <bruno@clisp.org>
66285
66286         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66287         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66288         AC_C_INLINE.
66289         * modules/xalloc (Files): Add m4/inline.m4.
66290
66291 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66292
66293         * README: Fix typo.
66294         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66295         (Miscellanous Notes): ...from this.
66296
66297 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66298
66299         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66300         Mention that offsetof should be used instead of sizeof.
66301         From Bruno Haible.
66302
66303 2006-11-07  Bruno Haible  <bruno@clisp.org>
66304
66305         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66306
66307 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66308
66309         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66310         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66311         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66312         (gl_tree_add_before, gl_tree_add_after):
66313         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66314         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66315         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66316         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66317         (gl_linked_add_after, gl_linked_add_at): Likewise.
66318         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66319         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66320         (gl_tree_add_before, gl_tree_add_after): Likewise.
66321         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66322         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66323         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66324
66325 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66326
66327         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66328
66329 2006-11-06  Bruno Haible  <bruno@clisp.org>
66330
66331         * m4/inline.m4: New file.
66332         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66333         * modules/list (Files): Add m4/inline.m4.
66334         * modules/oset (Files): Likewise.
66335
66336 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66337
66338         * lib/idcache.c: Include <stddef.h>, for offsetof.
66339         (struct userid.name): Change from char * to a flexible array member.
66340         All uses changed.
66341         * modules/idcache (Depends-on): Add flexmember.
66342
66343         * MODULES.html.sh (Core language properties): New module flexmember.
66344         * modules/flexmember, m4/flexmember.m4: New files.
66345
66346         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66347         inline functions that are identical with the old xnmalloc_inline,
66348         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66349         that we can avoid some unnecessary integer multiplications and
66350         divisions in the common case where the element size is known at
66351         compile time.
66352         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66353         needed.
66354         (xnboundedmalloc): Remove.
66355         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66356         arguments, for consistency with rest of this header.
66357         (xcharalloc): Rewrite using XNMALLOC.
66358         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66359         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66360         versions have been moved to lib/xalloc.h and renamed to be the
66361         non-*_inline versions.
66362         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66363         and xnrealloc functions, since those functions are now inline and
66364         now call us.
66365         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66366         renaming described above.
66367         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66368         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66369         captures the dependency in AC_C_INLINE.
66370
66371         New module canonicalize-lgpl, proposed by Charles Wilson in
66372         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66373         with a few small changes afterwards.
66374         * MODULES.html.sh (File system functions): New module
66375         canonicalize-lgpl.
66376         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66377         and canonicalize_file_name.
66378         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66379         * modules/canonicalize-lgpl: New files.
66380
66381 2006-11-05  Bruno Haible  <bruno@clisp.org>
66382
66383         * gnulib-tool (func_import, func_create_testdir): Create directories
66384         also for files in subdirectories of lib/.
66385
66386 2006-11-05  Bruno Haible  <bruno@clisp.org>
66387
66388         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66389         ANSI C compliant.
66390
66391 2006-11-03  Bruno Haible  <bruno@clisp.org>
66392
66393         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66394         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66395         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66396         (xnboundedmalloc): New inline function.
66397         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66398         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66399         xmalloc.
66400         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66401         xmalloc.
66402         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66403         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66404         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66405         xmalloc.
66406         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66407         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66408         xmalloc.
66409         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66410         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66411         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66412         xmalloc.
66413         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66414         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66415         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66416         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66417         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66418         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66419         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66420
66421 2006-11-03  Bruno Haible  <bruno@clisp.org>
66422
66423         * lib/c-ctype.h [C++]: Define functions without name mangling.
66424         * lib/fwriteerror.h [C++]: Likewise.
66425         * lib/gcd.h [C++]: Likewise.
66426         * lib/linebreak.h [C++]: Likewise.
66427
66428 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66429
66430         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66431         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66432         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66433         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66434         Check for functions and headers just once.
66435         Check for declaration of canonicalize_file_name.
66436         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66437
66438 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66439
66440         * gnulib-tool (func_import): Fix typo in actioncmd.
66441
66442 2006-11-02  Bruno Haible  <bruno@clisp.org>
66443
66444         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66445         newline sequence in the Makefile.am snippet as a space, like "make"
66446         does.
66447         Reported by Roger Persson <perrog@gmail.com>.
66448
66449 2006-11-01  Bruno Haible  <bruno@clisp.org>
66450
66451         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66452         already declared in <string.h>.
66453         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66454
66455 2006-11-01  Bruno Haible  <bruno@clisp.org>
66456
66457         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66458         * lib/strcase.h: Include <string.h>.
66459         (strcasecmp): Define to rpl_strcasecmp here.
66460
66461 2006-11-01  Bruno Haible  <bruno@clisp.org>
66462
66463         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66464
66465 2006-11-01  Eric Blake  <ebb9@byu.net>
66466
66467         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66468
66469         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66470
66471 2006-10-29  Bruno Haible  <bruno@clisp.org>
66472
66473         Make it compile in C++ mode.
66474         * lib/full-write.c (full_rw): Add a cast.
66475
66476 2006-11-01  Bruno Haible  <bruno@clisp.org>
66477
66478         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66479         be POSIX compliant.
66480         Reported by Roger Persson <perrog@gmail.com>.
66481
66482 2006-11-01  Eric Blake  <ebb9@byu.net>
66483
66484         * lib/getopt_.h: Fix comments.
66485
66486 2006-10-31  Eric Blake  <ebb9@byu.net>
66487
66488         * modules/tmpdir (Depends-on): Add sys_stat.
66489         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66490         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66491         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66492         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66493         tempname.
66494
66495 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66496
66497         Avoid some C++ diagnostics reported by Bruno Haible.
66498         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66499         xmalloc.
66500         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66501         (struct slotvec): Move to top level.
66502         (quotearg_n_options): Rewrite to avoid xmalloc.
66503         * lib/xalloc.h (xcharalloc): New function.
66504         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66505         [defined __cplusplus]: Add function template that provides result
66506         type propagation.  This part of the change is from Bruno Haible.
66507
66508 2006-10-29  Bruno Haible  <bruno@clisp.org>
66509
66510         Make it compile in C++ mode.
66511         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66512         * lib/strnlen1.c (strnlen1): Cast memchr result.
66513         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66514         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66515         (create_temp_dir): Rename local variable 'template'.
66516         (compile_csharp_using_sscli): Add cast.
66517         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66518         * lib/findprog.c (find_in_path): Likewise.
66519         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66520         * lib/wait-process.c (register_slave_subprocess): Likewise.
66521
66522 2006-10-22  Bruno Haible  <bruno@clisp.org>
66523
66524         * modules/tsearch: New file.
66525         * lib/tsearch.h: New file.
66526         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66527         * m4/tsearch.m4: New file.
66528         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66529
66530 2006-10-29  Eric Blake  <ebb9@byu.net>
66531
66532         * lib/arcfour.c: Assume config.h.
66533         * lib/arctwo.c: Likewise.
66534         * lib/base64.c: Likewise.
66535         * lib/check-version.c: Likewise.
66536         * lib/crc.c: Likewise.
66537         * lib/des.c: Likewise.
66538         * lib/gc-gnulib.c: Likewise.
66539         * lib/gc-libgcrypt.c: Likewise.
66540         * lib/gc-pbkdf2-sha1.c: Likewise.
66541         * lib/getaddrinfo.c: Likewise.
66542         * lib/getdelim.c: Likewise.
66543         * lib/getline.c: Likewise.
66544         * lib/hmac-md5.c: Likewise.
66545         * lib/hmac-sha1.c: Likewise.
66546         * lib/iconvme.c: Likewise.
66547         * lib/md2.c: Likewise.
66548         * lib/md4.c: Likewise.
66549         * lib/memxor.c: Likewise.
66550         * lib/read-file.c: Likewise.
66551         * lib/readline.c: Likewise.
66552         * lib/rijndael-alg-fst.c: Likewise.
66553         * lib/rijndael-api-fst.c: Likewise.
66554         * lib/xgetdomainname.c: Likewise.
66555
66556 2006-10-28  Eric Blake  <ebb9@byu.net>
66557
66558         * lib/xstrndup.c: Assume config.h.
66559
66560 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66561
66562         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66563         stat-macros.h is now for our own macros, whereas stat_h is for
66564         macros in the <sys/stat.h> name space.
66565         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66566         (STAT_MACROS_H): Remove.
66567         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66568         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66569         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66570         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66571         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66572         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66573         Move these macros to ...
66574         * lib/stat_.h: here.  Don't include stat-macros.h.
66575         * lib/canonicalize.c: Don't include stat-macros.h.
66576         * lib/chown.c: Likewise.
66577         * lib/euidaccess.c: Likewise.
66578         * lib/file-type.c: Likewise.
66579         * lib/filemode.c: Likewise.
66580         * lib/glob.c: Likewise.
66581         * lib/isapipe.c: Likewise.
66582         * lib/lchown.c: Likewise.
66583         * lib/lstat.c: Likewise.
66584         * lib/mkdir-p.c: Likewise.
66585         * lib/rmdir.c: Likewise.
66586         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66587         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66588         unless mkdir isn't declared, to speed up 'configure'.
66589         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66590         would define all the S_* symbols.
66591         * modules/canonicalize (Depends-on):
66592         Depend on sys_stat, not stat-macros.
66593         * modules/chown: Likewise.
66594         * modules/euidaccess: Likewise.
66595         * modules/filemode: Likewise.
66596         * modules/file-type: Likewise.
66597         * modules/glob: Likewise.
66598         * modules/isapipe: Likewise.
66599         * modules/lchown: Likewise.
66600         * modules/lstat: Likewise.
66601         * modules/mkancesdirs: Likewise.
66602         * modules/rmdir: Likewise.
66603         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66604         * modules/modechange: Likewise.
66605         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66606         (configure.ac): Remove gl_STAT_MACROS.
66607         * modules/sys_stat (Depends-on): Remove stat-macros.
66608
66609 2006-10-27  Bruno Haible  <bruno@clisp.org>
66610
66611         * m4/signed.m4: Remove file.
66612         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66613         invocation.
66614         * modules/vasnprintf (Files): Remove m4/signed.m4.
66615
66616 2006-10-27  Bruno Haible  <bruno@clisp.org>
66617
66618         Update to GNU gettext 0.16.
66619         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66620         m4/inttypes-h.m4, m4/signed.m4.
66621         * m4/gettext.m4: Update to GNU gettext 0.16.
66622         * m4/intl.m4: New file, from GNU gettext.
66623         * m4/intldir.m4: New file, from GNU gettext.
66624         * config/srclist.txt: Update
66625
66626 2006-10-27  Eric Blake  <ebb9@byu.net>
66627
66628         * MODULES.html.sh: Document tempname.
66629         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66630         dependencies.
66631         (Files): Move lib/tempname.c...
66632         * modules/tempname: ...to this new module.
66633         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66634         (gl_PREREQ_TEMPNAME): Move...
66635         * m4/tempname.m4: ...to this new file.
66636         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66637         * modules/sys_stat (Depends-on): Add stat-macros.
66638         * lib/stat_.h (includes): Pick up stat macros.
66639         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66640         if stat macros are broken.
66641         * lib/tempname.c (includes): No need to include "stat-macros.h".
66642         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66643         (direxists, __path_search) [!_LIBC]: Don't compile these in
66644         gnulib; the tmpdir module covers that.
66645         * lib/tempname.h: New file.
66646
66647 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66648
66649         * COPYING: Explain how gnulib-tool converts licence headers.
66650         Almost all wording by Eric Blake.
66651
66652 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66653
66654         * lib/mbchar.h (is_basic_table): Make read-only.
66655         * lib/mbchar.c (is_basic_table): Likewise.
66656         Reported by John Darrington.
66657
66658 2006-10-25  Bruno Haible  <bruno@clisp.org>
66659
66660         * lib/progname.h (set_program_name): Undefine before defining.
66661
66662 2006-10-25  Bruno Haible  <bruno@clisp.org>
66663
66664         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66665         false for non-gcc C++ compilers.
66666         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66667
66668 2006-10-24  Bruno Haible  <bruno@clisp.org>
66669
66670         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66671         iconv implementations like Irix iconv.
66672
66673 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66674
66675         * modules/vararrays: New file.
66676         * m4/vararrays.m4: New file, taken from diffutils.
66677         * MODULES.html.sh: New module vararrays.
66678
66679 2006-10-24  Karl Berry  <karl@gnu.org>
66680
66681         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66682         Don't call GNU Unix.
66683
66684 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66685
66686         * users.txt: Add Libtool.
66687
66688         Sync from Libtool:
66689
66690         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66691
66692         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66693         to gnulib's policy of including config.h unconditionally.
66694
66695 2006-10-24  Bruno Haible  <bruno@clisp.org>
66696
66697         * modules/wcwidth (Files): Add m4/wint_t.m4.
66698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66699         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66700
66701 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66702
66703         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66704         to pacify GCC with some -W flags enabled.  Problem reported by
66705         Bruno Haible.
66706
66707 2006-10-24  Jim Meyering  <jim@meyering.net>
66708
66709         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66710         Reported by Karl Berry.
66711
66712 2006-10-23  Bruno Haible  <bruno@clisp.org>
66713
66714         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66715
66716 2006-10-24  Bruno Haible  <bruno@clisp.org>
66717
66718         * lib/gl_list.h: Use C comment style, not C++ comment style.
66719
66720 2006-10-23  Eric Blake  <ebb9@byu.net>
66721
66722         * lib/getaddrinfo.c (includes): Add missing include.
66723
66724 2006-10-23  Bruno Haible  <bruno@clisp.org>
66725             Paul Eggert  <eggert@cs.ucla.edu>
66726
66727         Ability to rename obstack_free.
66728         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66729         obstack_free.
66730         (obstack_free): Invoke the __obstack_free macro.
66731         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66732
66733 2006-10-23  Bruno Haible  <bruno@clisp.org>
66734             Paul Eggert  <eggert@cs.ucla.edu>
66735
66736         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66737         __argc, __argv from the declaration. (They are defined as macros on
66738         mingw.)
66739
66740 2006-10-22  Bruno Haible  <bruno@clisp.org>
66741
66742         * doc/gnulib-intro.texi: New file.
66743         * doc/gnulib.texi: Include it.
66744
66745 2006-10-21  Bruno Haible  <bruno@clisp.org>
66746
66747         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66748         "Introduction", "Miscellanous Notes", "Particular Modules".
66749
66750 2006-10-21  Bruno Haible  <bruno@clisp.org>
66751
66752         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66753         Change mostlyclean-local rule to avoid sh syntax error from bash
66754         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66755
66756 2006-10-23  Jim Meyering  <jim@meyering.net>
66757
66758         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66759         in place of snprintf.
66760
66761         * modules/inttostr (Files): Add lib/uinttostr.c.
66762         * lib/uinttostr.c (inttostr): New file/function.
66763         * lib/inttostr.h (uinttostr): Declare.
66764         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66765         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66766         Add uinttostr.
66767         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66768
66769 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66770
66771         * lib/canonicalize.c (ELOOP): Define if not already defined.
66772         Problem reported by Bruno Haible in
66773         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66774
66775 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66776
66777         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66778         Problem reported by Perry Smith and Ville Laurikari.
66779
66780         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66781         uses.
66782
66783 2006-10-19  Bruno Haible  <bruno@clisp.org>
66784
66785         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66786         for mingw.
66787
66788 2006-10-19  Bruno Haible  <bruno@clisp.org>
66789
66790         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66791         Needed for mingw.
66792
66793 2006-10-19  Bruno Haible  <bruno@clisp.org>
66794
66795         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66796
66797 2006-10-19  Bruno Haible  <bruno@clisp.org>
66798
66799         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66800         it.
66801
66802 2006-10-19  Bruno Haible  <bruno@clisp.org>
66803
66804         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66805         invocation.
66806
66807 2006-10-19  Bruno Haible  <bruno@clisp.org>
66808
66809         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66810         mountlist by default.
66811
66812 2006-10-16  Bruno Haible  <bruno@clisp.org>
66813
66814         * lib/c-strstr.c: Include c-strstr.h.
66815
66816 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66817
66818         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66819         in a slash.
66820
66821 2006-10-18  Bruno Haible  <bruno@clisp.org>
66822
66823         * lib/lock.h [C++]: Wrap definitions in extern "C".
66824
66825 2006-10-18  Bruno Haible  <bruno@clisp.org>
66826
66827         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66828         gl_LIBOBJS list.
66829
66830 2006-10-18  Bruno Haible  <bruno@clisp.org>
66831
66832         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66833
66834 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66835
66836         * lib/xstrtol.h: Include gettext.h.
66837         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66838         Problem reported by Eric Blake.
66839         * modules/xstrtol (Depends-on): Add gettext-h.
66840
66841 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66842
66843         * lib/strftime.c (advance): New macro.
66844         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66845         incomplete type, so you can't add 0 to it.  Problem and patch
66846         reported by Eelco Dolstra for dietlibc.
66847
66848 2006-10-18  Jim Meyering  <jim@meyering.net>
66849
66850         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66851         type for a local, and rename it: s/up/user_proc/.
66852
66853 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66854
66855         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66856         READ_UTMP_USER_PROCESS.
66857         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66858
66859 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66860
66861         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66862         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66863
66864 2006-10-17  Eric Blake  <ebb9@byu.net>
66865
66866         * lib/sigprocmask.c (sigprocmask): Fix typo.
66867
66868         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66869
66870         * modules/clean-temp (Makefile.am): Don't add to make output...
66871         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66872         config.h.
66873
66874 2006-10-17  Bruno Haible  <bruno@clisp.org>
66875
66876         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66877         differently if DEFAULT_TEXT_DOMAIN is set.
66878
66879 2006-10-16  Bruno Haible  <bruno@clisp.org>
66880
66881         * lib/clean-temp.c: Include fwriteerror.h.
66882
66883 2006-10-16  Bruno Haible  <bruno@clisp.org>
66884
66885         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66886
66887 2006-10-16  Bruno Haible  <bruno@clisp.org>
66888
66889         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66890         * lib/sigprocmask.h: Include <sys/types.h>.
66891         (sigset_t): Use the system's definition if present.
66892
66893 2006-10-17  Eric Blake  <ebb9@byu.net>
66894
66895         * lib/xvasprintf.c (includes): Assume config.h.
66896         * lib/xasprintf.c (includes): Likewise.
66897
66898 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66899
66900         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66901         at least as wide as intmax_t.
66902
66903 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66904
66905         (Imported from Automake.)
66906         * build-aux/gnupload: Update to version 1.1 of directive file.
66907
66908 2006-10-16  Eric Blake  <ebb9@byu.net>
66909
66910         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66911         match Automake 1.10a.
66912
66913 2006-10-14  Bruno Haible  <bruno@clisp.org>
66914
66915         * modules/sigprocmask: New file.
66916         * lib/sigprocmask.h: New file.
66917         * lib/sigprocmask.c: New file.
66918         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66919         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66920         request sigprocmask.o.
66921         (gl_PREREQ_SIGPROCMASK): New macro.
66922         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66923         (Depends-on): Add sigprocmask.
66924         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66925         gt_SIGNALBLOCKING. Test for 'raise' only once.
66926         * lib/fatal-signal.c: Include sigprocmask.h.
66927         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66928         unblock_fatal_signals): Define always.
66929         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66930         sigprocmask.
66931
66932 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66933
66934         Sync from Automake.
66935         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66936         which incorrectly sets the mode of an existing destination
66937         directory.  In some cases the unpatched install-sh could do the
66938         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66939         system.  We hope this is rare in practice, but it's clearly worth
66940         fixing.  Problem reported by Alex Unleashed in
66941         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66942         Also, don't bother to check for -m bugs unless we're using -m;
66943         suggested by Stepan Kasal.
66944
66945 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66946
66947         Sync from Automake.
66948         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66949         `-c' flag, so they appear at the same position as in %FASTDEP%
66950         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66951         which ignores unknown options only after the first non-option.
66952         Bug report against M4 by Nelson H. F. Beebe.
66953
66954 2006-10-13  Jim Meyering  <jim@meyering.net>
66955
66956         Fix a bug in yesterday's change.
66957         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66958         p->fts_statp->st_dev would be used uninitialized.
66959         Ensures that we always call fts_stat on the very first entry.
66960         Miklos Szeredi reported that find -xdev stopped working.
66961
66962 2006-10-12  Bruno Haible  <bruno@clisp.org>
66963
66964         * gnulib-tool (func_get_automake_snippet): Append an automatically
66965         computed EXTRA_DIST augmentation.
66966         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66967         * modules/alloca-opt (Makefile.am): Likewise.
66968         * modules/allocsa (Makefile.am): Likewise.
66969         * modules/arcfour (Makefile.am): Likewise.
66970         * modules/arctwo (Makefile.am): Likewise.
66971         * modules/argmatch (Makefile.am): Likewise.
66972         * modules/argz (Makefile.am): Likewise.
66973         * modules/atexit (Makefile.am): Likewise.
66974         * modules/backupfile (Makefile.am): Likewise.
66975         * modules/byteswap (Makefile.am): Likewise.
66976         * modules/c-strtod (Makefile.am): Likewise.
66977         * modules/c-strtold (Makefile.am): Likewise.
66978         * modules/calloc (Makefile.am): Likewise.
66979         * modules/canon-host (Makefile.am): Likewise.
66980         * modules/canonicalize (Makefile.am): Likewise.
66981         * modules/chdir-long (Makefile.am): Likewise.
66982         * modules/chdir-safer (Makefile.am): Likewise.
66983         * modules/check-version (Makefile.am): Likewise.
66984         * modules/chown (Makefile.am): Likewise.
66985         * modules/cloexec (Makefile.am): Likewise.
66986         * modules/close-stream (Makefile.am): Likewise.
66987         * modules/closeout (Makefile.am): Likewise.
66988         * modules/crc (Makefile.am): Likewise.
66989         * modules/csharpexec (Makefile.am): Likewise.
66990         * modules/cycle-check (Makefile.am): Likewise.
66991         * modules/des (Makefile.am): Likewise.
66992         * modules/dev-ino (Makefile.am): Likewise.
66993         * modules/dirfd (Makefile.am): Likewise.
66994         * modules/dirname (Makefile.am): Likewise.
66995         * modules/dup2 (Makefile.am): Likewise.
66996         * modules/eealloc (Makefile.am): Likewise.
66997         * modules/error (Makefile.am): Likewise.
66998         * modules/euidaccess (Makefile.am): Likewise.
66999         * modules/exclude (Makefile.am): Likewise.
67000         * modules/exitfail (Makefile.am): Likewise.
67001         * modules/fcntl-safer (Makefile.am): Likewise.
67002         * modules/fcntl (Makefile.am): Likewise.
67003         * modules/file-type (Makefile.am): Likewise.
67004         * modules/fileblocks (Makefile.am): Likewise.
67005         * modules/filemode (Makefile.am): Likewise.
67006         * modules/filenamecat (Makefile.am): Likewise.
67007         * modules/fnmatch (Makefile.am): Likewise.
67008         * modules/fopen-safer (Makefile.am): Likewise.
67009         * modules/fpending (Makefile.am): Likewise.
67010         * modules/fprintftime (Makefile.am): Likewise.
67011         * modules/free (Makefile.am): Likewise.
67012         * modules/fsusage (Makefile.am): Likewise.
67013         * modules/ftruncate (Makefile.am): Likewise.
67014         * modules/fts (Makefile.am): Likewise.
67015         * modules/gc-arcfour (Makefile.am): Likewise.
67016         * modules/gc-des (Makefile.am): Likewise.
67017         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67018         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67019         * modules/gc-md4 (Makefile.am): Likewise.
67020         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67021         * modules/gc-sha1 (Makefile.am): Likewise.
67022         * modules/gc (Makefile.am): Likewise.
67023         * modules/getaddrinfo (Makefile.am): Likewise.
67024         * modules/getcwd (Makefile.am): Likewise.
67025         * modules/getdelim (Makefile.am): Likewise.
67026         * modules/getdomainname (Makefile.am): Likewise.
67027         * modules/getgroups (Makefile.am): Likewise.
67028         * modules/gethostname (Makefile.am): Likewise.
67029         * modules/gethrxtime (Makefile.am): Likewise.
67030         * modules/getline (Makefile.am): Likewise.
67031         * modules/getloadavg (Makefile.am): Likewise.
67032         * modules/getlogin_r (Makefile.am): Likewise.
67033         * modules/getndelim2 (Makefile.am): Likewise.
67034         * modules/getopt (Makefile.am): Likewise.
67035         * modules/getpagesize (Makefile.am): Likewise.
67036         * modules/getpass-gnu (Makefile.am): Likewise.
67037         * modules/getpass (Makefile.am): Likewise.
67038         * modules/getsubopt (Makefile.am): Likewise.
67039         * modules/gettime (Makefile.am): Likewise.
67040         * modules/gettimeofday (Makefile.am): Likewise.
67041         * modules/getugroups (Makefile.am): Likewise.
67042         * modules/getusershell (Makefile.am): Likewise.
67043         * modules/glob (Makefile.am): Likewise.
67044         * modules/group-member (Makefile.am): Likewise.
67045         * modules/hard-locale (Makefile.am): Likewise.
67046         * modules/hash (Makefile.am): Likewise.
67047         * modules/hmac-md5 (Makefile.am): Likewise.
67048         * modules/hmac-sha1 (Makefile.am): Likewise.
67049         * modules/human (Makefile.am): Likewise.
67050         * modules/idcache (Makefile.am): Likewise.
67051         * modules/imaxabs (Makefile.am): Likewise.
67052         * modules/imaxdiv (Makefile.am): Likewise.
67053         * modules/inet_ntop (Makefile.am): Likewise.
67054         * modules/inet_pton (Makefile.am): Likewise.
67055         * modules/intprops (Makefile.am): Likewise.
67056         * modules/inttostr (Makefile.am): Likewise.
67057         * modules/inttypes (Makefile.am): Likewise.
67058         * modules/isapipe (Makefile.am): Likewise.
67059         * modules/javaversion (Makefile.am): Likewise.
67060         * modules/lchmod (Makefile.am): Likewise.
67061         * modules/lchown (Makefile.am): Likewise.
67062         * modules/localcharset (Makefile.am): Likewise.
67063         * modules/long-options (Makefile.am): Likewise.
67064         * modules/lstat (Makefile.am): Likewise.
67065         * modules/malloc (Makefile.am): Likewise.
67066         * modules/mathl (Makefile.am): Likewise.
67067         * modules/mbchar (Makefile.am): Likewise.
67068         * modules/md2 (Makefile.am): Likewise.
67069         * modules/md4 (Makefile.am): Likewise.
67070         * modules/md5 (Makefile.am): Likewise.
67071         * modules/memcasecmp (Makefile.am): Likewise.
67072         * modules/memchr (Makefile.am): Likewise.
67073         * modules/memcmp (Makefile.am): Likewise.
67074         * modules/memcoll (Makefile.am): Likewise.
67075         * modules/memcpy (Makefile.am): Likewise.
67076         * modules/memmem (Makefile.am): Likewise.
67077         * modules/memmove (Makefile.am): Likewise.
67078         * modules/mempcpy (Makefile.am): Likewise.
67079         * modules/memrchr (Makefile.am): Likewise.
67080         * modules/memset (Makefile.am): Likewise.
67081         * modules/memxor (Makefile.am): Likewise.
67082         * modules/mkancesdirs (Makefile.am): Likewise.
67083         * modules/mkdir-p (Makefile.am): Likewise.
67084         * modules/mkdir (Makefile.am): Likewise.
67085         * modules/mkdtemp (Makefile.am): Likewise.
67086         * modules/mkstemp (Makefile.am): Likewise.
67087         * modules/mktime (Makefile.am): Likewise.
67088         * modules/modechange (Makefile.am): Likewise.
67089         * modules/mountlist (Makefile.am): Likewise.
67090         * modules/nanosleep (Makefile.am): Likewise.
67091         * modules/obstack (Makefile.am): Likewise.
67092         * modules/openat (Makefile.am): Likewise.
67093         * modules/pagealign_alloc (Makefile.am): Likewise.
67094         * modules/pathmax (Makefile.am): Likewise.
67095         * modules/physmem (Makefile.am): Likewise.
67096         * modules/poll (Makefile.am): Likewise.
67097         * modules/posixtm (Makefile.am): Likewise.
67098         * modules/posixver (Makefile.am): Likewise.
67099         * modules/putenv (Makefile.am): Likewise.
67100         * modules/quote (Makefile.am): Likewise.
67101         * modules/quotearg (Makefile.am): Likewise.
67102         * modules/raise (Makefile.am): Likewise.
67103         * modules/read-file (Makefile.am): Likewise.
67104         * modules/readline (Makefile.am): Likewise.
67105         * modules/readlink (Makefile.am): Likewise.
67106         * modules/readtokens (Makefile.am): Likewise.
67107         * modules/readutmp (Makefile.am): Likewise.
67108         * modules/realloc (Makefile.am): Likewise.
67109         * modules/regex (Makefile.am): Likewise.
67110         * modules/rename-dest-slash (Makefile.am): Likewise.
67111         * modules/rename (Makefile.am): Likewise.
67112         * modules/rijndael (Makefile.am): Likewise.
67113         * modules/rmdir (Makefile.am): Likewise.
67114         * modules/rpmatch (Makefile.am): Likewise.
67115         * modules/safe-read (Makefile.am): Likewise.
67116         * modules/safe-write (Makefile.am): Likewise.
67117         * modules/same-inode (Makefile.am): Likewise.
67118         * modules/same (Makefile.am): Likewise.
67119         * modules/save-cwd (Makefile.am): Likewise.
67120         * modules/savedir (Makefile.am): Likewise.
67121         * modules/setenv (Makefile.am): Likewise.
67122         * modules/settime (Makefile.am): Likewise.
67123         * modules/sha1 (Makefile.am): Likewise.
67124         * modules/sig2str (Makefile.am): Likewise.
67125         * modules/snprintf (Makefile.am): Likewise.
67126         * modules/stat-macros (Makefile.am): Likewise.
67127         * modules/stat-time (Makefile.am): Likewise.
67128         * modules/stdbool (Makefile.am): Likewise.
67129         * modules/stdint (Makefile.am): Likewise.
67130         * modules/stdlib-safer (Makefile.am): Likewise.
67131         * modules/stpcpy (Makefile.am): Likewise.
67132         * modules/stpncpy (Makefile.am): Likewise.
67133         * modules/strcase (Makefile.am): Likewise.
67134         * modules/strcasestr (Makefile.am): Likewise.
67135         * modules/strchrnul (Makefile.am): Likewise.
67136         * modules/strcspn (Makefile.am): Likewise.
67137         * modules/strdup (Makefile.am): Likewise.
67138         * modules/strerror (Makefile.am): Likewise.
67139         * modules/strftime (Makefile.am): Likewise.
67140         * modules/strndup (Makefile.am): Likewise.
67141         * modules/strnlen (Makefile.am): Likewise.
67142         * modules/strpbrk (Makefile.am): Likewise.
67143         * modules/strsep (Makefile.am): Likewise.
67144         * modules/strstr (Makefile.am): Likewise.
67145         * modules/strtod (Makefile.am): Likewise.
67146         * modules/strtoimax (Makefile.am): Likewise.
67147         * modules/strtok_r (Makefile.am): Likewise.
67148         * modules/strtol (Makefile.am): Likewise.
67149         * modules/strtoll (Makefile.am): Likewise.
67150         * modules/strtoul (Makefile.am): Likewise.
67151         * modules/strtoull (Makefile.am): Likewise.
67152         * modules/strtoumax (Makefile.am): Likewise.
67153         * modules/strverscmp (Makefile.am): Likewise.
67154         * modules/sys_socket (Makefile.am): Likewise.
67155         * modules/sys_stat (Makefile.am): Likewise.
67156         * modules/sysexits (Makefile.am): Likewise.
67157         * modules/time_r (Makefile.am): Likewise.
67158         * modules/timegm (Makefile.am): Likewise.
67159         * modules/timespec (Makefile.am): Likewise.
67160         * modules/tmpfile-safer (Makefile.am): Likewise.
67161         * modules/trim (Makefile.am): Likewise.
67162         * modules/unistd-safer (Makefile.am): Likewise.
67163         * modules/unlinkdir (Makefile.am): Likewise.
67164         * modules/unlocked-io (Makefile.am): Likewise.
67165         * modules/userspec (Makefile.am): Likewise.
67166         * modules/utime (Makefile.am): Likewise.
67167         * modules/utimecmp (Makefile.am): Likewise.
67168         * modules/utimens (Makefile.am): Likewise.
67169         * modules/vasnprintf (Makefile.am): Likewise.
67170         * modules/vasprintf (Makefile.am): Likewise.
67171         * modules/vsnprintf (Makefile.am): Likewise.
67172         * modules/xalloc (Makefile.am): Likewise.
67173         * modules/xgetcwd (Makefile.am): Likewise.
67174         * modules/xnanosleep (Makefile.am): Likewise.
67175         * modules/xreadlink (Makefile.am): Likewise.
67176         * modules/xstrtod (Makefile.am): Likewise.
67177         * modules/xstrtol (Makefile.am): Likewise.
67178         * modules/xstrtold (Makefile.am): Likewise.
67179         * modules/yesno (Makefile.am): Likewise.
67180         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67181
67182 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67183
67184         * modules/error (Makefile.am): Distribute files through
67185         EXTRA_DIST, not lib_SOURCES.
67186
67187 2006-10-12  Eric Blake  <ebb9@byu.net>
67188
67189         * modules/error (Makefile.am): Distribute files in /lib.
67190         * modules/obstack (Makefile.am): Likewise.
67191
67192 2006-10-12  Bruno Haible  <bruno@clisp.org>
67193
67194         * modules/acl (Makefile.am): Distribute all files in lib/ through
67195         EXTRA_DIST.
67196         * modules/arcfour (Makefile.am): Likewise.
67197         * modules/arctwo (Makefile.am): Likewise.
67198         * modules/argmatch (Makefile.am): Likewise.
67199         * modules/argz (Makefile.am): Likewise.
67200         * modules/atexit (Makefile.am): Likewise.
67201         * modules/backupfile (Makefile.am): Likewise.
67202         * modules/c-strtod (Makefile.am): Likewise.
67203         * modules/c-strtold (Makefile.am): Likewise.
67204         * modules/calloc (Makefile.am): Likewise.
67205         * modules/canon-host (Makefile.am): Likewise.
67206         * modules/canonicalize (Makefile.am): Likewise.
67207         * modules/chdir-long (Makefile.am): Likewise.
67208         * modules/chdir-safer (Makefile.am): Likewise.
67209         * modules/check-version (Makefile.am): Likewise.
67210         * modules/chown (Makefile.am): Likewise.
67211         * modules/cloexec (Makefile.am): Likewise.
67212         * modules/close-stream (Makefile.am): Likewise.
67213         * modules/closeout (Makefile.am): Likewise.
67214         * modules/crc (Makefile.am): Likewise.
67215         * modules/cycle-check (Makefile.am): Likewise.
67216         * modules/des (Makefile.am): Likewise.
67217         * modules/dirfd (Makefile.am): Likewise.
67218         * modules/dirname (Makefile.am): Likewise.
67219         * modules/dup2 (Makefile.am): Likewise.
67220         * modules/euidaccess (Makefile.am): Likewise.
67221         * modules/exclude (Makefile.am): Likewise.
67222         * modules/exitfail (Makefile.am): Likewise.
67223         * modules/fcntl-safer (Makefile.am): Likewise.
67224         * modules/file-type (Makefile.am): Likewise.
67225         * modules/fileblocks (Makefile.am): Likewise.
67226         * modules/filemode (Makefile.am): Likewise.
67227         * modules/filenamecat (Makefile.am): Likewise.
67228         * modules/fnmatch (Makefile.am): Likewise.
67229         * modules/fopen-safer (Makefile.am): Likewise.
67230         * modules/fpending (Makefile.am): Likewise.
67231         * modules/fprintftime (Makefile.am): Likewise.
67232         * modules/free (Makefile.am): Likewise.
67233         * modules/fsusage (Makefile.am): Likewise.
67234         * modules/ftruncate (Makefile.am): Likewise.
67235         * modules/fts (Makefile.am): Likewise.
67236         * modules/gc (Makefile.am): Likewise.
67237         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67238         * modules/getaddrinfo (Makefile.am): Likewise.
67239         * modules/getcwd (Makefile.am): Likewise.
67240         * modules/getdelim (Makefile.am): Likewise.
67241         * modules/getdomainname (Makefile.am): Likewise.
67242         * modules/getgroups (Makefile.am): Likewise.
67243         * modules/gethostname (Makefile.am): Likewise.
67244         * modules/gethrxtime (Makefile.am): Likewise.
67245         * modules/getline (Makefile.am): Likewise.
67246         * modules/getloadavg (Makefile.am): Likewise.
67247         * modules/getlogin_r (Makefile.am): Likewise.
67248         * modules/getopt (Makefile.am): Likewise.
67249         * modules/getpass (Makefile.am): Likewise.
67250         * modules/getpass-gnu (Makefile.am): Likewise.
67251         * modules/getsubopt (Makefile.am): Likewise.
67252         * modules/gettime (Makefile.am): Likewise.
67253         * modules/gettimeofday (Makefile.am): Likewise.
67254         * modules/getugroups (Makefile.am): Likewise.
67255         * modules/getusershell (Makefile.am): Likewise.
67256         * modules/glob (Makefile.am): Likewise.
67257         * modules/group-member (Makefile.am): Likewise.
67258         * modules/hard-locale (Makefile.am): Likewise.
67259         * modules/hash (Makefile.am): Likewise.
67260         * modules/hmac-md5 (Makefile.am): Likewise.
67261         * modules/hmac-sha1 (Makefile.am): Likewise.
67262         * modules/human (Makefile.am): Likewise.
67263         * modules/idcache (Makefile.am): Likewise.
67264         * modules/imaxabs (Makefile.am): Likewise.
67265         * modules/imaxdiv (Makefile.am): Likewise.
67266         * modules/inet_ntop (Makefile.am): Likewise.
67267         * modules/inet_pton (Makefile.am): Likewise.
67268         * modules/inttostr (Makefile.am): Likewise.
67269         * modules/isapipe (Makefile.am): Likewise.
67270         * modules/lchown (Makefile.am): Likewise.
67271         * modules/long-options (Makefile.am): Likewise.
67272         * modules/lstat (Makefile.am): Likewise.
67273         * modules/malloc (Makefile.am): Likewise.
67274         * modules/mathl (Makefile.am): Likewise.
67275         * modules/mbchar (Makefile.am): Likewise.
67276         * modules/md2 (Makefile.am): Likewise.
67277         * modules/md4 (Makefile.am): Likewise.
67278         * modules/md5 (Makefile.am): Likewise.
67279         * modules/memcasecmp (Makefile.am): Likewise.
67280         * modules/memchr (Makefile.am): Likewise.
67281         * modules/memcmp (Makefile.am): Likewise.
67282         * modules/memcoll (Makefile.am): Likewise.
67283         * modules/memcpy (Makefile.am): Likewise.
67284         * modules/memmem (Makefile.am): Likewise.
67285         * modules/memmove (Makefile.am): Likewise.
67286         * modules/mempcpy (Makefile.am): Likewise.
67287         * modules/memrchr (Makefile.am): Likewise.
67288         * modules/memset (Makefile.am): Likewise.
67289         * modules/memxor (Makefile.am): Likewise.
67290         * modules/mkancesdirs (Makefile.am): Likewise.
67291         * modules/mkdir (Makefile.am): Likewise.
67292         * modules/mkdir-p (Makefile.am): Likewise.
67293         * modules/mkdtemp (Makefile.am): Likewise.
67294         * modules/mkstemp (Makefile.am): Likewise.
67295         * modules/mktime (Makefile.am): Likewise.
67296         * modules/modechange (Makefile.am): Likewise.
67297         * modules/mountlist (Makefile.am): Likewise.
67298         * modules/nanosleep (Makefile.am): Likewise.
67299         * modules/openat (Makefile.am): Likewise.
67300         * modules/pagealign_alloc (Makefile.am): Likewise.
67301         * modules/physmem (Makefile.am): Likewise.
67302         * modules/poll (Makefile.am): Likewise.
67303         * modules/posixtm (Makefile.am): Likewise.
67304         * modules/posixver (Makefile.am): Likewise.
67305         * modules/putenv (Makefile.am): Likewise.
67306         * modules/quote (Makefile.am): Likewise.
67307         * modules/quotearg (Makefile.am): Likewise.
67308         * modules/raise (Makefile.am): Likewise.
67309         * modules/read-file (Makefile.am): Likewise.
67310         * modules/readline (Makefile.am): Likewise.
67311         * modules/readlink (Makefile.am): Likewise.
67312         * modules/readtokens (Makefile.am): Likewise.
67313         * modules/readutmp (Makefile.am): Likewise.
67314         * modules/realloc (Makefile.am): Likewise.
67315         * modules/regex (Makefile.am): Likewise.
67316         * modules/rename (Makefile.am): Likewise.
67317         * modules/rename-dest-slash (Makefile.am): Likewise.
67318         * modules/rijndael (Makefile.am): Likewise.
67319         * modules/rmdir (Makefile.am): Likewise.
67320         * modules/rpmatch (Makefile.am): Likewise.
67321         * modules/safe-read (Makefile.am): Likewise.
67322         * modules/safe-write (Makefile.am): Likewise.
67323         * modules/same (Makefile.am): Likewise.
67324         * modules/save-cwd (Makefile.am): Likewise.
67325         * modules/savedir (Makefile.am): Likewise.
67326         * modules/setenv (Makefile.am): Likewise.
67327         * modules/settime (Makefile.am): Likewise.
67328         * modules/sha1 (Makefile.am): Likewise.
67329         * modules/sig2str (Makefile.am): Likewise.
67330         * modules/snprintf (Makefile.am): Likewise.
67331         * modules/stdlib-safer (Makefile.am): Likewise.
67332         * modules/stpcpy (Makefile.am): Likewise.
67333         * modules/stpncpy (Makefile.am): Likewise.
67334         * modules/strcase (Makefile.am): Likewise.
67335         * modules/strcasestr (Makefile.am): Likewise.
67336         * modules/strchrnul (Makefile.am): Likewise.
67337         * modules/strcspn (Makefile.am): Likewise.
67338         * modules/strdup (Makefile.am): Likewise.
67339         * modules/strerror (Makefile.am): Likewise.
67340         * modules/strftime (Makefile.am): Likewise.
67341         * modules/strndup (Makefile.am): Likewise.
67342         * modules/strnlen (Makefile.am): Likewise.
67343         * modules/strpbrk (Makefile.am): Likewise.
67344         * modules/strsep (Makefile.am): Likewise.
67345         * modules/strstr (Makefile.am): Likewise.
67346         * modules/strtod (Makefile.am): Likewise.
67347         * modules/strtoimax (Makefile.am): Likewise.
67348         * modules/strtok_r (Makefile.am): Likewise.
67349         * modules/strtol (Makefile.am): Likewise.
67350         * modules/strtoll (Makefile.am): Likewise.
67351         * modules/strtoul (Makefile.am): Likewise.
67352         * modules/strtoull (Makefile.am): Likewise.
67353         * modules/strtoumax (Makefile.am): Likewise.
67354         * modules/strverscmp (Makefile.am): Likewise.
67355         * modules/time_r (Makefile.am): Likewise.
67356         * modules/timegm (Makefile.am): Likewise.
67357         * modules/tmpfile-safer (Makefile.am): Likewise.
67358         * modules/unistd-safer (Makefile.am): Likewise.
67359         * modules/unlinkdir (Makefile.am): Likewise.
67360         * modules/userspec (Makefile.am): Likewise.
67361         * modules/utime (Makefile.am): Likewise.
67362         * modules/utimecmp (Makefile.am): Likewise.
67363         * modules/utimens (Makefile.am): Likewise.
67364         * modules/vasnprintf (Makefile.am): Likewise.
67365         * modules/vasprintf (Makefile.am): Likewise.
67366         * modules/vsnprintf (Makefile.am): Likewise.
67367         * modules/xalloc (Makefile.am): Likewise.
67368         * modules/xgetcwd (Makefile.am): Likewise.
67369         * modules/xnanosleep (Makefile.am): Likewise.
67370         * modules/xreadlink (Makefile.am): Likewise.
67371         * modules/xstrtod (Makefile.am): Likewise.
67372         * modules/xstrtol (Makefile.am): Likewise.
67373         * modules/xstrtold (Makefile.am): Likewise.
67374         * modules/yesno (Makefile.am): Likewise.
67375
67376 2006-10-12  Jim Meyering  <jim@meyering.net>
67377
67378         * m4/getloadavg.m4: Revert the change below.
67379
67380         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67381         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67382         fail with a symlink, which is what coreutils' ./bootstrap now
67383         creates by default.
67384
67385 2006-10-12  Bruno Haible  <bruno@clisp.org>
67386
67387         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67388         mingw.
67389         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67390         MSVC and mingw explicitly.
67391
67392 2006-10-11  Simon Josefsson  <jas@extundo.com>
67393             Bruno Haible  <bruno@clisp.org>
67394
67395         Add support for multiple gnulib-tool invocations in the scope of a
67396         single configure.ac file.
67397         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67398         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67399         with the same contents as the _LIBADD variable.
67400         (func_emit_initmacro_start, func_emit_initmacro_end,
67401         func_emit_initmacro_done): New functions.
67402         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67403         gl_LIBOBJS and gl_LTLIBOBJS.
67404
67405 2006-10-11  Bruno Haible  <bruno@clisp.org>
67406
67407         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67408         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67409         autoreconf. Instead, invoke autopoint explicitly but move back the
67410         *.m4 files from gnulib.
67411
67412 2006-10-11  Bruno Haible  <bruno@clisp.org>
67413
67414         * gnulib-tool (func_usage): Make module names after --create-testdir
67415         optional.
67416         (func_create_testdir): If no module was specified, use nearly all
67417         modules.
67418
67419 2006-10-12  Jim Meyering  <jim@meyering.net>
67420
67421         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67422         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67423         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67424         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67425         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67426         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67427         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67428         (fts_set_stat_required): New function.
67429         (fts_open): Defer the calls to fts_stat, if possible or requested.
67430         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67431         into fts_stat itself.
67432         (fts_read): Perform any required (deferred) fts_stat call.
67433         (fts_build): Likewise, for the directory we're about to open and read.
67434         In the readdir loop, carefully decide whether each entry will require
67435         an eventual call to fts_stat, using dirent.d_type info if available.
67436         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67437         a command line argument into this function.  Update all callers.
67438         Map a return value of FTS_DOT to FTS_D for a command line argument.
67439         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67440         Thanks to Miklos Szeredi for his tenacity and for the initial
67441         bug report about "find" failing on a FUSE-based file system.
67442
67443         * lib/fts.c (fts_open): Use consistent indentation.
67444
67445 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67446
67447         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67448         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67449         reported by Jim Meyering.  All uses of cache variables renamed
67450         to match Autoconf's.
67451         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67452         the other one.
67453
67454         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67455         Fix misspelling in diagnostic.
67456
67457 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67458
67459         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67460         defined.  Problem reported by Matthew Woehlke.
67461
67462         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67463         Add support for Tandem NonStop R series.
67464         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67465         Use new macro.
67466
67467         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67468         (has_trailing_slash): Omit size arg; all callers changed.
67469         Omit 'inline', since it doesn't help performance and we'd
67470         need to configure it.
67471         Don't count //, ///, etc. as having a trailing slash.
67472         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67473         (rpl_rename_dest_slash): On failure, use rename's errno rather
67474         than (in some cases) an incorrect or junk errno.
67475         Simplify code by removing need to compute length; this does
67476         cause it to make two passes instead of one over the file name,
67477         but it's worth it.
67478
67479         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67480         change, since Autoconf's version may no longer be appropriate now
67481         that we are using CVS Autoconf's version.  Add support for Tandem.
67482
67483 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67484             Bruno Haible  <bruno@clisp.org>
67485
67486         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67487         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67488         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67489         gl_AC_TYPE_LONG_LONG.
67490
67491         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67492         instead of HAVE_LONG_LONG.
67493         * lib/printf-args.c (printf_fetchargs): Likewise.
67494         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67495         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67496         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67497         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67498         gl_AC_TYPE_LONG_LONG.
67499
67500 2006-10-11  Bruno Haible  <bruno@clisp.org>
67501
67502         * m4/longlong.m4: Add comments.
67503         * m4/ulonglong.m4: Likewise.
67504
67505 2006-10-10  Bruno Haible  <bruno@clisp.org>
67506
67507         Make it possible to #define stpcpy, strdup to aliases.
67508         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67509         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67510
67511 2006-10-10  Bruno Haible  <bruno@clisp.org>
67512
67513         Make it possible to #define gcd to an alias.
67514         * lib/gcd.c: Include config.h.
67515
67516 2006-10-10  Bruno Haible  <bruno@clisp.org>
67517
67518         Make it possible to #define c_isascii to an alias.
67519         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67520         defined. Undefine the macros before defining them, to avoid gcc
67521         warnings.
67522         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67523         define NO_C_CTYPE_MACROS early.
67524
67525 2006-10-10  Bruno Haible  <bruno@clisp.org>
67526
67527         Make it possible to #define set_program_name to an alias.
67528         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67529         ENABLE_RELOCATABLE early.
67530
67531 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67532
67533         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67534         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67535         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67536         More generally, don't assume that 64-bit signed int is available
67537         if unsigned int is, and vice versa.
67538         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67539         unsigned symbols, not on their signed counterparts.
67540         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67541         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67542         (UINT64_C, UINTMAX_C):
67543         Likewise.
67544         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67545         unsigned counterparts.
67546         (Have_long_long, Unsigned): New macros.
67547         (Int): Renamed from INT.
67548         (strtoimax): Use the new macros.
67549         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67550         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67551         * modules/inttypes (inttypes.h): Substitute
67552         HAVE_UNSIGNED_LONG_LONG_INT.
67553         * modules/stdint (stdint.h): Likewise.
67554         (Files): Add m4/ulonglong.m4.
67555
67556 2006-10-10  Bruno Haible  <bruno@clisp.org>
67557
67558         Fix a gcc -Wshadow warning.
67559         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67560         to 'bucket'.
67561         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67562         gl_linked_indexof_from_to): Likewise.
67563         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67564         Likewise.
67565         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67566         Likewise.
67567         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67568         Reported by Eric Blake.
67569
67570 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67571
67572         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67573         for NetBSD.  Problem reported by Bruno Haible.
67574
67575 2006-10-09  Jim Meyering  <jim@meyering.net>
67576
67577         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67578         Patch from Bruno Haible.
67579
67580 2006-10-09  Jim Meyering  <jim@meyering.net>
67581
67582         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67583         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67584         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67585
67586 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67587
67588         Don't include <config.h> twice; this doesn't work in some cases,
67589         e.g., when config.h has "#define intmax_t long long int" and
67590         we include <config.h>, <inttypes.h>, <config.h> in that order.
67591         Problem reported by Matthew Woehlke in:
67592         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67593         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67594         * lib/fts-cycle.c: Don't include config.h.
67595         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67596         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67597         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67598         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67599         inttypes.h.
67600         * lib/xstrtoumax.c: Likewise.
67601         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67602         __strtol and the like, so that this module is more like its siblings.
67603         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67604         Remove; no longer needed now that we assume gnulib inttypes.h.
67605
67606 2006-10-08  Bruno Haible  <bruno@clisp.org>
67607
67608         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67609         option.
67610
67611 2006-10-07  Jim Meyering  <jim@meyering.net>
67612
67613         * modules/inttypes (inttypes.h): Revert what seems to have been
67614         an inadvertent part of today's change: use "|", not "/" in the
67615         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67616
67617 2006-10-07  Bruno Haible  <bruno@clisp.org>
67618
67619         * modules/sublist: New file.
67620
67621 2006-10-07  Bruno Haible  <bruno@clisp.org>
67622
67623         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67624         * modules/argz (argz.h): Likewise.
67625         * modules/arpa_inet (arpa/inet.h): Likewise.
67626         * modules/byteswap (byteswap.h): Likewise.
67627         * modules/configmake (configmake.h): Likewise.
67628         * modules/fcntl (fcntl.h): Likewise.
67629         * modules/fnmatch (fnmatch.h): Likewise.
67630         * modules/getopt (getopt.h): Likewise.
67631         * modules/glob (glob.h): Likewise.
67632         * modules/inttypes (inttypes.h): Likewise.
67633         * modules/netinet_in (netinet/in.h): Likewise.
67634         * modules/poll (poll.h): Likewise.
67635         * modules/stdbool (stdbool.h): Likewise.
67636         * modules/stdint (stdint.h): Likewise.
67637         * modules/sys_select (sys/select.h): Likewise.
67638         * modules/sys_socket (sys/socket.h): Likewise.
67639         * modules/sys_stat (sys/stat.h): Likewise.
67640         * modules/sysexits (sysexits.h): Likewise.
67641         * modules/unistd (unistd.h): Likewise.
67642         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67643         Add a "DO NOT EDIT" comment to the generated file.
67644         (func_import): Likewise for gnulib-comp.m4.
67645
67646 2006-10-07  Bruno Haible  <bruno@clisp.org>
67647
67648         * lib/gl_sublist.h: New file.
67649         * lib/gl_sublist.c: New file.
67650
67651 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67652
67653         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67654         name (relative to the original working directory) and the file
67655         name component (relative to the temporary working directory).  All
67656         callers changed.
67657         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67658         * lib/mkdir-p.c (make_dir_parents): Likewise.
67659         * lib/mkdir-p.h (make_dir_parents): Likewise.
67660
67661 2006-10-06  Eric Blake  <ebb9@byu.net>
67662
67663         Define several macros for use by the clean-temp module.
67664         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67665         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67666         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67667
67668         * lib/clean-temp.h (close_stream_temp): New declaration.
67669         * lib/clean-temp.c (includes): Pull in headers according to what
67670         other modules are in use.
67671         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67672
67673 2006-10-06  Bruno Haible  <bruno@clisp.org>
67674
67675         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67676         instead of fopen, fwriteerror.
67677
67678 2006-10-06  Bruno Haible  <bruno@clisp.org>
67679
67680         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67681         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67682         int.
67683         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67684         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67685         Return an error indicator.
67686         Suggested by Eric Blake.
67687
67688 2006-10-06  Bruno Haible  <bruno@clisp.org>
67689
67690         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67691         Reported by Eric Blake.
67692
67693 2006-10-06  Bruno Haible  <bruno@clisp.org>
67694
67695         * modules/closeout (Description): Mention stderr too.
67696
67697 2006-10-06  Bruno Haible  <bruno@clisp.org>
67698         and Paul Eggert  <eggert@cs.ucla.edu>
67699
67700         * lib/closeout.c (close_stdout): Also close stderr.
67701         * lib/closeout.h: Update comment.
67702
67703 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67704
67705         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67706         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67707         * lib/dirchownmod.c: Include lchown.h.
67708         * lib/lchown.c: Don't include files that lchown.h now includes.
67709         Don't declare chown, since lchown.h now does that.
67710         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67711         (lchown): Define to rpl_chown if lchown is declared but
67712         does not exist.  Declare using a prototype if lchown is not
67713         declared.  Add a copyright notice.
67714         * lib/mkstemp.h: Include <unistd.h>.
67715         * lib/openat.c: Include lchown.h.
67716
67717         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67718         we now test for that separately.
67719         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67720         rather than O_NOFOLLOW, when testing whether it's possible to
67721         avoid a race condition reliably.
67722         * lib/savewd.c (savewd_chdir): Likewise.
67723
67724         Remove macros that are no longer needed now that stdint.h is
67725         reliable.
67726         * lib/fsusage.c (UINTMAX_MAX): Remove.
67727         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67728         * lib/utimecmp.c (SIZE_MAX): Remove.
67729
67730         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67731
67732         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67733         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67734         O_NOATIME works.
67735
67736 2006-10-05  Bruno Haible  <bruno@clisp.org>
67737
67738         * lib/gl_list.h (gl_sortedlist_search_from_to,
67739         gl_sortedlist_indexof_from_to): New declarations.
67740         (gl_list_implementation): New fields sortedlist_search_from_to,
67741         sortedlist_indexof_from_to.
67742         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67743         inline functions.
67744         * lib/gl_list.c (gl_sortedlist_search_from_to,
67745         gl_sortedlist_indexof_from_to): New functions.
67746         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67747         function.
67748         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67749         (gl_array_sortedlist_search_from_to): New function.
67750         (gl_array_list_implementation): Update.
67751         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67752         function.
67753         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67754         (gl_carray_sortedlist_search_from_to): New function.
67755         (gl_carray_list_implementation): Update.
67756         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67757         gl_linked_sortedlist_indexof_from_to): New functions.
67758         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67759         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67760         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67761         gl_tree_sortedlist_indexof_from_to): New functions.
67762         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67763         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67764         Update.
67765         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67766         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67767         Update.
67768
67769 2006-10-05  Bruno Haible  <bruno@clisp.org>
67770
67771         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67772         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67773         (struct gl_list_implementation): Add fields search_from_to,
67774         indexof_from_to. Remove fields search, indexof.
67775         (gl_list_search): Use the search_from_to method.
67776         (gl_list_search_from, gl_list_search_from_to): New functions.
67777         (gl_list_indexof): Use the indexof_from_to method.
67778         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67779         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67780         (gl_list_search_from, gl_list_search_from_to): New functions.
67781         (gl_list_indexof): Use the indexof_from_to method.
67782         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67783         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67784         gl_array_indexof. Add start_index, end_index arguments.
67785         (gl_array_search_from_to): Renamed from gl_array_search. Add
67786         start_index, end_index arguments.
67787         (gl_array_remove, gl_array_list_implementation): Update.
67788         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67789         gl_carray_indexof. Add start_index, end_index arguments.
67790         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67791         start_index, end_index arguments.
67792         (gl_carray_remove, gl_carray_list_implementation): Update.
67793         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67794         gl_linked_search. Add start_index, end_index arguments.
67795         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67796         start_index, end_index arguments.
67797         (gl_linked_remove): Update.
67798         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67799         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67800         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67801         field to 'size_t'.
67802         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67803         gl_tree_search. Add start_index, end_index arguments.
67804         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67805         start_index, end_index arguments.
67806         (gl_tree_remove): Update.
67807         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67808         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67809         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67810         function.
67811         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67812         gl_tree_search. Add start_index, end_index arguments.
67813         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67814         start_index, end_index arguments.
67815         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67816         Update.
67817         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67818
67819 2006-10-05  Bruno Haible  <bruno@clisp.org>
67820
67821         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67822
67823         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67824         fwriteerror_temp): New declarations.
67825         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67826         (descriptors): New variable.
67827         (cleanup): First, close the descriptors.
67828         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67829         fclose_temp, fwriteerror_temp): New functions.
67830
67831 2006-10-04  Jim Meyering  <jim@meyering.net>
67832
67833         * lib/fts.c (fts_open): Tiny comment change.
67834
67835 2006-10-04  Bruno Haible  <bruno@clisp.org>
67836
67837         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67838         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67839         gl_LOCK_BODY.
67840         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67841         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67842         gl_LOCK_EARLY_BODY.
67843         (gl_LOCK): Require gl_LOCK_BODY.
67844
67845 2006-10-04  Bruno Haible  <bruno@clisp.org>
67846
67847         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67848         (gl_oset_search_atleast): New declaration.
67849         (struct gl_oset_implementation): Add field 'search_atleast'.
67850         (gl_oset_search_atleast): New inline function.
67851         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67852         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67853         (gl_array_oset_implementation): Update.
67854         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67855         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67856         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67857
67858 2006-10-04  Bruno Haible  <bruno@clisp.org>
67859
67860         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67861
67862 2006-10-03  Bruno Haible  <bruno@clisp.org>
67863
67864         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67865         from gl_avltreehash_list_implementation.
67866
67867 2006-10-03  Bruno Haible  <bruno@clisp.org>
67868
67869         * lib/gl_oset.c (gl_oset_add): Fix return type.
67870
67871 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67872
67873         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67874
67875 2006-10-02  Eric Blake  <ebb9@byu.net>
67876
67877         * modules/strnlen (Depends-on): Add extensions.
67878
67879 2006-10-02  Eric Blake  <ebb9@byu.net>
67880
67881         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67882         definition in 2.60+.
67883
67884 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67885
67886         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67887         checks.
67888
67889 2006-10-02  Bruno Haible  <bruno@clisp.org>
67890
67891         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67892         to the AUTOMAKE_OPTIONS.
67893         Reported by Jim Meyering.
67894
67895 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67896
67897         Work around bug in Solaris 10 /proc file system:
67898         /proc/self/fd/NNN/.. isn't the parent directory of
67899         the directory whose file descriptor is NNN.  This needs to
67900         be worked around at run time, not compile time, since a
67901         program might be built on Solaris 8, where things work, and
67902         run on Solaris 10.
67903         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67904         to use the following interface instead:
67905         (OPENAT_BUFFER_SIZE): New macro.
67906         (openat_proc_name): New function.
67907         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67908         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67909         Likewise.
67910         * lib/openat-proc.c: New file.
67911         * modules/openat (Files): Add lib/openat-proc.c.
67912         (Depends-on): Add same-inode, stdbool.
67913         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67914
67915 2006-09-29  Bruno Haible  <bruno@clisp.org>
67916
67917         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67918         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67919         argument. Set stdout_closed before testing for ferror, not after.
67920         (fwriteerror, fwriteerror_no_ebadf): New functions.
67921
67922 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67923
67924         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67925
67926 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67927
67928         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67929         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67930
67931 2006-09-28  Jim Meyering  <jim@meyering.net>
67932
67933         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67934         Include <unistd.h>.
67935
67936 2006-09-28  Bruno Haible  <bruno@clisp.org>
67937
67938         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67939         * modules/linkedhash-list (Depends-on): Likewise.
67940         * modules/rbtreehash-list (Depends-on): Likewise.
67941
67942 2006-09-28  Bruno Haible  <bruno@clisp.org>
67943
67944         * lib/strndup.h: Simplify the redefinition of strndup.
67945         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67946         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67947
67948 2006-09-28  Bruno Haible  <bruno@clisp.org>
67949
67950         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67951         * lib/gl_linkedhash_list.c: Likewise.
67952         * lib/gl_rbtreehash_list.c: Likewise.
67953
67954 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67955
67956         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67957         getaddrinfo.
67958
67959         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67960         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67961         it causes <stdio_ext.h> to cause a compile-time error.
67962         Problem reported by Nelson H. F. Beebe.
67963         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67964         of HAVE_DECL___PENDING.
67965
67966         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67967         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67968         declaration.
67969
67970 2006-09-27  Jim Meyering  <jim@meyering.net>
67971
67972         This file could end up with a definition for a function
67973         named __strndup, rather than rpl_strndup on a system with
67974         incomplete weak_alias support.
67975         * lib/strndup.c (strndup): Rename from __strndup.
67976         Remove #defines that used to map __strndup to strndup.
67977         Don't use K&R prototypes.
67978         Remove LIBC-related code, since this file is not sync'd with glibc.
67979         * lib/strndup.h: Revamp, accordingly.
67980         * m4/strndup.m4: Modernize.
67981
67982 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67983
67984         * modules/savewd (Depends-on): Add 'raise'.
67985         * lib/savewd.c: Include <signal.h>, for 'raise'.
67986
67987 2006-09-26  Jim Meyering  <jim@meyering.net>
67988
67989         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67990         when we detect Darwin 8.7.0's acl_get_file bug.
67991         Rearrange to perform the new (below) run-test while $LIBS
67992         contains any acl-related library.  Set USE_ACL at the end.
67993         (gl_ACL_GET_FILE): New function.
67994
67995 2006-09-26  Eric Blake  <ebb9@byu.net>
67996
67997         * lib/verror.c: Include <config.h> unconditionally.
67998
67999 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68000
68001         * modules/clock-time (Maintainer): Add self.
68002         * modules/getlogin_r (Depends-on): Add extensions.
68003
68004 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68005
68006         * modules/clock-time: New module.
68007         * modules/nanosleep (Depends-on): Add clock-time.
68008         * modules/gethrxtime (Depends-on): Likewise.
68009         * modules/gettime (Depends-on): Likewise.
68010         * modules/settime (Depends-on): Likewise.
68011
68012         * modules/fts-lgpl: Depend on openat.
68013         * modules/mkancesdirs: Depend on savewd.
68014         * modules/mkdir-p: Likewise.
68015
68016 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68017
68018         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68019
68020         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68021         `gl_have_arbitrary_file_name_length_limit' to
68022         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68023         actually works between configure runs.
68024
68025 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68026             Bruno Haible  <bruno@clisp.org>
68027
68028         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68029
68030 2006-09-25  Jim Meyering  <jim@meyering.net>
68031
68032         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68033         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68034
68035 2006-09-25  Eric Blake  <ebb9@byu.net>
68036
68037         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68038         exec's in 2006-09-18 patch when shuffling fds.
68039
68040 2006-09-25  Bruno Haible  <bruno@clisp.org>
68041
68042         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68043         Reported by Jim Meyering.
68044
68045 2006-09-24  Jim Meyering  <jim@meyering.net>
68046
68047         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68048         compare a pointer against a literal "0".  That caused failures with
68049         at least HP-UX's hpcc.
68050
68051 2006-09-22  Simon Josefsson  <jas@extundo.com>
68052
68053         * modules/gc-sha1:
68054         * modules/gc-md4:
68055         * modules/gc-hmac-sha1:
68056         * modules/gc-hmac-md5:
68057         * modules/gc-des:
68058         * modules/gc-arcfour: Distribute more files.
68059
68060 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68061
68062         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68063         (gl_linked_iterator_from_to): Initialize struct completely.
68064         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68065         (gl_tree_iterator_from_to): Likewise
68066         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68067         * lib/gl_array_list.c [lint] (gl_array_iterator)
68068         (gl_array_iterator_from_to): Likewise.
68069         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68070         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68071         (gl_carray_iterator_from_to): Likewise.
68072
68073         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68074         * lib/md4.c (md4_process_block): Remove unused variable.
68075         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68076         parentheses for clarity.
68077
68078 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68079
68080         * modules/bison-i18n (Depends-on): Add gettext.
68081
68082 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68083
68084         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68085         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68086         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68087         also add missing comma that caused broken test.
68088         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68089         stdlib.h, for `abort'.
68090         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68091         variables.
68092         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68093         include unistd.h if present, for `rmdir'.
68094         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68095         variables.
68096         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68097         in the process include standard headers for prototypes.
68098         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68099         gets declared on GNU/Linux.
68100         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68101         unistd.h, for `rmdir'.
68102         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68103
68104         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68105         always true.
68106         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68107
68108         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68109
68110 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68111
68112         * gnulib-tool (func_version): Create output all at once.  This
68113         may help avoid triggering unnecessary SIGPIPEs, and at any
68114         rate it doesn't hurt.
68115
68116 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68117             Bruno Haible  <bruno@clisp.org>
68118
68119         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68120         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68121         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68122
68123         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68124         (gl_FUNC_VASPRINTF): Invoke it.
68125
68126 2006-09-22  Bruno Haible  <bruno@clisp.org>
68127
68128         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68129         getloadavg.c as first argument.
68130
68131 2006-09-22  Bruno Haible  <bruno@clisp.org>
68132
68133         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68134         at the beginning of the gl_INIT macro.
68135         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68136         gl_GETLOADAVG.
68137
68138 2006-09-22  Bruno Haible  <bruno@clisp.org>
68139
68140         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68141         module.
68142         Suggested by Ralf Wildenhues.
68143
68144 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68145
68146         Import this patch from libc:
68147
68148         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68149
68150         * lib/regex_internal.c (re_string_reconstruct): Handle
68151         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68152         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68153         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68154         re_string_context_at.
68155
68156         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68157         now requires it.
68158         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68159         gl_REGEX now does it for us.
68160         (gl_REGEX): Add test taken from
68161         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68162
68163         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68164         Check that large offsets work.  Modernize Autoconf usages.
68165         Prefer "yes" to mean a good thing rather than a bad.
68166         Don't put "#define mkstemp" in config.h, as this might interfere
68167         with standard system headers that "#define mkstemp mkstemp64".
68168
68169         * modules/mkstemp (Depends-on): Add extensions, so that
68170         mkstemp is visible on some platforms.
68171         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68172         (Include): Change to "mkstemp.h" from <stdlib.h>.
68173         (Files): Add mkstemp.h.
68174
68175         * lib/mkstemp.h: New file, since some standard headers
68176         #define mkstemp.
68177         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68178         Include "mkstemp.h".
68179         Make the _LIBC code resemble glibc original more,
68180         e.g., use K&R style.
68181         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68182         (mkstemp): Remove, since mkstemp.h does this for us.
68183         * lib/stdlib--.h: Include mkstemp.h.
68184
68185         Import this patch from libc:
68186
68187         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68188
68189         * lib/tempname.c (__gen_tempname): Change attempts_min
68190         into a macro.  Use preprocessor to decide how to initialize
68191         attempts [Coverity CID 67].
68192
68193 2006-09-20  Bruno Haible  <bruno@clisp.org>
68194
68195         * lib/mkdtemp.c: Import from libc.
68196         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68197                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68198                 attempts_min into a macro.  Use preprocessor to decide how to
68199                 initialize attempts [Coverity CID 67].
68200         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68201                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68202                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68203
68204 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68205
68206         * gnulib-tool (func_exit): New function, to allow to pass the
68207         exit status portably through the trap.  Use everywhere.
68208         (--help, --version): Signal a write error.
68209         (trap): catch SIGPIPE, for write errors.
68210         Exit at the end of the trap, with the correct exit status.
68211
68212 2006-09-19  Karl Berry  <karl@gnu.org>
68213
68214         * doc/gnulib.texi: note about the license texinfo files.
68215
68216 2006-09-19  Eric Blake  <ebb9@byu.net>
68217
68218         * gnulib-tool: Avoid space-tab.
68219
68220 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68221
68222         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68223         that prevented coreutils 6.1 from building.  Problem reported
68224         by Petter Reinholdtsen.
68225
68226 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68227
68228         * gnulib-tool (avoidlist): Fix typo that broke options like
68229         --avoid=lock that are used by coreutils bootstrap.
68230
68231 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68232
68233         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68234         more systematically.
68235
68236 2006-09-18  Jim Meyering  <jim@meyering.net>
68237
68238         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68239
68240 2006-09-18  Bruno Haible  <bruno@clisp.org>
68241
68242         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68243
68244 2006-09-18  Bruno Haible  <bruno@clisp.org>
68245
68246         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68247         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68248         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68249         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68250         * m4/gettext.m4: Require autoconf >= 2.52.
68251         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68252         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68253         of gl_cv_header_inttypes_h.
68254
68255 2006-09-18  Bruno Haible  <bruno@clisp.org>
68256
68257         * lib/javaversion.c: Include configmake.h.
68258
68259 2006-09-18  Bruno Haible  <bruno@clisp.org>
68260
68261         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68262         avoid that the while loops be executed in a subshell.
68263
68264 2006-09-18  Bruno Haible  <bruno@clisp.org>
68265
68266         * MODULES.html.sh (func_module): Break long lines.
68267         Suggested by Bruce Korb <bkorb@gnu.org>.
68268
68269 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68270
68271         Speed up by a factor of 1.12.
68272         * gnulib-tool (nl): New variable.
68273         (func_import): Rewrite include directive extraction to only read each
68274         directive once.
68275
68276 2006-09-17  Bruno Haible  <bruno@clisp.org>
68277
68278         * modules/javaversion (Makefile.am): Remove DEFS setting.
68279         (Depends-on): Add configmake, for PKGDATADIR definition.
68280
68281 2006-09-17  Bruno Haible  <bruno@clisp.org>
68282
68283         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68284
68285 2006-09-17  Bruno Haible  <bruno@clisp.org>
68286
68287         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68288         (func_modules_transitive_closure, func_modules_add_dummy,
68289         func_modules_to_filelist, func_import, func_create_testdir,
68290         func_create_megatestdir, ...): Use it wherever possible.
68291         Suggested by Ralf Wildenhues.
68292
68293 2006-09-16  Karl Berry  <karl@gnu.org>
68294
68295         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68296         to avoid sectioning errors.
68297         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68298         [ifinfo]: blank line after @center-ed titles.
68299         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68300         Spell FSF address consistently with others.
68301         (These changes approved by rms.)
68302
68303 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68304
68305         Speed up by a factor of 1.61.
68306         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68307         already checked module names again.
68308
68309 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68310
68311         Speed up by a factor of 1.13.
68312         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68313         for new_files, and the input to func_add_or_update.
68314
68315 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68316
68317         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68318         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68319
68320 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68321
68322         * modules/mkancesdirs (Depends-on): Add fcntl.
68323         * modules/savewd: New file.
68324         * MODULES.html.sh (File system functions): Add savewd.
68325
68326         * modules/configmake (Makefile.am): Add support for the
68327         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68328
68329 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68330
68331         * m4/savewd.m4: New file.
68332
68333 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68334
68335         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68336         (dirchownmod): New arg FD.  All callers changed.
68337         Use FD rather than opening the directory ourself, as opening is
68338         now the caller's responsibility.
68339         * lib/dirchownmod.h: Likewise.
68340         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68341         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68342         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68343         (test_dir): Remove.
68344         (mkancesdirs): Return length of prefix of FILE that has already
68345         been made, or -2 if there is a child doing the work.  Redo
68346         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68347         ".", and treat ".." specially since it might stray back into
68348         already-created areas.  Use a subprocess if necessary.  New arg
68349         WD; all users changed.  MAKE_DIR function should now return 1
68350         if it creates a directory that is not readable.  Return -2 if
68351         a child process is spun off.
68352         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68353         Adjust signature to match code.
68354         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68355         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68356         all users changed.
68357         * lib/savewd.c, lib/savewd.h: New files.
68358
68359 2006-09-15  Jim Meyering  <jim@meyering.net>
68360
68361         * modules/rename-dest-slash: New module.
68362         * MODULES.html.sh (posix_compat): Add it here.
68363
68364         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68365
68366 2006-09-15  Jim Meyering  <jim@meyering.net>
68367
68368         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68369         file.
68370
68371         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68372
68373 2006-09-15  Jim Meyering  <jim@meyering.net>
68374
68375         * lib/rename-dest-slash.c (has_trailing_slash): Use
68376         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68377         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68378         test before testing whether SRC is a directory.
68379         Suggestions from Bruno Haible.
68380
68381         Avoid a warning about an unused variable.
68382         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68383         into the #ifdef block where it's used.
68384
68385         * lib/rename-dest-slash.c: New file.
68386
68387 2006-09-14  Bruno Haible  <bruno@clisp.org>
68388
68389         * lib/allocsa.c: Include <config.h> unconditionally.
68390         * lib/asnprintf.c: Likewise.
68391         * lib/asprintf.c: Likewise.
68392         * lib/c-strcasecmp.c: Likewise.
68393         * lib/c-strcasestr.c: Likewise.
68394         * lib/c-strncasecmp.c: Likewise.
68395         * lib/c-strstr.c: Likewise.
68396         * lib/classpath.c: Likewise.
68397         * lib/clean-temp.c: Likewise.
68398         * lib/concatpath.c: Likewise.
68399         * lib/copy-file.c: Likewise.
68400         * lib/csharpcomp.c: Likewise.
68401         * lib/csharpexec.c: Likewise.
68402         * lib/execute.c: Likewise.
68403         * lib/fatal-signal.c: Likewise.
68404         * lib/findprog.c: Likewise.
68405         * lib/fwriteerror.c: Likewise.
68406         * lib/gl_array_list.c: Likewise.
68407         * lib/gl_array_oset.c: Likewise.
68408         * lib/gl_avltree_list.c: Likewise.
68409         * lib/gl_avltree_oset.c: Likewise.
68410         * lib/gl_avltreehash_list.c: Likewise.
68411         * lib/gl_carray_list.c: Likewise.
68412         * lib/gl_linked_list.c: Likewise.
68413         * lib/gl_linkedhash_list.c: Likewise.
68414         * lib/gl_list.c: Likewise.
68415         * lib/gl_oset.c: Likewise.
68416         * lib/gl_rbtree_list.c: Likewise.
68417         * lib/gl_rbtree_oset.c: Likewise.
68418         * lib/gl_rbtreehash_list.c: Likewise.
68419         * lib/imaxabs.c: Likewise.
68420         * lib/imaxdiv.c: Likewise.
68421         * lib/javacomp.c: Likewise.
68422         * lib/javaexec.c: Likewise.
68423         * lib/javaversion.c: Likewise.
68424         * lib/linebreak.c: Likewise.
68425         * lib/localcharset.c: Likewise.
68426         * lib/lock.c: Likewise.
68427         * lib/mbchar.c: Likewise.
68428         * lib/mbswidth.c: Likewise.
68429         * lib/mkdtemp.c: Likewise.
68430         * lib/pipe.c: Likewise.
68431         * lib/printf-args.c: Likewise.
68432         * lib/printf-parse.c: Likewise.
68433         * lib/progname.c: Likewise.
68434         * lib/progreloc.c: Likewise.
68435         * lib/readlink.c: Likewise.
68436         * lib/sh-quote.c: Likewise.
68437         * lib/stpcpy.c: Likewise.
68438         * lib/stpncpy.c: Likewise.
68439         * lib/strcasecmp.c: Likewise.
68440         * lib/strcasestr.c: Likewise.
68441         * lib/strcspn.c: Likewise.
68442         * lib/striconv.c: Likewise.
68443         * lib/strncasecmp.c: Likewise.
68444         * lib/strnlen1.c: Likewise.
68445         * lib/strstr.c: Likewise.
68446         * lib/strtok_r.c: Likewise.
68447         * lib/tls.c: Likewise.
68448         * lib/tmpdir.c: Likewise.
68449         * lib/unicodeio.c: Likewise.
68450         * lib/unsetenv.c: Likewise.
68451         * lib/vasnprintf.c: Likewise.
68452         * lib/vasprintf.c: Likewise.
68453         * lib/wait-process.c: Likewise.
68454         * lib/xallocsa.c: Likewise.
68455         * lib/xsetenv.c: Likewise.
68456         * lib/xstriconv.c: Likewise.
68457
68458 2006-09-13  Simon Josefsson  <jas@extundo.com>
68459
68460         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68461         that internally, suggested by Ralf Wildenhues
68462         <Ralf.Wildenhues@gmx.de>.
68463
68464 2006-09-13  Simon Josefsson  <jas@extundo.com>
68465
68466         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68467         @LIBOBJS@.
68468         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68469
68470 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68471
68472         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68473         longer worry about uses that don't define HAVE_CONFIG_H.
68474         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68475         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68476         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68477         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68478         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68479         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68480         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68481         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68482         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68483         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68484         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68485         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68486         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68487         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68488         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68489         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68490         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68491         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68492         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68493         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68494         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68495         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68496         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68497         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68498         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68499         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68500         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68501         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68502         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68503         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68504         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68505         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68506         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68507         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68508         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68509         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68510         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68511         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68512         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68513         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68514         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68515         Likewise.
68516
68517 2006-09-13  Eric Blake  <ebb9@byu.net>
68518
68519         * lib/getopt.c: Fix typo in last commit.
68520
68521 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68522
68523         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68524         dgettext.
68525
68526 2006-09-12  Jim Meyering  <jim@meyering.net>
68527
68528         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68529         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68530         Reported by Nelson H. F. Beebe.
68531
68532 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68533
68534         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68535         program_invocation_name and program_invocation_short_name are
68536         initialized.
68537         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68538         and program_invocation_short_name to argp.h, so they are visible
68539         to user programs.
68540         * lib/argp.h: Likewise
68541
68542 2006-09-10  Bruno Haible  <bruno@clisp.org>
68543
68544         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68545         m4/inttypes_h.m4, m4/uintmax_t.m4.
68546
68547 2006-09-10  Bruno Haible  <bruno@clisp.org>
68548
68549         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68550         gl_AC_TYPE_UINTMAX_T.
68551
68552 2006-09-10  Bruno Haible  <bruno@clisp.org>
68553
68554         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68555
68556 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68557
68558         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68559         convention.  Text proposed by Bruno Haible.
68560         (struct argp_option): Document the use of N_() wrappers.
68561
68562         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68563         '\v', and translate the two parts separately, instead of feeding
68564         the whole string to gettext.  This allows to exclude
68565         '\v' from the strings visible to the translator by writing doc
68566         strings as N_("..") "\v" N_("..").
68567
68568 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68569
68570         * config/srclist.txt: Undo latest change; the bug was fixed.
68571
68572 2006-09-09  Bruno Haible  <bruno@clisp.org>
68573
68574         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68575         assignments if building a library without libtool.
68576         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68577         in func_emit_lib_Makefile_am.
68578         (func_import): When building a static library libfoo.a, arrange to
68579         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68580         (func_create_testdir): Likewise.
68581         * modules/gc (configure.ac, Makefile.am): If building statically,
68582         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68583         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68584         * modules/striconv (configure.ac, Makefile.am): Likewise.
68585         Based on a suggestion by Ralf Wildenhues.
68586
68587 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68588
68589         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68590         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68591         Also:
68592
68593         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68594         Add year_2050_test to catch glibc bug 2821
68595         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68596
68597         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68598         Prefer #ifdef to #if.
68599
68600         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68601         Return from 'main' instead of calling 'exit'.
68602
68603 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68604
68605         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68606         returned the maximum time_t value rather than (time_t) -1.
68607         Problem originally reported by William Bardwell
68608         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68609
68610         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68611         Moved to here ...
68612         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68613         ... from here.
68614
68615 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68616
68617         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68618         2821 is fixed.
68619
68620 2006-09-08  Jim Meyering  <jim@meyering.net>
68621
68622         Don't make generated files read-only.  That would bother too many
68623         people.  However, do retain the ability to work when targets are
68624         read-only: remove the destination and temporary files before writing
68625         them (when generated via sed or echo), or by using the -f option for
68626         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68627         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68628         * modules/byteswap, modules/configmake, modules/fcntl:
68629         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68630         * modules/localcharset, modules/netinet_in, modules/poll:
68631         * modules/stdbool, modules/stdint, modules/sys_select:
68632         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68633
68634 2006-09-08  Jim Meyering  <jim@meyering.net>
68635
68636         Avoid new build failure on FreeBSD 6.0.
68637         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68638         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68639         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68640
68641 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68642
68643         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68644
68645 2006-09-07  Jim Meyering  <jim@meyering.net>
68646
68647         Fix global typo in last change: use chmod u-w, not chmod u-x.
68648         Spotted by Paul Eggert and Bruce Korb.
68649         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68650         * modules/byteswap, modules/configmake, modules/fcntl:
68651         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68652         * modules/localcharset, modules/netinet_in, modules/poll:
68653         * modules/stdbool, modules/stdint, modules/sys_select:
68654         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68655
68656 2006-09-06  Jim Meyering  <jim@meyering.net>
68657
68658         Make generated files be read-only.
68659         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68660         Ensure that each generated file is now read-only.
68661         * modules/argz: Likewise.
68662         * modules/arpa_inet: Likewise.
68663         * modules/byteswap: Likewise.
68664         * modules/configmake: Likewise.
68665         * modules/fcntl: Likewise.
68666         * modules/fnmatch: Likewise.
68667         * modules/getopt: Likewise.
68668         * modules/glob: Likewise.
68669         * modules/inttypes: Likewise.
68670         * modules/netinet_in: Likewise.
68671         * modules/poll: Likewise.
68672         * modules/stdbool: Likewise.
68673         * modules/stdint: Likewise.
68674         * modules/sys_select: Likewise.
68675         * modules/sys_socket: Likewise.
68676         * modules/sys_stat: Likewise.
68677         * modules/sysexits: Likewise.
68678         * modules/localcharset: Same as above, but continue using temporary
68679         file named "t-$@" (why different?) rather than the "$@-t" used
68680         everywhere else.
68681
68682         * modules/sysexits (Makefile.am): Replace literal occurrences
68683         of "sysexit.h" more readable, and more consistent, "$@".
68684
68685 2006-09-06  Bruno Haible  <bruno@clisp.org>
68686
68687         * modules/striconv: New file.
68688         * modules/xstriconv: New file.
68689         * MODULES.html.sh (Internationalization functions): Add striconv,
68690         xstriconv.
68691
68692 2006-09-06  Bruno Haible  <bruno@clisp.org>
68693
68694         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68695         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68696         not using libtool correctly.
68697
68698 2006-09-06  Bruno Haible  <bruno@clisp.org>
68699
68700         * lib/striconv.h: New file.
68701         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68702         iconvstring.c.
68703         * lib/xstriconv.h: New file.
68704         * lib/xstriconv.c: New file.
68705
68706 2006-09-06  Bruno Haible  <bruno@clisp.org>
68707
68708         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68709         lib_..._LDFLAGS.
68710
68711 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68712
68713         * lib/argz_.h: Sync from Libtool.
68714
68715         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68716                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68717
68718         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68719
68720 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68721
68722         * modules/trim: New file.
68723
68724 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68725
68726         * lib/trim.h: New file.
68727         * lib/trim.c: New file.
68728
68729 2006-09-05  Bruno Haible  <bruno@clisp.org>
68730
68731         * MODULES.html.sh (String handling): Add trim.
68732
68733 2006-09-04  Karl Berry  <karl@gnu.org>
68734
68735         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68736         until next release.
68737
68738 2006-09-03  Bruno Haible  <bruno@clisp.org>
68739
68740         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68741         correctly.
68742
68743 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68744
68745         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68746         not gl_GETLOADAVG.  Omit unneeded semicolons.
68747         Problems reported by Ralf Wildenhues in
68748         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68749         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68750         at the end, which is the usual gnulib style.
68751
68752         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68753         of doing all the work ourselves.
68754         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68755         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68756
68757 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68758
68759         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68760         Problem reported by Ralf Wildenhues in
68761         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68762
68763         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68764         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68765
68766 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68767
68768         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68769         yesterday's patch by changing test -n to test -z.
68770
68771 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68772
68773         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68774         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68775         the former is now obsolescent.
68776
68777         * modules/chdir-long (Depends-on): Add fcntl.
68778
68779 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68780
68781         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68782         obsolescent, and programs should use gnulib instead.
68783         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68784         but with prefixes changed.
68785
68786 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68787
68788         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68789         or stdbool.h, because they might not exist while configuring.
68790
68791         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68792         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68793         does that for us.
68794         (O_DIRECTORY): Remove.
68795
68796 2006-08-31  Eric Blake  <ebb9@byu.net>
68797
68798         * gnulib-tool: Don't let emacs change spaces to TAB.
68799
68800 2006-08-31  Bruno Haible  <bruno@clisp.org>
68801
68802         * gnulib-tool: When calling func_import more than once, do it in a
68803         subshell.
68804         Reported by Eric Blake <ebb9@byu.net>.
68805
68806 2006-08-31  Bruno Haible  <bruno@clisp.org>
68807
68808         * gnulib-tool (nl): Remove variable.
68809         (sed_transform_lib_file): Use more robust test for config-h module.
68810         (func_import): Fix typo in 2006-08-25 patch.
68811
68812 2006-08-31  Bruno Haible  <bruno@clisp.org>
68813
68814         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68815         specified, augment Makefile.am variables instead of assigning them.
68816
68817 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68818
68819         Work around a bug in both the Linux and SunOS 64-bit kernels:
68820         nanosleep mishandles sleeps for longer than 2**31 seconds.
68821         Problem reported by Frank v Waveren in
68822         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68823         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68824         Check for nanosleep bug.
68825         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68826
68827 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68828
68829         Work around a bug in both the Linux and SunOS 64-bit kernels:
68830         nanosleep mishandles sleeps for longer than 2**31 seconds.
68831         Problem reported by Frank v Waveren in
68832         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68833         * lib/nanosleep.c (BILLION): New constant.
68834         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68835         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68836         implementation.
68837
68838 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68839
68840         * modules/nanosleep (Depends-on): Add gettime.
68841
68842 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68843         and Simon Josefsson  <jas@extundo.com>
68844         and Oskar Liljeblad  <oskar@osk.mine.nu>
68845
68846         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68847         * gnulib-tool (func_import): New license type 'unmodifiable license
68848         text'.
68849         * modules/fdl: Use it.  Longer description.
68850         * module/gpl, module/lgpl: New files.
68851
68852 2006-08-30  Jim Meyering  <jim@meyering.net>
68853
68854         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68855         shadowing the parameter.
68856
68857 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68858
68859         Sync from Libtool:
68860
68861         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68862
68863         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68864         sharing with gnulib.  Report by Eric Blake.
68865
68866 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68867
68868         * modules/isapipe: New file.
68869         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68870
68871 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68872
68873         * modules/configmake (Makefile.am): Add a comment, and omit
68874         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68875         by Bruno Haible.
68876
68877 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68878
68879         * m4/isapipe.m4: New file.
68880
68881 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68882
68883         * lib/isapipe.c, lib/isapipe.h: New files.
68884
68885 2006-08-29  Jim Meyering  <jim@meyering.net>
68886
68887         * modules/configmake (Makefile.am): Make configmake.h depend on
68888         Makefile.  Otherwise, a stale configmake.h could hang around.
68889
68890 2006-08-29  Eric Blake  <ebb9@byu.net>
68891
68892         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68893         resolution of upstream bug 3044.
68894
68895 2006-08-29  Bruno Haible  <bruno@clisp.org>
68896
68897         * modules/localcharset (Depends-on): Add configmake.
68898         (Makefile.am): Remove setting of LIBDIR through DEFS.
68899
68900 2006-08-29  Bruno Haible  <bruno@clisp.org>
68901
68902         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68903         defined.
68904
68905 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68906
68907         * modules/fcntl: New file.
68908         * modules/chdir-safer (Depends-on): Add fcntl.
68909         * modules/fts: Likewise.
68910         * modules/mkdir-p: Likewise.
68911
68912         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68913         This undoes the most recent change, since we're now addressing the
68914         problem in a different way.
68915
68916         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68917         into output, since the output might be called Makefile.am even
68918         if $makefile_name is something different.
68919         (func_import): Use $makefile_am rather than
68920         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68921         empty.
68922
68923         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68924
68925 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68926
68927         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68928         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68929         recent change to stdint.m4, since we're now addressing the problem in a
68930         different way.
68931
68932 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68933
68934         * m4/fcntl_h.m4: New file.
68935
68936 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68937
68938         * lib/fcntl_.h: New file.
68939         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68940         the fcntl module.
68941         * lib/dirchownmod.c: Likewise.
68942         * lib/fts.c: Likewise.
68943
68944         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68945         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68946         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68947         just before including <inttypes.h>, to avoid circular inclusion.
68948
68949 2006-08-28  Jim Meyering  <jim@meyering.net>
68950
68951         * doc/visibility.texi: Actually read and correct the grammar of the
68952         sentence affected by yesterday's change.
68953
68954 2006-08-28  Eric Blake  <ebb9@byu.net>
68955
68956         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68957         needs wrapper.
68958
68959 2006-08-28  Eric Blake  <ebb9@byu.net>
68960
68961         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68962
68963 2006-08-28  Eric Blake  <ebb9@byu.net>
68964
68965         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68966
68967 2006-08-28  Bruno Haible  <bruno@clisp.org>
68968
68969         * modules/c-strstr: New file, from GNU gettext.
68970         * MODULES.html.sh (String handling): Add c-strstr.
68971
68972 2006-08-28  Bruno Haible  <bruno@clisp.org>
68973
68974         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68975         macros.
68976         Reported by Eric Blake.
68977
68978 2006-08-28  Bruno Haible  <bruno@clisp.org>
68979
68980         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68981         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68982         * lib/vasprintf.c: Include errno.h, limits.h.
68983         (EOVERFLOW): New fallback definition.
68984         (vasprintf): Test here whether the string length is > INT_MAX.
68985         * lib/vsnprintf.c: Include errno.h, limits.h.
68986         (EOVERFLOW): New fallback definition.
68987         (vsnprintf): Fix bug when generated string was too long for the buffer.
68988         Test here whether the string length is > INT_MAX.
68989
68990 2006-08-28  Bruno Haible  <bruno@clisp.org>
68991
68992         * lib/inttypes_.h (SCNX*): Remove definitions.
68993         Reported by Eric Blake.
68994
68995 2006-08-28  Bruno Haible  <bruno@clisp.org>
68996
68997         * lib/c-strstr.h: New file, from GNU gettext.
68998         * lib/c-strstr.c: New file, from GNU gettext.
68999
69000 2006-08-28  Bruno Haible  <bruno@clisp.org>
69001
69002         * gnulib-tool: Reorder some statements.
69003
69004 2006-08-28  Bruno Haible  <bruno@clisp.org>
69005
69006         * gnulib-tool: New option --makefile-name.
69007         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69008         $makefile_name.
69009         (func_import): Write $makefile_name to the cache file, and read it from
69010         there unless explicitly specified. Use $makefile_name as file name
69011         instead of Makefile.am. Adjust the recommendations accordingly.
69012
69013 2006-08-28  Bruno Haible  <bruno@clisp.org>
69014
69015         * gnulib-tool (func_verify_module): Check against misapplying patch.
69016
69017 2006-08-28  Bruno Haible  <bruno@clisp.org>
69018
69019         * gnulib-tool (func_relativize, func_relconcat): New functions.
69020         Give an error if --local-dir is given with --update.
69021         Remove trailing slashes from $local_gnulib_dir.
69022         (func_import): Store the relativized $local_gnulib_dir in
69023         gnulib-cache.m4, and read it from there if not specified explicitly.
69024
69025 2006-08-28  Bruno Haible  <bruno@clisp.org>
69026
69027         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69028         is the current directory. Respect also $local_gnulib_dir.
69029
69030 2006-08-28  Bruno Haible  <bruno@clisp.org>
69031             Simon Josefsson  <jas@extundo.com>
69032
69033         BeOS portability.
69034         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69035
69036 2006-08-27  Jim Meyering  <jim@meyering.net>
69037
69038         * doc/visibility.texi: Remove duplicate word: "pointer".
69039
69040 2006-08-26  Bruno Haible  <bruno@clisp.org>
69041
69042         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69043         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69044         (Makefile.am): Create inttypes.h from inttypes_.h.
69045         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69046
69047         * modules/imaxabs: New file.
69048
69049         * modules/imaxdiv: New file.
69050
69051 2006-08-26  Bruno Haible  <bruno@clisp.org>
69052
69053         * m4/inttypes.m4: New file.
69054         * m4/_inttypes_h.m4: Remove file.
69055         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69056         PRI_MACROS_BROKEN.
69057         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69058
69059         * m4/imaxabs.m4: New file.
69060
69061         * m4/imaxdiv.m4: New file.
69062
69063 2006-08-26  Bruno Haible  <bruno@clisp.org>
69064
69065         * lib/inttypes_.h: New file.
69066         * lib/inttypes.h: Remove file.
69067         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69068
69069         * lib/imaxabs.c: New file.
69070
69071         * lib/imaxdiv.c: New file.
69072
69073 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69074
69075         New config-h module, so that "make" output needn't be cluttered
69076         by -DHAVE_CONFIG_H.
69077         * MODULES.html.sh (Support for building libraries and executables):
69078         Add config-h.
69079         * modules/config-h: New file.
69080         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69081         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69082         the config-h module is used.
69083
69084         New configmake module, so that "make" output needn't be cluttered
69085         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69086         * MODULES.html.sh (Support for building libraries and executables):
69087         Add configmake.
69088         * modules/configmake: New file.
69089
69090 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69091
69092         * m4/config-h.m4: New file.
69093
69094 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69095
69096         * config/srclist.txt: Add elisp-comp.
69097
69098 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69099
69100         * MODULES.html.sh (Support for building libraries and executables):
69101         Add elisp-comp.
69102         * build-aux/elisp-comp: New file.
69103         * modules/elisp-comp: New file.
69104
69105 2006-08-24  Bruno Haible  <bruno@clisp.org>
69106
69107         * gnulib-tool (func_create_testdir): Use non-default values of
69108         sourcebase and m4base.
69109
69110 2006-08-24  Bruno Haible  <bruno@clisp.org>
69111
69112         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69113         HTML structure.
69114
69115 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69116
69117         * modules/openat (Depends-on): Add lchown.
69118
69119 2006-08-23  Bruno Haible  <bruno@clisp.org>
69120
69121         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69122         of gl_LOCK_EARLY instead of gl_LOCK.
69123
69124 2006-08-23  Bruno Haible  <bruno@clisp.org>
69125
69126         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69127         on OSF/1 to no.
69128         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69129
69130 2006-08-23  Bruno Haible  <bruno@clisp.org>
69131
69132         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69133         as unusable.
69134
69135         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69136         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69137         (gl_LOCK): New macro.
69138
69139 2006-08-22  Simon Josefsson  <jas@extundo.com>
69140
69141         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69142         to md5 module.
69143
69144 2006-08-22  Simon Josefsson  <jas@extundo.com>
69145
69146         * MODULES.html.sh: Add "Support for maintaining and release
69147         projects".
69148
69149         * build-aux/gnupload: New file, from coreutils.
69150
69151 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69152
69153         Avoid the need for AC_LIBSOURCES in m4 macros.
69154         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69155         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69156         * modules/check-version (EXTRA_DIST): Add check-version.h.
69157         * modules/crc (EXTRA_DIST): Add crc.h.
69158         * modules/des (EXTRA_DIST): Add des.h.
69159         * modules/gc (EXTRA_DIST): Add gc.h.
69160         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69161         * modules/getline (EXTRA_DIST): Add getline.h.
69162         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69163         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69164         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69165         * modules/md2 (EXTRA_DIST): Add md2.h.
69166         * modules/md4 (EXTRA_DIST): Add md4.h.
69167         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69168         * modules/read-file (EXTRA_DIST): Add read-file.h.
69169         * modules/readline (EXTRA_DIST): Add readline.h.
69170         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69171         rijndael-api-fst.h.
69172
69173 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69174
69175         * m4/rijndael.m4 (gl_ARCFOUR):
69176         * m4/arctwo.m4 (gl_ARCTWO):
69177         * m4/check-version.m4 (gl_CHECK_VERSION):
69178         * m4/crc.m4 (gl_CRC):
69179         * m4/des.m4 (gl_DES):
69180         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69181         * m4/gc.m4 (gl_GC):
69182         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69183         * m4/getline.m4 (gl_FUNC_GETLINE):
69184         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69185         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69186         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69187         * m4/md2.m4 (gl_MD2):
69188         * m4/md4.m4 (gl_MD4):
69189         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69190         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69191         * m4/readline.m4 (gl_FUNC_READLINE):
69192         * m4/rijndael.m4 (gl_RIJNDAEL):
69193         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69194         to get the necessary .h files and whatnot.
69195
69196 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69197
69198         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69199         gnulib rather than the other way around.
69200         * config/srclistvars.sh (COREUTILS): Remove.
69201
69202 2006-08-22  Jim Meyering  <jim@meyering.net>
69203
69204         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69205
69206         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69207
69208 2006-08-22  Eric Blake  <ebb9@byu.net>
69209
69210         * modules/regexprops-generic: New file.
69211         * MODULES.html.sh (Support for building documentation): List it.
69212
69213 2006-08-22  Eric Blake  <ebb9@byu.net>
69214
69215         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69216         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69217         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69218         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69219
69220 2006-08-22  Bruno Haible  <bruno@clisp.org>
69221
69222         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69223         and lib_LTLIBRARIES like the other lib_* variables.
69224
69225 2006-08-22  Bruno Haible  <bruno@clisp.org>
69226
69227         * build-aux/x-to-1.in: New file, from GNU gettext.
69228
69229 2006-08-22  Bruno Haible  <bruno@clisp.org>
69230
69231         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69232         <utmpx.h> exists.
69233
69234 2006-08-22  Bruno Haible  <bruno@clisp.org>
69235
69236         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69237         <utmpx.h> exists.
69238
69239 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69240
69241         BeOS portability.
69242         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69243         exist.
69244         Problem reported by Bruno Haible.
69245
69246 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69247
69248         Avoid the need for AC_LIBSOURCES in m4 macros.
69249         * modules/acl (EXTRA_DIST): Add acl.h.
69250         * modules/argmatch (Files): Add m4/argmatch.m4.
69251         (configure.ac): Add gl_ARGMATCH.
69252         (EXTRA_DIST): Renamed from lib_SOURCES, for
69253         consistency with the other modules.  Remove argmatch.c.
69254         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69255         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69256         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69257         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69258         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69259         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69260         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69261         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69262         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69263         * modules/closeout (EXTRA_DIST): Add closeout.h.
69264         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69265         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69266         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69267         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69268         dirname.h; remove basename.c and stripslash.c.
69269         * modules/exclude (EXTRA_DIST): Add exclude.h.
69270         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69271         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69272         * modules/file-type (EXTRA_DIST): Add file-type.h.
69273         * modules/filemode (EXTRA_DIST): Add filemode.h.
69274         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69275         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69276         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69277         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69278         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69279         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69280         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69281         * modules/getdate (EXTRA_DIST): Add getdate.c.
69282         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69283         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69284         * modules/getpass (EXTRA_DIST): Add getpass.h.
69285         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69286         * modules/group-member (EXTRA_DIST): Add group-member.h.
69287         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69288         * modules/hash (EXTRA_DIST): Add hash.h.
69289         * modules/human (EXTRA_DIST): Add human.h.
69290         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69291         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69292         * modules/lchown (EXTRA_DIST): Add lchown.h.
69293         * modules/long-options (EXTRA_DIST): Add long-options.h.
69294         * modules/lstat (EXTRA_DIST): Add lstat.h.
69295         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69296         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69297         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69298         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69299         * modules/memxor (EXTRA_DIST): Add memxor.h.
69300         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69301         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69302         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69303         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69304         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69305         * modules/physmem (EXTRA_DIST): Add physmem.h.
69306         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69307         * modules/posixver (EXTRA_DIST): Add posixver.h.
69308         * modules/quote (EXTRA_DIST): Add quote.h.
69309         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69310         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69311         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69312         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69313         regex_internal.h regexec.c.
69314         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69315         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69316         * modules/same (EXTRA_DIST): Add same.h.
69317         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69318         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69319         * modules/savedir (EXTRA_DIST): Add savedir.h.
69320         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69321         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69322         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69323         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69324         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69325         * modules/strdup (EXTRA_DIST): Add strdup.h.
69326         * modules/strftime (EXTRA_DIST): Add strftime.h.
69327         * modules/strndup (EXTRA_DIST): Add strndup.h.
69328         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69329         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69330         * modules/time_r (EXTRA_DIST): Add time_r.h.
69331         * modules/timespec (EXTRA_DIST): Add timespec.h.
69332         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69333         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69334         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69335         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69336         * modules/userspec (EXTRA_DIST): Add userspec.h.
69337         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69338         * modules/utimens (EXTRA_DIST): Add utimens.h.
69339         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69340         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69341         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69342         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69343         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69344         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69345         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69346         * modules/yesno (EXTRA_DIST): Add yesno.h.
69347
69348 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69349
69350         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69351
69352         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69353         * m4/dev-ino.m4, same-inode.m4: Remove.
69354
69355         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69356         * m4/acl.m4 (AC_FUNC_ACL):
69357         * m4/backupfile.m4 (gl_BACKUPFILE):
69358         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69359         * m4/canon-host.m4 (gl_CANON_HOST):
69360         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69361         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69362         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69363         * m4/cloexec.m4 (gl_CLOEXEC):
69364         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69365         * m4/closeout.m4 (gl_CLOSEOUT):
69366         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69367         * m4/dirname.m4 (gl_DIRNAME):
69368         * m4/exclude.m4 (gl_EXCLUDE):
69369         * m4/exitfail.m4 (gl_EXITFAIL):
69370         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69371         * m4/file-type.m4 (gl_FILE_TYPE):
69372         * m4/filemode.m4 (gl_FILEMODE):
69373         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69374         * m4/fpending.m4 (gl_FUNC_FPENDING):
69375         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69376         * m4/fts.m4 (gl_FUNC_FTS):
69377         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69378         * m4/getdate.m4 (gl_GETDATE):
69379         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69380         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69381         * m4/getpass.m4 (gl_FUNC_GETPASS):
69382         * m4/gettime.m4 (gl_GETTIME):
69383         * m4/getugroups.m4 (gl_GETUGROUPS):
69384         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69385         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69386         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69387         * m4/hash.m4 (gl_HASH):
69388         * m4/idcache.m4 (gl_IDCACHE):
69389         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69390         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69391         * m4/long-options.m4 (gl_LONG_OPTIONS):
69392         * m4/lstat.m4 (gl_FUNC_LSTAT):
69393         * m4/md5.m4 (gl_MD5):
69394         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69395         * m4/memcoll.m4 (gl_MEMCOLL):
69396         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69397         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69398         * m4/memxor.m4 (gl_MEMXOR):
69399         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69400         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69401         * m4/modechange.m4 (gl_MODECHANGE):
69402         * m4/mountlist.m4 (gl_MOUNTLIST):
69403         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69404         * m4/openat.m4 (gl_FUNC_OPENAT):
69405         * m4/pathmax.m4 (gl_PATHMAX):
69406         * m4/physmem.m4 (gl_PHYSMEM):
69407         * m4/posixtm.m4 (gl_POSIXTM):
69408         * m4/posixver.m4 (gl_POSIXVER):
69409         * m4/quote.m4 (gl_QUOTE):
69410         * m4/quotearg.m4 (gl_QUOTEARG):
69411         * m4/readtokens.m4 (gl_READTOKENS):
69412         * m4/readutmp.m4 (gl_READUTMP):
69413         * m4/regex.m4 (gl_REGEX):
69414         * m4/safe-read.m4 (gl_SAFE_READ):
69415         * m4/safe-write.m4 (gl_SAFE_WRITE):
69416         * m4/same.m4 (gl_SAME):
69417         * m4/save-cwd.m4 (gl_SAVE_CWD):
69418         * m4/savedir.m4 (gl_SAVEDIR):
69419         * m4/settime.m4 (gl_SETTIME):
69420         * m4/sha1.m4 (gl_SHA1):
69421         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69422         * m4/stat-macros.m4 (gl_STAT_MACROS):
69423         * m4/stat-time.m4 (gl_STAT_TIME):
69424         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69425         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69426         * m4/strdup.m4 (gl_FUNC_STRDUP):
69427         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69428         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69429         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69430         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69431         * m4/time_r.m4 (gl_TIME_R):
69432         * m4/timespec.m4 (gl_TIMESPEC):
69433         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69434         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69435         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69436         * m4/userspec.m4 (gl_USERSPEC):
69437         * m4/utimecmp.m4 (gl_UTIMECMP):
69438         * m4/utimens.m4 (gl_UTIMENS):
69439         * m4/xalloc.m4 (gl_XALLOC):
69440         * m4/xgetcwd.m4 (gl_XGETCWD):
69441         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69442         * m4/xreadlink.m4 (gl_XREADLINK):
69443         * m4/xstrtod.m4 (gl_XSTRTOD):
69444         * m4/yesno.m4 (gl_YESNO):
69445         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69446         to get the necessary .h files and whatnot.
69447
69448 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69449             Bruno Haible  <bruno@clisp.org>
69450
69451         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69452         /bin/sh understanding of '!' conditional negation.
69453
69454 2006-08-21  Jim Meyering  <jim@meyering.net>
69455
69456         * modules/openat (Depends-on): Really alphabetize.
69457
69458         * modules/acl (Depends-on): Add error and quote.
69459
69460         * check-module (find_included_lib_files): Add at-func.c to the
69461         ok-to-include-more-than-once white list.
69462
69463         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69464
69465 2006-08-21  Bruno Haible  <bruno@clisp.org>
69466
69467         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69468         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69469         Reported by Martin Lambers <marlam@marlam.de>.
69470
69471 2006-08-21  Bruno Haible  <bruno@clisp.org>
69472
69473         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69474         specify an installation location, don't emit a noinst_LIBRARIES or
69475         noinst_LTLIBRARIES assignment.
69476
69477 2006-08-21  Bruno Haible  <bruno@clisp.org>
69478
69479         BeOS portability.
69480         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69481         BeOS has mbrtowc() but no <wctype.h>.
69482
69483 2006-08-21  Bruno Haible  <bruno@clisp.org>
69484
69485         BeOS portability.
69486         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69487         exist.
69488
69489 2006-08-21  Bruno Haible  <bruno@clisp.org>
69490
69491         BeOS portability.
69492         * lib/mbchar.h: Include <wctype.h> only if it exists.
69493
69494 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69495
69496         Remove files that are no longer needed by their respective modules.
69497         * m4/obstack.m4: Remove.
69498         * m4/strerror_r.m4: Remove.
69499         * m4/uint32_t.m4: Remove.
69500         * m4/uintptr_t.m4: Remove.
69501         * m4/ullong_max.m4: Remove.
69502         * m4/xstrtoimax.m4: Remove.
69503         * m4/xstrtoumax.m4: Remove.
69504
69505         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69506         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69507         dependencies now capture this.
69508
69509         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69510         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69511         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69512         * m4/human.m4 (gl_HUMAN): Likewise.
69513         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69514         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69515
69516         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69517
69518         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69519         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69520         stdint.
69521         * m4/human.m4 (gl_HUMAN): Likewise.
69522         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69523         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69524         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69525         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69526         * m4/xstrtol (gl_XSTRTOL): Likewise.
69527
69528         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69529         AC_TYPE_LONG_LONG_INT.
69530         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69531         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69532         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69533         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69534
69535         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69536         on stdbool.
69537
69538         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69539         (gl_PREREQ_XSTRTOUL): Remove.
69540
69541         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69542
69543         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69544         mode.
69545
69546 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69547
69548         Add and change modules to make it easier for coreutils to use
69549         gnulib-tool.
69550         * modules/backupfile (Files): Remove m4/d-ino.m4.
69551         (Depends-on): Add d-ino.
69552         * modules/cycle-check (Depends-on): Add stdint.
69553         (lib_SOURCES): Add cycle-check.h.
69554         * modules/d-ino: New module.
69555         * modules/d-type: New module.
69556         * modules/error (Files): Remove m4/strerror_r.m4.
69557         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69558         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69559         m4/inttypes_h.m4, m4/uintmax_t.m4.
69560         (Depends-on): Add stdint.
69561         (lib_SOURCES): Add fsusage.h.
69562         * modules/getcwd (Files): Remove d-ino.m4.
69563         (Depends-on): Add d-ino.
69564         * modules/getndelim2 (Depends-on): Add stdint.
69565         * modules/glob (Files): Remove m4/d-type.m4.
69566         (Depends-on): Add d-type.
69567         * modules/host-os: New module.
69568         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69569         m4/inttypes_h.m4, m4/uintmax_t.m4.
69570         * Depends-on: Add stdint.
69571         (lib_SOURCES): Add human.h.
69572         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69573         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69574         m4/uintmax_t.m4, m4/ulonglong.m4.
69575         (Depends-on): Add stdint.
69576         (EXTRA_DIST): Add inttostr.h.
69577         * modules/lchmod: New module.
69578         * modules/link-follow: New module.
69579         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69580         (Depends-on): Add lchmod.
69581         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69582         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69583         (Depends-on): Add stdint.
69584         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69585         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69586         (Depends-on): Add stdint.
69587         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69588         * modules/perl: New module.
69589         * modules/regex (Depends-on): Add stdint.
69590         * modules/rmdir-errno: New module.
69591         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69592         m4/intmax_t.m4.
69593         (Depends-on): Add stdint.
69594         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69595         m4/uintmax_t.m4.
69596         (Depends-on): Add stdint.
69597         * modules/unlink-busy: New module.
69598         * modules/utimecmp (Depends-on): Add stdint.
69599         * modules/uptime: New module.
69600         * modules/winsz-ioctl: New module.
69601         * modules/winsz-termios: New module.
69602         * modules/xnanosleep (Depends-on): Add nanosleep.
69603         * modules/ullong_max: Remove.
69604         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69605         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69606         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69607         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69608         (Depends-on): Add inttypes.
69609         (lib_SOURCES): Add xstrtol.h.
69610         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69611         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69612         * MODULES.html.sh: Move 'assert' into the assert section.
69613         Move 'dummy' into the linking section.
69614         Remove ullong_max.
69615         Add section for compatibility checks for POSIX:2001 functions,
69616         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69617         winsz-ioctl, and winsz-termios into it.
69618         Add lchmod.
69619         Add top-level Misc section and put host-os, perl, and uptime
69620         into it.
69621
69622 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69623
69624         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69625         now assume the stdint module.  Do not include inttypes.h.
69626         * lib/fsusage.h: Likewise.
69627         * lib/getndelim2.c: Likewise.
69628         * lib/human.h: Likewise.
69629         * lib/inttostr.h: Likewise.
69630         * lib/obstack.c: Likewise.
69631         * lib/regex_internal.h: Likewise.
69632         * lib/tempname.c: Likewise.
69633         * lib/utimecmp.c: Likewise.
69634         * lib/xstrtol.h: Likewise.
69635
69636         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69637
69638         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69639         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69640         * lib/xtime.h: Likewise.
69641
69642 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69643
69644         * modules/openat (Files): Add lib/fchmodat.c.
69645         Fixes problem reported by Jay Youngman.
69646
69647 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69648
69649         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69650         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69651
69652 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69653             Bruno Haible  <bruno@clisp.org>
69654
69655         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69656         and is a script that invokes bison. Tighten the code. Add comments.
69657
69658 2006-08-18  Jim Meyering  <jim@meyering.net>
69659
69660         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69661         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69662         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69663         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69664
69665 2006-08-18  Bruno Haible  <bruno@clisp.org>
69666
69667         * modules/bison-i18n: New file.
69668         * MODULES.html.sh (Internationalization functions): Add it.
69669
69670 2006-08-18  Bruno Haible  <bruno@clisp.org>
69671
69672         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69673         sys/statvfs.h. When getmntinfo was found, check its declaration and
69674         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69675
69676 2006-08-18  Bruno Haible  <bruno@clisp.org>
69677
69678         * m4/bison-i18n.m4: New file, from bison.
69679
69680 2006-08-18  Bruno Haible  <bruno@clisp.org>
69681
69682         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69683         (ME_DUMMY): Treat "kernfs" as a dummy.
69684         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69685
69686 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69687
69688         Update from coreutils.
69689
69690         2006-08-15  Jim Meyering  <jim@meyering.net>
69691
69692         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69693
69694         2006-01-17  Jim Meyering  <jim@meyering.net>
69695
69696         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69697
69698         2006-01-11  Jim Meyering  <jim@meyering.net>
69699
69700         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69701         Check for the lchmod function.
69702
69703 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69704
69705         Update from coreutils.
69706
69707         * lib/__fpending.h: Add copyright notice.
69708         * lib/fprintftime.h: Likewise.
69709         * lib/savedir.c: Use (C) in copyright notice.
69710         * lib/savedir.h: Likewise.
69711
69712         2006-08-15  Jim Meyering  <jim@meyering.net>
69713
69714         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69715         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69716         in support of the EXPECTED_ERRNO macro.
69717         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69718         definitions.  Instead, define the appropriate symbols and include
69719         "at-func.c".
69720         * lib/mkdirat.c (mkdirat): Likewise.
69721         * lib/fchmodat.c (fchmodat): Likewise.
69722         (ENOSYS): Remove definition.
69723         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69724         it.  Don't include "unistd--.h" -- it wasn't ever used.
69725
69726         2006-01-17  Jim Meyering  <jim@meyering.net>
69727
69728         Rewrite fts.c not to change the current working directory,
69729         by using openat, fstatat, fdopendir, etc..
69730
69731         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69732         (HAVE_OPENAT_SUPPORT): Define.
69733         [_LIBC] (fchdir): Don't undef or define; no longer used.
69734         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69735         Now, this `function' always succeeds, and consumes its file descriptor
69736         parameter -- so callers must not close such FDs.  Update callers.
69737         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69738         (diropen): Add parameter, SP.  Adjust all callers.
69739         Implement using diropen_fd, rather than open.
69740         (fts_open): Initialize new member, fts_cwd_fd.
69741         Remove fts_rft-setting code.
69742         (fts_close): Close fts_cwd_fd, if necessary.
69743         (__opendir2): Define in terms of opendir or opendirat,
69744         depending on whether the FST_NOCHDIR flag is set.
69745         (fts_build): Since fts_safe_changedir consumes its FD, and since
69746         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69747         and close the dup'd file descriptor upon failure.
69748         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69749         (fts_safe_changedir): Tweak semantics to reflect that this function
69750         now calls cwd_advance_fd and hence consumes its FD argument.
69751         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69752         [struct FTS] (fts_rft): Remove now-unused member.
69753         [struct FTS] (fts_cycle.state): Improve comment.
69754
69755         * lib/openat.c (openat_needs_fchdir): New function.
69756         * lib/openat.h (openat_needs_fchdir): Declare it.
69757
69758 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69759
69760         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69761         Problem and fix reported by Pádraig Brady in
69762         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69763
69764 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69765
69766         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69767
69768 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69769
69770         * lib/memcoll.c (memcoll): Optimize for the common case where the
69771         arguments are bytewise equal.
69772
69773 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69774
69775         * doc/regexprops-generic.texi: Add a copyright notice.
69776
69777 2006-08-15  Bruno Haible  <bruno@clisp.org>
69778
69779         * modules/tmpdir (License): Change to LGPL.
69780
69781 2006-08-15  Bruno Haible  <bruno@clisp.org>
69782
69783         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69784         module.
69785
69786 2006-08-14  Simon Josefsson  <jas@extundo.com>
69787
69788         * config/srclist.txt: Add gnupload.
69789
69790 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69791
69792         Change copyright notice from LGPL 2 to GPL 2, since that's the
69793         standard form used in the gnulib repository.
69794         * tests/test-lock.c: Likewise.
69795         * tests/test-stdint.c: Likewise.
69796         * tests/test-tls.c: Likewise.
69797
69798         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69799         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69800         Add copyright notice.
69801
69802         * check-module: Add copyright notice.  Output a copyright
69803         notice if "--version" is specified.
69804         * modules/COPYING: New file.
69805         * tests/test-getaddrinfo.c: Add copyright notice.
69806         * tests/test-verify.c: Likewise.
69807
69808 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69809
69810         Change copyright notice from LGPL 2 to GPL 2, since that's the
69811         standard form used in the gnulib repository.
69812         * lib/lock.c: LGPL -> GPL.
69813         * lib/lock.h: Likewise.
69814         * lib/strnlen1.c: Likewise.
69815         * lib/strnlen1.h: Likewise.
69816         * lib/tls.c: Likewise.
69817         * lib/tls.h: Likewise.
69818         * lib/tmpdir.c: Likewise.
69819
69820         * lib/TODO: Remove; this belongs only in coreutils.
69821
69822 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69823
69824         Add copyright notices to long-enough files that lack them, since
69825         otherwise the files aren't clearly free.  Use the same notice that
69826         getdate.texi already uses.
69827         * doc/alloca-opt.texi: Add copyright notice.
69828         * doc/alloca.texi: Likewise.
69829         * doc/ctime.texi: Likewise.
69830         * doc/functions.texi: Likewise.
69831         * doc/gcd.texi: Likewise.
69832         * doc/gnulib-tool.texi: Likewise.
69833         * doc/inet_ntoa.texi: Likewise.
69834         * doc/visibility.texi: Likewise.
69835
69836         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69837         * doc/quote.texi: Add copyright notice.
69838
69839         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69840         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69841         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69842         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69843         is now obsolete, and give a pointer to the Sun list.
69844         Add copyright notice.
69845
69846 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69847
69848         * config/srclistvars.sh: Add copyright notice.
69849
69850 2006-08-14  Eric Blake  <ebb9@byu.net>
69851
69852         Import the following change from libc:
69853
69854         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69855
69856         Upstream bug 2997.
69857         * lib/misc/error.c: Add space between program name and message if file
69858         name is missing.
69859
69860 2006-08-12  Karl Berry  <karl@gnu.org>
69861
69862         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69863         remove, these originate in gnulib now.
69864
69865 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69866
69867         * doc/Makefile (standards.info standards.html standards.dvi):
69868         Also depend on make-stds.texi.
69869
69870 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69871
69872         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69873         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69874
69875         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69876         in wchar_t.  Problem reported by Eric Blake.
69877
69878         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69879         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69880         Also, help the compiler to keep LEN in a register.
69881
69882 2006-08-11  Eric Blake  <ebb9@byu.net>
69883
69884         * users.txt: Sort.  Add tar.
69885
69886 2006-08-11  Bruno Haible  <bruno@clisp.org>
69887
69888         * users.txt: New file.
69889
69890 2006-08-11  Bruno Haible  <bruno@clisp.org>
69891
69892         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69893         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69894
69895 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69896
69897         * modules/snprintf (Depends-on): Remove minmax.
69898         (Maintainer): Add self and Bruno.
69899
69900 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69901
69902         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69903         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69904         (EOVERFLOW): Define if the system does not.
69905         Do not include "minmax.h"; it wasn't used.
69906         (snprintf): Don't assume size_t promotes to an unsigned type.
69907         Fix bug when generated string was too long for the buffer: the
69908         buffer's contents are supposed to be the initial prefix of the
69909         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69910         exceeds INT_MAX; do the check ourselves.
69911
69912         Import the following changes from libc:
69913
69914         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69915
69916         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69917         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69918         set wc to the byte which couldn't be converted.
69919         (re_string_reconstruct): Don't clear valid_raw_len before calling
69920         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69921         tip_context using re_string_context_at.
69922
69923         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69924
69925         * lib/posix/regex.h: g++ still cannot handled [restrict].
69926
69927         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69928
69929         * lib/posix/regex.h: Remove special handling for VMS.
69930
69931 2006-08-10  Jim Meyering  <jim@meyering.net>
69932
69933         * modules/same-inode: New module.
69934         * modules/dev-ino: New module.
69935         * modules/cycle-check: Depend on these modules, rather than simply
69936         including their .h files.
69937         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69938         required via m4/cycle-check.m4.
69939         * modules/same: Depend on new same-inode module, rather than
69940         including same-inode.h.
69941         * modules/chdir-safer: New file.
69942
69943         * modules/chown (Depends-on): Add stat-macros.
69944
69945 2006-08-10  Jim Meyering  <jim@meyering.net>
69946
69947         * m4/cycle-check.m4: New file.
69948         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69949         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69950
69951 2006-08-10  Eric Blake  <ebb9@byu.net>
69952
69953         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69954         in from original proposal.
69955
69956 2006-08-10  Eric Blake  <ebb9@byu.net>
69957         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69958
69959         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69960         namespace.
69961
69962 2006-08-10  Bruno Haible  <bruno@clisp.org>
69963
69964         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69965         as well.
69966
69967 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69968
69969         Sync from coreutils.
69970
69971         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69972
69973         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69974         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69975
69976 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69977
69978         * modules/restrict: Remove; no longer needed now that we assume
69979         Autoconf 2.59 or later.
69980         * MODULES.html.sh: Remove 'restrict'.
69981         * modules/argp (Depends-on): Remove 'restrict'.
69982         * modules/base64 (Depends-on): Likewise.
69983         * modules/gc (Depends-on): Likewise.
69984         * modules/getaddrinfo (Depends-on): Likewise.
69985         * modules/glob (Depends-on): Likewise.
69986         * modules/inet_ntop (Depends-on): Likewise.
69987         * modules/inet_pton (Depends-on): Likewise.
69988         * modules/memxor (Depends-on): Likewise.
69989         * modules/regex (Depends-on): Likewise.
69990         * modules/strtok_r (Depends-on): Likewise.
69991         * modules/time_r (Depends-on): Likewise.
69992
69993 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69994
69995         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69996         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69997         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69998         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69999         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70000         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70001         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70002         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70003
70004         Merge from coreutils.
70005         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70006         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70007         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70008         * m4/time_r.m4 (gl_TIME_R): Likewise.
70009
70010 2006-08-09  Karl Berry  <karl@gnu.org>
70011
70012         * config/srclist.txt: no more gettext-tools, per Bruno.
70013
70014 2006-08-08  Eric Blake  <ebb9@byu.net>
70015
70016         * modules/verror: New module.
70017         * MODULES.html.sh: Document it.
70018
70019 2006-08-08  Eric Blake  <ebb9@byu.net>
70020
70021         * lib/verror.h, lib/verror.c: New files.
70022
70023 2006-08-08  Eric Blake  <ebb9@byu.net>
70024
70025         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70026         verror_at_line output complies with GNU Coding Standards even when
70027         file is NULL.
70028
70029 2006-08-07  Bruno Haible  <bruno@clisp.org>
70030
70031         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70032         versions of AIX.
70033         Reported by Ralf Wildenhues.
70034
70035 2006-08-07  Bruno Haible  <bruno@clisp.org>
70036
70037         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70038         in an AC_DEFUN. Needed so that the autoconf snippets can use
70039         AC_REQUIRE.
70040
70041 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70042
70043         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70044         Initialize pkgdata_DATA.
70045         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70046         overriding it.
70047
70048 2006-08-06  Eric Blake  <ebb9@byu.net>
70049
70050         * lib/error.h: Fold in some upstream changes from glibc.
70051         * lib/error.c: Likewise.
70052
70053 2006-08-04  Bruno Haible  <bruno@clisp.org>
70054
70055         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70056         Make the mostlyclean-local rule depend on mostlyclean-generic.
70057         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70058
70059 2006-07-31  Bruno Haible  <bruno@clisp.org>
70060
70061         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70062         <stdlib.h>, <string.h>.
70063
70064 2006-07-30  Bruno Haible  <bruno@clisp.org>
70065
70066         * modules/readlink (License): Change to LGPL.
70067
70068 2006-07-30  Bruno Haible  <bruno@clisp.org>
70069
70070         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70071         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70072         set PKGDATADIR to point to it.
70073
70074 2006-07-30  Bruno Haible  <bruno@clisp.org>
70075
70076         * modules/csharpexec (configure.ac): Comment out macro invocation.
70077         * modules/javaexec (configure.ac): Likewise.
70078         * modules/javacomp-script (configure.ac): Likewise.
70079
70080         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70081
70082 2006-07-30  Bruno Haible  <bruno@clisp.org>
70083
70084         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70085         linked-list.
70086
70087 2006-07-30  Bruno Haible  <bruno@clisp.org>
70088
70089         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70090
70091 2006-07-30  Bruno Haible  <bruno@clisp.org>
70092
70093         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70094         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70095         get removed.
70096
70097 2006-07-29  Bruno Haible  <bruno@clisp.org>
70098
70099         Make it possible for gnulib-tool to work with locally modified or
70100         augmented gnulib repositories.
70101         * gnulib-tool (func_usage): Document --local-dir option.
70102         (local_gnulib_dir): New variable.
70103         Handle --local-dir option.
70104         (func_lookup_file): New function.
70105         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70106         (func_get_description, func_get_filelist, func_get_description,
70107         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70108         func_get_automake_snippet, func_get_include_directive,
70109         func_get_license, func_get_maintainer): Use func_lookup_file.
70110         (func_import, func_create_testdir): Use func_lookup_file.
70111
70112 2006-07-29  Bruno Haible  <bruno@clisp.org>
70113
70114         * modules/setenv (Depends-on): Add unistd.
70115
70116 2006-07-29  Bruno Haible  <bruno@clisp.org>
70117
70118         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70119
70120 2006-07-29  Bruno Haible  <bruno@clisp.org>
70121
70122         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70123
70124 2006-07-29  Bruno Haible  <bruno@clisp.org>
70125
70126         * gnulib-tool (import, update): If there is no Makefile.am, look at
70127         aclocal.m4, instead of bailing out.
70128
70129 2006-07-29  Bruno Haible  <bruno@clisp.org>
70130
70131         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70132         Categorize the options by when they are useful.
70133
70134 2006-07-29  Bruno Haible  <bruno@clisp.org>
70135
70136         * gnulib-tool (func_usage): Document option --no-libtool.
70137         Handle option --no-libtool.
70138         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70139         for changed semantics of $libtool variable.
70140         (func_import): Likewise. If libtool is not used, show this through
70141         an option --no-libtool.
70142         (func_create_testdir): Update.
70143
70144 2006-07-29  Bruno Haible  <bruno@clisp.org>
70145
70146         * gnulib-tool (func_import): Extend error message about missing
70147         --doc-base.
70148
70149 2006-07-29  Bruno Haible  <bruno@clisp.org>
70150
70151         * gnulib-tool (func_import): Don't create the $docbase directory if
70152         there is no file to store there.
70153
70154 2006-07-29  Bruno Haible  <bruno@clisp.org>
70155
70156         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70157         relevant, look for configure.ac there, not in the current directory.
70158         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70159
70160 2006-07-29  Bruno Haible  <bruno@clisp.org>
70161
70162         * gnulib-tool (SORT): New variable.
70163         (func_usage): Undocument --assume-autoconf option.
70164         Remove --assume-autoconf option handling.
70165         (autoconf_minversion): Determine from the contents of configure.ac.
70166         (func_import): Remove autoconf_minversion handling.
70167         Suggested by Eric Blake.
70168
70169 2006-07-29  Bruno Haible  <bruno@clisp.org>
70170
70171         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70172
70173 2006-07-29  Bruno Haible  <bruno@clisp.org>
70174
70175         * config/srclist.txt (*setenv.[ch]): Remove rules.
70176
70177 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70178
70179         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70180
70181 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70182
70183         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70184         arpa/inet.h.
70185
70186 2006-07-28  Simon Josefsson  <jas@extundo.com>
70187
70188         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70189         * modules/inet_pton (Depends-on): Likewise.
70190
70191 2006-07-28  Simon Josefsson  <jas@extundo.com>
70192
70193         * m4/netinet_in_h.m4: New file.
70194
70195 2006-07-28  Simon Josefsson  <jas@extundo.com>
70196
70197         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70198         #include's.
70199
70200 2006-07-28  Simon Josefsson  <jas@extundo.com>
70201
70202         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70203         #include's.
70204
70205 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70206
70207         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70208         setgid on directories only if they set these bits.
70209         * lib/modechange.h: Remove obsolete comment about masks.
70210
70211 2006-07-28  Eric Blake  <ebb9@byu.net>
70212
70213         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70214         macro expansion.
70215
70216 2006-07-28  Bruno Haible  <bruno@clisp.org>
70217
70218         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70219
70220 2006-07-28  Bruno Haible  <bruno@clisp.org>
70221
70222         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70223
70224 2006-07-28  Bruno Haible  <bruno@clisp.org>
70225
70226         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70227         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70228         Define fallbacks.
70229         Avoids link error on FreeBSD 4.x.
70230         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70231
70232         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70233         encoding.
70234         * lib/mbswidth.c (iswcntrl): Likewise.
70235
70236 2006-07-27  Bruno Haible  <bruno@clisp.org>
70237
70238         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70239         test.
70240
70241 2006-07-27  Bruno Haible  <bruno@clisp.org>
70242
70243         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70244         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70245         defined.
70246
70247 2006-07-26  Eric Blake  <ebb9@byu.net>
70248
70249         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70250
70251 2006-07-26  Eric Blake  <ebb9@byu.net>
70252
70253         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70254         like mingw that lack mkstemp.
70255         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70256         avoid compilation warning on mingw.
70257
70258 2006-07-26  Bruno Haible  <bruno@clisp.org>
70259
70260         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70261         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70262         INT_FAST*_MIN, INTPTR_MIN.
70263
70264 2006-07-25  Bruno Haible  <bruno@clisp.org>
70265
70266         * modules/version-etc (Depends-on): Add stdarg.
70267
70268 2006-07-25  Bruno Haible  <bruno@clisp.org>
70269
70270         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70271         complex commands.
70272
70273 2006-07-25  Bruno Haible  <bruno@clisp.org>
70274
70275         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70276         defined in <stdarg.h> or config.h.
70277
70278 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70279
70280         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70281         (gl_STDIO_SAFER): Remove.
70282
70283 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70284
70285         * MODULES.html.sh (File stream based Input/Output):
70286         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70287         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70288         * modules/fopen-safer, modules/tmpfile-safer: New files.
70289         * modules/stdio-safer: Remove.
70290
70291 2006-07-24  Bruno Haible  <bruno@clisp.org>
70292
70293         * modules/tmpdir: New file.
70294         * MODULES.html.sh (File system functions): Add it.
70295
70296 2006-07-24  Bruno Haible  <bruno@clisp.org>
70297
70298         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70299         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70300
70301 2006-07-24  Bruno Haible  <bruno@clisp.org>
70302
70303         * modules/clean-temp: New file.
70304
70305 2006-07-24  Bruno Haible  <bruno@clisp.org>
70306
70307         * m4/tmpdir.m4: New file, from GNU gettext.
70308
70309 2006-07-24  Bruno Haible  <bruno@clisp.org>
70310
70311         * lib/tmpdir.h: New file, from GNU gettext.
70312         * lib/tmpdir.c: New file, from GNU gettext.
70313
70314 2006-07-24  Bruno Haible  <bruno@clisp.org>
70315
70316         * lib/clean-temp.h: New file, from GNU gettext.
70317         * lib/clean-temp.c: New file, from GNU gettext.
70318
70319 2006-07-23  Eric Blake  <ebb9@byu.net>
70320
70321         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70322         (Depends-on): Add binary-io.
70323
70324 2006-07-23  Eric Blake  <ebb9@byu.net>
70325
70326         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70327
70328 2006-07-23  Eric Blake  <ebb9@byu.net>
70329
70330         * lib/tmpfile-safer.c: New file.
70331         * lib/stdio-safer.h (fopen_safer): Add prototype.
70332         * lib/stdio--.h (tmpfile): Make safer.
70333
70334 2006-07-23  Bruno Haible  <bruno@clisp.org>
70335
70336         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70337         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70338         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70339         gl_linked_remove_at): Use it.
70340
70341 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70342         and Simon Josefsson <jas@extundo.com>
70343
70344         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70345
70346         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70347
70348 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70349
70350         * modules/close-stream: New file.
70351         * modules/closeout (Description): Make it clear that it exits
70352         with a diagnostic on error.
70353         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70354         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70355
70356 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70357
70358         * m4/close-stream.m4: New file.
70359
70360 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70361
70362         * lib/close-stream.c, lib/close-stream.h: New files.
70363
70364 2006-07-22  Bruno Haible  <bruno@clisp.org>
70365
70366         Merge from GNU gettext 0.15.
70367
70368         2006-05-01  Bruno Haible  <bruno@clisp.org>
70369
70370                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70371
70372         2006-07-22  Bruno Haible  <bruno@clisp.org>
70373
70374                 * modules/javaversion: New file.
70375                 * MODULES.html.sh (Java): Add javaversion.
70376
70377         2006-03-12  Bruno Haible  <bruno@clisp.org>
70378
70379                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70380
70381         2005-12-04  Bruno Haible  <bruno@clisp.org>
70382
70383                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70384                 (untested).
70385
70386         2006-06-21  Bruno Haible  <bruno@clisp.org>
70387
70388                 Avoid warnings from recent versions of mcs.
70389                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70390                 -o, -L, -r any more. Use options documented since mcs-1.0
70391                 instead. Similarly for -g.
70392
70393         2005-12-04  Bruno Haible  <bruno@clisp.org>
70394
70395                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70396                 .resources, not .resource.
70397
70398         2005-07-09  Bruno Haible  <bruno@clisp.org>
70399
70400                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70401                 add a .dll suffix.
70402                 Reported by Mark Junker <mjscod@gmx.de>.
70403
70404         2006-07-22  Bruno Haible  <bruno@clisp.org>
70405
70406                 * modules/gettext: Upgrade to gettext-0.15.
70407                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70408                 m4/visibility.m4.
70409                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70410
70411 2006-07-22  Bruno Haible  <bruno@clisp.org>
70412
70413         Merge from GNU gettext 0.15.
70414
70415         2006-03-25  Bruno Haible  <bruno@clisp.org>
70416
70417                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70418
70419         2006-07-21  Bruno Haible  <bruno@clisp.org>
70420
70421                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70422                 "1.1".
70423
70424         2006-05-09  Bruno Haible  <bruno@clisp.org>
70425
70426                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70427                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70428                 for the conftestver execution.
70429
70430         2006-05-01  Bruno Haible  <bruno@clisp.org>
70431
70432                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70433                 optional target-version argument. Verify that the compiler
70434                 groks source of the specified source-version, or add -source
70435                 option as necessary. Verify that the compiler produces
70436                 bytecode in the specified target-version, or add -target and
70437                 -source options as necessary. Make the result of the test
70438                 available as variable CONF_JAVAC. Also log error output in
70439                 config.log.
70440
70441         2006-03-11  Bruno Haible  <bruno@clisp.org>
70442
70443                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70444
70445         2006-05-09  Bruno Haible  <bruno@clisp.org>
70446
70447                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70448                 CLASSPATH_SEPARATOR to a semicolon.
70449
70450         2006-03-12  Bruno Haible  <bruno@clisp.org>
70451
70452                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70453                 available as variable CONF_JAVA, for subsequent autoconf
70454                 tests. Also log error output in config.log.
70455
70456         2006-07-19  Bruno Haible  <bruno@clisp.org>
70457
70458                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70459                 that getline works on glibc2 systems. Needed to avoid trouble
70460                 in relocatable.c.
70461                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70462
70463         2005-12-04  Bruno Haible  <bruno@clisp.org>
70464
70465                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70466                 launcher (untested).
70467
70468         2005-12-04  Bruno Haible  <bruno@clisp.org>
70469
70470                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70471
70472         2006-07-22  Bruno Haible  <bruno@clisp.org>
70473
70474                 * gettext.m4: Update from GNU gettext-0.15.
70475                 * nls.m4: Likewise.
70476                 * po.m4: Likewise.
70477                 * inttypes-pri.m4: Likewise.
70478                 * inttypes-h.m4: Renamed from inttypes.m4.
70479                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70480
70481 2006-07-22  Bruno Haible  <bruno@clisp.org>
70482
70483         Merge from GNU gettext 0.15.
70484
70485         2005-07-05  Bruno Haible  <bruno@clisp.org>
70486
70487                 * printf-args.c (printf_fetchargs): Work around broken
70488                 definition of wint_t on mingw.
70489
70490         2005-02-12  Bruno Haible  <bruno@clisp.org>
70491
70492                 * xallocsa.h: Add extern "C" for C++.
70493
70494         2006-05-17  Bruno Haible  <bruno@clisp.org>
70495
70496                 Cygwin portability.
70497                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70498
70499         2006-04-30  Bruno Haible  <bruno@clisp.org>
70500
70501                 * progreloc.c: Include <mach-o/dyld.h> if available.
70502                 (find_executable): Use _NSGetExecutablePath when possible.
70503
70504         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70505
70506                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70507                 function.
70508
70509         2005-12-29  Bruno Haible  <bruno@clisp.org>
70510
70511                 * progreloc.c (set_program_name_and_installdir): Fix
70512                 compilation error.
70513
70514         2005-12-04  Bruno Haible  <bruno@clisp.org>
70515
70516                 Cygwin portability.
70517                 * progreloc.c: Include <windows.h> also on Cygwin.
70518                 (find_executable): Add support for Cygwin.
70519                 (set_program_name_and_installdir): Handle also platforms with
70520                 nonempty EXEEXT.
70521
70522         2006-07-11  Bruno Haible  <bruno@clisp.org>
70523
70524                 * javacomp.c: Fix a comment.
70525                 Reported by Jim Meyering.
70526
70527         2006-04-30  Bruno Haible  <bruno@clisp.org>
70528
70529                 * javacomp.h (compile_java_class): Add source_version,
70530                 target_version arguments.
70531                 * javacomp.c: Rewritten to choose only a compiler that
70532                 respects the specified source_version and target_version.
70533
70534         2006-06-27  Bruno Haible  <bruno@clisp.org>
70535
70536                 Assume correct S_ISDIR macro.
70537                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70538
70539         2006-07-22  Bruno Haible  <bruno@clisp.org>
70540
70541                 * javaversion.h: New file, from GNU gettext.
70542                 * javaversion.c: New file, from GNU gettext.
70543                 * javaversion.java: New file, from GNU gettext.
70544                 * javaversion.class: New file, from GNU gettext.
70545
70546         2006-05-17  Bruno Haible  <bruno@clisp.org>
70547
70548                 Cygwin portability.
70549                 * javaexec.c (execute_java_class): Test for jview program
70550                 also on Cygwin.
70551
70552         2006-04-09  Bruno Haible  <bruno@clisp.org>
70553
70554                 * fatal-signal.c: Don't include string.h.
70555                 (at_fatal_signal): Use a copying loop instead of memcpy.
70556
70557         2005-12-04  Bruno Haible  <bruno@clisp.org>
70558
70559                 * csharpexec.c: Add support for 'clix' launcher (untested).
70560                 (execute_csharp_using_sscli): New function.
70561                 (execute_csharp_program): Call it.
70562
70563         2006-06-21  Bruno Haible  <bruno@clisp.org>
70564
70565                 Avoid warnings from recent versions of mcs.
70566                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70567                 -o, -L, -r any more. Use options documented since mcs-1.0
70568                 instead. Similarly for -g.
70569
70570         2005-07-09  Bruno Haible  <bruno@clisp.org>
70571
70572                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70573                 add a .dll suffix.
70574                 Reported by Mark Junker <mjscod@gmx.de>.
70575
70576         2006-06-17  Bruno Haible  <bruno@clisp.org>
70577
70578                 * config.charset: Update for NetBSD 3.0.
70579
70580         2006-05-17  Bruno Haible  <bruno@clisp.org>
70581
70582                 Cygwin portability.
70583                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70584
70585         2006-05-16  Bruno Haible  <bruno@clisp.org>
70586
70587                 * localcharset.c [CYGWIN]: Include <windows.h>.
70588                 (get_charset_aliases): For Cygwin, return the same CPxxx
70589                 aliases list as under WIN32.
70590                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70591                 the environment variables. Fall back to GetACP().
70592
70593         2006-04-05  Bruno Haible  <bruno@clisp.org>
70594
70595                 * config.charset: Update Juan Manuel Guerrero's address.
70596
70597         2005-02-12  Bruno Haible  <bruno@clisp.org>
70598
70599                 * allocsa.h: Add extern "C" for C++.
70600
70601         2005-02-10  Bruno Haible  <bruno@clisp.org>
70602
70603                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70604                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70605
70606         2006-07-22  Bruno Haible  <bruno@clisp.org>
70607
70608                 * gettext.h: Update to GNU gettext-0.15.
70609
70610 2006-07-22  Bruno Haible  <bruno@clisp.org>
70611
70612         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70613         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70614         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70615
70616 2006-07-21  Eric Blake  <ebb9@byu.net>
70617
70618         * modules/stdlib-safer: New file.
70619         * MODULES.html.sh (File stream based Input/Output): Add
70620         stdlib-safer.
70621
70622 2006-07-21  Eric Blake  <ebb9@byu.net>
70623
70624         * lib/stdlib-safer.h: New file from coreutils, required by
70625         stdlib--.h.
70626
70627 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70628
70629         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70630
70631 2006-07-20  Bruno Haible  <bruno@clisp.org>
70632
70633         * gnulib-tool: Recognize new option --assume-autoconf.
70634         (autoconf_minversion): New variable.
70635         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70636
70637 2006-07-20  Bruno Haible  <bruno@clisp.org>
70638
70639         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70640
70641 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70642
70643         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70644         Reindent and repaginate.
70645
70646 2006-07-19  Derek Price  <derek@ximbiot.com>
70647
70648         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70649         Correct grammar.
70650
70651 2006-07-17  Bruno Haible  <bruno@clisp.org>
70652
70653         * modules/list: New file.
70654         * modules/array-list: New file.
70655         * modules/carray-list, modules/carray-list-tests: New files.
70656         * modules/linked-list, modules/linked-list-tests: New files.
70657         * modules/avltree-list, modules/avltree-list-tests: New files.
70658         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70659         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70660         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70661         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70662         * modules/oset: New file.
70663         * modules/array-oset: New file.
70664         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70665         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70666         * tests/test-carray_list.c: New file.
70667         * tests/test-linked_list.c: New file.
70668         * tests/test-avltree_list.c: New file.
70669         * tests/test-rbtree_list.c: New file.
70670         * tests/test-linkedhash_list.c: New file.
70671         * tests/test-avltreehash_list.c: New file.
70672         * tests/test-rbtreehash_list.c: New file.
70673         * tests/test-avltree_oset.c: New file.
70674         * tests/test-rbtree_oset.c: New file.
70675         * MODULES.html.sh (Container data structures): New section.
70676
70677 2006-07-17  Bruno Haible  <bruno@clisp.org>
70678
70679         * m4/gl_list.m4: New file.
70680
70681 2006-07-17  Bruno Haible  <bruno@clisp.org>
70682
70683         * lib/gl_list.h: New file.
70684         * lib/gl_list.c: New file.
70685         * lib/gl_array_list.h: New file.
70686         * lib/gl_array_list.c: New file.
70687         * lib/gl_carray_list.h: New file.
70688         * lib/gl_carray_list.c: New file.
70689         * lib/gl_linked_list.h: New file.
70690         * lib/gl_linked_list.c: New file.
70691         * lib/gl_anylinked_list1.h: New file.
70692         * lib/gl_anylinked_list2.h: New file.
70693         * lib/gl_avltree_list.h: New file.
70694         * lib/gl_avltree_list.c: New file.
70695         * lib/gl_anyavltree_list1.h: New file.
70696         * lib/gl_anyavltree_list2.h: New file.
70697         * lib/gl_rbtree_list.h: New file.
70698         * lib/gl_rbtree_list.c: New file.
70699         * lib/gl_anyrbtree_list1.h: New file.
70700         * lib/gl_anyrbtree_list2.h: New file.
70701         * lib/gl_anytree_list1.h: New file.
70702         * lib/gl_anytree_list2.h: New file.
70703         * lib/gl_linkedhash_list.h: New file.
70704         * lib/gl_linkedhash_list.c: New file.
70705         * lib/gl_anyhash_list1.h: New file.
70706         * lib/gl_anyhash_list2.h: New file.
70707         * lib/gl_avltreehash_list.h: New file.
70708         * lib/gl_avltreehash_list.c: New file.
70709         * lib/gl_rbtreehash_list.h: New file.
70710         * lib/gl_rbtreehash_list.c: New file.
70711         * lib/gl_anytreehash_list1.h: New file.
70712         * lib/gl_anytreehash_list2.h: New file.
70713
70714         * lib/gl_oset.h: New file.
70715         * lib/gl_oset.c: New file.
70716         * lib/gl_array_oset.h: New file.
70717         * lib/gl_array_oset.c: New file.
70718         * lib/gl_avltree_oset.h: New file.
70719         * lib/gl_avltree_oset.c: New file.
70720         * lib/gl_rbtree_oset.h: New file.
70721         * lib/gl_rbtree_oset.c: New file.
70722         * lib/gl_anytree_oset.h: New file.
70723
70724 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70725
70726         * m4/mkancesdirs.m4: New file.
70727         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70728         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70729         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70730         it.
70731
70732 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70733
70734         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70735         * lib/mkancesdirs.h: New files.
70736         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70737         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70738         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70739         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70740         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70741         callers changed.  Revamp internals significantly, by not
70742         attempting to create directories that are temporarily more
70743         permissive than the final results.  Do not attempt to use
70744         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70745         This removes some race conditions, fixes some bugs, and simplifies
70746         things.  Use new dirchownmod function to do owner and mode changes.
70747         * lib/mkdir-p.h: Likewise.
70748         * lib/modechange.c (octal_to_mode): New function.
70749         (struct mode_change): New member mentioned.
70750         (make_node_op_equals): New arg mentioned.  All callers changed.
70751         (mode_compile): Keep track of which mode bits the user has explicitly
70752         mentioned.
70753         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70754         New arg PMODE_BITS, to keep track of which mode bits the user
70755         mentioned; it treats S_ISUID and S_ISGID speciall.
70756         All callers changed.
70757         * lib/modechange.h: Likewise.
70758
70759 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70760
70761         * MODULES.html.sh: Add mkancestors.
70762         * modules/mkancesdirs: New module.
70763         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70764         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70765         The chdir-safer and afs files are now orphans; I'll remove them
70766         unless someone speaks up.
70767         Add lib/dirchownmod.c, lib/dirchownmod.h.
70768         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70769         Add lchown, mkancesdirs.
70770         (Maintainer): Add self.
70771
70772 2006-07-15  Karl Berry  <karl@gnu.org>
70773
70774         * gnulib-tool: help message wording/arrangement.
70775
70776 2006-07-14  Simon Josefsson  <jas@extundo.com>
70777
70778         * doc/gnulib.texi (Libtool and Windows): New section.
70779
70780 2006-07-12  Simon Josefsson  <jas@extundo.com>
70781
70782         * modules/gendocs (License): Fix license, approved by Karl.
70783
70784 2006-07-12  Eric Blake  <ebb9@byu.net>
70785
70786         * MODULES.html.sh: Add gendocs.
70787
70788 2006-07-11  Eric Blake  <ebb9@byu.net>
70789
70790         * modules/fdl: New module, to install doc/fdl.texi.
70791         * MODULES.html.sh: Add new section for documentation modules.
70792         * gnulib-tool: Avoid space-tab.
70793         (--doc-base): New option, to manage files from doc.
70794
70795 2006-07-11  Eric Blake  <ebb9@byu.net>
70796
70797         * m4/absolute-header.m4: Fix comments to match recent change.
70798
70799 2006-07-11  Eric Blake  <ebb9@byu.net>
70800
70801         * gnulib-tool: List --doc-base before --tests-base.
70802
70803 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70804
70805         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70806
70807 2006-07-11  Bruno Haible  <bruno@clisp.org>
70808
70809         * README: Mention where to put documentation.
70810
70811 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70812
70813         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70814
70815 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70816
70817         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70818         to stdint.m4.
70819
70820 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70821
70822         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70823         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70824         "no/such/file/stdint.h" when there is no such file, so that
70825         the resulting C code can be parsed by dodgy compilers.
70826         Problems reported by Bob Proulx.
70827
70828 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70829
70830         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70831         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70832         macros into the GNU _D_EXACT_NAMLEN.
70833         * lib/savedir.c:  Likewise.
70834         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70835
70836 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70837         and Paul Eggert  <eggert@cs.ucla.edu>
70838
70839         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70840         * m4/savedir.m4:
70841         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70842         macros into the GNU _D_EXACT_NAMLEN.
70843
70844 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70845
70846         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70847         around the absolute name, to work around a problem with the HP-UX
70848         11.23 native C compiler, reported by Bob Proulx.
70849
70850 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70851
70852         * doc/maintain.texi, make-stds.texi: Sync from
70853         <http://savannah.gnu.org/projects/gnustandards>.
70854
70855 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70856
70857         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70858
70859 2006-07-09  Jim Meyering  <jim@meyering.net>
70860
70861         * m4/glob.m4: Remove a doubled word in a comment.
70862
70863 2006-07-09  Jim Meyering  <jim@meyering.net>
70864
70865         * lib/argp-pv.c: Remove a doubled word in a comment.
70866         * lib/check-version.c (check_version): Likewise.
70867         * lib/javacomp.c (compile_java_class): Likewise.
70868
70869 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70870
70871         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70872         for the benefit of people using Autoconf 2.60.  If you want to
70873         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70874         (or m4/onceonly.m4, if pre-2.57) manually.
70875
70876 2006-07-08  Jim Meyering  <jim@meyering.net>
70877
70878         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70879         comment.
70880         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70881         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70882         comment.
70883
70884 2006-07-08  Jim Meyering  <jim@meyering.net>
70885
70886         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70887
70888 2006-07-07  Simon Josefsson  <jas@extundo.com>
70889
70890         * tests/test-crc.c: Change expected crc value, the test vector
70891         were probably computed using the old broken crc.c?
70892
70893 2006-07-06  Simon Josefsson  <jas@extundo.com>
70894
70895         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70896         now the canonical place for the M4 file).
70897
70898         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70899         from the sys_socket dependency now.
70900
70901         * modules/inet_pton (Files): Ditto.
70902
70903         * modules/inet_ntop (Files): Ditto.
70904
70905 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70906
70907         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70908         not gl_PREREQ_GETUSERSHELL.
70909
70910 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70911
70912         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70913         with only one argument, for Autoconf 2.60.
70914         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70915         expand to nothing, so add a shell command to avoid syntax error.
70916         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70917
70918 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70919
70920         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70921
70922 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70923
70924         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70925         no longer needed.  Check for isblank decl.
70926         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70927         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70928         of existence.
70929
70930 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70931
70932         * lib/getloadavg.c: Use __VMS, not VMS.
70933         * lib/getopt.c: Likewise.
70934         * lib/getpagesize.h: Likewise.
70935         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70936         and probably does not work.
70937
70938 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70939
70940         * lib/.cppi-disable: Add wcwidth.
70941         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70942         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70943         (ISGRAPH): Remove.  All uses changed to isgraph.
70944         (FOLD) [!defined _LIBC]: Remove special case.
70945         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70946         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70947         HAVE_ISBLANK.
70948         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70949         case.
70950
70951 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70952
70953         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70954         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70955         brackets.  Other minor changes to suppress some compiler
70956         warnings.
70957
70958 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70959         and Paul Eggert  <eggert@cs.ucla.edu>
70960
70961         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70962         of invoking obsolescent AC_HEADER_DIRENT macro.
70963         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70964         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70965         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70966         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70967         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70968         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70969         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70970         * m4/readdir.m4: Remove; no longer needed.
70971
70972 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70973         and Paul Eggert  <eggert@cs.ucla.edu>
70974
70975         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70976         Don't worry about this obsolete case any more.
70977         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70978         directories.
70979         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70980         worry about this obsolete case any more.
70981         * lib/fts.c: Likewise.
70982         * lib/getcwd.c: Likewise.
70983         * lib/glob.h: Likewise.
70984         * lib/savedir.c: Likewise.
70985
70986 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70987
70988         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70989         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70990         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70991         needed.
70992         All uses removed.
70993         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70994         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70995         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70996         needed.
70997         * m4/getdate.m4 (gl_GETDATE): Likewise.
70998         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70999         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71000         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71001         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71002         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71003         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71004         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71005         needed.
71006
71007 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71008
71009         * lib/memcasecmp.c: Include <limits.h>.
71010         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71011         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71012         Don't assume isdigit succeeds only on '0' through '9'.
71013
71014 2006-07-05  Eric Blake  <ebb9@byu.net>
71015
71016         * modules/getaddrinfo (Depends-on): Add snprintf.
71017
71018 2006-07-05  Eric Blake  <ebb9@byu.net>
71019
71020         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71021         to avoid 'header present but could not be compiled' on cygwin.
71022
71023 2006-07-05  Eric Blake  <ebb9@byu.net>
71024
71025         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71026         missing from netdb.h.
71027         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71028
71029 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71030
71031         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71032         no longer needed.
71033         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71034         * m4/getdate.m4 (gl_GETDATE): Likewise.
71035         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71036         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71037         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71038         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71039         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71040
71041 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71042
71043         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71044         All uses of is_space replaced by isspace.
71045         * lib/exit.h: Don't talk about STDC_HEADERS.
71046         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71047         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71048         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71049         replaced by isprint etc.
71050         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71051         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71052         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71053         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71054         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71055         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71056
71057 2006-07-05  Bruno Haible  <bruno@clisp.org>
71058
71059         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71060         the function exists, before testing against AIX.
71061         Reported by Martin Lambers <marlam@marlam.de>.
71062
71063 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71064
71065         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71066         From Mark D. Baushke.
71067
71068 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71069
71070         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71071         to the absolute name, not just one, to bypass Sun C 5.8's
71072         "warning: #include of /usr/include/... may be non-portable".
71073
71074 2006-07-04  Eric Blake  <ebb9@byu.net>
71075
71076         * modules/dirname-tests: New test module.
71077         * tests/test-dirname.c: New file, replacing dirname.c
71078         TEST_DIRNAME section that was recently deleted.
71079
71080 2006-07-04  Bruno Haible  <bruno@clisp.org>
71081
71082         Assume ANSI C header files and <ctype.h> functions.
71083         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71084         (mbsnwidth): Use isprint, iscntrl instead.
71085
71086 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71087
71088         Merge from coreutils.
71089         * MODULES.html.sh: Add xstrtold.
71090         * modules/xstrtold: New file.
71091         * modules/cycle-check (Files): Add lib/same-inode.h.
71092         * modules/dirname (Files): Add m4/double-slash-root.m4.
71093         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71094         * modules/mkdir-p (Files): Add lib/same-inode.h.
71095         * modules/same (Files): Add lib/same-inode.h.
71096
71097 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71098
71099         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71100         This is to keep the terminology clean; POSIX talks about
71101         "absolute pathnames", not "full pathnames", but the GNU
71102         Coding Standards say to use "path" for something else;
71103         so use "absolute" to keep both sides happy.
71104         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71105         Set gl_absolute_header, not gl_full_header_path.
71106         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71107         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71108         All uses changed.
71109
71110         Merge from coreutils.
71111
71112         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71113
71114         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71115         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71116         want to require the building of c-strtod.o.
71117         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71118         needs -lm directly.
71119         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71120
71121         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71122
71123         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71124         --as-needed option if available.  Problem reported by Albert Chin in
71125         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71126         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71127         cc merely issues a bunch of annoying warnings for --as-needed
71128         (this problem was reported by Bob Proulx).  Also, try linking with
71129         -lm to detect a bug in binutils 2.16 (this problem was reported
71130         by Ralf Wildenhues).
71131
71132         2006-06-18  Jim Meyering  <jim@meyering.net>
71133
71134         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71135         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71136         macro.
71137         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71138         also check for glibc-2.4's abort-inducing bug.
71139
71140         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71141         Low-probability clean-up should be to use rmdir to get rid of
71142         the just-created directory, not unlink.
71143
71144         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71145         configure fail, and request a bug report to inform us about it.
71146         Add a comment that, barring reports to the contrary, in 2007 we'll
71147         assume ftruncate is universally available.
71148
71149         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71150
71151         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71152
71153         2006-03-12  Jim Meyering  <jim@meyering.net>
71154
71155         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71156         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71157         * m4/same.m4 (gl_SAME): Likewise.
71158         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71159
71160         2006-03-11  Eric Blake  <ebb9@byu.net>
71161
71162         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71163         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71164         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71165         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71166
71167 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71168
71169         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71170         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71171         reported by Mark D. Baushke, one in
71172         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71173
71174         Merge from coreutils.
71175
71176         * lib/.cppi-disable: Add stdint_.h.
71177         * lib/.cvsignore: Add stdint.h.
71178
71179         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71180
71181         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71182         both double and long double versions.
71183         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71184         * lib/xstrtold.c: New file.
71185         * lib/xstrtod.h (xstrtold): New decl.
71186
71187         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71188
71189         * lib/filemode.c (setst): Remove.
71190         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71191         (arguably) clearer, and the generated code is a bit smaller on my
71192         Debian GNU/Linux stable x86 host.
71193
71194         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71195
71196         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71197         Assume that filemode.h includes sys/types.h and sys/stat.h.
71198         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71199         (ftypelet): Reorder to put common cases first, for efficiency.
71200         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71201         to do 'M'.
71202         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71203         of 10, for compatibility with FreeBSD.  All callers changed.
71204         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71205         types that can't be deduced solely from st_mode.  First arg is now a
71206         const pointer.
71207         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71208         (strmode): Renamed from mode_string.
71209         (filemodestring): New decl.
71210         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71211         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71212         needed.
71213         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71214
71215         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71216
71217         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71218         fsusage.h now does that.  Include fsusage.h first, to test interface.
71219         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71220         at most one method (the old code could have generated decls that
71221         didn't conform to C89, not that this was ever exercised).
71222         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71223
71224         2006-03-19  Jim Meyering  <jim@meyering.net>
71225
71226         Work even in a chroot where d_ino values for entries in "/"
71227         don't match the stat.st_ino values for the same names.
71228         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71229         number, iterate through all entries again, using lstat instead.
71230         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71231         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71232
71233         * lib/getcwd.c (__getcwd): Clarify a comment.
71234         Use memcpy in place of a call to strcpy.
71235
71236         2006-03-12  Jim Meyering  <jim@meyering.net>
71237
71238         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71239         matches that of the current directory (which we're about to chdir ".."
71240         out of), then save the dev-ino of the parent, instead.
71241
71242         * lib/same-inode.h (SAME_INODE): New file/macro.
71243         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71244         Include "same-inode.h", instead.
71245         * lib/same.c: Likewise.
71246         * lib/cycle-check.h: Include "same-inode.h".
71247         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71248         * lib/cycle-check.c (SAME_INODE): Remove definition.
71249         * lib/root-dev-ino.h: Include "same-inode.h".
71250
71251         2006-03-11  Eric Blake  <ebb9@byu.net>
71252
71253         * lib/same.c (same_name): s/base_name/last_component/
71254         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71255         * lib/filenamecat.c (file_name_concat): Likewise.
71256
71257         2006-03-11  Eric Blake  <ebb9@byu.net>,
71258                     Paul Eggert  <eggert@cs.ucla.edu>
71259
71260         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71261         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71262         drive prefix.
71263         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71264         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71265         (last_component): New method.
71266         * lib/dirname.c (dir_len): Determine when drive letters need a
71267         subsequent slash.  Preserve // when it is special.
71268         (dir_name): Don't append dot when drive letter is absolute.
71269         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71270         * lib/basename.c (base_name): New semantics - malloc the result.
71271         Preserve // when it is special.  Preserve relative files that look
71272         like drive letters.
71273         (base_len): Preserve // when it is special.
71274         (last_component): New method, similar to old base_name semantics.
71275         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71276         base_name.  Strip redundant slashes from ///.
71277
71278 2006-07-03  Jim Meyering  <jim@meyering.net>
71279
71280         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71281         macro is used before the first cycle_check call.
71282
71283 2006-07-03  Eric Blake  <ebb9@byu.net>
71284
71285         * modules/dirname (Depends-on): Add xstrndup.
71286
71287 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71288
71289         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71290         test cases, so that config.log is a bit easier to follow.
71291
71292 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71293
71294         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71295         both are 64 bits, since this seems to be the tradition, and this
71296         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71297         we ever run into a host that prefers long long to long in this
71298         case, we'll need another configure-time test.  Problem reported by
71299         Jim Meyering.
71300
71301 2006-07-02  Eric Blake  <ebb9@byu.net>
71302
71303         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71304
71305 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71306
71307         * modules/inttypes (Depends-on): No longer depends on stdint.
71308         * modules/stdint (Description): Say more about assumptions.
71309         Say that the fast types might differ.  Say macros are used.
71310         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71311         (Makefile.am): Revise list of substituted symbols to match
71312         new stdint.m4.
71313         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71314         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71315         * tests/test-stdint.c (verify_same_types)
71316         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71317         the code conforms to C99/C89.
71318         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71319         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71320
71321 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71322
71323         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71324         but fix a bug, by requiring at least 64 bits.
71325         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71326         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71327         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71328         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71329
71330         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71331         changes.  Make 2.59 a prerequisite.  Check and substitute for
71332         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71333         inttypes.h.  Do not use special include files; just use the
71334         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71335         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71336         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71337         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71338         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71339         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71340         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71341         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71342         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71343         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71344         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71345         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71346         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71347         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71348         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71349         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71350         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71351         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71352         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71353         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71354         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71355         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71356         not check for things that C99 does not require, e.g., int8_t.  If
71357         a test isn't needed unless <stdint.h> isn't working, and is
71358         unlikely to be needed for any other reason, then don't do it
71359         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71360         size_t, since we assume C89 freestanding at least.  Do not check
71361         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71362         the right thing even if the types are not defined.  Instead use:
71363         (gl_STDINT_TYPE_PROPERTIES): New macro.
71364         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71365         testing whether <sys/types.h> clashes, as Autoconf does this for
71366         us now.  All uses removed.
71367         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71368         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71369         (gl_CHECK_TYPE_SAME):
71370         Remove; no longer needed.
71371         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71372         exists, since we'll return 0 anyway in that case.
71373         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71374
71375 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71376
71377         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71378         possible collision with system files.
71379         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71380         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71381         WCHAR_MIN and WCHAR_MAX in this case.
71382         (<stddef.h>): Do not include; no longer needed.
71383         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71384         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71385         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71386         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71387         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71388         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71389         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71390         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71391         !defined(__c99))]: Include in this case too, since it's harmless
71392         now.
71393         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71394         dangerous to do so.
71395         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71396         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71397         (_STDINT_MIN, _STDINT_MAX): New macros.
71398         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71399         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71400         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71401         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71402         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71403         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71404         macros, not typedefs; this simplifies things quite a bit.
71405         Use long int for all types narrower than int64_t.
71406         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71407         Define in terms of long long int or int64_t or long int,
71408         not int64_t or int32_t.  This saves some compile-time testing.
71409         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71410         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71411         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71412         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71413         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71414         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71415         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71416         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71417         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71418         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71419         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71420         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71421         undef any previous version and define our own version, for
71422         simplicity and consistency with the new macros for types.
71423         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71424         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71425         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71426         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71427         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71428         @WINT_T_SUFFIX@ to keep things simple here.
71429         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71430         Simplify by assuming typical 8/16/32/64 host, since we're
71431         already doing that elsewhere anyway.
71432         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71433         and assume long long int is 64 bits if available.  This
71434         speeds up 'configure'.
71435
71436 2006-07-01  Eric Blake  <ebb9@byu.net>
71437
71438         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71439         Reported by Andreas Buening.
71440
71441 2006-07-01  Eric Blake  <ebb9@byu.net>
71442
71443         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71444
71445 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71446
71447         * lib/getaddrinfo.c: fixed typo
71448
71449 2006-06-29  Jim Meyering  <jim@meyering.net>
71450
71451         * modules/strftime (Maintainer): Add my name, since with the
71452         FPRINTFTIME changes strftime.c has forked from glibc.
71453
71454 2006-06-29  Eric Blake  <ebb9@byu.net>
71455
71456         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71457
71458 2006-06-29  Eric Blake  <ebb9@byu.net>
71459
71460         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71461
71462 2006-06-29  Eric Blake  <ebb9@byu.net>
71463
71464         * lib/stat_.h: New file.
71465
71466 2006-06-29  Eric Blake  <ebb9@byu.net>
71467
71468         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71469         unused static function.
71470
71471 2006-06-29  Eric Blake  <ebb9@byu.net>
71472
71473         * doc/functions.texi (Function Portability): Document missing lstat
71474         on mingw.
71475
71476 2006-06-29  Eric Blake  <ebb9@byu.net>
71477
71478         * MODULES.html.sh: Add sys_stat.
71479         * modules/sys_stat: New module.
71480         * modules/mkstemp (Depends-on): Add sys_stat.
71481
71482 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71483
71484         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71485
71486 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71487
71488         * m4/c-bs-a.m4: Removed.
71489
71490 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71491
71492         * lib/strftime.c: Assume strftime() exists.
71493
71494 2006-06-29  Derek Price  <derek@ximbiot.com>
71495
71496         * modules/c-bs-a: Removed - \a is C89.
71497         * MODULES.html.sh: Remove c-bs-a.
71498
71499 2006-06-29  Bruno Haible  <bruno@clisp.org>
71500
71501         * modules/wcwidth (License): Change to LGPL.
71502
71503 2006-06-28  Simon Josefsson  <jas@extundo.com>
71504
71505         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71506         on _WIN32.
71507
71508         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71509         getnameinfo.
71510
71511 2006-06-28  Simon Josefsson  <jas@extundo.com>
71512
71513         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71514
71515 2006-06-28  Simon Josefsson  <jas@extundo.com>
71516
71517         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71518         functions there.  It will succeed on Windows XP, but on Windows
71519         2000 and (presumably) earlier, it will fail, and use the internal
71520         re-implementation.
71521         (use_win32_p): New function.
71522         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71523         Support AI_NUMERICSERV to disable getservbyname.
71524         (getnameinfo): New function, only supports
71525         NI_NUMERICHOST|NI_NUMERICSERV for now.
71526
71527         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71528         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71529         getnameinfo.
71530
71531 2006-06-28  Eric Blake  <ebb9@byu.net>
71532
71533         * modules/wcwidth: New file.
71534         * modules/mbchar (Depends-on): Add wcwidth.
71535         * modules/mbswidth (Depends-on): Add wcwidth.
71536         * MODULES.html.sh: Add wcwidth.
71537
71538 2006-06-28  Eric Blake  <ebb9@byu.net>
71539
71540         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71541         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71542
71543 2006-06-28  Eric Blake  <ebb9@byu.net>
71544
71545         * lib/xvasprintf.h: Fix comments.
71546
71547 2006-06-28  Eric Blake  <ebb9@byu.net>
71548
71549         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71550         * lib/mbswidth.c (wcwidth): Move from here...
71551         * lib/wcwidth.h: ...to this new file.
71552
71553 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71554
71555         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71556
71557         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71558         it's obsolete.
71559         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71560
71561 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71562
71563         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71564         Autoconf 2.60 says this stuff was obsolete.
71565
71566 2006-06-28  Bruno Haible  <bruno@clisp.org>
71567
71568         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71569
71570 2006-06-28  Bruno Haible  <bruno@clisp.org>
71571
71572         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71573         gt_TYPE_WCHAR_T.
71574
71575 2006-06-28  Bruno Haible  <bruno@clisp.org>
71576
71577         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71578         declaration for wcwidth.
71579         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71580
71581 2006-06-28  Bruno Haible  <bruno@clisp.org>
71582
71583         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71584         (mkdir): Define using _mkdir.
71585
71586 2006-06-28  Bruno Haible  <bruno@clisp.org>
71587
71588         * lib/getaddrinfo.h: Fix POSIX URL.
71589         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71590         _WIN32.
71591         (use_win32_p): Make static.
71592         (getaddrinfo): Reject service name if it is empty or does not consist
71593         solely of decimal digits, or if its value is > 65535.
71594         (getnameinfo): Remove useless casts.
71595
71596 2006-06-27  Simon Josefsson  <jas@extundo.com>
71597
71598         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71599         Eggert and Martin Lambers.
71600
71601 2006-06-27  Simon Josefsson  <jas@extundo.com>
71602
71603         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71604         Eggert and Martin Lambers.
71605
71606 2006-06-27  Bruno Haible  <bruno@clisp.org>
71607
71608         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71609         result to 0, not to empty.
71610         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71611
71612 2006-06-27  Bruno Haible  <bruno@clisp.org>
71613
71614         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71615
71616 2006-06-26  Simon Josefsson  <jas@extundo.com>
71617
71618         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71619         present.
71620
71621 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71622
71623         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71624         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71625         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71626
71627 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71628
71629         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71630
71631 2006-06-26  Bruno Haible  <bruno@clisp.org>
71632
71633         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71634
71635 2006-06-26  Bruno Haible  <bruno@clisp.org>
71636
71637         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71638
71639 2006-06-26  Bruno Haible  <bruno@clisp.org>
71640
71641         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71642         SGI C compiler in pre-C99 mode.
71643         Suggested by Mark D. Baushke and Larry Jones.
71644
71645 2006-06-26  Bruno Haible  <bruno@clisp.org>
71646
71647         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71648         WCHAR_MAX.
71649         Reported by Mark D. Baushke and Larry Jones.
71650
71651 2006-06-26  Bruno Haible  <bruno@clisp.org>
71652
71653         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71654         in pre-C99 mode.
71655         Suggested by Mark D. Baushke and Larry Jones.
71656
71657 2006-06-23  Simon Josefsson  <jas@extundo.com>
71658             Bruno Haible  <bruno@clisp.org>
71659
71660         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71661         Emit mostlyclean-local rule.
71662         (func_emit_tests_Makefile_am): Likewise.
71663         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71664
71665 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71666
71667         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71668
71669 2006-06-23  Bruno Haible  <bruno@clisp.org>
71670
71671         * tests/test-stdint.c: Update to match ISO C 99 Technical
71672         Corrigendum 1.
71673
71674 2006-06-23  Bruno Haible  <bruno@clisp.org>
71675
71676         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71677
71678 2006-06-23  Bruno Haible  <bruno@clisp.org>
71679
71680         * lib/stdint_.h: Treat IRIX like OpenBSD.
71681
71682 2006-06-23  Bruno Haible  <bruno@clisp.org>
71683
71684         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71685         ISO C 99 Technical Corrigendum 1.
71686
71687 2006-06-22  Simon Josefsson  <jas@extundo.com>
71688
71689         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71690         MinGW.
71691
71692 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71693
71694         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71695         needed.  Some compiler complained about some of them.  Problem reported
71696         by Larry Jones in
71697         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71698
71699 2006-06-21  Simon Josefsson  <jas@extundo.com>
71700
71701         * tests/test-getaddrinfo.c: New file.
71702
71703         * modules/getaddrinfo-tests: New file.
71704
71705         * MODULES.html.sh: Add inet_pton.
71706
71707         * modules/inet_pton: New file.
71708
71709 2006-06-21  Simon Josefsson  <jas@extundo.com>
71710
71711         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71712         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71713         of using the (limited) gnulib implementation on Windows XP.
71714
71715         * m4/inet_pton.m4: New file.
71716
71717 2006-06-21  Simon Josefsson  <jas@extundo.com>
71718
71719         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71720         variable.
71721
71722         * lib/socket_.h: Don't define WINVER.
71723
71724         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71725         slightly modified to work in gnulib.
71726
71727 2006-06-21  Simon Josefsson  <jas@extundo.com>
71728
71729         * doc/gnulib.texi (Windows sockets): Add.
71730
71731 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71732
71733         * lib/read-file.c (fread_file): Start with buffer allocation of
71734         0 bytes rather than 1 byte; this simplifies the code.
71735         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71736         code to free buffer and save/restore errno.
71737         (internal_read_file): Remove unused local.
71738
71739 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71740
71741         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71742         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71743         Problem reported by Denis Excoffier in
71744         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71745
71746 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71747
71748         * modules/sys_socket, modules/socklen: Include sys/types since
71749         FreeBSD 4.x's sys/socket.h needs it.
71750
71751 2006-06-19  Simon Josefsson  <jas@extundo.com>
71752
71753         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71754
71755 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71756
71757         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71758
71759 2006-06-19  Bruno Haible  <bruno@clisp.org>
71760
71761         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71762         and FULL_PATH_INTTYPES_H in angle brackets.
71763         Reported by Mark D. Baushke <mdb@gnu.org>.
71764
71765 2006-06-17  Eric Blake  <ebb9@byu.net>
71766
71767         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71768         errno.
71769
71770 2006-06-17  Bruno Haible  <bruno@clisp.org>
71771
71772         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71773         <sys/inttypes.h>.
71774
71775 2006-06-17  Bruno Haible  <bruno@clisp.org>
71776
71777         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71778         whether errno is declared. Assume <errno.h> declares errno.
71779
71780 2006-06-17  Bruno Haible  <bruno@clisp.org>
71781
71782         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71783
71784 2006-06-17  Bruno Haible  <bruno@clisp.org>
71785
71786         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71787         problem on Solaris 2.5.1.
71788
71789 2006-06-16  Eric Blake  <ebb9@byu.net>
71790
71791         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71792         * lib/unicodeio.c [!defined errno]: Likewise.
71793         * lib/strtol.c [!defined errno]: Likewise.
71794         * lib/strtod.c [!defined errno]: Likewise.
71795
71796 2006-06-15  Eric Blake  <ebb9@byu.net>
71797
71798         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71799
71800 2006-06-15  Eric Blake  <ebb9@byu.net>
71801
71802         * config/srclist.txt (ssize_t.m4): Lose sync.
71803
71804 2006-06-15  Bruno Haible  <bruno@clisp.org>
71805
71806         * modules/stdint (Files): Include m4/full-header-path.m4,
71807         m4/size_max.m4, m4/wchar_t.m4.
71808         (Makefile.am): Many more substitutions.
71809         * modules/stdint-tests: New file.
71810         * tests/test-stdint.c: New file.
71811
71812 2006-06-15  Bruno Haible  <bruno@clisp.org>
71813
71814         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71815         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71816         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71817         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71818         gl_CHECK_TYPE_SAME): New macros.
71819
71820 2006-06-15  Bruno Haible  <bruno@clisp.org>
71821
71822         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71823
71824 2006-06-15  Bruno Haible  <bruno@clisp.org>
71825
71826         * lib/stdint_.h: Rewritten to be fully auto-configured.
71827         Fixes bug on HP-UX/IA64.
71828
71829 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71830
71831         * lib/getdate.y (__attribute__): Don't define if already defined.
71832         Problem reported by Larry Jones.
71833         * lib/utimens.c (__attribute__): Likewise.
71834
71835 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71836
71837         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71838         reported by Andreas Schwab.
71839
71840 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71841             Bruno Haible  <bruno@clisp.org>
71842
71843         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71844         check for the declaration of strnlen and a run test that exposes the
71845         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71846         rpl_strndup.
71847
71848 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71849             Bruno Haible  <bruno@clisp.org>
71850
71851         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71852
71853 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71854
71855         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71856         compile test, for Tru64 4.0D.
71857
71858 2006-05-28  Karl Berry  <karl@gnu.org>
71859
71860         * config/srclist.txt (printf-args.c): lose sync.
71861
71862 2006-05-26  Martin Lambers  <marlam@marlam.de>
71863
71864         * lib/getpass.c: Updates the test for the native W32 API, and adds
71865         missing includes, thus fixing compilation warnings.
71866
71867 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71868
71869         * lib/exclude.c (exclude_fnmatch): New function.
71870         (excluded_file_name): Call exclude_fnmatch.
71871         * lib/exclude.h (excluded_file_name): New prototype
71872
71873 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71874
71875         * lib/tempname.c (small_open, large_open): New macros.
71876         (__open, __open64) [!_LIBC]: Remove.
71877         (__gen_tempname): Use small_open and large_open instead of __open
71878         and __open64.  This fixes a portability bug on HP-UX 11.11i
71879         reported by Simon Wing-Tang in
71880         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71881
71882 2006-05-24  Bruno Haible  <bruno@clisp.org>
71883
71884         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71885         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71886         Reported by Thorsten Maerz <torte@netztorte.de> via
71887         Aaron Stone <aaron@serendipity.cx>.
71888
71889 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71890
71891         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71892         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71893         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71894         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71895         not really conditional on the cache.
71896         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71897
71898 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71899
71900         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71901         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71902         (my_usleep): Don't mishandle maximum value.
71903
71904 2006-05-19  Jim Meyering  <jim@meyering.net>
71905
71906         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71907
71908 2006-05-17  Bruno Haible  <bruno@clisp.org>
71909
71910         Cygwin portability.
71911         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71912
71913 2006-05-17  Bruno Haible  <bruno@clisp.org>
71914
71915         * lib/stdint_.h: Fix recognition of Cygwin.
71916
71917 2006-05-15  Bruno Haible  <bruno@clisp.org>
71918
71919         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71920         on libtool patch by Ralf Wildenhues.
71921
71922 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71923
71924         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71925         test for C99 conformance; (bool) 0.5 is an integer constant
71926         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71927         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71928
71929 2006-05-11  Simon Josefsson  <jas@extundo.com>
71930
71931         * m4/xvasprintf.m4: Fix obvious typo.
71932
71933 2006-05-11  Jim Meyering  <jim@meyering.net>
71934
71935         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71936         James Lemley.
71937
71938 2006-05-10  Simon Josefsson  <jas@extundo.com>
71939
71940         * lib/md4.c: Typo fix, update copyright years.
71941         (K1, K2): Don't use L because it turn computations into 64-bit on
71942         64-bit platforms.
71943
71944 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71945
71946         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71947         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71948         unwanted sign propagation, e.g., on hosts with 64-bit int.
71949         There still are some problems with reeelly weird theoretical hosts
71950         (e.g., 33-bit int) but it's not worth worrying about now.
71951         * lib/sha1.c (rol): Likewise.
71952         (K1, K2, K3, K4): Remove unnecessary L suffix.
71953
71954 2006-05-10  Bruno Haible  <bruno@clisp.org>
71955
71956         * lib/des.c: Cast to avoid warnings.
71957
71958 2006-05-09  Bruno Haible  <bruno@clisp.org>
71959
71960         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71961         (Depends-on): Depend also on xsize, stdarg.
71962         (configure.ac): Add gl_XVASPRINTF.
71963
71964 2006-05-09  Bruno Haible  <bruno@clisp.org>
71965
71966         * m4/xvasprintf.m4: New file.
71967
71968 2006-05-09  Bruno Haible  <bruno@clisp.org>
71969
71970         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71971         (EOVERFLOW): Define fallback value.
71972         (xstrcat): New function.
71973         (xvasprintf): Recognize the special case of a string concatenation.
71974
71975 2006-05-08  Eric Blake  <ebb9@byu.net>
71976
71977         * gnulib-tool (func_version): Base copyright year on CVS date.
71978         (func_emit_copyright_notice): New function.
71979         (func_emit_lib_Makefile_am): Use it.
71980         (func_emit_tests_Makefile_am): Likewise.
71981         (func_import): Likewise.
71982
71983 2006-05-08  Bruno Haible  <bruno@clisp.org>
71984
71985         * modules/stdarg: New file.
71986         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71987
71988 2006-05-08  Bruno Haible  <bruno@clisp.org>
71989
71990         * m4/stdarg.m4: New file, from GNU gettext.
71991
71992 2006-05-08  Bruno Haible  <bruno@clisp.org>
71993
71994         * config/srclist.txt (build-aux/config.rpath): different from latest
71995         release.
71996
71997 2006-05-08  Bruno Haible  <bruno@clisp.org>
71998
71999         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72000
72001 2006-05-05  Jim Meyering  <jim@meyering.net>
72002
72003         * m4/warning.m4: New file, derived from bison's file by the same name.
72004
72005 2006-05-03  Bruno Haible  <bruno@clisp.org>
72006
72007         * lib/stdint_.h: Shorter URL.
72008         * lib/inttypes.h: Likewise.
72009
72010 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72011
72012         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72013
72014 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72015
72016         * lib/verify.h: Document the internals better.  Most of this change
72017         was written by Bruno Haible.
72018
72019 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72020
72021         * doc/verify.texi: New file, partly based on a proposal by
72022         Bruno Haible.
72023
72024 2006-05-02  Bruno Haible  <bruno@clisp.org>
72025
72026         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72027         test from here...
72028         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72029
72030 2006-04-29  Bruno Haible  <bruno@clisp.org>
72031
72032         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72033         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72034
72035 2006-04-29  Bruno Haible  <bruno@clisp.org>
72036
72037         * gnulib-tool: Make --update option actually work.
72038
72039 2006-04-29  Bruno Haible  <bruno@clisp.org>
72040
72041         * doc/gcd.texi: New file.
72042         * doc/gnulib.texi: Include it.
72043
72044 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72045
72046         * lib/getdate.y (get_date): When adding relative date, start with the
72047         initial time, not with the result of the first mktime call.
72048
72049 2006-04-25  Bruno Haible  <bruno@clisp.org>
72050
72051         * gnulib-tool (func_import): Output the include directives in three
72052         blocks, sorted separately.
72053         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72054
72055 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72056
72057         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72058         to define main with arguments, for C++.  Reported by Eric Blake.
72059         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72060         Prefer 'int main ()' to 'int main (void)', for C++.
72061         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72062         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72063         for 'main', for C99 and C++.
72064
72065 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72066
72067         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72068         Don't assume that exit status -1 is valid.
72069         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72070         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72071         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72072         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72073         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72074         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72075         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72076         functions can be used without declaring them, or that you can
72077         exit with status -1.
72078         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72079
72080 2006-04-24  Karl Berry  <karl@gnu.org>
72081
72082         * config/srclist.txt (longdouble.m4): sync lost.
72083
72084 2006-04-24  Eric Blake  <ebb9@byu.net>
72085
72086         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72087
72088 2006-04-24  Bruno Haible  <bruno@clisp.org>
72089
72090         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72091         poll() implementation in AIX.
72092         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72093
72094 2006-04-24  Bruno Haible  <bruno@clisp.org>
72095
72096         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72097         assigned exactly once.
72098
72099 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72100             Bruno Haible  <bruno@clisp.org>
72101
72102         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72103         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72104         for AM_CPPFLAGS.
72105
72106 2006-04-23  Bruno Haible  <bruno@clisp.org>
72107
72108         * modules/copy-file: Depend on unistd.
72109         * modules/execute: Likewise.
72110         * modules/fatal-signal: Likewise.
72111         * modules/findprog: Likewise.
72112         * modules/mkdtemp : Likewise.
72113         * modules/pipe: Likewise.
72114         * modules/wait-process: Likewise.
72115
72116 2006-04-23  Bruno Haible  <bruno@clisp.org>
72117
72118         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72119         condition was already detected.
72120         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72121
72122 2006-04-23  Bruno Haible  <bruno@clisp.org>
72123
72124         * lib/copy-file.c: Include <unistd.h> unconditionally.
72125         * lib/execute.c: Likewise.
72126         * lib/fatal-signal.c: Likewise.
72127         * lib/findprog.c: Likewise.
72128         * lib/mkdtemp.c: Likewise.
72129         * lib/pipe.h: Likewise.
72130         * lib/pipe.c: Likewise.
72131         * lib/wait-process.h: Likewise.
72132
72133 2006-04-23  Bruno Haible  <bruno@clisp.org>
72134
72135         * gnulib-tool (func_usage): Fix --import description. Document
72136         --update.
72137         (func_import): Create temporary file in a temporary directory, if
72138         --dry-run is specified. Silence errors from 'grep' when there are no
72139         m4 files in $m4dir.
72140         (func_create_testdir): Silence errors from 'grep' when there are no
72141         m4 files in $m4dir.
72142         Reported by Karl Berry <karl@freefriends.org>.
72143
72144 2006-04-20  Bruno Haible  <bruno@clisp.org>
72145
72146         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72147         one argument, so that the code will be portable to Autoconf 2.60.
72148         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72149         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72150         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72151
72152 2006-04-19  Derek Price  <derek@ximbiot.com>
72153             Eric Blake  <ebb9@byu.net>
72154
72155         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72156         rather than "/full/path.h".  Update comment to match.  Shorten &
72157         generalize m4_translit call via AS_TR_CPP.
72158
72159 2006-04-19  Derek Price  <derek@ximbiot.com>
72160             Eric Blake  <ebb9@byu.net>
72161
72162         * lib/inttypes.h: Correct grammar in comment.
72163
72164 2006-04-18  Derek Price  <derek@ximbiot.com>
72165             Paul Eggert  <eggert@cs.ucla.edu>
72166
72167         * modules/inttypes: New file.
72168         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72169
72170 2006-04-18  Derek Price  <derek@ximbiot.com>
72171             Paul Eggert  <eggert@cs.ucla.edu>
72172
72173         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72174         New files.
72175
72176 2006-04-18  Derek Price  <derek@ximbiot.com>
72177             Paul Eggert  <eggert@cs.ucla.edu>
72178
72179         * lib/inttypes.h: New file.
72180         * lib/strtoimax.c: Assume <inttypes.h>.
72181
72182 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72183
72184         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72185         isn't mounted.  Problem reported by Kir Kolyshkin.
72186
72187 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72188
72189         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72190         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72191         Derek R. Price.
72192         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72193         implementation.
72194
72195 2006-04-12  Eric Blake  <ebb9@byu.net>
72196
72197         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72198         is now done automatically by the corresponding Autoconf macro.
72199
72200 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72201
72202         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72203         time_r.h.
72204
72205 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72206
72207         Merge regex changes from libc, removing some of our
72208         POSIX-conformance changes that were rejected and redoing them in a
72209         less-intrusive way.
72210
72211         * lib/regcomp.c (re_compile_internal, init_dfa):
72212         Length arg is now size_t, not Idx.  All uses changed.
72213         (peek_token): Forward decl now says internal_function.
72214         (__re_error_msgid, __re_error_msgid_idx):
72215         Now static rather than extern with attribute_hidden.
72216         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72217         For some reason libc prefers K&R style defns for external functions.
72218         (regerror) [!defined _LIBC]: Likewise.
72219         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72220         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72221         (build_range_exp, build_collating_symbol):
72222         Use K&R-style defn.
72223         (re_compile_fastmap): Use '\0' to memset, not 0.
72224         (utf8_sb_map): Make the calculations more obvious.
72225         (init_dfa, parse_bracket_exp, build_charclass_op):
72226         Call calloc and cast result, as glibc does.
72227         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72228         (build_range_exp, build_collating_symbol):
72229         Now internal functions.
72230
72231         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72232
72233         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72234         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72235         Don't depend on VMS; depend on __VMS instead, for POSIX
72236         namespace cleanness.
72237         (regoff_t): Define to ssize_t, not long int.
72238
72239         Remove the REG_ macros named below.  Instead, make the old names
72240         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72241         __USE_GNU_REGEX.
72242         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72243         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72244         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72245         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72246         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72247         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72248         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72249         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72250         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72251         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72252         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72253         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72254         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72255         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72256         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72257         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72258         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72259         (REG_NREGS):
72260         Remove.  All uses replaced by the old RE_* names.
72261         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72262         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72263         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72264         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72265         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72266         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72267         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72268         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72269         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72270         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72271         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72272         Don't bother having these macros be independent of each others'
72273         values, since they no longer exist in the POSIX name space.
72274
72275         Rename the following member names back to their old names,
72276         unless !__USE_GNU_REGEX.  All uses changed back.
72277         (buffer): Renamed from re_buffer.
72278         (allocated): Renamed from re_allocated.
72279         (used): Renamed from re_used.
72280         (syntax): Renamed from re_syntax.
72281         (fastmap): Renamed from re_fastmap.
72282         (translate): Renamed from re_translate.
72283         (can_be_null): Renamed from re_can_be_null.
72284         (regs_allocated): Renamed from re_regs_allocated.
72285         (fastmap_accurate): Renamed from re_fastmap_accurate.
72286         (no_sub): Renamed from re_no_sub.
72287         (not_bol): Renamed from re_not_bol.
72288         (not_eol): Renamed from re_not_eol.
72289         (newline_anchor): Renamed from re_newline_anchor.
72290         (num_regs): Renamed from rm_num_regs.
72291         (start): Renamed from rm_start.
72292         (end): Renamed from rm_end.
72293
72294         (free_state): Move up a bit.
72295
72296         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72297         #define to be empty.
72298         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72299         when that is what is intended.
72300         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72301         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72302         (MAX): New macro.
72303         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72304         All uses changed back to re_malloc, etc.  It's now the caller's
72305         responsibility to check for overflow; all callers changed.
72306         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72307         (re_x2nrealloc): Remove.
72308         (free_state): Remove decl.
72309
72310         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72311         (re_set_registers, re_exec):
72312         Use K&R-style defn.
72313
72314         2006-01-31  Roland McGrath  <roland@redhat.com>
72315
72316         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72317         Reported by Mike Frysinger <vapier@gentoo.org>.
72318
72319         2006-01-15  Andreas Jaeger  <aj@suse.de>
72320
72321         [BZ #1950]
72322         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72323         build_wcs_upper_buffer change.
72324         (build_wcs_upper_buffer): Change return type.
72325
72326         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72327
72328         * lib/regex_internal.h: Include <stdint.h> if available.
72329
72330         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72331
72332         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72333
72334         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72335
72336         * lib/regcomp.c: Adjust for changed secondary hash function.
72337
72338         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72339
72340         * lib/regex.h: Pretty printing.
72341         Clean up namespace a bit.
72342
72343         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72344
72345         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72346         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72347
72348         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72349                     Ulrich Drepper  <drepper@redhat.com>
72350
72351         [BZ #1302]
72352         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72353         changed.
72354         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72355
72356         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72357
72358         [BZ #281]
72359         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72360         * lib/regcomp.c: Remove unnecessary uses of
72361         unsigned RE_TRANSLATE_TYPE.
72362         * lib/regex_internal.h: Likewise.
72363         * lib/regex_internal.c: Likewise.
72364         * lib/regexec.c: Likewise.
72365         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72366
72367         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72368
72369         * lib/regexec.c (find_recover_state): Remove unnecessary
72370         initialization.
72371         (transit_state_bkref): Make DFA a const pointer.
72372         (get_subexp): Likewise.
72373         (check_arrival): Likewise.
72374         (update_cur_sifted_state): Likewise.
72375         (re_search_internal): Likewise.
72376         (prune_impossible_nodes): Likewise.
72377         (acquire_init_state_context): Likewise.
72378         (proceed_next_node): Likewise.
72379         (set_regs): Likewise.
72380         (free_fail_stack_return): Likewise.
72381         (check_arrival_expand_ecl): Mark DFA parameter as const.
72382         (check_arrival_expand_ecl_sub): Likewise.
72383         (check_subexp_limits): Likewise.
72384         (sub_epsilon_src_nodes):  Likewise.
72385         (add_epsilon_src_nodes):  Likewise.
72386         (merge_state_array): Likewise.
72387         (update_regs): Likewise.
72388         (build_trtable): Likewise.
72389         (sift_states_backward): Mark MCTX parameter as const.
72390         (build_sifted_states): Likewise.
72391         (update_cur_sifted_state): Likewise.
72392         (sift_states_mkref): Likewise.
72393         (check_arrival_expand_ecl): Mark eclosure as const.
72394         (check_dst_limits_calc_pos_1): Likewise.
72395         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72396         pointer.
72397
72398         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72399
72400         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72401         (transit_state_sb): Likewise.
72402         (transit_state_mb): Likewise.
72403         (sift_states_iter_mb): Likewise.
72404         (check_arrival_add_next_nodes): Likewise.
72405         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72406         [_LIBC] (re_search_2_stub): Use mempcpy.
72407
72408         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72409         mbrtowc for very simple UTF-8 case.
72410
72411         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72412         a pointer-to-const.
72413         (re_acquire_state_context): Likewise.
72414         * lib/regex_internal.h: Adjust prototypes.
72415
72416         * lib/regex.c: Prevent using C++ compilers.
72417
72418         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72419         (re_acquire_state_context): Likewise.
72420
72421 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72422
72423         * modules/regex (Depends-on): Add ssize_t.
72424
72425 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72426
72427         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72428         translation table.
72429
72430 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72431
72432         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72433
72434 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72435             Bruno Haible  <bruno@clisp.org>
72436
72437         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72438         <sys/types.h> and <inttypes.h>.
72439
72440 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72441
72442         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72443         `__error_t_defined', so argp.h will not typedef the former.
72444
72445 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72446
72447         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72448         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72449         glibc names.  Even if glibc is changed to conform to POSIX, the
72450         traditional names will be available anyway, since regex depends on
72451         the extensions module.  Also, fix a longstanding typo in the
72452         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72453         reported by Emanuele Giaquinta.  Also, change sense of cached
72454         variable, so that the message makes sense.
72455
72456 2006-03-24  Simon Josefsson  <jas@extundo.com>
72457
72458         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72459         including some doc fixes.
72460         (base64_encode_alloc): Fix +1 bug on allocation failures.
72461
72462 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72463
72464         * lib/base64.c (base64_encode): Do not read past end of array with
72465         unsanitized input on systems with CHAR_BIT > 8.
72466
72467 2006-03-24  Eric Blake  <ebb9@byu.net>
72468
72469         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72470
72471 2006-03-22  Karl Berry  <karl@gnu.org>
72472
72473         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72474         * config/srclistvars.sh (COREUTILS): new var.
72475
72476 2006-03-17  Jim Meyering  <jim@meyering.net>
72477
72478         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72479         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72480
72481 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72482
72483         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72484         no longer needs it.  Instead, check that regoff_t is as least
72485         as wide as ptrdiff_t.
72486
72487         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72488         so that our regex.h stays compatible with the installed regex.
72489         This is helpful for installers who configure --without-included-regex.
72490         Problem reported by Emanuele Giaquinta.
72491
72492 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72493
72494         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72495         Typedef to long int, not to off_, as POSIX will likely change
72496         in that direction.
72497
72498 2006-03-15  Eric Blake  <ebb9@byu.net>
72499
72500         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72501
72502 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72503
72504         * lib/argp-help.c (validate_uparams): Fix typo
72505         * lib/argp-parse.c (argp_default_options): Consistently begin help
72506         messages with a lowercase letter.
72507
72508 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72509
72510         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72511         overrun buffers and shouldn't be used (much as gets shouldn't be
72512         used).
72513         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72514
72515 2006-03-08  Simon Josefsson  <jas@extundo.com>
72516
72517         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72518         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72519
72520 2006-03-08  Simon Josefsson  <jas@extundo.com>
72521
72522         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72523         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72524
72525 2006-03-08  Simon Josefsson  <jas@extundo.com>
72526
72527         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72528         signal that configure disabled the device.
72529
72530 2006-03-08  Simon Josefsson  <jas@extundo.com>
72531
72532         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72533         languages.
72534
72535 2006-03-07  Simon Josefsson  <jas@extundo.com>
72536
72537         * modules/getopt (Depends-on): Add unistd.
72538
72539         * modules/unistd: New file.
72540
72541 2006-03-07  Simon Josefsson  <jas@extundo.com>
72542
72543         * modules/gc-random: New file.
72544
72545 2006-03-07  Simon Josefsson  <jas@extundo.com>
72546
72547         * m4/unistd_h.m4: New file.
72548
72549 2006-03-07  Simon Josefsson  <jas@extundo.com>
72550
72551         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72552         test to be side-effect free by storing the result in the cache
72553         variable gl_cv_lib_readline, and moving the assignment of
72554         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72555         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72556
72557 2006-03-07  Simon Josefsson  <jas@extundo.com>
72558
72559         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72560         error on missing devices (the functions will return an error).
72561
72562         * m4/gc.m4: Move random stuff to gc-random.m4
72563
72564 2006-03-07  Simon Josefsson  <jas@extundo.com>
72565
72566         * lib/unistd_.h: New file.
72567
72568 2006-03-07  Simon Josefsson  <jas@extundo.com>
72569
72570         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72571
72572 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72573
72574         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72575         Problem reported by Juan Manuel Guerrero.
72576
72577 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72578
72579         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72580         the unistd module.
72581         * lib/getlogin_r.c: Likewise.
72582         * lib/getlogin_r.h: Likewise.
72583         * lib/glob.c: Likewise.
72584         * lib/pagealign_alloc.c: Likewise.
72585         * lib/unistd_.h: Remove; no longer needed.
72586
72587 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72588
72589         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72590         Add unistd.
72591         * modules/c-stack (Depends-on): Add unistd.
72592         * modules/getlogin_r: Likewise.
72593         * modules/glob: Likewise.
72594         * modules/pagealign_alloc: Likewise.
72595         * modules/unistd (Files): Remove lib/unistd_.h.
72596         (EXTRA_DIST): Remove.
72597         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72598         need unistd_.h.
72599         (MOSTLYCLEANFILES): Remove unistd.h-t.
72600
72601 2006-03-03  Simon Josefsson  <jas@extundo.com>
72602
72603         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72604
72605 2006-03-03  Simon Josefsson  <jas@extundo.com>
72606
72607         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72608         libidn and bison.
72609
72610 2006-03-03  Simon Josefsson  <jas@extundo.com>
72611
72612         * build-aux/maint.mk: Add indent target.
72613
72614 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72615
72616         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72617         our replacement poll.h in any case, to avoid a differing
72618         declaration from a system header.  Seen on AIX.
72619
72620 2006-03-01  Simon Josefsson  <jas@extundo.com>
72621
72622         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72623         <kasal@ucw.cz>.
72624
72625 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72626
72627         * modules/gettime (Depends-on): Add extensions module.
72628         * modules/nanosleep (Depends-on): Likewise.
72629         * modules/settime (Depends-on): Likewise.
72630
72631 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72632
72633         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72634         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72635         pedantically.
72636         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72637         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72638
72639         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72640         not "==".  Reported by Ralf Wildenhues.
72641
72642 2006-03-01  Karl Berry  <karl@gnu.org>
72643
72644         * doc/Copyright/request-*: new files, synced from gnuorg.
72645
72646 2006-03-01  Karl Berry  <karl@gnu.org>
72647
72648         * config/srclist.txt (Copyright/*): new entries.
72649
72650 2006-02-28  Simon Josefsson  <jas@extundo.com>
72651
72652         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72653
72654 2006-02-27  Simon Josefsson  <jas@extundo.com>
72655
72656         * lib/base64.h: Indent #define's.  From Jim Meyering
72657         <jim@meyering.net>.
72658
72659 2006-02-27  Jim Meyering  <jim@meyering.net>
72660
72661         Revert the change of 2006-02-24, so these files can continue
72662         to be sync'd from gettext.
72663         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72664         of `config.h'.
72665
72666 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72667
72668         * modules/intprops: New file.
72669         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72670         Add intprops.
72671         * modules/getloadavg (Files): Remove lib/intprops.h.
72672         (Depends-on): Add intprops.
72673         * modules/human: Likewise.
72674         * modules/inttostr: Likewise.
72675         * modules/openat: Likewise.
72676         * modules/sig2str: Likewise.
72677         * modules/userspec: Likewise.
72678         * modules/utimecmp: Likewise.
72679         * modules/xnanosleep: Likewise.
72680         * modules/xstrtol: Likewise.
72681
72682 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72683
72684         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72685         * modules/lock-tests (TESTS): Use $(EXEEXT).
72686         * modules/tls-tests: Likewise.
72687         * modules/argp-tests: Likewise.
72688         (check_PROGRAMS): New var, replacing...
72689         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72690
72691 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72692
72693         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72694         `config.h'.
72695
72696 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72697
72698         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72699
72700 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72701
72702         Sync from coreutils.
72703         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72704         gl_CHDIR_SAFER.
72705
72706 2006-02-22  Jim Meyering  <jim@meyering.net>
72707
72708         Sync from coreutils.
72709         * m4/chdir-safer.m4: New file.
72710
72711 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72712
72713         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72714         AT_FDCWD exceeds INT_MAX.
72715         * lib/openat.h (AT_FDCWD): Likewise.
72716
72717 2006-02-17  Eric Blake  <address@hidden>
72718
72719         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72720
72721 2006-02-16  Simon Josefsson  <jas@extundo.com>
72722
72723         * modules/getaddrinfo (Depends-on): Add sys_socket.
72724
72725 2006-02-15  Simon Josefsson  <jas@extundo.com>
72726
72727         * build-aux/maint.mk: Add dsyntax-check rule.
72728
72729 2006-02-15  Eric Blake  <ebb9@byu.net>
72730
72731         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72732         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72733         'present but cannot compile' warnings on cygwin.
72734         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72735         use ws2tcpip.h if sys/socket.h works.
72736         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72737         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72738
72739 2006-02-14  Simon Josefsson  <jas@extundo.com>
72740
72741         * modules/maintainer-makefile (Files): Rename.
72742
72743         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72744         and (the local) Makefile.cfg to maint-cfg.mk.
72745
72746         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72747         to the latter.
72748
72749         * modules/maintainer-makefile: New module.
72750
72751         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72752         severaly stripped to make it possible to build it up from scratch
72753         with reliable tests.
72754
72755         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72756         fixes to permit overriding the default actions when configure and
72757         makefile are not available.
72758
72759 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72760
72761         Sync from coreutils.
72762         * modules/lstat (Depends-on): Don't depend on xalloc.
72763         (License): Change from GPL to LGPL, since this is now simply a
72764         replacement for a libc function.
72765
72766 2006-02-14  Jim Meyering  <jim@meyering.net>
72767
72768         Sync from coreutils.
72769
72770         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72771         failure on deficient systems, and simplify gnulib lgpl dependencies.
72772         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72773         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72774
72775         * lib/xalloc-die.c: Remove unused definition of N_.
72776
72777 2006-02-14  Jim Meyering  <jim@meyering.net>
72778
72779         Sync from coreutils.
72780         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72781         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72782         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72783         double-quote uses of that variable, to accommodate the rare case in
72784         which getmntent is available in none of the libraries checked.  This
72785         happens at least on FreeBSD 5.0.
72786
72787 2006-02-13  Simon Josefsson  <jas@extundo.com>
72788
72789         * gnulib-tool (Usage): Fix --import, from
72790         karl@freefriends.org (Karl Berry).
72791
72792 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72793
72794         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72795
72796 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72797
72798         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72799         "autoupdate" on 2005-12-12.
72800
72801 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72802
72803         * modules/closeout (Depends-on): Remove atexit.
72804
72805 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72806
72807         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72808         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72809
72810 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72811
72812         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72813         __EXTENSIONS__ if this causes compilation to fail.  Problem
72814         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72815         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72816
72817 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72818
72819         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72820         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72821         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72822         All uses changed.
72823
72824 2006-01-26  Simon Josefsson  <jas@extundo.com>
72825
72826         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72827         prototype is visible on mingw32.
72828
72829         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72830         for mingw32.
72831
72832         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72833         mingw32).
72834
72835 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72836
72837         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72838         attempt to open for write; this always fails, at least on POSIX
72839         hosts.  This reinstates the 2006-01-09 change, which was
72840         inadvertently removed.
72841
72842 2006-01-26  Bruno Haible  <bruno@clisp.org>
72843
72844         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72845         Reported by Paul Eggert.
72846
72847 2006-01-26  Bruno Haible  <bruno@clisp.org>
72848             Paul Eggert  <eggert@cs.ucla.edu>
72849
72850         * lib/stdbool_.h (_Bool)
72851         [(! (defined __cplusplus || defined __BEOS__)
72852           && !defined __GNUC__
72853           && !(defined __HP_cc || defined __xlc__
72854                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72855                || defined __sgi))]:
72856         #define to signed char in these cases too; this simplifies
72857         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72858         etc., separately) and makes it more conservative.
72859
72860 2006-01-25  Simon Josefsson  <jas@extundo.com>
72861
72862         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72863         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72864         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72865
72866 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72867
72868         * lib/argp-namefrob.h: Bugfix. Remove stray #
72869
72870 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72871
72872         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72873         so that we test the test.
72874         Check for yet another HP-UX cc bug involving *bool |= bool.
72875
72876 2006-01-25  Karl Berry  <karl@gnu.org>
72877
72878         * config/srclist.txt (vasnprintf.c): sync lost.
72879
72880 2006-01-25  Jim Meyering  <jim@meyering.net>
72881
72882         Sync from the stable (b5) branch of coreutils:
72883
72884         * lib/fts.c (fts_children): Don't let close() clobber errno from
72885         failed fchdir().
72886
72887         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72888         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72889         a dangling symlink.  That can also happen at least for ELOOP.
72890         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72891         FYI, this bug predates the inclusion of fts.c in coreutils.
72892
72893         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72894         in their own block, so pre-c99 compilers don't object.
72895
72896         Avoid the double-free (first in fts_read, second in fts_close) that
72897         would occur when an `active' directory is made inaccessible (e.g.,
72898         via chmod a-x) during a traversal.
72899         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72900         before returning.  Reproduce this failure by
72901         mkdir -p a/b; cd a; chmod a-x . b
72902         Reported by Stavros Passas.
72903
72904 2006-01-25  Jim Meyering  <jim@meyering.net>
72905
72906         * lib/fileblocks.c: Remove more useless parentheses.
72907         * lib/readutmp.h: Likewise.
72908
72909 2006-01-25  Bruno Haible  <bruno@clisp.org>
72910
72911         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72912         warnings.
72913         Reported by Paul Eggert.
72914
72915 2006-01-25  Bruno Haible  <bruno@clisp.org>
72916
72917         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72918         rid of a trap command. For Solaris sh.
72919         Reported by Mark D. Baushke <mdb@gnu.org>.
72920
72921 2006-01-24  Simon Josefsson  <jas@extundo.com>
72922
72923         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72924         Bruno.
72925
72926 2006-01-24  Karl Berry  <karl@gnu.org>
72927
72928         * config/srclist.txt (argp-namefrob.h): sync lost.
72929
72930 2006-01-24  Jim Meyering  <jim@meyering.net>
72931
72932         * modules/openat (Files): Add lib/intprops.h.
72933         From Mark D. Baushke.
72934
72935 2006-01-24  Jim Meyering  <jim@meyering.net>
72936
72937         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72938         Reported by Mark D. Baushke.
72939
72940 2006-01-24  Jim Meyering  <jim@meyering.net>
72941
72942         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72943
72944 2006-01-24  Bruno Haible  <bruno@clisp.org>
72945
72946         * modules/strnlen (Maintainer): Change from glibc to all.
72947
72948 2006-01-24  Bruno Haible  <bruno@clisp.org>
72949
72950         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72951         Patch by Paul Eggert.
72952
72953 2006-01-24  Bruno Haible  <bruno@clisp.org>
72954
72955         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72956         already has it.
72957         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72958         2005-11-26.
72959
72960         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72961         'signed char' to avoid problems with the built-in _Bool type.
72962         Reported by Paul Eggert on 2005-11-26.
72963
72964 2006-01-24  Bruno Haible  <bruno@clisp.org>
72965
72966         * gnulib-tool (func_import): Avoid constructing complicated sed
72967         expressions inside backquote.
72968         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72969
72970 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72971
72972         These changes imported from libc.
72973         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72974         test and two separate function calls.
72975         * lib/strndup.c (__strndup): Add libc_hidden_def.
72976
72977 2006-01-23  Simon Josefsson  <jas@extundo.com>
72978
72979         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72980         Remove the test_*_SOURCES variable: automake infers it by default.
72981         * modules/tls-tests: Likewise.
72982
72983 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72984
72985         Work around porting bugs reported by Dieter in
72986         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72987         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72988         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72989         Include "getopt.h" first, to check interface.
72990         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72991         !HAVE_DECL_GETENV.
72992         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72993         (__strndup): Revert to K&R-style function dfns, the glibc style.
72994         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72995         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72996         Include strnlen.h first, to get prototype properly.
72997         (strnlen): Renamed from __strnlen.
72998         Remove weak alias.
72999
73000 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73001
73002         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73003
73004 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73005
73006         * config/srclist.txt: Adjust to reflect glibc reorganization.
73007         This affects only comments.
73008
73009 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73010
73011          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73012          Reported by Bruce Korb <bkorb@gnu.org>.
73013
73014 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73015
73016         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73017         to pacify gcc -Wswitch-default.
73018
73019 2006-01-22  Bruno Haible  <bruno@clisp.org>
73020
73021         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73022         temporary buffer for sprintf, take into account the precision also
73023         for 'd', 'i', 'u', 'o', 'x', 'X'.
73024
73025 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73026
73027         * modules/argp-tests: New module
73028         * tests/test-argp.c: New file
73029         * tests/test-argp-2.sh: New file
73030
73031 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73032
73033         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73034         (__argp_base_name): Removed
73035         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73036         typo.
73037         (__argp_base_name): Provide macro definition or extern declaration
73038         depending on the configuration
73039
73040 2006-01-20  Simon Josefsson  <jas@extundo.com>
73041
73042         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73043
73044 2006-01-20  Simon Josefsson  <jas@extundo.com>
73045
73046         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73047
73048 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73049
73050         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73051         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73052         Suggested by Bruno Haible.
73053
73054 2006-01-20  Karl Berry  <karl@gnu.org>
73055
73056         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73057         until changes propagate, I guess.
73058
73059 2006-01-19  Simon Josefsson  <jas@extundo.com>
73060
73061         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73062
73063 2006-01-19  Simon Josefsson  <jas@extundo.com>
73064
73065         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73066
73067 2006-01-19  Simon Josefsson  <jas@extundo.com>
73068
73069         * gnulib-tool: Set check_PROGRAMS.
73070
73071         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73072         modules/des-tests, modules/gc-arcfour-tests,
73073         modules/gc-arctwo-tests, modules/gc-des-tests,
73074         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73075         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73076         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73077         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73078         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73079         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73080         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73081         test_*_SOURCES.
73082
73083 2006-01-18  Simon Josefsson  <jas@extundo.com>
73084
73085         * modules/socklen (Depends-on): Depend on sys_socket.
73086
73087 2006-01-18  Simon Josefsson  <jas@extundo.com>
73088
73089         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73090         modules/des-tests, modules/gc-arcfour-tests,
73091         modules/gc-arctwo-tests, modules/gc-des-tests,
73092         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73093         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73094         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73095         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73096         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73097         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73098         $(EXEEXT) to automake TESTS variable, for mingw32.
73099
73100 2006-01-17  Simon Josefsson  <jas@extundo.com>
73101
73102         * modules/socklen (Include): Need sys/socket.h.
73103
73104 2006-01-17  Bruno Haible  <bruno@clisp.org>
73105
73106         * modules/ssize_t (Include): Add <sys/types.h>.
73107
73108 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73109
73110         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73111         it's not portable and it doesn't work with cross-compiles.
73112         Problem reported by Bruno Haible.  Fix missing-$ typo in
73113         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73114         -zignore from being used with Sun's C compiler.
73115
73116 2006-01-12  Simon Josefsson  <jas@extundo.com>
73117
73118         * lib/base64.c: Fix warning, reported by Bruno Haible
73119         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73120
73121 2006-01-12  Bruno Haible  <bruno@clisp.org>
73122
73123         * modules/ldd: New file.
73124         * build-aux/ldd.sh.in: New file.
73125         * MODULES.html.sh (Support for building libraries and executables): Add
73126         ldd.
73127
73128 2006-01-12  Bruno Haible  <bruno@clisp.org>
73129
73130         * m4/ldd.m4: New file.
73131
73132 2006-01-12  Bruno Haible  <bruno@clisp.org>
73133
73134         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73135         endless loop while replacing $auxdir with build-aux.
73136
73137 2006-01-11  Simon Josefsson  <jas@extundo.com>
73138
73139         * lib/stdint_.h (SIZE_MAX): Add missing (.
73140
73141 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73142
73143         Sync from coreutils.
73144         * lib/md5.c: Fix commentary typos.
73145         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73146         * lib/md5.h (__attribute__): Remove; unused.
73147         * lib/sha1.c: Fix commentary to match md5 better.
73148         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73149         so that we don't need to worry about alignment.  All uses changed.
73150         This merges the 2005-10-28 md5 change into sha1.
73151
73152 2006-01-11  Jim Meyering  <jim@meyering.net>
73153
73154         Sync from coreutils.
73155         * lib/md5.c (OP): Fix spacing.
73156
73157 2006-01-11  Bruno Haible  <bruno@clisp.org>
73158
73159         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73160         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73161         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73162
73163 2006-01-11  Bruno Haible  <bruno@clisp.org>
73164
73165         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73166         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73167         the "early" section as well.
73168
73169 2006-01-11  Bruno Haible  <bruno@clisp.org>
73170
73171         Avoid "ar: no archive members specified" error on MacOS X.
73172         * gnulib-tool (func_modules_add_dummy): New function.
73173         (func_import, func_create_testdir): Invoke it.
73174
73175 2006-01-11  Bruno Haible  <bruno@clisp.org>
73176
73177         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73178         with $auxdir in AC_CONFIG_FILES statements.
73179
73180 2006-01-11  Bruno Haible  <bruno@clisp.org>
73181
73182         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73183         Initialize also noinst_HEADERS to empty.
73184
73185 2006-01-11  Bruno Haible  <bruno@clisp.org>
73186
73187         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73188         variables.
73189         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73190         autoreconf.
73191
73192 2006-01-11  Bruno Haible  <bruno@clisp.org>
73193
73194         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73195         overridable by the user.
73196         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73197
73198 2006-01-10  Simon Josefsson  <jas@extundo.com>
73199
73200         * modules/sys_socket: New file.
73201
73202 2006-01-10  Simon Josefsson  <jas@extundo.com>
73203
73204         * m4/sys_socket_h.m4: New file.
73205
73206 2006-01-10  Simon Josefsson  <jas@extundo.com>
73207
73208         * lib/socket_.h: New file.
73209
73210 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73211
73212         * modules/readutmp (Maintainer): Add myself.
73213
73214 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73215
73216         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73217         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73218         People who are still concerned with buggy memcmp implementations
73219         can invoke gl_FUNC_MEMCMP themselves.
73220
73221 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73222
73223         * lib/regex_internal.h (BITSET_WORD_BITS):
73224         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73225         preprocessor mishandles large unsigned values as if they were signed.
73226         Problem reported by Claudio Fontana in
73227         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73228
73229 2006-01-10  Jim Meyering  <jim@meyering.net>
73230
73231         Avoid the double-free (first in fts_read, second in fts_close) that
73232         would occur when an `active' directory is made inaccessible (e.g.,
73233         via chmod a-x) during a traversal.
73234         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73235         before returning.  Reproduce this failure by
73236         mkdir -p a/b; cd a; chmod a-x . b
73237         Reported by Stavros Passas.
73238
73239         Sync from coreutils.
73240         * lib/sha1.c: Tweak grammar in a comment.
73241
73242 2006-01-10  Jim Meyering  <jim@meyering.net>
73243
73244         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73245         Patch by Joerg Sonnenberger.
73246
73247 2006-01-10  Bruno Haible  <bruno@clisp.org>
73248
73249         * modules/readutmp: Depend on module free.
73250         * modules/strtok_r: Depend on module restrict.
73251
73252 2006-01-10  Bruno Haible  <bruno@clisp.org>
73253
73254         * modules/gettext (configure.ac): Add an invocation of
73255         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73256
73257 2006-01-10  Bruno Haible  <bruno@clisp.org>
73258
73259         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73260         Reported by Werner Lemberg <wl@gnu.org>.
73261
73262 2006-01-10  Bruno Haible  <bruno@clisp.org>
73263
73264         * lib/localcharset.c: Update from GNU gettext.
73265
73266 2006-01-10  Bruno Haible  <bruno@clisp.org>
73267
73268         * lib/argp.h (__const): Remove macro. Use const instead.
73269         * lib/argp-fmtstream.h (__const): Likewise.
73270         * lib/glob_.h (__const): Remove macro.
73271         * lib/glob-libc.h: Use const instead of __const.
73272
73273 2006-01-10  Bruno Haible  <bruno@clisp.org>
73274
73275         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73276         variable.
73277         Needed to avoid an automake error regarding the 'gettext' module.
73278
73279 2006-01-09  Simon Josefsson  <jas@extundo.com>
73280
73281         * modules/inet_ntop (Depends-on): Add restrict.
73282
73283 2006-01-09  Simon Josefsson  <jas@extundo.com>
73284
73285         * modules/gc-rijndael-tests (License): Put under LGPL.
73286
73287         * modules/gc-des-tests (License): Likewise.
73288
73289         * modules/gc-arcfour-tests (License): Likewise.
73290
73291         * modules/gc-arctwo-tests (License): Likewise.
73292
73293         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73294
73295         * modules/gc-hmac-sha1-tests (Files): Likewise.
73296
73297         * modules/gc-hmac-md5-tests (License): Likewise.
73298
73299         * modules/gc-sha1-tests (License): Likewise.
73300
73301         * modules/gc-md5-tests (License): Likewise.
73302
73303         * modules/gc-md4-tests (License): Likewise.
73304
73305         * modules/gc-md2-tests (License): Likewise.
73306
73307         * modules/gc-tests (License): Likewise.
73308
73309         * modules/des-tests (License): Likewise.
73310
73311         * modules/md4-tests (License): Likewise.
73312
73313         * modules/md2-tests (License): Likewise.
73314
73315 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73316
73317         Sync from coreutils:
73318
73319         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73320         * modules/lib-ignore: New file.
73321         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73322         chdir-safer.m4, lchmod.m4.
73323         * modules/openat: Add mkdirat.c, openat-priv.h.
73324
73325 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73326
73327         Sync from coreutils.
73328         * m4/lib-ignore.m4: New file.
73329         * m4/lchmod.m4: New file.
73330
73331 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73332
73333         Sync from coreutils.
73334         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73335         for write access: POSIX says that must fail.
73336         * lib/fts.c (diropen): Likewise.
73337         * lib/save-cwd.c (save_cwd): Likewise.
73338         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73339         well, for minor improvements on hosts that lack O_DIRECTORY.
73340         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73341         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73342         Fall back on chown if open failed with EACCES.
73343
73344         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73345         Report an error at compile-time if only a 1-second nominal clock
73346         resolution is found.
73347
73348         * lib/lchmod.h: New file.
73349         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73350         (make_dir_parents): Use lchown rather than chown, and
73351         lchmod rather than chmod.
73352
73353         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73354         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73355         "proc" reported by n0dalus.
73356
73357         * lib/mountlist.c: Include <limits.h>.
73358         (dev_from_mount_options)
73359         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73360         New function.  It no longer assumes "dev=" has the System V meaning
73361         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73362         (read_file_system_list)
73363         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73364         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73365         dev= in that case.
73366
73367         * lib/posixtm.h (PDS_PRE_2000): New macro.
73368         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73369         allow_century.  All usages changed.  Reject dates outside the range
73370         1969-1999 if PDS_PRE_2000 is used.
73371
73372 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73373
73374         Sync from coreutils.
73375         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73376         (Time of day items): Mention the possibility of leap seconds.
73377         Problem reported by Dr. David Alan Gilbert.
73378
73379 2006-01-09  Jim Meyering  <jim@meyering.net>
73380
73381         Sync from coreutils.
73382
73383         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73384
73385         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73386
73387         * lib/modechange.c (mode_compile): Reject an invalid mode string
73388         that starts with an octal digit.  From Andreas Gruenbacher.
73389
73390         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73391         and dup to open_safer and dup_safer, respectively.
73392         (openat_permissive): Fix typo in comment.
73393
73394         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73395         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73396         (_): Remove; no longer needed.
73397         (openat): Renamed from rpl_openat; no need for rpl_openat
73398         since openat.h renames openat for us.
73399         Replace most of the body with a call to openat_permissive,
73400         to avoid duplicate code.
73401         Port to (probably hypothetical) environments were mode_t is
73402         wider than int.
73403         (openat_permissive): Require mode arg, so that we can check
73404         types better.  Put it just after flags.  Change cwd failure
73405         indicator from pointer-to-bool to pointer-to-errno-value.
73406         All callers changed.
73407         Invoke openat_save_fail and/or openat_restore_fail if
73408         cwd_errno is null, so that openat can call us.
73409         (openat_permissive, fdopendir, fstatat, unlinkat):
73410         Simplify errno handling to avoid some duplicate code,
73411         as it's OK to set errno on success.
73412         * lib/openat.h: Revamp code so that function macros depend on
73413         __OPENAT_PREFIX only, not also on AT_FDCWD.
73414         (openat_ro): Remove.  Caller changed to use openat_permissive.
73415         (openat_permissive): Now a macro, if not a function.
73416         (openat_restore_fail, openat_save_fail): Now always functions,
73417         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73418
73419         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73420         and openat.c.
73421         * lib/mkdirat.c: Include openat-priv.h.
73422         Remove definitions of macros defined therein.
73423         * lib/openat.c: Likewise.
73424
73425         * lib/mkdirat.c (mkdirat): New file and function.
73426         * lib/openat.h (mkdirat): Declare.
73427
73428         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73429
73430         * lib/openat.h (openat_permissive): Declare.
73431         (openat_ro): Define.
73432
73433         * lib/openat.c (EXPECTED_ERRNO): New macro.
73434         (openat_permissive): New function -- used in remove.c rewrite.
73435         (all functions): Set errno just before returning, only if there
73436         was an actual failure.
73437         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73438
73439         Emulate openat-family functions using Linux's procfs, if possible.
73440         Idea and some code based on Ulrich Drepper's glibc changes.
73441
73442         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73443         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73444         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73445         before falling back on save_cwd and restore_cwd.
73446         (fdopendir, fstatat, unlinkat): Likewise.
73447
73448         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73449         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73450
73451         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73452         as second argument to va_arg.  Otherwise, some versions of gcc
73453         warn that `if this code is reached, the program will abort'.
73454
73455 2006-01-09  Jim Meyering  <jim@meyering.net>
73456
73457         Sync from coreutils.
73458         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73459         Require openat-priv.h.
73460
73461 2006-01-09  Bruno Haible  <bruno@clisp.org>
73462
73463         * modules/strnlen (Include): Use strnlen.h.
73464
73465 2006-01-09  Bruno Haible  <bruno@clisp.org>
73466
73467         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73468
73469 2006-01-09  Bruno Haible  <bruno@clisp.org>
73470
73471         * lib/sysexit_.h (EX_OK): New macro.
73472         Suggested by Martin Lambers <marlam@marlam.de>.
73473
73474 2006-01-09  Bruno Haible  <bruno@clisp.org>
73475
73476         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73477         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73478
73479 2006-01-09  Bruno Haible  <bruno@clisp.org>
73480
73481         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73482         numbers.
73483
73484 2006-01-09  Bruno Haible  <bruno@clisp.org>
73485
73486         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73487         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73488         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73489         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73490
73491 2006-01-09  Bruno Haible  <bruno@clisp.org>
73492
73493         * build-aux/javacomp.sh.in: New file, moved from lib/.
73494         * modules/javacomp-script (Files): Update.
73495         (configure.ac): Add AC_CONFIG_FILES invocation.
73496         (EXTRA_DIST): Remove variable.
73497
73498         * build-aux/javaexec.sh.in: New file, moved from lib/.
73499         * modules/javaexec (Files): Update.
73500         (configure.ac): Add AC_CONFIG_FILES invocation.
73501         (EXTRA_DIST): Remove javaexec.sh.in.
73502
73503         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73504         * modules/csharpcomp-script (Files): Update.
73505         (configure.ac): Add AC_CONFIG_FILES invocation.
73506         (EXTRA_DIST): Remove variable.
73507
73508         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73509         * modules/csharpexec (Files): Update.
73510         (configure.ac): Add AC_CONFIG_FILES invocation.
73511         (EXTRA_DIST): Remove csharpexec.sh.in.
73512
73513 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73514
73515         Sync from coreutils.
73516
73517         Add POSIX ACL support
73518         * lib/acl.h (copy_acl, set_acl): Add declarations.
73519         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73520         systems other than Linux.
73521         (chmod_or_fchmod): New function: use fchmod when possible,
73522         and chmod otherwise.
73523         (file_has_acl): Add a POSIX ACL implementation, with a
73524         Linux-specific subcase.
73525         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73526         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73527         acls are unsupported.
73528         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73529         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73530         are unsupported.
73531
73532 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73533
73534         Sync from coreutils.
73535         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73536
73537 2006-01-07  Bruno Haible  <bruno@clisp.org>
73538
73539         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73540         gl_EARLY.
73541
73542 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73543
73544         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73545         Problem reported for Mingw by Mark Junker.
73546
73547 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73548
73549         * README: Gnulib normally doesn't generate a tarball.
73550
73551 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73552
73553         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73554         long int, not int, for nanosecond counts, so that people who are
73555         used to POSIX struct timespec won't be surprised.  Reported by Jim
73556         Meyering.
73557
73558 2005-12-28  Bruno Haible  <bruno@clisp.org>
73559
73560         * build-aux/config.rpath: Update from GNU gettext.
73561
73562 2005-12-16  Jim Meyering  <jim@meyering.net>
73563
73564         * modules/fprintftime: New module.
73565         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73566
73567 2005-12-16  Jim Meyering  <jim@meyering.net>
73568
73569         * m4/fprintftime.m4: New file.
73570
73571 2005-12-16  Jim Meyering  <jim@meyering.net>
73572
73573         * lib/fprintftime.c, lib/fprintftime.h: New files.
73574
73575 2005-12-15  Simon Josefsson  <jas@extundo.com>
73576
73577         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73578         new m4/socklen.m4.
73579
73580 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73581
73582         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73583         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73584
73585 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73586
73587         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73588         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73589         struct uparams is valid. Fall back to the default values if it is
73590         not.
73591
73592 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73593
73594         * modules/argp (Files): Add argp-pin.c
73595         (Depends-on): dirname
73596         (lib_SOURCES): Add argp-pin.c
73597
73598 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73599
73600         * m4/argp.m4:  Check if program_invocation_name and
73601         program_invocation_short_name are declared and define appropriate
73602         macros if they are not.
73603
73604 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73605
73606         * lib/argp-help.c (__argp_base_name): New function
73607         (__argp_short_program_name): Rewrite using __argp_base_name
73608         * lib/argp-namefrob.h: Define program_invocation_name and
73609         program_invocation_short_name if requested
73610         (__argp_base_name): Add prototype
73611         * lib/argp-parse.c (argp_def): Use gettext wrappers
73612         (argp_default_parser): Use __argp_base_name
73613         * lib/argp-pin.c: New file. Defines program_invocation_name and
73614         program_invocation_short_name on systems that lack them.
73615
73616 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73617
73618         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73619         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73620         porting problem reported by Georg Schwarz in
73621         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73622
73623 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73624
73625         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73626         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73627         porting problem reported by Georg Schwarz in
73628         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73629
73630 2005-12-05  Bruno Haible  <bruno@clisp.org>
73631
73632         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73633         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73634         Reported by Mark Junker <mjscod@gmx.de>.
73635
73636 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73637
73638         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73639         Use implementation from Albert Chin, with some
73640         comments/corrections by Stepan Kasal and myself.
73641
73642 2005-12-02  Bruno Haible  <bruno@clisp.org>
73643
73644         * gnulib-tool (func_import): Accept GPLed build tool modules when
73645         --lgpl is given.
73646         * modules/csharpcomp-script: New file.
73647         * modules/csharpcomp: Depend on it.
73648         * modules/javacomp-script: New file.
73649         * modules/javacomp: Depend on it.
73650         Suggested by Simon Josefsson.
73651
73652 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73653
73654         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73655         statement, to work around an HP-UX 10.20 compiler bug reported by
73656         Peter O'Gorman.
73657
73658 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73659
73660         * modules/savedir (Depends-on): Add openat.
73661
73662 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73663
73664         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73665         (uintmax_t) [defined uintmax_t]: Do not declare.
73666         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73667         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73668         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73669         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73670         sake of portability to weird hosts that C allows (though we don't
73671         know of any practical examples).
73672
73673         * lib/savedir.h (fdsavedir): New decl.
73674         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73675         contains most of the former guts of savedir.
73676         (savedir): Use savedirstream.
73677         Include "openat.h".
73678
73679 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73680
73681         * modules/obstack (Files): Add m4/ulonglong.m4.
73682         Problem reported by Davide Angelocola.
73683
73684 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73685
73686         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73687         coreutils no longer futzes with rounding modes.
73688
73689 2005-11-14  Jim Meyering  <jim@meyering.net>
73690
73691         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73692         replacement of mkstemp.
73693
73694 2005-11-10  Simon Josefsson  <jas@extundo.com>
73695
73696         * lib/readline.c: Remove EOL.
73697
73698 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73699
73700         * modules/gethrxtime (Depends-on): Add gettime.
73701
73702 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73703
73704         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73705         or gettimeofday; no longer needed.
73706
73707 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73708
73709         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73710         time business.
73711         (gethrxtime) [! (HAVE_NANOUPTIME
73712         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73713         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73714         our own approximation.
73715
73716 2005-11-08  Eric Blake  <ebb9@byu.net>
73717
73718         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73719
73720 2005-11-08  Eric Blake  <ebb9@byu.net>
73721
73722         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73723
73724 2005-11-04  Bruno Haible  <bruno@clisp.org>
73725
73726         * gnulib-tool: Implement --update mode.
73727
73728 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73729
73730         Fix porting problem reported by Theodoros V. Kalamatianos.
73731         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73732         Don't assume that futimes failing means we must fail.
73733
73734 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73735
73736         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73737         variables to suggest the intended function of the PATH_MAX check.
73738
73739 2005-10-30  Kean Johnston  <jkj@sco.com>
73740
73741         Trivial changes to support SCO systems.
73742         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73743         as PATH_MAX.
73744         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73745         where __ptr is null when no I/O is pending.
73746
73747 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73748
73749         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73750         leave errno alone.  Problem reported by Dmitry V. Levin.
73751
73752 2005-10-28  Simon Josefsson  <jas@extundo.com>
73753
73754         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73755         Test more.
73756
73757         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73758
73759         * modules/md2, modules/md2-tests: New files.
73760
73761 2005-10-28  Simon Josefsson  <jas@extundo.com>
73762
73763         * m4/inet_ntop.m4: More tests.
73764
73765         * m4/gc-md2.m4, md2.m4: New file.
73766
73767 2005-10-28  Simon Josefsson  <jas@extundo.com>
73768
73769         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73770         "restrict" keywords, as per POSIX.  Protect the function
73771         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73772         Don't use K&R prototypes.  Check the sprintf return values.
73773         Re-define EAFNOSUPPORT if not present.  Indent.
73774
73775         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73776         suggested by Bruno Haible <bruno@clisp.org>.
73777
73778         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73779
73780         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73781
73782         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73783         libgcrypt).
73784
73785         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73786
73787         * lib/md2.h, lib/md2.c: New files.
73788
73789 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73790
73791         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73792         errno alone.  Problem reported by Frederic Jolliton.
73793
73794 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73795
73796         * modules/verify (License): Change from GPL to LGPL.  This is a
73797         tiny module and there are apparently near-equivalents that are
73798         under the BSD license.
73799
73800 2005-10-24  Simon Josefsson  <jas@extundo.com>
73801
73802         * modules/sha1: Relicense to LGPL.
73803
73804 2005-10-24  Simon Josefsson  <jas@extundo.com>
73805
73806         * lib/md4.h: Shrink buffer size, now that we changed the type.
73807
73808 2005-10-23  Simon Josefsson  <jas@extundo.com>
73809
73810         * gnulib-tool (func_import): Fix --tests-base.
73811
73812 2005-10-22  Simon Josefsson  <jas@extundo.com>
73813
73814         * modules/arcfour (Depends-on): Need stdint.
73815
73816 2005-10-22  Simon Josefsson  <jas@extundo.com>
73817
73818         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73819         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73820
73821 2005-10-22  Simon Josefsson  <jas@extundo.com>
73822
73823         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73824         suggested by Bruno Haible <bruno@clisp.org>.
73825
73826 2005-10-22  Simon Josefsson  <jas@extundo.com>
73827
73828         * lib/crc.h: Include stddef.h, for size_t.
73829
73830 2005-10-22  Simon Josefsson  <jas@extundo.com>
73831
73832         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73833         arcfour_context struct (simplify test vector testing in GNU
73834         Shishi).
73835
73836 2005-10-21  Simon Josefsson  <jas@extundo.com>
73837
73838         * modules/des, modules/des-tests: New files.
73839
73840         * modules/gc-des, modules/gc-des-tests: New files.
73841
73842         * tests/test-des.c, tests/test-gc-des.c: New file.
73843
73844 2005-10-21  Simon Josefsson  <jas@extundo.com>
73845
73846         * modules/arctwo, modules/arctwo-tests: New files.
73847
73848         * tests/test-arctwo.c: New file.
73849
73850         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73851
73852         * tests/test-gc-arctwo.c: New file.
73853
73854 2005-10-21  Simon Josefsson  <jas@extundo.com>
73855
73856         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73857         Bruno Haible <bruno@clisp.org>.
73858
73859         * m4/gc-des.m4: New file.
73860
73861 2005-10-21  Simon Josefsson  <jas@extundo.com>
73862
73863         * m4/arctwo.m4: New file.
73864
73865         * m4/gc-arctwo.m4: New file.
73866
73867 2005-10-21  Simon Josefsson  <jas@extundo.com>
73868
73869         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73870         block.
73871
73872 2005-10-21  Simon Josefsson  <jas@extundo.com>
73873
73874         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73875         <bruno@clisp.org>.
73876
73877         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73878
73879         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73880         Bruno Haible <bruno@clisp.org>.
73881
73882         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73883         <bruno@clisp.org>.
73884
73885 2005-10-21  Simon Josefsson  <jas@extundo.com>
73886
73887         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73888
73889 2005-10-21  Simon Josefsson  <jas@extundo.com>
73890
73891         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73892
73893 2005-10-21  Simon Josefsson  <jas@extundo.com>
73894
73895         * lib/des.h, lib/des.c: New files.
73896
73897         * lib/gc-gnulib.c: Support DES.c
73898
73899 2005-10-21  Simon Josefsson  <jas@extundo.com>
73900
73901         * lib/arctwo.h, lib/arctwo.c: New files.
73902
73903         * lib/gc-gnulib.c: Support ARCTWO.
73904
73905 2005-10-21  Simon Josefsson  <jas@extundo.com>
73906
73907         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73908         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73909
73910 2005-10-21  Simon Josefsson  <jas@extundo.com>
73911
73912         * gnulib-tool (func_import, func_create_testdir): Define automake
73913         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73914         Makefile.am snippet),
73915         suggested by Bruno Haible <bruno@clisp.org>.
73916
73917         * modules/gc (Makefile.am): Use it.
73918
73919 2005-10-21  Bruno Haible  <bruno@clisp.org>
73920
73921         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73922         patch.
73923
73924 2005-10-19  Simon Josefsson  <jas@extundo.com>
73925
73926         * tests/test-gc-rijndael.c: New file.
73927
73928         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73929
73930 2005-10-19  Simon Josefsson  <jas@extundo.com>
73931
73932         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73933         interface too.
73934
73935 2005-10-19  Simon Josefsson  <jas@extundo.com>
73936
73937         * tests/test-gc-arcfour.c: New file.
73938
73939         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73940
73941 2005-10-19  Simon Josefsson  <jas@extundo.com>
73942
73943         * modules/gc-md4, modules/gc-md4-tests: New file.
73944
73945         * tests/test-gc-md4.c: New file.
73946
73947 2005-10-19  Simon Josefsson  <jas@extundo.com>
73948
73949         * m4/gc-md4.m4: New file.
73950
73951 2005-10-19  Simon Josefsson  <jas@extundo.com>
73952
73953         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73954         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73955         <kasal@ucw.cz>.
73956
73957 2005-10-19  Simon Josefsson  <jas@extundo.com>
73958
73959         * m4/gc-arcfour.m4: New file.
73960
73961         * m4/gc-rijndael.m4: New file.
73962
73963 2005-10-19  Simon Josefsson  <jas@extundo.com>
73964
73965         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73966
73967 2005-10-19  Simon Josefsson  <jas@extundo.com>
73968
73969         * lib/gc-gnulib.c: Support ARCFOUR.
73970
73971 2005-10-19  Simon Josefsson  <jas@extundo.com>
73972
73973         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73974         support.
73975
73976         * lib/gc.h: Add ECB enum type.
73977
73978         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73979
73980 2005-10-18  Simon Josefsson  <jas@extundo.com>
73981
73982         * tests/test-md5.c: New file.
73983
73984         * modules/md5-tests: New file.
73985
73986 2005-10-18  Simon Josefsson  <jas@extundo.com>
73987
73988         * tests/test-md4.c: New file.
73989
73990         * modules/md4, modules/md4-tests: New files.
73991
73992 2005-10-18  Simon Josefsson  <jas@extundo.com>
73993
73994         * m4/md4.m4: New file.
73995
73996 2005-10-18  Simon Josefsson  <jas@extundo.com>
73997
73998         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73999
74000 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74001
74002         * gnulib-tool (func_create_testdir): Omit the second check whether
74003         BUILT_SOURCES in nonempty.
74004
74005 2005-10-17  Simon Josefsson  <jas@extundo.com>
74006
74007         * tests/test-rijndael.c: New file.
74008
74009 2005-10-17  Simon Josefsson  <jas@extundo.com>
74010
74011         * modules/sha1: Depend on stdint instead of md5.
74012
74013         * modules/md5: Depend on stdint, remove uint32_t.
74014
74015 2005-10-17  Simon Josefsson  <jas@extundo.com>
74016
74017         * modules/gc-sha1-tests: New file.
74018
74019         * tests/test-gc-sha1.c: New file.
74020
74021 2005-10-17  Simon Josefsson  <jas@extundo.com>
74022
74023         * m4/md5.m4: Remove call to uint32_t.m4.
74024
74025 2005-10-17  Simon Josefsson  <jas@extundo.com>
74026
74027         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74028
74029         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74030         md5.h.
74031
74032         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74033
74034         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74035
74036 2005-10-17  Simon Josefsson  <jas@extundo.com>
74037
74038         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74039
74040 2005-10-17  Simon Josefsson  <jas@extundo.com>
74041
74042         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74043
74044 2005-10-17  Simon Josefsson  <jas@extundo.com>
74045
74046         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74047
74048         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74049
74050 2005-10-17  Bruno Haible  <bruno@clisp.org>
74051
74052         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74053         that it can also be used in a test.
74054
74055 2005-10-16  Bruno Haible  <bruno@clisp.org>
74056
74057         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74058         TESTS_ENVIRONMENT, so that individual tests can augment it.
74059
74060         * gnulib-tool (func_create_testdir): Use an intermediate target for
74061         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74062         macros, like $(ALLOCA_H), which cannot be passed through the command
74063         line.
74064
74065 2005-10-15  Simon Josefsson  <jas@extundo.com>
74066
74067         * modules/rijndael-tests: New file.
74068
74069         * modules/rijndael: New file.
74070
74071 2005-10-15  Simon Josefsson  <jas@extundo.com>
74072
74073         * m4/rijndael.m4: New file.
74074
74075 2005-10-15  Simon Josefsson  <jas@extundo.com>
74076
74077         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74078
74079         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74080
74081 2005-10-14  Simon Josefsson  <jas@extundo.com>
74082
74083         * tests/test-arcfour.c: New file.
74084
74085         * modules/arcfour, modules/arcfour-tests: New files.
74086
74087 2005-10-14  Simon Josefsson  <jas@extundo.com>
74088
74089         * m4/arcfour.m4: New file.
74090
74091 2005-10-14  Simon Josefsson  <jas@extundo.com>
74092
74093         * lib/arcfour.h, lib/arcfour.c: New files.
74094
74095 2005-10-14  Roland McGrath  <roland@redhat.com>
74096
74097         Import from libc.  [BZ #1331]
74098         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74099         macro argument.
74100         Reported by Matej Vela <vela@debian.org>.
74101
74102 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74103
74104         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74105         include <wchar.h>; no longer needed.
74106
74107 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74108
74109         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74110
74111 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74112         and  Ulrich Drepper  <drepper@redhat.com>
74113
74114         Import from libc.
74115         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74116         instead of inline stream orientation test and two separate
74117         function calls.  Pay no attention to USE_IN_LIBIO.
74118
74119 2005-10-13  Simon Josefsson  <jas@extundo.com>
74120
74121         * modules/gc-hmac-md5-tests: New file.
74122
74123         * tests/test-gc-hmac-sha1.c: New file.
74124
74125         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74126
74127         * modules/gc-hmac-md5-tests: New file.
74128
74129         * tests/test-gc-md5.c: New file.
74130
74131         * modules/gc-md5-tests: New file.
74132
74133 2005-10-13  Simon Josefsson  <jas@extundo.com>
74134
74135         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74136         Move memory allocation outside of loop.
74137
74138 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74139
74140         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74141         intermediate directory is in a read-only file system.  Problem
74142         reported by Eric Blake.
74143
74144 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74145
74146         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74147
74148 2005-10-12  Simon Josefsson  <jas@extundo.com>
74149
74150         * tests/test-hmac-sha1.c: New file.
74151
74152         * modules/hmac-sha1-tests: New file.
74153
74154         * modules/hmac-sha1: New file.
74155
74156 2005-10-12  Simon Josefsson  <jas@extundo.com>
74157
74158         * modules/gc-sha1: New file.
74159
74160 2005-10-12  Simon Josefsson  <jas@extundo.com>
74161
74162         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74163
74164         * tests/test-gc-pbkdf2-sha1.c: New file.
74165
74166 2005-10-12  Simon Josefsson  <jas@extundo.com>
74167
74168         * modules/gc-md5, modules/gc-hmac-md5: New files.
74169
74170         * modules/gc (Files): Remove md5, memxor and hmac files.
74171
74172 2005-10-12  Simon Josefsson  <jas@extundo.com>
74173
74174         * m4/gc-pbkdf2-sha1.m4: New file.
74175
74176         * m4/gc-hmac-sha1.m4: New file.
74177
74178         * m4/gc-sha1: New file.
74179
74180         * m4/hmac-sha1.m4: New file.
74181
74182 2005-10-12  Simon Josefsson  <jas@extundo.com>
74183
74184         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74185
74186         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74187
74188 2005-10-12  Simon Josefsson  <jas@extundo.com>
74189
74190         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74191         suggested by Bruno Haible <bruno@clisp.org>.
74192
74193 2005-10-12  Simon Josefsson  <jas@extundo.com>
74194
74195         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74196
74197 2005-10-12  Simon Josefsson  <jas@extundo.com>
74198
74199         * lib/gc-pbkdf2-sha1.c: New file.
74200
74201         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74202
74203 2005-10-12  Simon Josefsson  <jas@extundo.com>
74204
74205         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74206
74207         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74208
74209 2005-10-12  Simon Josefsson  <jas@extundo.com>
74210
74211         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74212         GC_USE_HMAC_MD5, respectively.
74213
74214         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74215         (gc_md5): Fix typo.
74216
74217         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74218
74219         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74220
74221         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74222
74223 2005-10-12  Bruno Haible  <bruno@clisp.org>
74224
74225         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74226         Reported by Stepan Kasal <kasal@ucw.cz>.
74227
74228 2005-10-11  Simon Josefsson  <jas@extundo.com>
74229
74230         * tests/test-crc.c: New file.
74231
74232         * modules/crc, modules/crc-tests: New files.
74233
74234 2005-10-11  Simon Josefsson  <jas@extundo.com>
74235
74236         * m4/crc.m4: New file.
74237
74238 2005-10-11  Simon Josefsson  <jas@extundo.com>
74239
74240         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74241
74242         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74243
74244         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74245
74246 2005-10-11  Simon Josefsson  <jas@extundo.com>
74247
74248         * lib/crc.h, lib/crc.c: New files.
74249
74250         * lib/gc.h (gc_hash_buffer): Add doc.
74251
74252 2005-10-11  Bruno Haible  <bruno@clisp.org>
74253
74254         * modules/c-strcasestr: New file.
74255         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74256
74257 2005-10-11  Bruno Haible  <bruno@clisp.org>
74258
74259         * modules/c-strcase: New file.
74260         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74261
74262 2005-10-11  Bruno Haible  <bruno@clisp.org>
74263
74264         * lib/strcasecmp.c: Include limits.h.
74265         (strcasecmp): Avoid integer overflow on exotic platforms.
74266         * lib/strncasecmp.c: Include limits.h.
74267         (strncasecmp): Avoid integer overflow on exotic platforms.
74268         Reported by Paul Eggert.
74269
74270 2005-10-11  Bruno Haible  <bruno@clisp.org>
74271
74272         * lib/c-strcasestr.h: New file, from GNU gettext.
74273         * lib/c-strcasestr.c: New file, from GNU gettext.
74274
74275 2005-10-11  Bruno Haible  <bruno@clisp.org>
74276
74277         * lib/c-strcase.h: New file, from GNU gettext.
74278         * lib/c-strcasecmp.c: New file, from GNU gettext.
74279         * lib/c-strncasecmp.c: New file, from GNU gettext.
74280
74281 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74282
74283         * modules/mempcpy (License): GPL -> LGPL.
74284         * modules/strchrnul (License): Likewise.
74285         * modules/sysexits (License): Likewise.
74286
74287 2005-10-08  Simon Josefsson  <jas@extundo.com>
74288
74289         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74290
74291 2005-10-07  Simon Josefsson  <jas@extundo.com>
74292
74293         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74294
74295 2005-10-06  Simon Josefsson  <jas@extundo.com>
74296
74297         * tests/test-hmac-md5.c: New file.
74298
74299         * modules/hmac-md5-tests: New file.
74300
74301         * modules/hmac-md5: New file.
74302
74303 2005-10-06  Simon Josefsson  <jas@extundo.com>
74304
74305         * m4/hmac-md5.m4: New file.
74306
74307         * m4/memxor.m4: Require gl_C_RESTRICT.
74308
74309 2005-10-06  Simon Josefsson  <jas@extundo.com>
74310
74311         * lib/memxor.c (memxor): Avoid casts and warnings.
74312
74313 2005-10-06  Simon Josefsson  <jas@extundo.com>
74314
74315         * lib/hmac-md5.c: New file.
74316
74317         * lib/hmac.h: New file.
74318
74319 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74320
74321         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74322         promotes to int, not unsigned int, to catch the AIX 5.3
74323         compiler bug.
74324
74325 2005-10-05  Simon Josefsson  <jas@extundo.com>
74326
74327         * modules/memxor: New file.
74328
74329         * modules/iconv (Files): Move config.rpath to havelib, it is used
74330         there.
74331
74332         * modules/havelib (Files): Add config.rpath.
74333
74334 2005-10-05  Simon Josefsson  <jas@extundo.com>
74335
74336         * m4/memxor.m4: New file.
74337
74338 2005-10-05  Simon Josefsson  <jas@extundo.com>
74339
74340         * lib/memxor.c (memxor): Fix compiler error.
74341
74342         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74343         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74344
74345         * lib/memxor.h, lib/memxor.c: New files.
74346
74347         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74348         we assume all systems have it, suggested by Jim Meyering
74349         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74350         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74351         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74352         same reasons.
74353
74354 2005-10-05  Simon Josefsson  <jas@extundo.com>
74355
74356         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74357
74358 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74359
74360         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74361         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74362         needed, since the source code now assumes these .h files.
74363
74364 2005-10-05  Derek Price  <derek@ximbiot.com>
74365
74366         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74367
74368 2005-10-05  Bruno Haible  <bruno@clisp.org>
74369
74370         * modules/stdint (License): Change to LGPL.
74371
74372 2005-10-04  Simon Josefsson  <jas@extundo.com>
74373
74374         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74375         D. Baushke" <mdb@gnu.org>.
74376
74377 2005-10-04  Bruno Haible  <bruno@clisp.org>
74378
74379         * lib/verify.h (verify_true): Provide alternative definition for C++.
74380
74381 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74382
74383         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74384         (SSIZE_MAX): New macro, if not already defined.
74385         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74386         than 2 GiB.
74387
74388 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74389
74390         Sync from coreutils.
74391         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74392         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74393         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74394         ULLONG_MAX doesn't work with 2.7.2.1.
74395
74396 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74397
74398         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74399         From Ben Pfaff.
74400
74401         * modules/exclude (Depends-on): Depend on verify.
74402         * modules/strtoimax (Depends-on): Likewise.
74403         * modules/utimecmp (Depends-on): Likewise.
74404
74405 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74406
74407         * lib/exclude.c: Include verify.h.
74408         (verify): Remove.  All callers changed to use verify.h's version.
74409         * lib/strtoimax.c: Likewise.
74410         * lib/utimecmp.c: Likewis.e
74411
74412         Sync from coreutils.
74413         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74414         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74415         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74416         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74417         bother returning ENOSYS if settimeofday or stime fails; just let
74418         them return whatever errno they want to return.
74419         * lib/utimens.c: Include unistd.h, for dup2.
74420         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74421         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74422
74423 2005-10-02  Jim Meyering  <jim@meyering.net>
74424
74425         Sync from coreutils.
74426         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74427         from glibc-2.2.5 that fails for read-only files.
74428
74429 2005-10-02  Jim Meyering  <jim@meyering.net>
74430
74431         Sync from coreutils.
74432         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74433         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74434         `#if HAVE_CONFIG_H'.
74435         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74436         Remove AT_FDCWD test.
74437         Do not consume the fd unless successful.
74438         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74439         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74440         block, so that we don't even try to compile it if settimeofday is
74441         available.  This works around a compilation failure on OSF1 V5.1,
74442         due to stime requiring a `long int*' while tv_sec is `int'.
74443
74444 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74445
74446         Sync from coreutils.
74447         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74448         against `yes', rather than just testing for nonempty.
74449
74450 2005-10-01  Simon Josefsson  <jas@extundo.com>
74451
74452         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74453         and Darwin.
74454
74455         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74456         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74457         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74458         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74459         Check if struct addrinfo is declared.
74460
74461 2005-10-01  Simon Josefsson  <jas@extundo.com>
74462
74463         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74464         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74465         AI_* and EAI_* definitions.  Protect function declarations.
74466
74467 2005-10-01  Jim Meyering  <jim@meyering.net>
74468
74469         Sync from coreutils.
74470
74471         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74472         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74473         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74474         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74475         in the inet and nsl libraries.  Required on Solaris 5.7.
74476
74477 2005-10-01  Jim Meyering  <jim@meyering.net>
74478
74479         Sync from coreutils.
74480         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74481         in the inet and nsl libraries.  Required on Solaris 5.7.
74482
74483 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74484
74485         * lib/getdelim.c (getdelim): Remove unused variables.
74486
74487 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74488
74489         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74490         so that the code works even with ancient cpp.  Portability problem
74491         with GCC 2.7.2.1 reported by Thomas M.Ott.
74492
74493 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74494
74495         * modules/regex (Depends-on): Add strcase.
74496
74497         * modules/gethostname (Licence): Change from GPL to LGPL, since
74498         gethostname.c is a trivial implementation of a standard library
74499         function.
74500         * modules/poll (License): Change from GPL to LGPL, since it's
74501         derived from LGPL code.
74502
74503 2005-09-27  Jim Meyering  <jim@meyering.net>
74504
74505         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74506         HAVE_CONFIG_H.
74507
74508         * lib/intprops.h (signed_type_or_expr__): Define.
74509         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74510         for unsigned types.
74511
74512 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74513
74514         * lib/verify.h (verify_expr): Remove, replacing with:
74515         (verify_true): New macro that returns true instead of void.
74516         (verify_type__): Remove.
74517         (verify): Use verify_true rather than verify_type__.
74518
74519 2005-09-26  Bruno Haible  <bruno@clisp.org>
74520
74521         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74522         is necessary.
74523         (lib_SOURCES): Remove mbchar.c.
74524         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74525         (Files): Add m4/mbrtowc.m4.
74526         * modules/mbiter: Likewise.
74527         * modules/mbuiter: Likewise.
74528
74529 2005-09-26  Bruno Haible  <bruno@clisp.org>
74530
74531         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74532         compile mbchar.c if they are not both present.
74533         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74534         * m4/mbiter.m4 (gl_MBITER): Likewise.
74535         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74536         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74537         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74538
74539 2005-09-25  Jim Meyering  <jim@meyering.net>
74540
74541         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74542         also uses socklen_t.
74543
74544 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74545
74546         * lib/utimens.c (ENOSYS): Define if not already defined.
74547         (futimens): Support having a null PATH if the file descriptor
74548         is nonnegative.
74549
74550         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74551         Remove.
74552         (__attribute): Define to empty unless GCC 3.1 or later.
74553         This works around a core dump on OpenBSD 3.4, which has GCC
74554         2.95.3, which dumps core when given __attribute__(()).  It also
74555         simplifies other tests, since we really don't want to bother with
74556         worrying about which ancient version of GCC supported what.
74557         Original problem reported by Yoann Vandoorselaere, with part of
74558         the fix suggested by Derek Price.
74559
74560 2005-09-24  Jim Meyering  <jim@meyering.net>
74561
74562         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74563         so we can once again use a positive bitfield width of 1 -- now we
74564         don't have to explain why we were using a bitfield width of 2.
74565
74566 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74567
74568         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74569         and similarly for the other external symbols.  Problem reported
74570         by James Gallager.
74571
74572         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74573         bug reported by Jim Meyering.
74574
74575         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74576         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74577         not needed, since socklen is a prerequisite module.
74578
74579 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74580
74581         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74582         Problem reported by Eric Blake.
74583         (getaddrinfo): Initialize se so that it's not garbage.
74584         Redo internal storage allocation so that it doesn't make unportable
74585         assumptions about alignment.
74586         Fix a memory leak.
74587
74588         * lib/utimens.c (futimens): Use futimesat if available.
74589         Prefer it to futimes since it doesn't have the futimes bug.
74590
74591         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74592         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74593         Instead, declare a function that returns a pointer to an array,
74594         and use verify_type__ to declare the size of the array.
74595         Problem and germ of a solution reported by Bruno Haible.
74596         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74597         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74598
74599 2005-09-23  Jim Meyering  <jim@meyering.net>
74600
74601         Sync from coreutils.
74602         Correct build failure (socklen_t not defined) on at least
74603         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74604         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74605
74606 2005-09-23  Jim Meyering  <jim@meyering.net>
74607
74608         * modules/getaddrinfo (Depends-on): Add socklen.
74609
74610 2005-09-23  Bruno Haible  <bruno@clisp.org>
74611
74612         * tests/test-verify.c: New file.
74613
74614 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74615
74616         Sync from coreutils.
74617
74618         * modules/argmatch (Depends-on): Add verify.
74619         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74620         unistd-safer.
74621         * modules/save-cwd (Depends-on): Likewise.
74622
74623         * modules/openat (Files): Add lib/openat-die.c.
74624         (Depends-on): Remove error, exitfail.
74625         Add dirname.
74626
74627         * modules/verify: New file.
74628         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74629         with "verify" module.
74630
74631 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74632
74633         Sync from coreutils.
74634
74635         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74636         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74637         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74638         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74639         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74640         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74641         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74642         Don't bother checking for string.h, stdlib.h, unistd.h.
74643         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74644         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74645         module's job.
74646         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74647         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74648
74649         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74650         (gl_GETDATE): Use it.
74651
74652         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74653
74654 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74655
74656         Sync from coreutils.
74657
74658         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74659         stat-time.h.
74660         * lib/argmatch.h: Include verify.h
74661         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74662         (ARGMATCH_ASSERT): Remove; unused.
74663         * lib/canonicalize.c: Assume STDC_HEADERS.
74664         * lib/exclude.c: Include "strcase.h".
74665         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74666         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74667         and stdio-safer.h.
74668         (getusershell): Call fopen, not fopen_safer.
74669         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74670         Do not include unistd-safer.h.
74671         (save_cwd): Don't call fd_safer; no longer needed
74672         now that we include fcntl--.h.
74673
74674         * lib/getdate.y (relative_time): New type.
74675         (RELATIVE_TIME_0): New constant.
74676         (parser_control): Use relative_time instead of doing it ourselves.
74677         (%union): Add new relative_time rel member.
74678         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74679         Now typeless.
74680         (relunit, relunit_snumber): Now of type rel.
74681         (zone, rel, relunit, get_date): Adjust to above changes.
74682
74683         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74684         Do not include unistd-safer.h.
74685         (getloadavg): Don't call fd_safer; no longer needed
74686         now that we include fcntl--.h.
74687
74688         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74689         (make_dir_parents): Treat ENOSYS like EEXIST.
74690
74691         Improve quality of diagnostics on restore_cwd failure.
74692         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74693         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74694         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74695         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74696         each time through the loop.  Do not diagnose restore_cwd failure;
74697         that is the caller's job (and perhaps the caller does not care).
74698
74699         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74700         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74701         If the file already exists but is not a directory, don't bother
74702         to try to make its parents.
74703         Close potential file descriptor leak if we can't chdir("/") (!).
74704         Don't always return true if chdir($PWD) fails; return true only
74705         if the requested action was done successfully (except for the
74706         chdir($PWD)).
74707         Don't log final directory unless we actually made it.
74708         Refactor to avoid duplicate code to fix up permissions.
74709         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74710
74711         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74712         to make it a bit faster and (I hope) clearer.
74713         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74714         Fix bug in formats like %2N.
74715
74716         * lib/verify.h: New file.
74717
74718 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74719
74720         Sync from coreutils.
74721         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74722
74723 2005-09-22  Jim Meyering  <jim@meyering.net>
74724
74725         Sync from coreutils.
74726
74727         * m4/lstat.m4 (gl_FUNC_LSTAT):
74728         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74729         Remove obsolete comment.
74730         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74731         * m4/xstrtod.m4: Likewise.
74732
74733         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74734
74735 2005-09-22  Jim Meyering  <jim@meyering.net>
74736
74737         Sync from coreutils.
74738
74739         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74740
74741         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74742         the .tm_year member, since otherwise gcc-4.0 would now warn about
74743         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74744
74745         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74746         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74747
74748         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74749         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74750         when run in a time zone for which daylight savings time is in effect
74751         for the starting date.
74752
74753         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74754         stop us from restricting permissions of just-created absolute-named
74755         directories.
74756         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74757         to restore initial working directory.
74758         * lib/mkdir-p.c (make_dir_parents): New parameter:
74759         different_working_dir, to tell caller if/when we change the working
74760         directory and are unable to return to the initial one.
74761         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74762         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74763         `return false'.  This fixes a bug introduced on 2004-07-30.
74764
74765         * lib/openat.c (fdopendir): Be sure to close the supplied
74766         file descriptor before returning.  This makes our replacement
74767         implementation a little closer to Solaris's, where fdopendir
74768         ties the file descriptor to the returned DIR* pointer.
74769         * lib/openat.c (unlinkat): New function.
74770         * lib/openat.h (unlinkat): Add prototype.
74771         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74772         (openat_restore_fail): Rename from openat_restore_die.
74773         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74774
74775         Provide an alternative to exiting immediately upon save_cwd or
74776         restore_cwd failure.  Now, an application can arrange e.g.,
74777         to perform a longjump in that case.
74778         * lib/openat.c: Include dirname.h.
74779         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74780         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74781         and openat_restore_die rather than calling error directly.
74782         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74783
74784         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74785         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74786         define.
74787
74788         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74789         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74790                             int utc, int nanoseconds);
74791         Background:
74792         date should not have to allocate a megabyte of virtual memory to
74793         handle a format argument like +%1048575T.  When implemented with
74794         strftime, it must allocate such a buffer, use strftime to fill it
74795         in, print it, then free it.
74796         With fprintftime, it simply prints everything and exits.
74797         With no need for memory allocation, that's one fewer way to fail.
74798         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74799         optional field width, not before, so we accept %9:z, not %:9z.
74800         (my_strftime): Be sure to use L_('x') for literals.
74801
74802         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74803         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74804         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74805         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74806         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74807         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74808         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74809         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74810         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74811         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74812         * lib/xgethostname.c, lib/xreadlink.c:
74813         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74814
74815         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74816         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74817         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74818         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74819         and don't include <sys/file.h>).
74820
74821 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74822
74823         Sync from coreutils.
74824
74825         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74826         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74827         [!LDAV_DONE]: Avoid unused variable warning.
74828
74829 2005-09-21  Bruno Haible  <bruno@clisp.org>
74830
74831         * lib/unicodeio.h (unicode_to_mb): New declaration.
74832
74833 2005-09-20  Derek Price  <derek@ximbiot.com>
74834
74835         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74836         getaddrinfo.h.
74837
74838 2005-09-20  Bruno Haible  <bruno@clisp.org>
74839
74840         * gnulib-tool: Remove trailing slashes from the values specified for
74841         --source-base, --m4-base, --tests-base, --aux-dir.
74842         Suggested by Simon Josefsson <jas@extundo.com>.
74843
74844 2005-09-20  Bruno Haible  <bruno@clisp.org>
74845
74846         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74847         func_modules_to_filelist, func_import, func_create_testdir): Make all
74848         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74849         change when gnulib-tool is invoked in a different locale.
74850
74851 2005-09-19  Simon Josefsson  <jas@extundo.com>
74852
74853         * m4/socklen.m4: Fix typo.
74854
74855 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74856
74857         Use a consistent style for including <config.h>.
74858         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74859         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74860         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74861         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74862         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74863         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74864         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74865         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74866         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74867         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74868         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74869         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74870         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74871         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74872         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74873         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74874         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74875         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74876         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74877         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74878         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74879         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74880         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74881         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74882         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74883         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74884         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74885         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74886         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74887         lib/xstrtoumax.c, lib/yesno.c:
74888         Standardize inclusion of config.h.
74889         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74890         lib/inttostr.h:  Removed inclusion of config.h from header files.
74891         * lib/inttostr.c:  Adjusted in-tree users.
74892         * lib/timespec.h: Remove superfluous warning to include config.h.
74893         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74894         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74895         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74896         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74897         config.h with HAVE_CONFIG_H.
74898
74899 2005-09-19  Jim Meyering  <jim@meyering.net>
74900
74901         * modules/pathmax (License): Change to LGPL.
74902
74903 2005-09-19  Derek Price  <derek@ximbiot.com>
74904
74905         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74906
74907 2005-09-19  Bruno Haible  <bruno@clisp.org>
74908
74909         * gnulib-tool (import): Provide default for --tests-base.
74910
74911 2005-09-19  Bruno Haible  <bruno@clisp.org>
74912
74913         * doc/quote.texi: New file, extracted from gnulib.texi.
74914         * doc/ctime.texi: New file, extracted from gnulib.texi.
74915         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74916         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74917         * doc/gnulib.texi: Include them.
74918
74919 2005-09-18  Bruno Haible  <bruno@clisp.org>
74920
74921         Portability fix.
74922         * gnulib-tool (func_readlink): New function.
74923         (func_ln_if_changed): Use it.
74924
74925 2005-09-18  Bruno Haible  <bruno@clisp.org>
74926
74927         * gnulib-tool: Support --with-tests also with --import.
74928         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74929         (func_import): Use variables $testsbase and $inctests. Emit a
74930         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74931         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74932         SUBDIRS += $testsdir.
74933         (func_create_testdir): Update.
74934
74935 2005-09-18  Bruno Haible  <bruno@clisp.org>
74936
74937         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74938         instead of $dry_run.
74939         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74940         (func_ln_if_changed): Don't handle dry-run here.
74941         (func_import): In dry-run mode, detect more precisely which actions
74942         would be performed, and don't use "...ing" verbs.
74943
74944 2005-09-18  Bruno Haible  <bruno@clisp.org>
74945
74946         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74947         (func_import): Use join on two temporary files instead of three nested
74948         loops, in order to determine which files are new or old.
74949
74950 2005-09-18  Bruno Haible  <bruno@clisp.org>
74951
74952         * gnulib-tool (func_import): Comment out code that spits out the
74953         new files with --dry-run.
74954
74955 2005-09-18  Bruno Haible  <bruno@clisp.org>
74956
74957         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74958
74959 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74960
74961         * lib/stat-time.h: New file.
74962         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74963         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74964         in a different way.
74965         (timespec_cmp): New function.
74966         * lib/utimecmp.c: Include stat-time.h.
74967         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74968         members exist, not on the obsolescent ST_MTIM_NSEC.
74969         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74970
74971 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74972
74973         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74974
74975 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74976
74977         * MODULES.html.sh (File system functions): Add stat-time.
74978         * modules/stat-time: New file.
74979         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74980         is now done in a different way, by the stat-time module.
74981         * modules/utimecmp (Depends-on): Add stat-time.
74982
74983 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74984
74985         * m4/st_mtim.m4: Remove.  Superseded by...
74986         * m4/stat-time.m4: New file.
74987         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74988         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74989
74990 2005-09-15  Derek Price  <derek@ximbiot.com>
74991
74992         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74993
74994 2005-09-15  Derek Price  <derek@ximbiot.com>
74995
74996         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74997         * lib/regex_internal.c: Ditto, using this...
74998         (__GNUC_PREREQ): ...new macro.
74999         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75000         using...
75001         (__GNUC_PREREQ): ...this new macro.
75002
75003         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75004
75005 2005-09-15  Derek Price  <derek@ximbiot.com>
75006             Paul Eggert  <eggert@cs.ucla.edu>
75007
75008         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75009         changes, consolidating in...
75010         * lib/regex_internal.h: ...this file.
75011
75012 2005-09-13  Jim Meyering  <jim@meyering.net>
75013
75014         * lib/canon-host.c: Filter through gnu indent and reword comments
75015         slightly.
75016         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75017
75018 2005-09-13  Derek Price  <derek@ximbiot.com>
75019
75020         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75021         failure.
75022         Reported by Jim Meyering  <jim@meyering.net>.
75023
75024 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75025
75026         * lib/base64.c: Typo.
75027         (base64_encode): Put b64str in initialized data section.
75028
75029 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75030
75031         Merge glibc and coreutils changes into gnulib, plus a few
75032         extra fixes.
75033         * lib/md5.c: Use #error rather than a string.
75034         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75035         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75036         (__attribute__): Define to empty for non recent-GCC.
75037         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75038         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75039         Renamed from their non-__ counterparts, with new macros replacing
75040         them if not _LIBC.  Add __THROW attribute.
75041         (rol): Remove.
75042         (struct md5_ctx): Align buffer if using GCC.
75043         * lib/sha1.h (struct sha1_ctx): Likewise.
75044         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75045         The old name was backwards.
75046         (NOTSWAP): Remove; not used.
75047         (rol): New macro, moved here from md5.h.
75048         (sha1_process_block): Remove a FIXME that doesn't make sense.
75049
75050 2005-09-12  Derek Price  <derek@ximbiot.com>
75051
75052         Return usable errors from canon-host.
75053         * lib/canon-host.h: New file.
75054         * lib/canon-host.c (canon_host): Wrap...
75055         (canon_host_r): ...this new function, which now relies exclusively on
75056         getaddrinfo.
75057         (ch_strerror): New function.
75058         (last_cherror): New global.
75059         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75060         interface.
75061         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75062         void *.
75063         (freeaddrinfo): Free ai->ai_canonname when set.
75064
75065 2005-09-12  Derek Price  <derek@ximbiot.com>
75066
75067         Make canon-host require getaddrinfo.
75068         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75069         AC_LIBSOURCE canon-host.h.  Call...
75070         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75071         gl_GETADDRINFO.
75072         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75073
75074 2005-09-12  Derek Price  <derek@ximbiot.com>
75075
75076         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75077         LGPL.
75078         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75079
75080 2005-09-12  Derek Price  <derek@ximbiot.com>
75081
75082         * lib/gai_strerror.c: Include config.h when available.  Include
75083         getaddrinfo.h before other headers to test interface.
75084         Reported by Larry Jones <lawrence.jones@ugs.com>.
75085
75086 2005-09-12  Derek Price  <derek@ximbiot.com>
75087             Paul Eggert  <eggert@cs.ucla.edu>
75088
75089         * modules/glob (Files): Add glob-libc.h.
75090
75091 2005-09-12  Derek Price  <derek@ximbiot.com>
75092             Paul Eggert  <eggert@cs.ucla.edu>
75093
75094         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75095         glob_.h, glob-libc.h.
75096         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75097
75098 2005-09-12  Derek Price  <derek@ximbiot.com>
75099             Paul Eggert  <eggert@cs.ucla.edu>
75100
75101         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75102         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75103         protecting things that should be done only in gnulib contexts.
75104         * lib/glob_.h: New file, containing only the glob things needed for
75105         gnulib.
75106         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75107         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75108         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75109         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75110         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75111         and to respect the namespace rules better.
75112
75113 2005-09-08  Simon Josefsson  <jas@extundo.com>
75114
75115         * modules/socklen: New file.
75116
75117 2005-09-08  Simon Josefsson  <jas@extundo.com>
75118
75119         * m4/socklen.m4: New file.
75120
75121 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75122
75123         * modules/utimens (Files): Add m4/utimbuf.m4, since
75124         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75125         Reported by Sergey Poznyakoff.
75126
75127 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75128
75129         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75130         definitions, since that's the preferred style in glibc.
75131         Fix a minor spacing issue, and update copyright notice to match
75132         glibc's.
75133
75134 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75135
75136         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75137
75138 2005-09-06  Simon Josefsson  <jas@extundo.com>
75139
75140         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75141         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75142
75143 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75144
75145         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75146         warning.
75147
75148 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75149
75150         * config/srclist.txt: Add glibc bug 1302.
75151
75152 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75153
75154         Change bitset word type from unsigned int to unsigned long int,
75155         as this has better performance on typical 64-bit hosts.
75156         Port bitset code to hosts with unusual word sizes.
75157         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75158         (build_collating_symbol):
75159         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75160         argument is a bitset.  This is merely a style issue, but it makes
75161         it clearer that an entire array is expected.
75162         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75163         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75164         Port to the case where bitset_word is not the same as unsigned int.
75165         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75166         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75167         Likewise.
75168         * lib/regexec.c (check_dst_limits_calc_pos_1,
75169         check_subexp_matching_top):
75170         (build_trtable, group_nodes_into_DFAstates):
75171         Likewise.
75172         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75173         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75174         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75175         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75176         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75177         * lib/regcomp.c (optimize_subexps, lower_subexp):
75178         Work even if bitset_word has holes in its bitwise representation.
75179         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75180         * lib/regexec.c (check_dst_limits_calc_pos_1,
75181         check_subexp_matching_top):
75182         Likewise.
75183         * lib/regex_internal.c (re_string_reconstruct):
75184         Don't assume UCHAR_MAX == 255.
75185         * lib/regex_internal.h (bitset_set_all): Likewise.
75186         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75187         All uses changed.
75188         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75189         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75190         All uses changed.
75191         (BITSET_WORD_MAX): New macro.
75192         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75193         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75194         (bitset_empty, bitset_copy):
75195         Prefer sizeof (bitset) to multiplying it out ourselves.
75196         (bitset_not_merge): Remove; unused.
75197         (bitset_contain): Return bool, not unsigned int with one bit on.
75198         All callers changed.
75199         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75200         alignment than re_node_set; do this by defining a new internal
75201         type struct dests_alloc and using it to allocate memory.
75202
75203 2005-09-05  Bruno Haible  <bruno@clisp.org>
75204
75205         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75206         links.
75207
75208 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75209
75210         * modules/size_max (Makefile.am): Add size_max.h
75211
75212 2005-09-04  Derek Price  <derek@ximbiot.com>
75213
75214         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75215
75216 2005-09-03  Simon Josefsson  <jas@extundo.com>
75217
75218         * gnulib-tool: Fix typo.
75219
75220 2005-09-03  Simon Josefsson  <jas@extundo.com>
75221
75222         * config/srclist.txt: Add glibc bug 1293.
75223
75224 2005-09-03  Derek Price  <derek@ximbiot.com>
75225
75226         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75227         From Larry Jones <lawrence.jones@ugs.com>.
75228
75229 2005-09-02  Simon Josefsson  <jas@extundo.com>
75230
75231         * modules/socklen: New file.
75232
75233 2005-09-02  Simon Josefsson  <jas@extundo.com>
75234
75235         * modules/havelib: New module.
75236
75237         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75238         Use havelib.
75239
75240 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75241
75242         Check for arithmetic overflow when calculating sizes, to prevent
75243         some buffer-overflow issues.  These patches are conservative, in the
75244         sense that when I couldn't determine whether an overflow was possible,
75245         I inserted a run-time check.
75246         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75247         macros.
75248         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75249         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75250         (re_xnrealloc, re_x2nrealloc): New inline functions.
75251         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75252         parse_bracket_exp):
75253         (build_equiv_class, build_charclass): Check for arithmetic overflow
75254         in size expression calculations.
75255         * lib/regex_internal.c (re_string_realloc_buffers):
75256         (build_wcs_upper_buffer, re_node_set_add_intersect):
75257         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75258         (re_dfa_add_node, register_state): Likewise.
75259         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75260         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75261         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75262         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75263
75264 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75265
75266         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75267         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75268
75269 2005-09-02  Bruno Haible  <bruno@clisp.org>
75270
75271         Support for lib vs. lib64 distinction on biarch platforms.
75272         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75273         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75274         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75275
75276 2005-09-02  Bruno Haible  <bruno@clisp.org>
75277
75278         * gnulib-tool (import): In the other first-use case, provide defaults
75279         as well.
75280
75281 2005-09-02  Bruno Haible  <bruno@clisp.org>
75282
75283         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75284         patches not yet found in the latest gettext release.
75285
75286 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75287
75288         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75289         to avoid a collision with bits/local_lim.h in glibc.
75290         All uses changed.  Problem reported by Dmitry V. Levin in
75291         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75292
75293         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75294         bugs in int versus size_t comparisons.
75295         (re_string_context_at): Fix bug where the code assumed that
75296         Idx is signed.
75297
75298         Use bool where appropriate.
75299         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75300         All callers changed.
75301         (calc_eclosure_iter): Likewise, for ROOT arg.
75302         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75303         (build_charclass_op): Likewise, for NON_MATCH arg.
75304         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75305         (re_string_construct_common): Likewise, for ICASE arg.
75306         * lib/regexec.c (re_search_2_stub, re_search_stub):
75307         Likewise, for RET_LEN arg.
75308         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75309         (set_regs): Likewise, for FL_BACKTRACK arg.
75310         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75311         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75312         (calc_eclosure_iter, parse_bracket_exp):
75313         Use bool for internal variables that are booleans.
75314         * lib/regexec.c (re_search_internal, check_matching,
75315         proceed_next_node):
75316         (set_regs, build_sifted_states, sift_states_bkref):
75317         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75318         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75319         (find_collation_sequence_value):
75320         Likewise.
75321         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75322         (re_node_set_compare):
75323         Return bool, not int. All callers changed.
75324         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75325         (build_trtable, check_node_accept): Likewise.
75326         * lib/regex_internal.h: Include stdbool.h.
75327
75328         Fix bugs uncovered when converting to bool.
75329         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75330         failure instead of charging ahead blindly.
75331         * lib/regex_internal.c (register_state): Likewise.
75332         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75333         for freeing internal storage.
75334         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75335         bitset pieces used as boolean, to avoid undefined behavior
75336         on hosts that do int overflow checking.
75337
75338 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75339
75340         * config/srclist.txt: Add glibc bugs 1285-1287.
75341
75342 2005-09-01  Jim Meyering  <jim@meyering.net>
75343
75344         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75345         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75346         Require gl_STAT_MACROS, too.
75347
75348 2005-09-01  Bruno Haible  <bruno@clisp.org>
75349
75350         * gnulib-tool (import): In the first-use case, provide defaults.
75351
75352 2005-09-01  Bruno Haible  <bruno@clisp.org>
75353
75354         * gnulib-tool (func_import): Remove the .tmp files.
75355
75356 2005-09-01  Bruno Haible  <bruno@clisp.org>
75357
75358         * gnulib-tool (func_import): Fix handling of symbolic links.
75359
75360 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75361
75362         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75363         old glibc regex code mishandles strings longer than 2**31 bytes.
75364         This patch fixes this when the regex code is used in gnulib
75365         (i.e., outside glibc).
75366
75367         This patch should not affect the use of the regex code inside
75368         glibc.  No doubt this problem also needs to be handled for glibc
75369         as well, but the result will be an incompatible change to the
75370         glibc ABI, and the old ABI will have to be supported too.  That
75371         can be the the subject for another patch.
75372
75373         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75374         governing whether the rest of this patch is active.  By default,
75375         the macro is disabled and the patch has no effect.
75376         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75377         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75378         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75379         (re_match_2, re_set_registers): Use the new types.
75380         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75381         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75382         New macros.
75383         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75384         (re_string_context_at, bin_tree_t, re_dfastate_t):
75385         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75386         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75387         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75388         (re_string_char_size_at, re_string_wchar_at):
75389         (re_string_elem_size_at):
75390         Use the new types and macros to port to 64-bit hosts.
75391         Use unsigned types for internal values, so that the code
75392         mostly works even for arrays larger than SSIZE_MAX.
75393         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75394         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75395         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75396         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75397         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75398         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75399         (calc_inveclosure, parse_dup_op, build_range_exp):
75400         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75401         (fetch_number, create_token_tree, mark_opt_subexp):
75402         Likewise.
75403         * lib/regex_internal.c (re_string_construct_common,
75404         create_ci_newstate):
75405         (create_cd_newstate, re_string_allocate, re_string_construct):
75406         (re_string_realloc_buffers, build_wcs_upper_buffer):
75407         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75408         (re_string_reconstruct, re_string_peek_byte_case):
75409         (re_string_fetch_byte_case, re_string_context_at):
75410         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75411         (re_node_set_init_copy, re_node_set_add_intersect):
75412         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75413         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75414         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75415         (re_acquire_state, re_acquire_state_context, register_state):
75416         Likewise.
75417         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75418         search_cur_bkref_entry):
75419         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75420         (re_search_internal, re_search_2_stub, re_search_stub)
75421         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75422         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75423         (update_cur_sifted_state, check_dst_limits):
75424         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75425         (check_subexp_limits, sift_states_bkref, merge_state_array):
75426         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75427         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75428         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75429         (expand_bkref_cache, check_node_accept_bytes):
75430         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75431         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75432         (acquire_init_state_context, check_halt_node_context):
75433         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75434         (sift_states_backward, clean_state_log_if_needed):
75435         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75436         (find_recover_state, transit_state_sb, transit_state_mb):
75437         (transit_state_bkref, build_trtable, match_ctx_clean):
75438         Likewise.
75439         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75440         to work around an assumption that REG_MISSING is negative.
75441
75442         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75443         (seek_collating_symbol_entry) [defined _LIBC]:
75444         (lookup_collation_sequence_value) [defined _LIBC]:
75445         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75446         Use prototypes rather than old-style function definitions.
75447         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75448         (transit_state_sb) [0]:
75449         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75450
75451         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75452         rm_eo.
75453
75454         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75455         (optimize_subexps, lower_subexp):
75456         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75457         since the signed shift might overflow.  Use 1u<<31 instead.
75458         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75459         Likewise.
75460         * lib/regexec.c (check_dst_limits_calc_pos_1,
75461         check_subexp_matching_top): Likewise.
75462
75463         * lib/regcomp.c (optimize_subexps, lower_subexp):
75464         Use CHAR_BIT rather than 8, for clarity.
75465         * lib/regexec.c (check_dst_limits_calc_pos_1):
75466         (check_subexp_matching_top): Likewise.
75467         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75468         have to worry about portability issues when shifting it left.
75469         Remove no-longer-needed test for table_size > 0.
75470         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75471         in a word, as the resulting behavior is undefined.
75472         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75473         in one case, a <= should have been an <, and in another case the
75474         whole test was missing.
75475         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75476         the standard name CHAR_BIT.
75477         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75478         this is not true on one's complement and signed-magnitude hosts.
75479
75480         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75481         next_last_offset.
75482         (struct re_dfa_t): Remove unused member states_alloc.
75483         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75484
75485 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75486
75487         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75488         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75489         and large-file glibc and in 32-bit large-file Solaris.
75490
75491 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75492
75493         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75494         lengths fit in regoff_t; this isn't true if regoff_t is the same
75495         width as size_t.
75496         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75497         (= START + RANGE) instead of RANGE.  This avoids overflow
75498         problems when regoff_t is the same width as size_t.
75499         All callers changed.
75500         (re_search_2_stub): Check for overflow when adding the
75501         sizes of the two strings.
75502         (re_search_stub): Check for overflow when adding START
75503         to RANGE; if it occurs, substitute the extreme value.
75504
75505 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75506
75507         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75508
75509 2005-08-31  Jim Meyering  <jim@meyering.net>
75510
75511         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75512         a pointer-to-const.
75513         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75514         (register_state): Likewise.
75515         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75516         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75517         (group_nodes_into_DFAstates): Likewise.
75518
75519 2005-08-31  Jim Meyering  <jim@meyering.net>
75520
75521         * check-module: Add a FIXME comment.
75522
75523 2005-08-31  Eric Blake  <ebb9@byu.net>
75524
75525         * modules/unistd-safer (Files): Add unistd--.h.
75526         * modules/stdio-safer (Files): Add stdio--.h.
75527
75528 2005-08-31  Derek Price  <derek@ximbiot.com>
75529
75530         * lib/getdelim.c (getdelim): Return EOF on EOF.
75531         Reported by Larry Jones <lawrence.jones@ugs.com>.
75532
75533 2005-08-31  Bruno Haible  <bruno@clisp.org>
75534
75535         Avoid unnecessary diffs in the generated lib/Makefile.am.
75536         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75537         the generated files.
75538         (func_import): Don't set cmd.
75539
75540 2005-08-31  Bruno Haible  <bruno@clisp.org>
75541
75542         * lib/strstr.c: Include <stddef.h>, for NULL.
75543         * lib/strcasestr.c: Likewise.
75544         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75545
75546 2005-08-31  Bruno Haible  <bruno@clisp.org>
75547
75548         * gnulib-tool: New option --macro-prefix.
75549         (func_import): Use macro_prefix.
75550         (import): Handle option --macro-prefix.
75551
75552 2005-08-31  Bruno Haible  <bruno@clisp.org>
75553
75554         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75555         Also use new variables cached_lgpl, cached_libtool.
75556
75557 2005-08-31  Bruno Haible  <bruno@clisp.org>
75558
75559         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75560         always instantiating them.
75561
75562 2005-08-31  Bruno Haible  <bruno@clisp.org>
75563
75564         * gnulib-tool (func_import): Read the previous cached settings
75565         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75566         earlier added by gnulib but are now dropped. Warn when a gnulib file
75567         overwrites a non-gnulib file.
75568
75569 2005-08-31  Bruno Haible  <bruno@clisp.org>
75570
75571         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75572         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75573         projects that don't keep autogenerated files in CVS. Put into
75574         actioncmd only the specified modules, not the transitive closure.
75575
75576 2005-08-31  Bruno Haible  <bruno@clisp.org>
75577
75578         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75579         Create directories that shall be filled.
75580         (import): Don't look for gl_* macros in configure.ac. Recurse across
75581         all directories containing a gnulib-cache.m4 files, if meaningful.
75582
75583 2005-08-31  Bruno Haible  <bruno@clisp.org>
75584
75585         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75586         (import): Set seen_libtool when we see gl_LIBTOOL.
75587
75588 2005-08-31  Bruno Haible  <bruno@clisp.org>
75589
75590         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75591         declaration macro definitions from generated gnulib.m4.
75592
75593 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75594
75595         * lib/iconvme.h: Add prototype for iconv_alloc.
75596
75597 2005-08-29  Simon Josefsson  <jas@extundo.com>
75598
75599         * lib/iconvme.c: Fix errno.
75600
75601 2005-08-29  Bruno Haible  <bruno@clisp.org>
75602
75603         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75604         that it works when the directory contains spaces.
75605
75606 2005-08-29  Bruno Haible  <bruno@clisp.org>
75607
75608         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75609
75610 2005-08-29  Bruno Haible  <bruno@clisp.org>
75611
75612         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75613         Emit more advice.
75614
75615 2005-08-29  Bruno Haible  <bruno@clisp.org>
75616         and Stepan Kasal  <kasal@ucw.cz>
75617
75618         * check-module: If more parameters are given, check each of them
75619         separately; add more exceptions, as noted by Jim Meyering.
75620         (check_module): New procedure.
75621         (%exempt_header): Now contains all exceptions.
75622
75623 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75624
75625         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75626
75627 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75628
75629         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75630
75631 2005-08-28  Bruno Haible  <bruno@clisp.org>
75632
75633         * m4/gnulib-tool.m4: New file.
75634
75635 2005-08-27  Jim Meyering  <jim@meyering.net>
75636
75637         * modules/unistd-safer (Files): Add pipe-safer.c.
75638         * modules/fcntl-safer (Files): Add creat-safer.c.
75639
75640 2005-08-27  Jim Meyering  <jim@meyering.net>
75641
75642         * m4/stdlib-safer.m4: New file.  From coreutils.
75643         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75644         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75645         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75646         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75647         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75648
75649 2005-08-27  Jim Meyering  <jim@meyering.net>
75650
75651         * lib/fopen-safer.c: Merge minor changes from coreutils.
75652         * lib/dup-safer.c: Likewise.
75653         * lib/fd-safer.c: Likewise.
75654
75655         Merge from coreutils.
75656         * lib/stdio--.h: New file.
75657         * lib/stdlib--.h: New file.
75658         * lib/mkstemp-safer.c: New file.
75659
75660         GNU tar needs these.
75661         * lib/pipe-safer.c: New file.
75662         * lib/creat-safer.c: New file.
75663         * lib/fcntl--.h (creat): Define to creat_safer.
75664         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75665         * lib/unistd--.h (pipe): Define to pipe_safer.
75666         * lib/unistd-safer.h: Declare pipe_safer.
75667
75668 2005-08-26  Simon Josefsson  <jas@extundo.com>
75669
75670         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75671         Haible <bruno@clisp.org>.
75672
75673 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75674
75675         * lib/regex_internal.h: Remove all references to
75676         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75677         or better.
75678         (bitset_not, bitset_merge, bitset_not_merge):
75679         (bitset_mask, re_string_allocate, re_string_construct):
75680         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75681         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75682         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75683         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75684         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75685         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75686         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75687         (re_acquire_state_context):
75688         Remove unnecessary forward decls.
75689         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75690         Put __attribute at function definition,
75691         now that the function decl has been removed.
75692         * lib/regex_internal.c (re_string_peek_byte_case):
75693         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75694         Likewise.
75695
75696 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75697
75698         * m4/regex.m4: Add AC_PREREQ(2.50).
75699         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75700
75701 2005-08-25  Simon Josefsson  <jas@extundo.com>
75702
75703         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75704         __fsetlocking.
75705
75706 2005-08-25  Simon Josefsson  <jas@extundo.com>
75707
75708         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75709         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75710         GLIBC specific code.
75711
75712 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75713
75714         Make regex safe for g++.  This fixes one real bug (an "err"
75715         that should have been "*err").  g++ problem reported by
75716         Sam Steingold.
75717         * lib/regex_internal.h (re_calloc): New macro, consistent with
75718         re_malloc etc.  All callers of calloc changed to use re_calloc.
75719         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75720         not int.  All callers changed.
75721         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75722         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75723         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75724         (find_recover_state): Change "err" to "*err"; this fixes what
75725         appears to be a real bug.
75726         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75727         versus int.
75728
75729 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75730
75731         * modules/regex (Depends-on): Add malloc, since the code
75732         assumes that !malloc(0) means failure.
75733
75734 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75735
75736         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75737
75738         alloca modernization/simplification for regex.
75739         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75740         needs to be at the start of the file, and can be moved into
75741         regex_internal.h and simplified.
75742         * lib/regex_internal.h: Include <alloca.h>.
75743         (__libc_use_alloca) [!defined _LIBC]: New macro.
75744         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75745         now works outside glibc.
75746
75747 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75748
75749         * config/srclist.txt: Add glibc bugs 1241, 1245.
75750
75751 2005-08-25  Jim Meyering  <jim@meyering.net>
75752
75753         * lib/open-safer.c: Include <config.h>.
75754         Otherwise, we'd lose LARGEFILE support in any file using
75755         e.g. "fcntl--.h"
75756
75757 2005-08-25  Bruno Haible  <bruno@clisp.org>
75758
75759         * m4/minmax.m4: Require autoconf 2.52.
75760         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75761         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75762         alternatives of translit over the alphabet.
75763         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75764
75765 2005-08-24  Simon Josefsson  <jas@extundo.com>
75766
75767         * tests/test-getpass.c: New file.
75768
75769 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75770
75771         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75772         for GNU regex features.
75773
75774 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75775
75776         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75777         * lib/regex.h (regerror): Likewise.
75778
75779         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75780         requires this.  (The code never needed it.)
75781
75782         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75783         All uses of recently-renamed identifiers changed to use the new,
75784         POSIX-compliant names.  The code will build and run just fine
75785         without these changes, but it's better to eat our own dog food
75786         and use the standard-conforming names.
75787
75788         * lib/regex.h: Fix a multitude of POSIX name space violations.
75789         These changes have an effect only for programs that define
75790         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75791         do not change anything for programs compiled in the normal way.
75792         Also, there is no effect on the ABI.
75793
75794         (_REGEX_SOURCE): New macro.
75795         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75796         defined and _GNU_SOURCE is not; this fixes a name space violation.
75797
75798         Rename the following macros to obey POSIX requirements.
75799         The old names are still visible as macros if _REGEX_SOURCE is defined.
75800         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75801         RE_BACKSLASH_ESCAPE_IN_LISTS.
75802         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75803         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75804         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75805         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75806         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75807         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75808         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75809         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75810         (REG_INTERVALS): renamed from RE_INTERVALS.
75811         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75812         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75813         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75814         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75815         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75816         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75817         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75818         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75819         RE_UNMATCHED_RIGHT_PAREN_ORD.
75820         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75821         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75822         (REG_DEBUG): renamed from RE_DEBUG.
75823         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75824         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75825         unusual, since we can't clash with the POSIX REG_ICASE.
75826         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75827         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75828         (REG_NO_SUB): renamed from RE_NO_SUB.
75829         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75830         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75831         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75832         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75833         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75834         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75835         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75836         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75837         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75838         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75839         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75840         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75841         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75842         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75843         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75844         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75845         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75846         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75847         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75848         (REG_FIXED): Renamed from REGS_FIXED.
75849         (REG_NREGS): Renamed from RE_NREGS.
75850
75851         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75852         of other REG_* macros, since POSIX says the user is allowed to
75853         #undef these macros selectively.
75854
75855         (reg_errcode_t): Update comment stating what other tables need
75856         to be consistent.
75857
75858         Rename the following enum values to obey POSIX requirements.
75859         The old names are still visible as macros.
75860         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75861         is not defined, since GNU is supposed to be a superset of POSIX as
75862         much as possible, and since we want reg_errcode_t to be a signed
75863         type for implementation consistency.
75864         (_REG_NOERROR): Renamed from REG_NOERROR.
75865         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75866         (_REG_BADPAT): Renamed from REG_BADPAT.
75867         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75868         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75869         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75870         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75871         (_REG_EBRACK): Renamed from REG_EBRACK.
75872         (_REG_EPAREN): Renamed from REG_EPAREN.
75873         (_REG_EBRACE): Renamed from REG_EBRACE.
75874         (_REG_BADBR): Renamed from REG_BADBR.
75875         (_REG_ERANGE): Renamed from REG_ERANGE.
75876         (_REG_ESPACE): Renamed from REG_ESPACE.
75877         (_REG_BADRPT): Renamed from REG_BADRPT.
75878         (_REG_EEND): Renamed from REG_EEND.
75879         (_REG_ESIZE): Renamed from REG_ESIZE.
75880         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75881         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75882         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75883         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75884         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75885
75886         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75887         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75888         changed.  But support the old name if the new one is not defined
75889         and if _REGEX_SOURCE.
75890
75891         Change the following member names in struct re_pattern_buffer.
75892         The old names are still supported if !_REGEX_SOURCE.
75893         The new names are always supported, regardless of _REGEX_SOURCE.
75894         (re_buffer): Renamed from buffer.
75895         (re_allocated): Renamed from allocated.
75896         (re_used): Renamed from used.
75897         (re_syntax): Renamed from syntax.
75898         (re_fastmap): Renamed from fastmap.
75899         (re_translate): Renamed from translate.
75900         (re_can_be_null): Renamed from can_be_null.
75901         (re_regs_allocated): Renamed from regs_allocated.
75902         (re_fastmap_accurate): Renamed from fastmap_accurate.
75903         (re_no_sub): Renamed from no_sub.
75904         (re_not_bol): Renamed from not_bol.
75905         (re_not_eol): Renamed from not_eol.
75906         (re_newline_anchor): Renamed from newline_anchor.
75907
75908         Change the following member names in struct re_registers.
75909         The old names are still supported if !_REGEX_SOURCE.
75910         The new names are always supported, regardless of _REGEX_SOURCE.
75911         (rm_num_regs): Renamed from num_regs.
75912         (rm_start): Renamed from start.
75913         (rm_end): Renamed from end.
75914
75915         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75916         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75917         Prepend __ to parameter names.
75918
75919         Undo yesterday's changes.
75920
75921 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75922
75923         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75924         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75925         lib/regex.c.
75926
75927 2005-08-24  Jim Meyering  <jim@meyering.net>
75928
75929         Sync from coreutils.
75930         * m4/fcntl-safer.m4: New file.
75931
75932         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75933         and object files for this module.
75934
75935 2005-08-24  Jim Meyering  <jim@meyering.net>
75936
75937         Sync from coreutils.
75938         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75939
75940 2005-08-24  Jim Meyering  <jim@meyering.net>
75941
75942         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75943         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75944
75945 2005-08-24  Jim Meyering  <jim@meyering.net>
75946
75947         * modules/fcntl-safer: New module.
75948         * modules/fts (Depends-on): Add fcntl-safer.
75949         * MODULES.html.sh (File descriptor based Input/Output):
75950         Add fcntl-safer.
75951
75952 2005-08-24  Bruno Haible  <bruno@clisp.org>
75953
75954         Support for unit test modules.
75955         * modules/README: Mention tests modules.
75956         * modules/TEMPLATE-TESTS: New file.
75957         * gnulib-tool: New options --extract-tests-module, --with-tests and
75958         --tests-base (unused for the moment).
75959         (testsbase, inctests): New variables.
75960         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75961         (func_verify_module): Exclude TEMPLATE-TESTS.
75962         (func_verify_nontests_module, func_verify_tests_module): New functions.
75963         (func_get_dependencies): Add implicit dependency for tests modules.
75964         (func_get_tests_module): New function.
75965         (func_modules_transitive_closure): When --with-tests was specified,
75966         include the unit tests as well, unless explicitly avoided.
75967         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75968         (func_emit_tests_Makefile_am): New function.
75969         (func_create_testdir): When --with-tests was specified, emit a
75970         tests/ directory.
75971         * MODULES.html.sh (Future developments): Update.
75972
75973 2005-08-24  Bruno Haible  <bruno@clisp.org>
75974
75975         * modules/tls-tests: New file.
75976         * tests/test-tls.c: New file, from GNU gettext.
75977
75978 2005-08-24  Bruno Haible  <bruno@clisp.org>
75979
75980         * modules/lock-tests: New file.
75981         * tests/test-lock.c: New file, from GNU gettext.
75982
75983 2005-08-24  Bruno Haible  <bruno@clisp.org>
75984
75985         * lib/lock.h: Add multiple inclusion guard.
75986         * lib/tls.h: Add multiple inclusion guard.
75987
75988 2005-08-24  Bruno Haible  <bruno@clisp.org>
75989
75990         * gnulib-tool: Add support for the --aux-dir option to
75991         --create-testdir, --create-megatestdir, --test, --megatest.
75992         (func_create_testdir, func_create_megatestdir): Optionally emit a
75993         AC_CONFIG_AUX_DIR directive.
75994         (create-testdir, create-megatestdir, test, megatest): Provide a
75995         default value for $auxdir.
75996
75997 2005-08-24  Bruno Haible  <bruno@clisp.org>
75998
75999         * gnulib-tool (import): Use compound statement instead of subshell
76000         where possible.
76001
76002 2005-08-24  Bruno Haible  <bruno@clisp.org>
76003
76004         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76005
76006 2005-08-24  Bruno Haible  <bruno@clisp.org>
76007
76008         * gnulib-tool (func_version): Update.
76009
76010 2005-08-24  Bruno Haible  <bruno@clisp.org>
76011
76012         * gnulib-tool (func_import, func_create_testdir,
76013         func_create_megatestdir): Quote all autoconf macro arguments.
76014
76015 2005-08-24  Bruno Haible  <bruno@clisp.org>
76016
76017         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76018         option --force, because --force causes the aclocal.m4 of each
76019         subdirectory to be newer than the corresponding config.h.in.
76020
76021 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76022
76023         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76024         All contents moved to gl_REGEX.
76025         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76026         assume that it does.
76027
76028 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76029
76030         * lib/regex.h (REG_NOSYS)
76031         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76032         Define, since POSIX requires it as of 2001.
76033         (_REG_ENOSYS)
76034         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76035         New private symbol, used to keep the enum signed in all cases.
76036         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76037         Youngman in
76038         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76039
76040         * lib/regex_internal.c (re_string_skip_chars, register_state):
76041         (calc_state_hash):
76042         Remove forward decls; no longer needed now that we use prototypes.
76043         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76044         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76045         (clean_state_log_if_needed): Likewise.
76046
76047 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76048
76049         * config/srclist.txt: Add glibc bugs 1231-1233.
76050
76051 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76052
76053         Fix problems reported by Sam Steingold in
76054         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76055         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76056         assumed that reg_errcode_t is a signed type, which is not
76057         necessarily true if _XOPEN_SOURCE is not defined.
76058         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76059         since some compilers warn about it otherwise.
76060
76061 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76062
76063         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76064         (init_word_char, create_initial_state, duplicate_node_closure):
76065         (fetch_token, peek_token_bracket, build_range_exp):
76066         (build_collating_symbol): Remove forward decls; no longer needed
76067         now that we use prototypes.
76068
76069         * lib/regcomp.c:
76070         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76071         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76072         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76073         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76074         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76075         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76076         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76077         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76078         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76079         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76080         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76081         (build_charclass, build_charclass_op, fetch_number, create_tree):
76082         (create_token_tree, mark_opt_subexp, duplicate_tree):
76083         Use prototypes rather than old-style definitions.
76084
76085         * lib/regex_internal.c:
76086         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76087         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76088         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76089         (re_string_reconstruct, re_string_peek_byte_case):
76090         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76091         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76092         (re_node_set_init_copy, re_node_set_add_intersect):
76093         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76094         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76095         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76096         (re_acquire_state, re_acquire_state_context, register_state):
76097         (create_ci_newstate, create_cd_newstate, free_state):
76098         Likewise.
76099         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76100         re_search_2):
76101         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76102         (re_search_internal, prune_impossible_nodes):
76103         (acquire_init_state_context, check_matching, static):
76104         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76105         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76106         (update_regs, sift_states_backward, build_sifted_states):
76107         (clean_state_log_if_needed, merge_state_array):
76108         (update_cur_sifted_state, add_epsilon_src_nodes):
76109         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76110         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76111         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76112         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76113         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76114         (check_arrival, check_arrival_add_next_nodes):
76115         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76116         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76117         (check_node_accept_bytes, check_node_accept, extend_buffers):
76118         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76119         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76120         (sift_ctx_init):
76121         Likewise.
76122
76123         * lib/regex_internal.h:
76124         (re_string_allocate, re_string_construct, re_string_reconstruct):
76125         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76126         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76127         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76128         (re_string_context_at, re_string_peek_byte_case):
76129         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76130         is defined, since we now use prototypes always.
76131
76132         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76133         C89 or better.  All uses removed.
76134
76135 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76136
76137         * config/srclist.txt: Add glibc bugs 1220-1227.
76138
76139 2005-08-20  Jim Meyering  <jim@meyering.net>
76140
76141         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76142         of unused local, dfa.
76143
76144 2005-08-20  Bruno Haible  <bruno@clisp.org>
76145
76146         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76147
76148 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76149
76150         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76151         (re_node_set_insert_last, re_dfa_add_node):
76152         Rename local variables to avoid GCC shadowing warnings.
76153
76154 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76155
76156         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76157         [defined lint]: Suppress bogus uninitialized-variable warnings.
76158
76159         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76160         and let the caller return REG_ESPACE if out of space.  This
76161         removes an uninitialied-variable warning with GCC 4.0.1, and also
76162         avoids taking the address of a local variable.  All callers
76163         changed.
76164
76165 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76166
76167         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76168         $LIBCSRC/posix/regexec.c.
76169         Add glibc bug 1217 for regcomp.c.
76170
76171 2005-08-19  Jim Meyering  <jim@meyering.net>
76172
76173         * lib/regexec.c (proceed_next_node): Redo local variables to
76174         avoid GCC shadowing warnings.
76175
76176 2005-08-18  Bruno Haible  <bruno@clisp.org>
76177
76178         * lib/strstr.c (strstr): Fix return value in multibyte case.
76179         * lib/strcasestr.c (strcasestr): Likewise.
76180
76181 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76182
76183         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76184
76185 2005-08-17  Jim Meyering  <jim@meyering.net>
76186
76187         Make the %s format (seconds since the epoch) work for a negative
76188         number and when used with a zero-padded field width, e.g. %015s.
76189
76190         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76191         label so that it precedes the code to set `digits'.  Otherwise,
76192         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76193         print `00-22'.  Now, it prints `-0022', as it should.
76194
76195 2005-08-17  Bruno Haible  <bruno@clisp.org>
76196
76197         * modules/strstr (Files): Add m4/mbrtowc.m4.
76198         (Depends-on): Add mbuiter.
76199
76200 2005-08-17  Bruno Haible  <bruno@clisp.org>
76201
76202         * modules/strcasestr: New file.
76203         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76204         strcasestr.
76205
76206 2005-08-17  Bruno Haible  <bruno@clisp.org>
76207
76208         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76209
76210 2005-08-17  Bruno Haible  <bruno@clisp.org>
76211
76212         * modules/mbuiter: New file.
76213         * MODULES.html.sh (Extended multibyte and wide character utilities):
76214         Add mbuiter.
76215
76216 2005-08-17  Bruno Haible  <bruno@clisp.org>
76217
76218         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76219         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76220
76221 2005-08-17  Bruno Haible  <bruno@clisp.org>
76222
76223         * m4/strcasestr.m4: New file.
76224
76225 2005-08-17  Bruno Haible  <bruno@clisp.org>
76226
76227         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76228         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76229
76230 2005-08-17  Bruno Haible  <bruno@clisp.org>
76231
76232         * lib/strcasestr.h: New file.
76233         * lib/strcasestr.c: New file.
76234
76235 2005-08-17  Bruno Haible  <bruno@clisp.org>
76236
76237         * lib/strcasecmp.c: Use mbuiter.h.
76238
76239 2005-08-17  Bruno Haible  <bruno@clisp.org>
76240
76241         * lib/mbuiter.h: New file.
76242
76243 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76244
76245         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76246         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76247         and gl_GETOPT are both invoked via different paths (as happens
76248         with GNU tar CVS because it uses both argp and getopt), the former
76249         wins.
76250
76251 2005-08-16  Bruno Haible  <bruno@clisp.org>
76252
76253         * modules/tls: New file.
76254         * MODULES.html.sh (Multithreading): Add tls.
76255
76256 2005-08-16  Bruno Haible  <bruno@clisp.org>
76257
76258         * modules/strnlen1: New file.
76259         * MODULES.html.sh (String handling): Add strnlen1.
76260
76261 2005-08-16  Bruno Haible  <bruno@clisp.org>
76262
76263         * modules/strcase (Files): Add m4/mbrtowc.m4.
76264         (Depends-on): Add strnlen1, mbchar.
76265
76266 2005-08-16  Bruno Haible  <bruno@clisp.org>
76267
76268         * modules/mbiter: New file.
76269         * MODULES.html.sh (Extended multibyte and wide character utilities):
76270         Add mbiter.
76271
76272 2005-08-16  Bruno Haible  <bruno@clisp.org>
76273
76274         * modules/mbfile: New file.
76275         * MODULES.html.sh (Extended multibyte and wide character utilities):
76276         Add mbfile.
76277
76278 2005-08-16  Bruno Haible  <bruno@clisp.org>
76279
76280         * modules/mbchar: New file.
76281         * MODULES.html.sh (Extended multibyte and wide character utilities):
76282         New section.
76283
76284 2005-08-16  Bruno Haible  <bruno@clisp.org>
76285
76286         * m4/tls.m4: New file, from GNU gettext.
76287
76288 2005-08-16  Bruno Haible  <bruno@clisp.org>
76289
76290         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76291         always.
76292         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76293
76294 2005-08-16  Bruno Haible  <bruno@clisp.org>
76295
76296         * m4/mbiter.m4: New file.
76297
76298 2005-08-16  Bruno Haible  <bruno@clisp.org>
76299
76300         * m4/mbfile.m4: New file.
76301
76302 2005-08-16  Bruno Haible  <bruno@clisp.org>
76303
76304         * m4/mbchar.m4: New file.
76305
76306 2005-08-16  Bruno Haible  <bruno@clisp.org>
76307
76308         * lib/tls.h: New file, from GNU gettext.
76309         * lib/tls.c: New file, from GNU gettext.
76310
76311 2005-08-16  Bruno Haible  <bruno@clisp.org>
76312
76313         * lib/strnlen1.h: New file.
76314         * lib/strnlen1.c: New file.
76315
76316 2005-08-16  Bruno Haible  <bruno@clisp.org>
76317
76318         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76319         (mbi_init): Update.
76320         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76321         NUL byte, not after it.
76322
76323 2005-08-16  Bruno Haible  <bruno@clisp.org>
76324
76325         * lib/strcase.h (strcasecmp): Add note in comments.
76326         * lib/strncasecmp.c: Use code from strcasecmp.c.
76327         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76328         (strcasecmp): Work correctly in multibyte locales.
76329
76330 2005-08-16  Bruno Haible  <bruno@clisp.org>
76331
76332         * lib/mbiter.h: New file.
76333
76334 2005-08-16  Bruno Haible  <bruno@clisp.org>
76335
76336         * lib/mbfile.h: New file.
76337
76338 2005-08-16  Bruno Haible  <bruno@clisp.org>
76339
76340         * lib/mbchar.h: New file.
76341         * lib/mbchar.c: New file.
76342
76343 2005-08-16  Bruno Haible  <bruno@clisp.org>
76344
76345         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76346         the valid ones. Makes the comparison operations transitive:
76347         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76348         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76349
76350 2005-08-15  Simon Josefsson  <jas@extundo.com>
76351
76352         * modules/ssize_t (License): Change to 'unlimited'.
76353
76354         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76355
76356 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76357
76358         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76359         Add comments for each pending glibc patch.
76360
76361 2005-08-15  Bruno Haible  <bruno@clisp.org>
76362
76363         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76364         __cplusplus is defined.
76365
76366 2005-08-14  Jim Meyering  <jim@meyering.net>
76367
76368         Sync from coreutils.
76369
76370         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76371         Use the hash-table-based cycle-detection code not just when
76372         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76373         Reported by James Youngman in
76374         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76375         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76376         FTS_TIGHT_CYCLE_CHECK.
76377         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76378         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76379         once again.
76380         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76381         * lib/fts.c (fd_safer): Remove decl.
76382         Include fcntl--.h rather than unistd-safer.h
76383         (fts_safe_changedir): Don't call fd_safer; no longer needed
76384         now that we include fcntl--.h.
76385
76386 2005-08-12  Simon Josefsson  <jas@extundo.com>
76387
76388         * modules/getndelim2: Use ssize_t module.
76389         * modules/getnline: Likewise.
76390         * modules/safe-read: Likewise.
76391         * modules/xreadlink: Likewise.
76392
76393         * modules/ssize_t: New file.
76394
76395 2005-08-12  Simon Josefsson  <jas@extundo.com>
76396
76397         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76398
76399 2005-08-12  Simon Josefsson  <jas@extundo.com>
76400
76401         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76402         ssize_t.
76403
76404 2005-08-12  Simon Josefsson  <jas@extundo.com>
76405
76406         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76407         readline, getdelim and check_version.
76408         (Support for systems lacking ISO C 99: Sizes of integer types):
76409         Add size_max.
76410
76411 2005-08-12  Bruno Haible  <bruno@clisp.org>
76412
76413         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76414
76415 2005-08-11  Simon Josefsson  <jas@extundo.com>
76416
76417         * modules/readline: New file.
76418
76419         * modules/strnlen (Files): Add strnlen.h.
76420
76421 2005-08-11  Simon Josefsson  <jas@extundo.com>
76422
76423         * m4/readline.m4: New file.
76424
76425 2005-08-11  Simon Josefsson  <jas@extundo.com>
76426
76427         * lib/readline.h, readline.c: New file.
76428
76429 2005-08-11  Simon Josefsson  <jas@extundo.com>
76430
76431         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76432         gl_AVOID.
76433
76434 2005-08-11  Bruno Haible  <bruno@clisp.org>
76435
76436         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76437
76438 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76439
76440         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76441
76442 2005-08-10  Simon Josefsson  <jas@extundo.com>
76443
76444         * tests/test-iconvme.c: New file.
76445
76446 2005-08-10  Simon Josefsson  <jas@extundo.com>
76447
76448         * m4/strnlen.m4: New file.
76449
76450         * m4/strndup.m4: Don't check for strnlen declaration, done in
76451         strnlen.m4.
76452
76453 2005-08-10  Simon Josefsson  <jas@extundo.com>
76454
76455         * lib/strndup.c: Use strnlen.h.
76456
76457         * lib/strnlen.h: New file.
76458
76459 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76460
76461         * README: Typos.
76462
76463 2005-08-02  Simon Josefsson  <jas@extundo.com>
76464
76465         * modules/readline: New file.
76466
76467 2005-08-02  Simon Josefsson  <jas@extundo.com>
76468
76469         * modules/getdelim: New file.
76470
76471         * modules/getline: Rewrite, don't use getndelim2.
76472
76473 2005-08-02  Simon Josefsson  <jas@extundo.com>
76474
76475         * m4/getline.m4: Separate out getdelim stuff into separate module.
76476
76477         * m4/getdelim.m4: New file.
76478
76479 2005-08-02  Simon Josefsson  <jas@extundo.com>
76480
76481         * lib/getline.h, getline.c: Rewrite.
76482
76483         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76484
76485 2005-07-31  Bruno Haible  <bruno@clisp.org>
76486
76487         * lib/lock.h (gl_lock_initializer): New macro.
76488         (gl_lock_define_initialized): Use it.
76489         (gl_rwlock_initializer): New macro.
76490         (gl_rwlock_define_initialized): Use it.
76491         (gl_recursive_lock_initializer): New macro.
76492         (gl_recursive_lock_define_initialized): Use it.
76493
76494 2005-07-30  Karl Berry  <karl@gnu.org>
76495
76496         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76497         Report from Ben Pfaff, regarding getopt.
76498
76499 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76500
76501         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76502         normal way.
76503         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76504         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76505         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76506         (gl_GETOPT): Use the new macros.  Most of the implementation
76507         is moved to the new macros.  This is for programs like Emacs
76508         that don't want all the functionality of gl_GETOPT.
76509
76510 2005-07-26  Bruno Haible  <bruno@clisp.org>
76511
76512         * m4/lock.m4: Update from GNU gettext.
76513
76514 2005-07-26  Bruno Haible  <bruno@clisp.org>
76515
76516         * lib/lock.h: Update from GNU gettext.
76517         * lib/lock.c: Update from GNU gettext.
76518
76519 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76520
76521         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76522         obsolescent AC_TRY_RUN.  Include the default includes files, for
76523         'exit'.
76524
76525 2005-07-24  Bruno Haible  <bruno@clisp.org>
76526
76527         * modules/visibility: New file.
76528         * MODULES.html.sh (Misc): Add visibility.
76529
76530 2005-07-24  Bruno Haible  <bruno@clisp.org>
76531
76532         * m4/visibility.m4: New file.
76533
76534 2005-07-24  Bruno Haible  <bruno@clisp.org>
76535
76536         * doc/visibility.texi: New file.
76537
76538 2005-07-22  Bruno Haible  <bruno@clisp.org>
76539
76540         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76541         $(ALLOCA_H), redundant through BUILT_SOURCES.
76542         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76543         redundant through BUILT_SOURCES.
76544         * modules/byteswap (Makefile.am): Remove explicit dependency on
76545         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76546         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76547         $(FNMATCH_H), redundant through BUILT_SOURCES.
76548         * modules/getopt (Makefile.am): Remove explicit dependency on
76549         $(GETOPT_H), redundant through BUILT_SOURCES.
76550         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76551         redundant through BUILT_SOURCES.
76552         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76553         redundant through BUILT_SOURCES.
76554         * modules/stdbool (Makefile.am): Remove explicit dependency on
76555         $(STDBOOL_H), redundant through BUILT_SOURCES.
76556         * modules/stdint (Makefile.am): Remove explicit dependency on
76557         $(STDINT_H), redundant through BUILT_SOURCES.
76558         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76559         Remove explicit dependency on $(SYSEXITS_H).
76560         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76561
76562 2005-07-18  Simon Josefsson  <jas@extundo.com>
76563
76564         * lib/check-version.c (check_version): Accept identical versions too.
76565
76566 2005-07-18  Bruno Haible  <bruno@clisp.org>
76567
76568         * modules/lock: New file.
76569         * MODULES.html.sh (Multithreading): New section.
76570
76571 2005-07-18  Bruno Haible  <bruno@clisp.org>
76572
76573         * m4/lock.m4: New file, from GNU gettext.
76574
76575 2005-07-18  Bruno Haible  <bruno@clisp.org>
76576
76577         * lib/lock.h: New file, from GNU gettext.
76578         * lib/lock.c: New file, from GNU gettext.
76579
76580 2005-07-18  Bruno Haible  <bruno@clisp.org>
76581
76582         * lib/lock.h (gl_once_t): New type.
76583         (gl_once_define, gl_once): New macros.
76584         * lib/lock.c (fresh_once): New variable.
76585         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76586         functions.
76587
76588 2005-07-16  Simon Josefsson  <jas@extundo.com>
76589
76590         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76591         workaround, suggested by Bruno.
76592
76593 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76594
76595         * modules/xalloc (Depends-on): Add xalloc-die.
76596         * modules/xvasprintf (Depends-on): Add xalloc-die.
76597
76598 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76599
76600         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76601         with a minor change.
76602
76603 2005-07-15  Bruno Haible  <bruno@clisp.org>
76604
76605         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76606         When using lib/poll.c, define poll as rpl_poll.
76607
76608 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76609
76610         * modules/argp (Depends-on): Remove unlocked-io.
76611
76612 2005-07-14  Derek Price  <derek@ximbiot.com>
76613
76614         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76615         for glob symlink bug.
76616
76617 2005-07-14  Bruno Haible  <bruno@clisp.org>
76618
76619         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76620         Instead, test for *_unlocked function declarations directly.
76621
76622 2005-07-11  Simon Josefsson  <jas@extundo.com>
76623
76624         * modules/size_max: New file.
76625
76626         * modules/xsize: Depend on size_max module for size_max.m4.
76627
76628 2005-07-11  Simon Josefsson  <jas@extundo.com>
76629
76630         * lib/size_max.h: New file.
76631
76632 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76633
76634         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76635         copyright symbol and the year.
76636         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76637         (version_etc_va): Use parameterized copyright notice.
76638         Reword to conform to the current GNU coding standards.
76639
76640 2005-07-11  Karl Berry  <karl@gnu.org>
76641
76642         * doc/gnulib.texi (Quoting): new node.
76643         (Initial import): more info, from Patrice.
76644
76645 2005-07-11  Bruno Haible  <bruno@clisp.org>
76646
76647         * gnulib-tool (func_usage): Document option --avoid.
76648         (Command line options): Handle --avoid.
76649         (func_acceptable): New function.
76650         (func_modules_transitive_closure): Use it.
76651
76652 2005-07-11  Bruno Haible  <bruno@clisp.org>
76653
76654         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76655         Reported by Jim Meyering.
76656
76657 2005-07-10  Bruno Haible  <bruno@clisp.org>
76658
76659         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76660         Needed when size_t is smaller than 'unsigned int'.
76661         Reported by Paul Eggert.
76662
76663 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76664
76665         * modules/argp (Depends-on): Add unlocked-io
76666
76667 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76668
76669         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76670         block of defines.
76671
76672 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76673
76674         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76675         fix now.
76676
76677 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76678         and Paul Eggert  <eggert@cs.ucla.edu>
76679
76680         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76681         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76682
76683 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76684
76685         * modules/regex (Files): Add lib/regex_internal.c,
76686         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76687         (Depends-on): Add extensions.
76688         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76689
76690 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76691
76692         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76693         pathconf.
76694         * m4/same.m4 (gl_SAME): Likewise.
76695         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76696
76697         * m4/regex.m4: Adjust to new libc regex implementation.
76698         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76699         all the .c and .h parts of (the new) regex.
76700         Quote the m4 stuff better.
76701         Check for RE_ICASE bug of old gnulib.
76702         Check for REG_STARTEND of recent libc.
76703         Rename local variables from jm_* to gl_*.
76704         Quote operand of "test -f".
76705         Say "recent enough" version of libc, not "version 2".
76706         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76707         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76708         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76709         Remove check for btowc, isascii.
76710         Require AM_LANGINFO_CODESET.
76711
76712 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76713
76714         * lib/regex.c, regex.h: Sync from libc.
76715         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76716         * lib/regexec.c:
76717         New files, synced from libc, except that regex_internal.h
76718         currently has a small porting fix.
76719
76720 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76721
76722         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76723         regex_internal.c, regexec.c.
76724         Add regex_internal.h too, but as a comment, since the libc version
76725         is currently broken in gnulib mode.
76726
76727 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76728
76729         Support programs like Emacs that use gnulib but not gettext.
76730         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76731         * modules/gettext-h: New file.
76732         * modules/gettext (Files): Remove lib/gettext.h.
76733         (Depends-on): Add gettext-h.
76734         (Makefile.am): Remove lib_SOURCES.
76735         * modules/argmatch, modules/c-stack, modules/closeout:
76736         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76737         * modules/execute, modules/file-type, modules/getaddrinfo:
76738         * modules/getopt, modules/human, modules/javacomp:
76739         * modules/javaexec, modules/mkdir-p, modules/obstack:
76740         * modules/openat, modules/pagealign_alloc, modules/pipe:
76741         * modules/quotearg, modules/regex, modules/rpmatch:
76742         * modules/unicodeio, modules/userspec, modules/version-etc:
76743         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76744         * modules/xsetenv:
76745         Depend on gettext-h, not gettext.
76746
76747 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76748
76749         * gnulib-tool (func_import): Add support for 'public domain' license.
76750         * modules/alloca, modules/atexit, modules/memmove:
76751         Now public domain, not GPL.
76752         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76753         * modules/realloc, modules/strerror, modules/strtod:
76754         Now LGPL, not GPL.
76755
76756 2005-07-05  Bruno Haible  <bruno@clisp.org>
76757
76758         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76759         autoconf CVS. Needed for mingw.
76760
76761 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76762
76763         Remove the dependency of the strftime module on the tzset module.
76764         * modules/strftime (Depends-on): Remove dependency on tzset.
76765
76766 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76767
76768         Remove the dependency of the strftime module on the tzset module.
76769         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76770         gl_FUNC_TZSET_CLOBBER.
76771
76772 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76773
76774         Remove the dependency of the strftime module on the tzset module.
76775         * lib/strftime.c (my_strftime)
76776         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76777         Copy the input structure, to work around some of the bug with
76778         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76779         Solaris releases, you should also use the tzset module, but we won't
76780         require it as a dependency any more since we don't want LGPLed code
76781         to depend on GPLed code.
76782
76783 2005-07-02  Jim Meyering  <jim@meyering.net>
76784
76785         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76786         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76787         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76788         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76789
76790 2005-07-02  Jim Meyering  <jim@meyering.net>
76791
76792         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76793
76794 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76795
76796         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76797         declares only 'struct timespec;' (!).
76798
76799 2005-07-01  Jim Meyering  <jim@meyering.net>
76800
76801         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76802         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76803         * lib/save-cwd.c, tempname.c:
76804         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76805         and don't include <sys/file.h>).
76806
76807 2005-06-29  Jim Meyering  <jim@meyering.net>
76808
76809         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76810         type name.  Use the variable name instead.
76811         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76812         Likewise.
76813
76814 2005-06-28  Simon Josefsson  <jas@extundo.com>
76815
76816         * modules/check-version (Files): Add check-version.m4.
76817
76818 2005-06-28  Simon Josefsson  <jas@extundo.com>
76819
76820         * m4/check-version.m4: New file, suggested by Jim Meyering
76821         <jim@meyering.net>.
76822
76823 2005-06-28  Simon Josefsson  <jas@extundo.com>
76824
76825         * lib/check-version.h, lib/check-version.c: New files.
76826
76827 2005-06-28  Simon Josefsson  <jas@extundo.com>
76828
76829         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76830         collision with global variable.  Better indentation.  Don't
76831         increment buffer pointer beyond buffer end.  Based on comments
76832         from Paul Eggert <eggert@cs.ucla.edu>.
76833
76834         * lib/base64.h: Indent.
76835
76836 2005-06-28  Simon Josefsson  <jas@extundo.com>
76837
76838         * doc/gnulib.texi (Library version handling): New section.
76839
76840 2005-06-28  Jim Meyering  <jim@meyering.net>
76841
76842         * check-module (find_included_lib_files): Hard-code another
76843         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76844         but modules/fts-lgpl (correctly) does not list those files.
76845
76846         * modules/canonicalize (Files): Add lib/pathmax.h.
76847
76848 2005-06-25  Simon Josefsson  <jas@extundo.com>
76849
76850         * modules/check-version: New file.
76851
76852 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76853
76854         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76855         initializer of struct addrinfo, as an indication that we don't
76856         care how many members the structure has.
76857
76858 2005-06-24  Derek Price  <derek@ximbiot.com>
76859         and Bruno Haible  <bruno@clisp.org>
76860
76861         Remove stat module & update lstat.
76862         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76863         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76864         * m4/stat.m4: Remove this file.
76865
76866 2005-06-24  Derek Price  <derek@ximbiot.com>
76867         and Bruno Haible  <bruno@clisp.org>
76868
76869         Remove stat module & update lstat.
76870         * lib/stat.c: Remove this file...
76871         (slash_aware_lstat): ...moving this content and its support...
76872         * lib/lstat.c (rpl_lstat): ...into here.
76873         * lib/lstat.h: New file.
76874
76875 2005-06-24  Derek Price  <derek@ximbiot.com>
76876         and Bruno Haible  <bruno@clisp.org>
76877
76878         Remove stat module & update lstat.
76879         * config/srclist.txt (libc sources): Remove stat.
76880
76881 2005-06-24  Derek Price  <derek@ximbiot.com>
76882         and Bruno Haible  <bruno@clisp.org>
76883
76884         Remove stat module & update lstat.
76885         * MODULES.html.sh (stat): Remove.
76886         * MODULES.html: Regenerated.
76887         * modules/lstat (Description): Correct function name.
76888         (Files): Add "lstat.h".
76889         (Depends-on): Remove stat, add xalloc, stat-macros.
76890         * modules/stat: Remove this file.
76891         (Include): Add "lstat.h", remove <sys/stat.h>.
76892
76893 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76894
76895         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76896         (ranged_convert): Don't save conversion in a temporary struct.
76897         This causes a warning with GCC 4.0.0, and anyway in the typical
76898         case it's not worth the extra 100 bytes or so of code.
76899         (ranged_convert, __mktime_internal): When calling a function via a
76900         pointer P, use P () rather than (*P) (), as we now assume C89 or
76901         better.
76902
76903 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76904
76905         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76906         "who -r" failed to give output.  Problem reported by Tim Waugh.
76907
76908         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76909         (xcalloc): Use it to avoid needless tests.
76910         Problem reported by Jim Meyering.
76911
76912 2005-06-20  Derek Price  <derek@ximbiot.com>
76913
76914         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76915         unnecessary for Autoconfs > 2.59c.
76916
76917 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76918
76919         * lib/argp.h (__option_is_short): Check upper limit of
76920         __key. Isprint() requires its argument to have the value
76921         of an unsigned char or EOF.
76922
76923 2005-06-16  Jim Meyering  <jim@meyering.net>
76924
76925         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76926         when either N or S is zero.
76927
76928 2005-06-16  Derek Price  <derek@ximbiot.com>
76929
76930         * m4/bison.m4: Declare YACC & YFLAGS precious.
76931
76932 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76933
76934         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76935         multibyte string or pattern, fall back on unibyte matching.
76936         Problem reported by James Youngman.
76937
76938 2005-06-08  Bruno Haible  <bruno@clisp.org>
76939
76940         * modules/csharpcomp: New file.
76941         * MODULES.html.sh (C#): Add csharpcomp.
76942
76943 2005-06-08  Bruno Haible  <bruno@clisp.org>
76944
76945         * m4/csharpcomp.m4: New file, from GNU gettext.
76946
76947 2005-06-08  Bruno Haible  <bruno@clisp.org>
76948
76949         * lib/csharpcomp.h: New file, from GNU gettext.
76950         * lib/csharpcomp.c: New file, from GNU gettext.
76951         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76952
76953 2005-06-08  Bruno Haible  <bruno@clisp.org>
76954
76955         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76956         warning on mingw.
76957
76958 2005-06-07  Derek Price  <derek@ximbiot.com>
76959
76960         Sync from CVS.
76961         * lib/glob_.h: Indent nested #ifdef.
76962
76963 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76964
76965         Sync from coreutils.
76966         Use "file name" when talking about file names, instead of "filename"
76967         or "path", as per the GNU coding standards.
76968         * lib/mkdir-p.c: Renamed from makepath.c.
76969         (make_dir_parents): Renamed from make_path.  All callers changed.
76970         * lib/mkdir-p.h: Likewise.  All includers changed.
76971         * lib/filenamecat.c: Renamed from path-concat.c.
76972         (file_name_concat): Renamed from path_concat.  All callers changed.
76973         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76974         * lib/filenamecat.h: Likewise.  All includers changed.
76975         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76976         in comments or local variable names.
76977         * lib/basename.c: Likewise.
76978         * lib/canonicalize.c, canonicalize.h: Likewise.
76979         * lib/dirname.c, dirname.h: Likewise.
76980         * lib/euidaccess.c: Likewise.
76981         * lib/exclude.c: Likewise
76982         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76983         * lib/fsusage.c, fsuage.h: Likewise.
76984         * lib/fts.c, fts_.h: Likewise.
76985         * lib/getcwd.c: Likewise.
76986         * lib/getloadavg.c: Likewise.
76987         * lib/mkstemp.c: Likewise.
76988         * lib/mountlist.c, mountlist.h: Likewise.
76989         * lib/openat.c, openat.h: Likewise.
76990         * lib/readlink-stub.c: Likewise.
76991         * lib/readutmp.c, readutmp.h: Likewise.
76992         * lib/rename.c: Likewise.
76993         * lib/rmdir.c: Likewise.
76994         * lib/same.c: Likewise.
76995         * lib/savedir.c: Likewise.
76996         * lib/stripslash.c: Likewise.
76997         * lib/tempname.c: Likewise.
76998         * lib/xreadlink.c: Likewise.
76999         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77000         All uses changed.
77001         * lib/exclude.h: Likewise.
77002
77003         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77004         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77005         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77006         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77007         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77008         files have been getting away with it for years (MORE/BSD 4.3
77009         is extinct now).
77010         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77011         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77012
77013         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77014         Define to 256, not 255, as per modern POSIX.
77015
77016 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77017
77018         Sync from coreutils.
77019         Use "file name" when talking about file names, instead of "filename"
77020         or "path", as per the GNU coding standards.
77021         * MODULES.html.sh: mkdir-p renamed from makepath.
77022         filenamecat renamed from path-concat.
77023         * modules/filenamecat: Renamed from modules/path-concat.
77024         (Files): filenamecat.h and filenamecat.c renamed from
77025         path-concat.h and path-concat.c.
77026         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77027         (Include): filenamecat.h, not path-concat.h.
77028         * modules/mkdir-p: Renamed from modules/makepath.
77029         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77030         makepath.c.
77031         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77032         (Include): mkdir-p.h, not makepath.h.
77033
77034 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77035
77036         Sync from coreutils.
77037         * m4/mkdir-p.m4: Renamed from makepath.m4.
77038         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77039         Rename files from makepath.c to mkdir-p.c, and from
77040         makepath.h to mkdir-p.h.
77041         * m4/filenamecat.m4: Renamed from path-concat.m4.
77042         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77043         Rename files from path-concat.c to filenamecat.c,
77044         and from path-concat.h to filenamecat.h.
77045         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77046         "file name" in local variables or comments.
77047         * m4/rename.m4: Likewise.
77048
77049 2005-06-01  Bruno Haible  <bruno@clisp.org>
77050
77051         * modules/csharpexec: New file.
77052         * MODULES.html.sh (C#): New section.
77053
77054 2005-06-01  Bruno Haible  <bruno@clisp.org>
77055
77056         * m4/csharp.m4: New file, from GNU gettext.
77057         * m4/csharpexec.m4: New file, from GNU gettext.
77058
77059 2005-06-01  Bruno Haible  <bruno@clisp.org>
77060
77061         * lib/csharpexec.h: New file, from GNU gettext.
77062         * lib/csharpexec.c: New file, from GNU gettext.
77063         * lib/csharpexec.sh.in: New file, from GNU gettext.
77064
77065 2005-05-31  Derek Price  <derek@ximbiot.com>
77066             Paul Eggert  <eggert@cs.ucla.edu>
77067
77068         Sync from cvs.
77069         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77070
77071 2005-05-31  Derek Price  <derek@ximbiot.com>
77072             Paul Eggert  <eggert@cs.ucla.edu>
77073
77074         Sync from cvs.
77075         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77076
77077 2005-05-29  Derek Price  <derek@ximbiot.com>
77078
77079         * config/srclist.txt (glob_.h, glob.c): Add these files.
77080
77081 2005-05-29  Derek Price  <derek@ximbiot.com>
77082
77083         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77084         * modules/glob: New file.
77085         * modules/getlogin_r: Add link to POSIX spec in description.
77086
77087 2005-05-29  Derek Price  <derek@ximbiot.com>
77088             Paul Eggert  <eggert@cs.ucla.edu>
77089
77090         * m4/glob.m4: New file.
77091
77092 2005-05-29  Derek Price  <derek@ximbiot.com>
77093             Paul Eggert  <eggert@cs.ucla.edu>
77094
77095         * lib/glob_.h, lib/glob.c: New files.
77096
77097 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77098
77099         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77100         * modules/fts-lgpl (Depends-on): Remove gettext.
77101
77102 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77103
77104         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77105         and don't require gt_INTTYPES_PRI.
77106
77107 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77108
77109         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77110
77111         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77112         the configuration hassle isn't worth it.
77113         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77114         (LONGEST_MODIFIER, PRIuMAX): Remove.
77115
77116 2005-05-27  Bruno Haible  <bruno@clisp.org>
77117
77118         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77119
77120 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77121
77122         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77123         _POSIX_PTHREAD_SEMANTICS for Solaris.
77124
77125 2005-05-25  Derek Price  <derek@ximbiot.com>
77126
77127         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77128
77129 2005-05-25  Derek Price  <derek@ximbiot.com>
77130             Paul Eggert  <eggert@cs.ucla.edu>
77131
77132         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77133         * lib/getlogin_r.c, getlogin_r.h: New files.
77134
77135 2005-05-25  Bruno Haible  <bruno@clisp.org>
77136             Derek Price  <derek@ximbiot.com>
77137
77138         * lib/getlogin_r.h: Simplify API documentation.
77139
77140 2005-05-23  Derek Price  <derek@ximbiot.com>
77141
77142         * modules/minmax (Files): Add m4/minmax.m4.
77143         (configure.ac): Add gl_MINMAX.
77144
77145 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77146
77147         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77148         so that unistd-safer.h (GPL'ed code) need not be included.
77149
77150 2005-05-22  Bruno Haible  <bruno@clisp.org>
77151
77152         * m4/minmax.m4: New file.
77153         Based on a patch by Derek Price <derek@ximbiot.com>.
77154
77155 2005-05-22  Bruno Haible  <bruno@clisp.org>
77156
77157         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77158         (INT64_MIN): Fix definition.
77159         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77160
77161         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77162         NEED_SIGNED_INT_TYPES.
77163
77164         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77165         HAVE_SYSTEM_INTTYPES.
77166
77167 2005-05-22  Bruno Haible  <bruno@clisp.org>
77168
77169         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77170         Also include <sys/param.h> if it defines MIN, MAX.
77171         Based on a patch by Derek Price <derek@ximbiot.com>.
77172
77173 2005-05-21  Jim Meyering  <jim@meyering.net>
77174
77175         * modules/fts (Files): Add m4/inttypes-pri.m4.
77176         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77177
77178 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77179
77180         New fts module.
77181         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77182         (setup_dir, free_dir): New functions.
77183         (enter_dir, leave_dir): Define trivial
77184         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77185         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77186         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77187         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77188         Move to fts-cycle.c.
77189         (fts_open): Use setup_dir.
77190         (fts_close): Use free_dir.
77191         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77192         This adds a label and some gotos, but the alternatives were messier.
77193         Check for memory allocation failure when entering a dir.
77194         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77195         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77196         (FTS): New member fts_cycle, that is a union that contains the
77197         old active_dir_ht and cycle_state.  All uses changed to mention
77198         fts_cycle.ht and fts_cycle.state.
77199         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77200         fts.c, with the following changes:
77201         (setup_dir, free_dir): New functions.
77202         (enter_dir): Now returns bool.  Return true if successful, false
77203         if memory exhausted.  All callers changed.
77204         Do not bother partly cleaning up on
77205         memory allocation failure; that is free_dir's job.
77206         However, free ad if hash_insert fails, to avoid memory leak.
77207         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77208         fts->fts_options to see which union member to use.
77209
77210 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77211
77212         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77213         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77214
77215 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77216
77217         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77218
77219 2005-05-20  Jim Meyering  <jim@meyering.net>
77220
77221         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77222         Now a macro, to pacify GCC.
77223
77224 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77225
77226         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77227         of -1.
77228
77229 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77230
77231         * lib/chown.c (rpl_chown): Return -1 on failure.
77232
77233 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77234
77235         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77236         Don't check for stddef.h.
77237         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77238         don't use its results.
77239         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77240         since we include them unconditionally.  Don't require
77241         AM_STDBOOL_H, since stdbool is a prerequisite.
77242         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77243         since we assume C89 or better.
77244         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77245         as we don't use their results.
77246         Don't check for fchdir, memmove, memset, strrchr, as we use
77247         them unconditionally.
77248         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77249         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77250
77251 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77252
77253         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77254         Include <stddef.h> unconditionally, since we assume C89 now.
77255         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77256         * lib/fts.c: Include fts_.h first, to check interface.
77257         Do not include intprops.h; no longer needed.
77258         Include cycle-check.h and hash.h, since fts_.h no longer does.
77259         Remove unnecessary casts of closedir to void.
77260         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77261         decide whether to decrement nlinks.
77262         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77263         (FTS): Use struct hash_table * instead of Hash_table, so that
77264         we no longer need to include hash.h here.
77265
77266 2005-05-18  Jim Meyering  <jim@meyering.net>
77267
77268         * modules/dirfd (License): Change to LGPL.  Most of the code
77269         is already in the public domain.
77270
77271 2005-05-18  Jim Meyering  <jim@meyering.net>
77272
77273         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77274         Reported by Yoann Vandoorselaere.
77275
77276 2005-05-17  Jim Meyering  <jim@meyering.net>
77277
77278         * m4/fts.m4: New file, from coreutils.
77279
77280 2005-05-17  Jim Meyering  <jim@meyering.net>
77281
77282         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77283
77284 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77285
77286         Sync from coreutils.
77287         * m4/unlinkdir.m4: New file.
77288
77289 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77290
77291         Sync from coreutils.
77292         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77293         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77294         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77295         White space changes only.
77296         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77297         special.
77298         * lib/yesno.c: Include getline.h, not ctype.h.
77299         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77300         Use getline to remove arbitrary restriction on response length.
77301
77302 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77303
77304         * config/srclist-update: Spell out "Street" in FSF postal
77305         mail address; this is the style the FSF seems to prefer.
77306
77307         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77308         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77309         this updates FSF postal mail address.
77310
77311         Sync from coreutils.
77312         * modules/unlinkdir: New file.
77313         * modules/yesno (Depends-on): Add getline.
77314         * MODULES.html.sh (File system functions): Add unlinkdir.
77315
77316 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77317
77318         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77319         lib/strsep.h:
77320         Change the initial comment to refer to GPL, not LGPL.
77321         gnulib-tool will change it to LGPL as needed.
77322
77323         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77324         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77325         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77326         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77327         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77328         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77329         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77330         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77331         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77332         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77333         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77334         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77335         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77336         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77337         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77338         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77339         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77340         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77341         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77342         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77343         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77344         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77345         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77346         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77347         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77348         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77349         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77350         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77351         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77352         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77353         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77354         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77355         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77356         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77357         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77358         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77359         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77360         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77361         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77362         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77363         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77364         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77365         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77366         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77367         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77368         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77369         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77370         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77371         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77372         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77373         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77374         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77375         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77376         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77377         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77378         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77379         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77380         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77381         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77382         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77383         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77384         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77385         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77386         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77387         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77388         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77389         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77390         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77391         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77392         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77393         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77394         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77395         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77396         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77397         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77398         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77399         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77400         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77401         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77402         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77403         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77404         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77405         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77406         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77407         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77408         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77409         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77410         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77411         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77412         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77413         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77414         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77415         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77416         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77417         lib/yesno.c, lib/yesno.h:
77418         Update FSF postal mail address.
77419
77420 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77421
77422         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77423         tests/test-memmem.c, tests/test-stpncpy.c:
77424         Update FSF postal mail address.
77425
77426 2005-05-13  Bruno Haible  <bruno@clisp.org>
77427
77428         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77429         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77430         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77431         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77432         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77433         Add support for 64-bit integers in the MSVC compiler.
77434
77435 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77436
77437         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77438
77439 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77440
77441         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77442
77443 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77444
77445         * doc/getdate.texi (General date syntax): Don't say that date
77446         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77447         Problem reported by Nic Ferrier.
77448
77449 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77450
77451         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77452         specified in ai_socktype. Fix invalid ai_protocol
77453         check. ai_protocol is usually set to 0 or depending on
77454         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77455         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77456         ai_socktype / ai_protocol in the returned addrinfo structure.
77457
77458 2005-05-10  Simon Josefsson  <jas@extundo.com>
77459
77460         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77461         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77462
77463 2005-05-10  Karl Berry  <karl@gnu.org>
77464
77465         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77466         (from http://www.gnu.org/licenses).
77467         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77468         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77469         fdl.texi suffices.
77470
77471 2005-05-10  Karl Berry  <karl@gnu.org>
77472
77473         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77474         (COPYING.DOC): remove.
77475
77476         * config/srclist-update: new FSF address.
77477
77478 2005-05-10  Derek Price  <derek@ximbiot.com>
77479
77480         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77481         possible.
77482
77483 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77484             Bruno Haible  <bruno@clisp.org>
77485
77486         * modules/inet_ntop: New file.
77487         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77488         inet_ntop.
77489
77490 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77491             Bruno Haible  <bruno@clisp.org>
77492
77493         * m4/inet_ntop.m4: New file.
77494
77495 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77496             Bruno Haible  <bruno@clisp.org>
77497
77498         * lib/inet_ntop.h: New file.
77499         * lib/inet_ntop.c: New file, from glibc with modifications.
77500
77501 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77502
77503         * modules/time_r (License): Change to LGPL.
77504         * modules/extensions (License): Change to LGPL.  Actually,
77505         the license is more permissive than that, but currently gnulib-tool
77506         doesn't know how to handle more-permissive licenses.
77507
77508         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77509         Problem reported by Dave Love.
77510
77511 2005-05-08  Jim Meyering  <jim@meyering.net>
77512
77513         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77514         blank.
77515
77516 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77517
77518         * modules/argmatch (Depends-on): Add stdbool.
77519         * modules/backupfile (Depends-on): Likewise.
77520         * modules/chdir-long (Depends-on): Likewise.
77521         * modules/closeout (Depends-on): Likewise.
77522         * modules/cycle-check (Depends-on): Likewise.
77523         * modules/dirname (Depends-on): Likewise.
77524         * modules/fnmatch (Depends-on): Likewise.
77525         * modules/fsusage (Depends-on): Likewise.
77526         * modules/fwriteerror (Depends-on): Likewise.
77527         * modules/getcwd (Depends-on): Likewise.
77528         * modules/getloadavg (Depends-on): Likewise.
77529         * modules/hard-locale (Depends-on): Likewise.
77530         * modules/makepath (Depends-on): Likewise.
77531         * modules/mountlist (Depends-on): Likewise.
77532         * modules/nanosleep (Depends-on): Likewise.
77533         * modules/posixtm (Depends-on): Likewise.
77534         * modules/quotearg (Depends-on): Likewise.
77535         * modules/readtokens (Depends-on): Likewise.
77536         * modules/readtokens0 (Depends-on): Likewise.
77537         * modules/readutmp (Depends-on): Likewise.
77538         * modules/save-cwd (Depends-on): Likewise.
77539         * modules/strftime (Depends-on): Likewise.
77540         * modules/userspec (Depends-on): Likewise.
77541         * modules/utimecmp (Depends-on): Likewise.
77542         * modules/xgetcwd (Depends-on): Likewise.
77543         * modules/xnanosleep (Depends-on): Likewise.
77544         * modules/xstrtod (Depends-on): Likewise.
77545         * modules/yesno (Depends-on): Likewise.
77546
77547 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77548
77549         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77550         needless checks.
77551
77552 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77553
77554         Merge from coreutils.  Among other things,
77555         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77556         * lib/fd-safer.c: New file.
77557         * lib/fcntl-safer.h, open-safer.c: Remove.
77558         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77559         * lib/dup-safer.c: Include unistd-safer.h first.
77560         Don't include errno.h.
77561         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77562         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77563         * lib/file-type.c: Rely on file-type.h change.
77564         * lib/getloadavg.c: Include unistd-safer.h.
77565         (getloadavg): Use safer open.
77566         * lib/getusershell.c: Include "stdio-safer.h".
77567         (getusershell): Use safer fopen.
77568         * lib/long-options.c (long_options): Use NULL rather than 0.
77569         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77570         'free'.
77571         * lib/modechange.c: Likewise.
77572         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77573         (MODE_DONE): New constant.
77574         (struct mode_change): Remove 'next' member.
77575         (make_node_op_equals): New function; like the old one of the
77576         same name, except it allocates an array.
77577         (mode_compile, mode_create_from_ref): Use it.
77578         (mode_compile): Allocate result as an array, not a linked list.
77579         Parse octal string ourself, so that we catch mistakes like "+0".
77580         (mode_adjust): Arg is an array, not a linked list.
77581         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77582         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77583         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77584         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77585         Remove.  This is now stat-macros.h's job.
77586         (talloc): Remove.  All callers replaced by xalloc, so that
77587         our invokers don't have to worry about reporting memory failures.
77588         (make_node_op_equals): Remove.
77589         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77590         New constants.
77591         (struct mode_change): Moved here from modechange.h.
77592         (mode_append_entry): Remove.
77593         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77594         apps to have incorrect behavior.  Use simpler algorithm for head
77595         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77596         Detect more invalid usages rather than having somewhat-random behavior.
77597         Don't insert an "a=" action, as that leads to incorrect behavior.
77598         (mode_compile, mode_create_from_ref): Return NULL on error instead
77599         of an enum, since now there's only one way to have an error.  All
77600         callers changed.
77601         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77602         at the correct time.  Simplify calculation of "+u" and its ilk.
77603         Don't mishandle "+X".
77604         (mode_free): Remove "register" and localize decls.
77605         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77606         (struct mode_change): Move to modechange.c; callers don't
77607         need to see this stuff.
77608         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77609         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77610         (mode_change, mode_adjust): Reflect the new signatures noted above.
77611         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77612         that might redefine system include files.
77613         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77614         (my_usleep): Use NULL rather than (void *) 0.
77615         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77616         Use siginterrupt to specify that system calls should be interrupted.
77617         (rpl_nanosleep): Move initialization of suspended closer to call of
77618         my_usleep.
77619         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77620         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77621         (desirable_utmp_entry): New function.
77622         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77623         using x2nrealloc, to simplify logic.
77624         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77625         size calculation.  Do not assume utmp file is a regular file.
77626         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77627         (READ_UTMP_CHECK_PIDS): New constant.
77628         * lib/save-cwd.c: Include unistd-safer.h.
77629         (save_cwd): Use fd_safer.
77630         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77631         [!_LIBC] Include "stat-macros.h" instead.
77632         * lib/unistd-safer.h (fd_safer): New decl.
77633
77634 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77635
77636         * modules/getloadavg (Depends-on): Add unistd-safer.
77637         * modules/getusershell (Depends-on): Add stdio-safer.
77638         * modules/lstat (Depends-on): Remove xalloc.
77639         * modules/mkstemp (Depends-on): Add stat-macros.
77640         * modules/modechange (Depends-on): Remove xstrtol.
77641         Add stat-macros, xalloc.
77642         * modules/save-cwd (Depends-on): Add unistd-safer.
77643         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77644         * modules/unistd-safer (Files): Add lib/fd-safer.c
77645         (Makefile.am): Remove lib_SOURCES.
77646
77647         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77648         Remove fcntl-safer; unistd-safer supersedes it.
77649
77650 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77651
77652         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77653         AC_HEADER_STAT.
77654         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77655         (gl_PREREQ_CHOWN): Remove.
77656         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77657         it.  Don't require AC_HEADER_STAT.
77658         (gl_PREREQ_LSTAT): Remove.
77659         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77660         Don't require AC_HEADER_STAT.
77661         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77662         (gl_PREREQ_RMDIR): Remove.
77663         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77664         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77665         the stat-macros module a prerequisite.
77666         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77667         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77668         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77669         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77670         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77671         variable names.
77672         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77673         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77674         variable prefixes.
77675         * m4/fcntl-safer.m4: Remove.
77676         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77677         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77678         Invoke gl_PREREQ_FD_SAFER.
77679         (gl_PREREQ_FD_SAFER): New macro.
77680         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77681         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77682         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77683         Remove duplicate call to AC_LIBOBJ(readutmp).
77684         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77685
77686         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77687         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77688
77689 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77690
77691         * MODULES.html.sh (Misc): Add byteswap.
77692
77693 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77694
77695         * modules/getcwd (Depends-on): Add extensions.
77696         * modules/openat (Depends-on): Likewise.
77697
77698 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77699
77700         * modules/byteswap: New file.
77701
77702 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77703
77704         * m4/byteswap.m4: New file.
77705
77706 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77707
77708         * lib/byteswap_.h: New file.
77709
77710 2005-04-25  Karl Berry  <karl@gnu.org>
77711
77712         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77713
77714 2005-04-25  Albert Chin  <china@thewrittenword.com>
77715
77716         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77717         Toolkit C bug.
77718
77719 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77720
77721         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77722         (func_ln_if_changed): Remove forcibly for no error message
77723         in case file does not exist.
77724
77725 2005-04-19  Simon Josefsson  <jas@extundo.com>
77726
77727         * gnulib-tool (Options): Make --symlink mean --symbolic.
77728
77729 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77730
77731         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77732
77733 2005-04-16  Simon Josefsson  <jas@extundo.com>
77734
77735         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77736
77737 2005-04-15  Simon Josefsson  <jas@extundo.com>
77738
77739         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77740
77741 2005-04-15  Simon Josefsson  <jas@extundo.com>
77742
77743         * gnulib-tool: Rename --symlink to --symbolic.
77744
77745 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77746
77747         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77748         symbolic links to files instead of copying/moving.  Add --aux-dir,
77749         specifying directory relative --dir where auxiliary build tools
77750         are placed.
77751
77752 2005-04-14  Bruno Haible  <bruno@clisp.org>
77753
77754         * modules/allocsa (License): Change to LGPL.
77755         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77756
77757 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77758
77759         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77760         that "UTC +1 second" continues to work.  Problem reported
77761         by Dmitry V. Levin.
77762         (relunit_snumber): New rule.
77763         (relunit): Use it.
77764
77765 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77766
77767         * lib/getdate.y (universal_time_zone_table): New constant.
77768         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77769         universal_time_zone_table.
77770         (lookup_zone): Prefer universal_time_zone_table to
77771         local_time_zone_table, so that "GMT" time stamps are allowed in
77772         London during the summer.  Problem reported by Ian Abbott.
77773
77774 2005-04-12  Jim Meyering  <jim@meyering.net>
77775
77776         * lib/human.c (humblock): Set *options even when returning due to
77777         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77778         warning from gcc-4.
77779
77780 2005-04-09  Jim Meyering  <jim@meyering.net>
77781
77782         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77783         -Wuninitialized: initialize tm0.tm_year.
77784
77785 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77786
77787         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77788         count, since there's no maximum.  All uses changed.
77789         Add member dsts_seen.
77790         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77791         not being INT_MAX.
77792         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77793         Use pc_rels_seen to decide whther a date is absolute.
77794
77795         * lib/getdate.y (number): Don't overwrite year.
77796         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77797         check.
77798
77799 2005-04-02  Simon Josefsson  <jas@extundo.com>
77800
77801         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77802         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77803
77804 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77805
77806         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77807         where no absolute path name can be longer than PATH_MAX.
77808
77809 2005-03-27  Jim Meyering  <jim@meyering.net>
77810
77811         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77812
77813 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77814
77815         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77816         "one's complement" -> "ones' complement" in comment, as per Knuth.
77817         "value of type" -> "type or expression" in comment.
77818         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77819
77820 2005-03-26  Jim Meyering  <jim@meyering.net>
77821
77822         Comment nits.
77823         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77824         Correct typos: s/or/of/.
77825
77826 2005-03-26  Jim Meyering  <jim@meyering.net>
77827
77828         * modules/check-include-files: Move to ../ and rename to...
77829         * check-module: ...this.
77830
77831 2005-03-25  Jim Meyering  <jim@meyering.net>
77832
77833         * modules/xvasprintf (Files): Add xalloc.h.
77834
77835 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77836
77837         * modules/gettext (Files): config/config.rpath ->
77838         build-aux/config.rpath
77839         * modules/iconv (Files): Likewise.
77840         Problem reported by Oskar Liljeblad.
77841
77842 2005-03-23  Jim Meyering  <jim@meyering.net>
77843
77844         * modules/check-include-files: New script to check for
77845         missing dependencies, multiple includes, etc.
77846
77847         * modules/c-strtold (Depends-on): Add xalloc.
77848         * modules/c-strtod (Depends-on): Add xalloc.
77849         * modules/hash (Depends-on): Add xalloc.
77850         (Files): Remove lib/xalloc.h.
77851
77852         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77853         * modules/userspec (Files): Add lib/inttostr.h.
77854
77855 2005-03-23  Jim Meyering  <jim@meyering.net>
77856
77857         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77858
77859 2005-03-22  Jim Meyering  <jim@meyering.net>
77860
77861         * modules/stat-macros: New module.
77862         * modules/canonicalize, modules/euidaccess, modules/file-type,
77863         * modules/filemode, modules/lchown, modules/makepath,
77864         * modules/rmdir, modules/stat: Depend on new stat-macros module
77865         rather than listing lib/stat-macros.h manually.
77866         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77867
77868 2005-03-22  Jim Meyering  <jim@meyering.net>
77869
77870         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77871
77872 2005-03-22  Bruno Haible  <bruno@clisp.org>
77873
77874         * config/srclist.txt: Replace target directory 'config' with
77875         'build-aux'.
77876         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77877         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77878         ../build-aux/.
77879
77880 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77881
77882         * modules/chdir-long (Depends-on): Add mempcpy.
77883
77884         * modules/acl, modules/backupfile, modules/c-strtod,
77885         modules/c-strtold, modules/canon-host, modules/canonicalize,
77886         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77887         modules/exclude, modules/exitfail, modules/file-type,
77888         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77889         modules/getdate, modules/getline, modules/getpagesize,
77890         modules/getpass, modules/getugroups, modules/group-member,
77891         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77892         modules/inttostr, modules/long-options, modules/makepath,
77893         modules/md5, modules/memcasecmp, modules/memcoll,
77894         modules/modechange, modules/mountlist, modules/path-concat,
77895         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77896         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77897         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77898         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77899         modules/strftime, modules/strndup, modules/strverscmp,
77900         modules/timespec, modules/unlocked-io, modules/userspec,
77901         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77902         modules/yesno:
77903         Remove lib_SOURCES line from Makefile.am section, as this is now
77904         done automatically by the corresponding Autoconf macro.
77905
77906 2005-03-21  Jim Meyering  <jim@meyering.net>
77907
77908         Changes imported from coreutils.
77909
77910         * lib/cycle-check.c: Don't include xalloc.h.
77911
77912         * lib/path-concat.c: Don't include assert.h.
77913         (path_concat): Remove assertion that would have triggered
77914         for ABASE starting with more than one slash.
77915         Reported by Andreas Schwab.
77916
77917         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77918         properly when ABASE is an absolute file name.
77919         Correct the description of this function.
77920         Include <assert.h>.
77921         Add an assertion and a test driver.
77922         This fixes a bug introduced on 2004-07-02.
77923         Andreas Schwab reported the resulting failure of cp --parents:
77924         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77925
77926 2005-03-21  Jim Meyering  <jim@meyering.net>
77927
77928         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77929         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77930
77931 2005-03-21  Jim Meyering  <jim@meyering.net>
77932         and  Paul Eggert  <eggert@cs.ucla.edu>
77933
77934         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77935         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77936         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77937         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77938         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77939         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77940         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77941         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77942         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77943         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77944         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77945         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77946         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77947         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77948         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77949         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77950         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77951         for these modules.
77952
77953 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77954
77955         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77956         (which shouldn't happen), generate nothing instead of returning 0
77957         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77958
77959 2005-03-16  Bruno Haible  <bruno@clisp.org>
77960
77961         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77962         HAVE_LONGLONG_64BIT.
77963
77964 2005-03-16  Bruno Haible  <bruno@clisp.org>
77965
77966         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77967         HAVE_LONGLONG_64BIT.
77968
77969 2005-03-16  Bruno Haible  <bruno@clisp.org>
77970
77971         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77972         HAVE_LONGLONG_64BIT.
77973
77974 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77975
77976         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77977         reliably distinguish strftime failure from empty output on POSIX
77978         hosts.
77979
77980 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77981
77982         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77983         (iconv_string): Don't guess a size-zero buffer, as that might cause
77984         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77985         result would be 'too large', where 'too large' is (heuristically)
77986         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77987         overflow concerns.  This will prevent some unwanted malloc failures
77988         when the inputs are very large.
77989
77990 2005-03-15  Karl Berry  <karl@gnu.org>
77991
77992         * config/srclist.txt (config.rpath): from gettext.
77993         * config/config.rpath: update.
77994
77995 2005-03-15  Bruno Haible  <bruno@clisp.org>
77996
77997         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77998         to 'negate'.
77999
78000         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78001         variable.
78002
78003         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78004         results.
78005
78006 2005-03-14  Simon Josefsson  <jas@extundo.com>
78007
78008         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78009         <fx@gnu.org>.
78010
78011 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78012
78013         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78014         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78015         intprops.h.
78016         * lib/strtol.c: Likewise.
78017
78018 2005-03-14  Jim Meyering  <jim@meyering.net>
78019
78020         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78021         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78022         to be nonzero so that we (and caller) can detect the difference
78023         between a valid zero-length expansion and an error return, even
78024         when the underlying strftime fails before writing anything into
78025         that location.
78026
78027 2005-03-14  Bruno Haible  <bruno@clisp.org>
78028
78029         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78030         Update from GNU gettext 0.14.3.
78031
78032 2005-03-10  Jim Meyering  <jim@meyering.net>
78033
78034         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78035
78036 2005-03-10  Jim Meyering  <jim@meyering.net>
78037
78038         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78039         so that this module works on systems without fchdir.
78040
78041 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78042
78043         Factor int-properties macros into a single file, except for
78044         glibc-related files.
78045         * lib/intprops.h: New file.
78046         * lib/getloadavg.c: Include it instead of limits.h.
78047         (INT_STRLEN_BOUND): Remove.
78048         * lib/human.c: Include intprops.h.
78049         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78050         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78051         302/1000.
78052         * lib/inttostr.h: Include intprops.h instead of limits.h.
78053         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78054         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78055         for consistency with intprops.h.
78056         (time_t_is_integer, twos_complement_arithmetic): Use them.
78057         * lib/sig2str.h: Include <signal.h>, intprops.h.
78058         (INT_STRLEN_BOUND): Remove.
78059         * lib/strftime.c (TYPE_SIGNED): Remove.
78060         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78061         * lib/strtol.c: Adjust comments to match intprops.h.
78062         * lib/userspec.c: Include intprops.h.
78063         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78064         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78065         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78066         instead of rolling our own expressions.
78067         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78068
78069         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78070         instead of int.
78071         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78072         the right thing even if adding 1900 would overflow.  Similarly
78073         for tm_mon + 1 and tm_yday + 1.
78074         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78075         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78076         (DO_SIGNED_NUMBER): New macro.
78077         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78078
78079 2005-03-07  Bruno Haible  <bruno@clisp.org>
78080
78081         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78082
78083 2005-03-07  Bruno Haible  <bruno@clisp.org>
78084
78085         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78086
78087 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78088
78089         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78090         (func_import): Only replace files via --import when they have actually
78091         changed.
78092
78093 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78094
78095         * m4/mmap-anon.m4: New file.
78096         * m4/pagealign_alloc.m4: New file.
78097
78098 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78099             Bruno Haible  <bruno@clisp.org>
78100
78101         * modules/pagealign_alloc: New file.
78102         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78103
78104 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78105             Bruno Haible  <bruno@clisp.org>
78106
78107         * lib/pagealign_alloc.h: New file.
78108         * lib/pagealign_alloc.c: New file.
78109
78110 2005-03-03  Bruno Haible  <bruno@clisp.org>
78111
78112         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78113         Use an all-permissive copyright notice, recommended by RMS.
78114
78115 2005-03-02  Bruno Haible  <bruno@clisp.org>
78116
78117         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78118         of AIX, the replacement has to be done only after <string.h> is
78119         included, therefore not in config.h. stpncpy.h does the replacement,
78120         and stpncpy.c uses it.
78121
78122 2005-03-02  Bruno Haible  <bruno@clisp.org>
78123
78124         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78125         stpncpy.c uses it.
78126
78127 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78128
78129         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78130         The workaround isn't strictly needed for POSIX conformance, and
78131         it's too much of a pain to configure and maintain.  We'll ask
78132         people to fix their kernels instead.
78133         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78134         (NANOSLEEP_BUG_WORKAROUND): Remove.
78135         (xnanosleep): Remove the workaround.
78136
78137 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78138
78139         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78140         Reported by Derek Price.
78141         (Include): Add "timespec.h".
78142
78143         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78144
78145 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78146
78147         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78148         to detect nanosleep bug.
78149
78150 2005-03-01  Bruno Haible  <bruno@clisp.org>
78151
78152         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78153
78154 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78155
78156         * modules/gethrxtime: New file.
78157         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78158         (Depends-on): Add gethrxtime.
78159         (configure.ac): Add gl_XNANOSLEEP.
78160         (Makefile.am): Remove lib_SOURCES line.
78161
78162 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78163
78164         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78165         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78166
78167 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78168
78169         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78170         * lib/timespec.h (gettime): Return void, since it always
78171         succeeds now.  All uses changed.
78172         * lib/gettime.c (gettime): Likewise.
78173         [HAVE_NANOTIME]: Prefer nanotime.
78174         Assume gettimeofday succeeds, as POSIX requires.
78175         Assime time () succeeds, since other code already does.
78176         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78177         (timespec_subtract): Remove.
78178         (NANOSLEEP_BUG_WORKAROUND): New constant.
78179         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78180         things considerably.  Use it only on GNU/Linux hosts, since the
78181         workaround shouldn't be needed elsewhere.
78182
78183 2005-02-24  Bruno Haible  <bruno@clisp.org>
78184
78185         * modules/gettext (Files): Add m4/glibc2.m4.
78186
78187 2005-02-24  Bruno Haible  <bruno@clisp.org>
78188
78189         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78190         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78191         * m4/progtest.m4:
78192         Update from GNU gettext 0.14.2.
78193         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78194
78195 2005-02-24  Bruno Haible  <bruno@clisp.org>
78196
78197         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78198         * lib/config.charset: Update from GNU gettext 0.14.2.
78199
78200 2005-02-24  Bruno Haible  <bruno@clisp.org>
78201
78202         * lib/gettext.h: Update from GNU gettext 0.14.2.
78203
78204 2005-02-23  Simon Josefsson  <jas@extundo.com>
78205
78206         * m4/iconvme.m4: New file.
78207
78208 2005-02-23  Jim Meyering  <jim@meyering.net>
78209
78210         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78211         change.
78212         Thanks to Bruno Haible for catching it.
78213
78214 2005-02-22  Simon Josefsson  <jas@extundo.com>
78215
78216         * modules/iconvme: New file.
78217
78218         * MODULES.html.sh: Add iconvme.
78219
78220 2005-02-22  Simon Josefsson  <jas@extundo.com>
78221
78222         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78223
78224 2005-02-22  Simon Josefsson  <jas@extundo.com>
78225
78226         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78227
78228 2005-02-22  Jim Meyering  <jim@meyering.net>
78229
78230         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78231         s/ifndef/ifdef/.
78232
78233 2005-02-20  Neil Conway  <neilc@samurai.com>
78234
78235         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78236         returned by OSX/Darwin if the specified buffer is not large
78237         enough for the hostname.
78238
78239 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78240
78241         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78242         pass it to _help, otherwise the latter coredumps trying to
78243         dereference state.root_argp.
78244
78245 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78246
78247         * modules/chdir-long (Depends-on): Add memrchr.
78248         * modules/memrchr (Files): Add lib/memrchr.h.
78249         (Include): "memrchr.h".
78250
78251 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78252
78253         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78254
78255 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78256
78257         * lib/memrchr.h: New file.
78258         * lib/chdir-long.c: Include it.
78259         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78260         Don't bother including stddef.h.
78261
78262 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78263
78264         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78265         inclusion.
78266         Include <sys/types.h>, for dev_t.
78267         (ME_DUMMY, ME_REMOTE): Move from here....
78268         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78269         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78270         Dmitry V. Levin.
78271         Include mountlist.h first, to test the interface.
78272
78273 2005-01-29  Bruno Haible  <bruno@clisp.org>
78274
78275         * lib/progname.c (program_name): Initialize.
78276         Needed when linking statically on MacOS X.
78277
78278 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78279
78280         Sync from coreutils.
78281         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78282         (Depends-on): Add c-strtod.
78283         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78284
78285 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78286
78287         Sync from coreutils.
78288         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78289
78290         Remove files that are specific to coreutils.
78291         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78292
78293 2005-01-28  Bruno Haible  <bruno@clisp.org>
78294
78295         * modules/javacomp: New file.
78296         * MODULES.html.sh (Java): Add javacomp.
78297
78298 2005-01-28  Bruno Haible  <bruno@clisp.org>
78299
78300         * m4/javacomp.m4: New file, from GNU gettext.
78301
78302 2005-01-28  Bruno Haible  <bruno@clisp.org>
78303
78304         * lib/javacomp.sh.in: New file, from GNU gettext.
78305         * lib/javacomp.h: New file, from GNU gettext.
78306         * lib/javacomp.c: New file, from GNU gettext.
78307
78308 2005-01-26  Simon Josefsson  <jas@extundo.com>
78309
78310         * lib/gai_strerror.c: Use GPL in header.
78311
78312 2005-01-26  Bruno Haible  <bruno@clisp.org>
78313
78314         * modules/javaexec: New file.
78315         * MODULES.html.sh (Java): Add javaexec.
78316
78317 2005-01-26  Bruno Haible  <bruno@clisp.org>
78318
78319         * m4/javaexec.m4: New file, from GNU gettext.
78320
78321 2005-01-26  Bruno Haible  <bruno@clisp.org>
78322
78323         * lib/javaexec.sh.in: New file, from GNU gettext.
78324         * lib/javaexec.h: New file, from GNU gettext.
78325         * lib/javaexec.c: New file, from GNU gettext.
78326
78327 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78328
78329         * modules/lchown (Depends-on): Remove lchown.h
78330
78331 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78332
78333         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78334         must be defined if the header file was not found, in order
78335         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78336
78337 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78338
78339         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78340         initializers for struct pentry_state.
78341         (__argp_error): Check return value of __asprintf
78342         (__argp_failure): Translate error message
78343
78344         * lib/argp-parse.c: Removed braces around the expansion of N_()
78345
78346 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78347
78348         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78349         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78350         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78351         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78352         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78353         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78354         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78355         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78356         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78357         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78358         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78359         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78360         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78361         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78362         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78363         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78364         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78365         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78366         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78367         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78368         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78369         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78370         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78371         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78372         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78373         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78374         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78375         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78376         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78377         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78378         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78379         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78380         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78381         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78382         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78383         Use an all-permissive copyright notice, recommended by RMS.
78384
78385 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78386
78387         * modules/chdir-long (Depends-on): Remove mempcpy.
78388
78389 2005-01-21  Jim Meyering  <jim@meyering.net>
78390
78391         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78392         same value as for Solaris 9.
78393
78394         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78395         component length.  This included changing the parameter to be
78396         of type `char *' rather than `char const *'.
78397         * lib/chdir-long.h (chdir_long): Update prototype.
78398
78399         * lib/openat.c (fdopendir, fstatat): New functions.
78400         * lib/openat.h: Include headers required for use of DIR and struct
78401         stat.
78402         [AT_SYMLINK_NOFOLLOW]: Define.
78403         (fdopendir, fstatat): Add prototypes.
78404
78405 2005-01-21  Bruno Haible  <bruno@clisp.org>
78406
78407         * modules/classpath: New file.
78408         * MODULES.html.sh (Java): Add classpath.
78409
78410 2005-01-21  Bruno Haible  <bruno@clisp.org>
78411
78412         * lib/classpath.h: New file, from GNU gettext.
78413         * lib/classpath.c: New file, from GNU gettext.
78414
78415 2005-01-20  Simon Josefsson  <jas@extundo.com>
78416
78417         * modules/version-etc-fsf: New file.
78418
78419 2005-01-20  Simon Josefsson  <jas@extundo.com>
78420
78421         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78422         * lib/version-etc.c: Remove version_etc_copyright.
78423         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78424         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78425
78426 2005-01-20  Simon Josefsson  <jas@extundo.com>
78427
78428         * lib/base64.h (isbase64): Add.
78429
78430         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78431         using a unsigned prototype, don't inline.
78432         (base64_decode): Use it.
78433
78434 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78435
78436         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78437         it.
78438
78439 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78440
78441         * lib/save-cwd.c (save_cwd): Remove code to support the case
78442         where fchdir is missing or flaky.
78443
78444 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78445
78446         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78447
78448 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78449
78450         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78451         AC_LIBSOURCES now does this.
78452         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78453         with new ullong_max module.
78454
78455 2005-01-19  Bruno Haible  <bruno@clisp.org>
78456
78457         * modules/sh-quote: New file.
78458         * MODULES.html.sh (Executing programs): Add sh-quote.
78459
78460 2005-01-19  Bruno Haible  <bruno@clisp.org>
78461
78462         * lib/sh-quote.h: New file, from GNU gettext.
78463         * lib/sh-quote.c: New file, from GNU gettext.
78464
78465 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78466
78467         Merge from coreutils.
78468         * m4/ullong_max.m4: New file.
78469         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78470         (gl_MACROS): Assume localeconv exists.
78471
78472 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78473
78474         Merge changes from coreutils, as described below in several
78475         changelogs dated today.
78476
78477         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78478         (O_DIRECTORY): Remove; not needed here, since "." must be
78479         a directory.  All uses removed.
78480         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78481         universal on Suns, and we also need to test for IRIX.
78482         Revamp code to use 'if' rather than '#if'.
78483         Avoid unnecessary comparison of cwd->desc to 0.
78484
78485         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78486         for known valid error numbers rather than observed invalid ones.
78487
78488 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78489
78490         * modules/ullong_max: New file.
78491
78492         * modules/chdir-long, modules/openat: New files.
78493         * modules/save-cwd (Depends-on): Depend on chdir-long.
78494         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78495
78496 2005-01-18  Jim Meyering  <jim@meyering.net>
78497
78498         Merge from coreutils.
78499         * m4/chdir-long.m4, m4/openat.m4: New files.
78500         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78501         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78502         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78503         is sane and DOES follow symlinks.  Besides, testing 20 different
78504         systems found no broken chown implementations.
78505         Prompted by a change in rsync's copy of this macro.
78506         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78507
78508         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78509
78510         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78511         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78512         NULL-means-set-to-current-time semantics.
78513         Remove temporary file immediately, rather than waiting
78514         for configure's at-exit trap code to do it.
78515
78516 2005-01-18  Jim Meyering  <jim@meyering.net>
78517
78518         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78519
78520         * lib/utimens.c (futimens): Account for the fact that futimes
78521         can also fail with errno == ENOSYS or errno == ENOENT.
78522         Patch from Dmitry V. Levin.
78523
78524         Change the name of the robust chdir function from chdir to chdir_long.
78525         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78526         (restore_cwd): Use chdir_long, not chdir.
78527         * lib/chdir-long.c: Renamed from chdir.c.
78528         * lib/chdir-long.h: Renamed from chdir.h.
78529         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78530         Hurd.
78531
78532 2005-01-18  Bruno Haible  <bruno@clisp.org>
78533
78534         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78535         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78536         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78537         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78538         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78539         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78540         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78541         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78542         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78543         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78544         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78545         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78546         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78547         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78548         Use an all-permissive copyright notice, recommended by RMS.
78549
78550 2005-01-18  Bob Proulx  <bob@proulx.com>
78551
78552         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78553         simplify offsetof() macro construct to avoid compile failure with
78554         native HP-UX 11.0 ANSI C compiler.
78555
78556 2005-01-17  Bruno Haible  <bruno@clisp.org>
78557
78558         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78559         redundant because stpncpy.m4 takes care of it.
78560
78561 2005-01-17  Bruno Haible  <bruno@clisp.org>
78562
78563         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78564
78565 2005-01-17  Bruno Haible  <bruno@clisp.org>
78566
78567         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78568         used.
78569
78570 2005-01-17  Bruno Haible  <bruno@clisp.org>
78571
78572         * lib/fwriteerror.h (fwriteerror): Change specification to include
78573         fclose.
78574         * lib/fwriteerror.c: Include <stdbool.h>.
78575         (fwriteerror): At the end, close the file stream. Record whether
78576         stdout was already closed.
78577
78578 2005-01-17  Bruno Haible  <bruno@clisp.org>
78579
78580         * lib/execute.c (environ): Declare if needed.
78581         * lib/pipe.c (environ): Likewise.
78582         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78583
78584 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78585
78586         * modules/argp: Depend on vsnprintf
78587
78588 2005-01-10  Jim Meyering  <jim@meyering.net>
78589
78590         * modules/closeout (Depends-on): Add atexit.
78591
78592 2005-01-06  Bruno Haible  <bruno@clisp.org>
78593
78594         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78595
78596 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78597
78598         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78599         definitions to be after all include files, to avoid collisions.
78600         Problem reported by Bob Proulx.
78601
78602 2005-01-04  Jim Meyering  <jim@meyering.net>
78603
78604         Changes imported from coreutils.
78605         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78606         as the mkstemp template, use a temporary directory and an
78607         8.3-friendly template to avoid trouble on systems like DJGPP.
78608         Reported by Juan M. Guerrero via Stepan Kasal.
78609         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78610         close. Remove the temporary directory right away, rather than waiting
78611         for configure's at-exit trap code to do it.
78612         Suggestion from Stepan Kasal.
78613
78614 2005-01-01  Simon Josefsson  <jas@extundo.com>
78615
78616         * gnulib-tool: Print #include directives when --import'ing.
78617
78618 2004-12-28  Simon Josefsson  <jas@extundo.com>
78619
78620         * tests/test-base64.c: Include required header files.  Remove
78621         unused variables.
78622
78623 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78624
78625         * modules/error (Depends-on): Remove gettext.
78626
78627 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78628
78629         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78630         not needed.  This removes a dependency on the gettext module.
78631         [defined _LIBC]: Do not include <libintl.h>; not needed.
78632
78633 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78634
78635         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78636         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78637
78638 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78639
78640         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78641         HAVE_DECL_STRTOLD.
78642
78643 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78644
78645         * modules/getdate (Depends-on): Remove alloca-opt.
78646
78647 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78648
78649         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78650
78651 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78652
78653         * lib/argp-parse.c: Include <stddef.h>.
78654         (alignof, alignto): New macros.
78655         (parser_init): Don't assume that void * is aligned sufficiently
78656         for struct option.
78657
78658         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78659         need to extend the stack.
78660         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78661         large.
78662
78663 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78664
78665         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78666
78667 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78668
78669         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78670         (2004-10-24) change.  Apparently this was a false alarm.
78671
78672         * modules/getdate: Depend on alloca-opt, not alloca.
78673
78674 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78675
78676         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78677         Remove now-obsolete comment about AIX.
78678         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78679         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78680         (YYMAXDEPTH): New macro.
78681
78682 2004-12-18  Simon Josefsson  <jas@extundo.com>
78683
78684         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78685
78686 2004-12-18  Bruno Haible  <bruno@clisp.org>
78687
78688         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78689
78690 2004-12-18  Bruno Haible  <bruno@clisp.org>
78691
78692         * lib/fatal-signal.c (fatal_signals): Make non-const.
78693         (init_fatal_signals): New function.
78694         (uninstall_handlers, install_handlers): Ignore signals that were set to
78695         SIG_IGN.
78696         (at_fatal_signal): Call init_fatal_signals.
78697         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78698         SIG_IGN.
78699         Reported by Paul Eggert.
78700
78701 2004-12-18  Bruno Haible  <bruno@clisp.org>
78702
78703         * doc/alloca.texi: New file.
78704         * doc/alloca-opt.texi: New file.
78705
78706 2004-12-17  Jim Meyering  <jim@meyering.net>
78707
78708         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78709         Otherwise, install-sh could exit with improper exit status when
78710         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78711
78712 2004-12-16  Simon Josefsson  <jas@extundo.com>
78713
78714         * tests/test-base64.c: Add license.
78715
78716 2004-12-15  Stepan Kasal  <address@hidden>
78717
78718         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78719
78720 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78721
78722         * modules/getcwd (Files): Add m4/d-ino.m4.
78723         Suggested by Mark D. Baushke.
78724
78725 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78726
78727         * lib/getdate.y (textint): New member "negative".
78728         (time_zone_hhmm): New function.
78729         Expect 14 shift-reduce conflicts, not 13.
78730         (o_colon_minutes): New rule.
78731         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78732         (yylex): Set the "negative" member of signed numbers.
78733
78734 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78735
78736         * doc/getdate.texi (Time of day items, Time zone items):
78737         Describe new formats +00:00, UTC+00:00.
78738
78739 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78740
78741         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78742         spurious "-l"s.  Problem reported by Stepan Kasal.
78743
78744 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78745
78746         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78747         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78748
78749 2004-12-04  Simon Josefsson  <jas@extundo.com>
78750
78751         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78752         Vandoorselaere <yoann@prelude-ids.org>.
78753
78754 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78755
78756         Changes imported from coreutils.
78757         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78758         exist.
78759         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78760
78761 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78762
78763         Changes imported from coreutils.
78764         * lib/hard-locale.c: Assume <locale.h> exists.
78765         Include "strdup.h".
78766         (GLIBC_VERSION): New macro.
78767         (hard_locale): Assume setlocale exists.
78768         Rewrite to avoid #ifdef.
78769         Use strdup rather than malloc + strcpy.
78770         * lib/human.c: Assume <locale.h> exists.
78771         (human_readable): Assume localeconv exists.
78772
78773 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78774
78775         * modules/hard-locale (Depends-on): Add strdup.
78776
78777 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78778
78779         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78780         convert T2, not T.  (Imported from libc.)
78781
78782 2004-11-30  Simon Josefsson  <jas@extundo.com>
78783
78784         * modules/restrict (License): Change to LGPL.
78785
78786 2004-11-30  Simon Josefsson  <jas@extundo.com>
78787
78788         * m4/restrict.m4: Add copyright and copying conditions.
78789
78790 2004-11-30  Simon Josefsson  <jas@extundo.com>
78791
78792         * m4/base64.m4: New file.
78793
78794 2004-11-30  Simon Josefsson  <jas@extundo.com>
78795
78796         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78797         base64.
78798
78799         * tests/test-base64.c: New file.
78800
78801         * modules/base64: New file.
78802
78803 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78804
78805         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78806         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78807
78808         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78809
78810 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78811
78812         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78813         (__getcwd.c): Don't restore errno; glibc doesn't.
78814         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78815         first, falling back to our code only if its results look suspicious.
78816         Ensure that the resulting buffer is only as large as necessary.
78817
78818         * lib/readutmp.c: Include readutmp.h first.
78819         Include <errno.h>, since readutmp.h no longer does that.
78820         * lib/readutmp.h: Don't include <errno.h>,
78821         <sys/param.h>, <time.h>; not needed to establish interface.
78822         (errno): Remove decl.
78823         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78824         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78825         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78826
78827 2004-11-28  Simon Josefsson  <jas@extundo.com>
78828
78829         * lib/base64.h, base64.c: New file.
78830
78831 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78832
78833         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78834
78835 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78836
78837         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78838         (Depends-on): Remove pathmax, same.  Add mempcpy.
78839         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78840         (Makefile.am): Append getcwd.h to lib_SOURCES.
78841         (Include): Add getcwd.h.
78842         (Maintainer): Change from Jim Meyering to "all, glibc",
78843         since getdate now uses intended-for-glibc code.
78844         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78845         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78846
78847 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78848
78849         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78850         HP's ANSI C compiler.
78851         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78852         Declaring int functions causes warnings on some modern systems and
78853         shouldn't be needed to compile on ancient ones.
78854         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78855         defined.
78856
78857         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78858         with the following changes.
78859         (__set_errno): Parenthesize properly.
78860         Include <stdbool.h>.
78861         (MIN, MAX, MATCHING_INO): New macros.
78862         (__getcwd): Define with prototype, not K&R form.
78863         Use heuristics to allocate default buffer on stack if possible.
78864         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78865         behavior, and to avoid the PATH_MAX limit when computing
78866         ../../../../...
78867         Use MATCHING_INO to compare inode number to file.
78868         Check for arithmetic overflow in size calculations.
78869         Fix bug in reallocation of dot array that caused getcwd to fail
78870         on directories nested deeper than 75.
78871         Be more careful about saving errno on error.
78872         Do not use realloc; use only free+malloc, as this is a bit
78873         more flexible and avoids a needless copy operation.
78874         Do not inspect st_dev and st_ino for symbolic links; POSIX
78875         doesn't specify the latter.
78876         Check for closedir errors.
78877         Avoid needless casts.
78878         Use "#ifdef weak_alias" around weak_alias, to be like other
78879         glibc code.
78880         The following changes to getcwd.c have effect only when used in
78881         gnulib; they have no effect inside glibc proper.
78882         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78883         as alloca isn't used.
78884         (alloca, __alloca): Likewise.
78885         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78886         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78887         unconditionally, as gnulib assumes C89 or better.
78888         Do not include <sys/param.h>.
78889         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78890         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78891         better.
78892         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78893         Include <dirent.h> in a way that is compatible with modern Autoconf.
78894         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78895         New macros, if not already defined.
78896         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78897         Use "_LIBC", not "defined _LIBC", for consistency.
78898         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78899         a mempcpy module.
78900         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78901         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78902         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78903         credit only to Jim Meyering and adjust the copyright dates.
78904         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78905         <stdlib.h>, <unistd.h>, "pathmax.h".
78906         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78907         (INITIAL_BUFFER_SIZE): Remove.
78908         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78909
78910 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78911
78912         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78913         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78914         Use the _ONCE methods, for efficiency.
78915         Check for fcntl.h.  In test program, include <errno.h>
78916         and <fcntl.h> if available.  Remove old K&R cruft from
78917         test program.  Check for common errors in GNU/Linux,
78918         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78919         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78920         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78921         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78922         name accordingly.
78923         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78924         accommodate new getcwd.c.
78925         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78926         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78927         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78928         that's all we need now.
78929
78930 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78931
78932         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78933         argp-parse.c depends on getopt internals, that means we should
78934         always use our getopt, to be on the safe side.
78935         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78936         order not to spoil the result of an eventual previous invocation
78937         of gl_GETOPT_SUBSTITUTE.
78938
78939 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78940
78941         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78942         redefinition warnings. To avoid them, include the defines
78943         in `#if !defined __need_getopt ... #endif'. The only place
78944         where __getopt_argv_const is used is in definitions
78945         of getopt_long and getopt_long_only below, which are as well
78946         protected by `#ifndef __need_getopt'.
78947         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78948         __need_getopt after including <stdio.h> and <unistd.h> These
78949         headers might have defined it.
78950
78951 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78952
78953         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78954
78955 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78956
78957         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78958         (futimens): New function, which uses futimes if available.
78959         (futimens, utimens): Support timespec==NULL, with same semantics
78960         as utime and utimens.
78961         * lib/utimens.h (futimens): New decl.
78962
78963 2004-11-23  Jim Meyering  <jim@meyering.net>
78964
78965         * lib/getopt_.h: Remove trailing blanks.
78966
78967 2004-11-23  Jim Meyering  <jim@meyering.net>
78968
78969         * lib/__fpending.c: Add comment.
78970
78971 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78972
78973         * modules/canonicalize (Depends-on): Add xreadlink.
78974         Problem reported by James Youngman.
78975
78976 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78977
78978         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78979         New macros.
78980         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78981         optopt): Use them instead of invoking ## directly; otherwise, the
78982         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78983
78984 2004-11-19  Bruno Haible  <bruno@clisp.org>
78985
78986         * lib/strtok_r.c: Move comments from here...
78987         * lib/strtok_r.h: ... to here.
78988
78989 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78990
78991         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78992         implementations that mishandle size_t overflow.
78993
78994 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78995
78996         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78997         might fail.  Problem reported by Yoann Vandoorselaere.
78998         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78999         implementations that mishandle size_t overflow.
79000
79001 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79002
79003         * modules/canon-host (Depends-on): Add strdup.
79004
79005 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79006
79007         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79008
79009 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79010
79011         * lib/canon-host.c: Include "strdup.h".
79012         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79013         Use strdup instead of malloc/strcpy to duplicate strings.
79014
79015         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79016         (human_space_before_unit): New constant.
79017         * lib/human.c (human_readable): Support it.
79018
79019         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79020         (xgetcwd): Set errno correctly when failing.
79021         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79022         the failure is actually due to a PATH_MAX problem.
79023
79024         Further getopt changes to make it more likely that glibc will
79025         buy the changes back.
79026         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79027         (getopt): Use it, so to preserve glibc semantic
79028         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79029         when compiling for libc.
79030         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79031         (getopt_long, getopt_long_only): Use it.
79032
79033         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79034         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79035         (getopt): Argv is now char * const *, as per standard.
79036         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79037         not char *__getopt_argv_const *.
79038         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79039         _getopt_long_only_r): Likewise.
79040         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79041         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79042         _getopt_long_r, _getopt_long_only_r): Likewise.
79043         * lib/getopt_.h (__getopt_argv_const): Remove.
79044         (getopt): Argv is now char * const *, as per standard.
79045
79046         * lib/getdate.y (tORDINAL): New token.
79047         (day, relunit): Allow it for relative times.
79048         (relative_time_table): Use tORDINAL for ordinals.
79049
79050 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79051
79052         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79053         Document that "second" isn't allowed as an ordinal number.
79054
79055 2004-11-16  Jim Meyering  <jim@meyering.net>
79056
79057         * modules/closeout (Depends-on): Add fpending.
79058
79059 2004-11-15  Jim Meyering  <jim@meyering.net>
79060
79061         * lib/closeout.c: Include "__fpending.h" once again.
79062         Include <stdbool.h>.
79063         (close_stdout): Don't fail just because stdout was closed initially,
79064         since some programs don't write to stdout in the normal course of
79065         operation (other than --version and --help), and we don't want this
79066         function to make e.g. `touch file >&-' fail.
79067         But do fail if it was closed and someone has tried to write to it.
79068         E.g., `printf foo >&-' must fail.
79069
79070 2004-11-13  Jim Meyering  <jim@meyering.net>
79071
79072         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79073
79074 2004-11-12  Simon Josefsson  <jas@extundo.com>
79075
79076         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79077         small doc fix is still pending.
79078
79079 2004-11-11  Simon Josefsson  <jas@extundo.com>
79080
79081         * modules/strtok_r: New file.
79082
79083         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79084         strtok_r.
79085
79086 2004-11-11  Simon Josefsson  <jas@extundo.com>
79087
79088         * m4/strtok_r.m4: New file.
79089
79090         * m4/getopt.m4: Replace opterr.
79091
79092 2004-11-11  Simon Josefsson  <jas@extundo.com>
79093
79094         * lib/strtok_r.h, strtok_r.c: New file.
79095
79096 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79097
79098         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79099         of replacing opterr, getopt, etc.  This should handle the
79100         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79101
79102 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79103
79104         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79105         we can stop lying to compilers about the constness of argv when we
79106         are compiled outside glibc.
79107         (getopt, getopt_long, getopt_long_only): Use it.
79108         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79109         _getopt_internal, getopt): Likewise.
79110         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79111         _getopt_long_only_r): Likewise.
79112         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79113         _getopt_long_r, _getopt_long_only_r): Likewise.
79114
79115         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79116         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79117         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79118         the other external symbols.
79119         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79120         declaration, since the above renaming now works around collisions.
79121
79122 2004-11-11  Jim Meyering  <jim@meyering.net>
79123
79124         * lib/linebreak.c: Remove trailing blanks.
79125         * lib/alloca_.h: Likewise.
79126         * lib/acosl.c: Likewise.
79127         * lib/euidaccess.c: Likewise.
79128         * lib/allocsa.h: Likewise.
79129
79130 2004-11-10  Simon Josefsson  <jas@extundo.com>
79131
79132         * m4/getaddrinfo.m4: New file.
79133
79134 2004-11-10  Simon Josefsson  <jas@extundo.com>
79135
79136         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79137
79138 2004-11-10  Simon Josefsson  <jas@extundo.com>
79139
79140         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79141         getaddrinfo.
79142
79143         * modules/getaddrinfo: New file.
79144
79145 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79146
79147         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79148
79149 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79150
79151         * lib/mktime.c (SHR): New macro, which is a portable
79152         substitute for >> that should work even on Crays.
79153         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79154         Problem reported by Mark D. Baushke in
79155         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79156         * lib/getdate.y (SHR): Likewise.
79157         (tm_diff): Use it.
79158         * lib/strftime.c (SHR): Likewise.
79159         (tm_diff): Use it.
79160         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79161         quote_these_too, so that right shifts are well defined.  All uses
79162         changed.
79163
79164 2004-11-10  Jim Meyering  <jim@meyering.net>
79165
79166         Ensure that no close failure goes unreported.
79167         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79168         return early when it seems there's nothing to flush.
79169         Don't include __fpending.h.
79170
79171 2004-11-10  Jim Meyering  <jim@meyering.net>
79172
79173         * modules/closeout (Depends-on): Remove fpending.
79174
79175 2004-11-10  Jim Meyering  <jim@meyering.net>
79176
79177         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79178
79179 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79180
79181         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79182         gl_FUNC_STRFTIME.
79183         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79184         and AC_REQUIRE when possible, to avoid duplicate checks.
79185         Check for <wchar.h>.
79186
79187 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79188
79189         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79190
79191 2004-11-09  Bruno Haible  <bruno@clisp.org>
79192
79193         * m4/sockpfaf.m4: New file.
79194
79195 2004-11-05  Bruno Haible  <bruno@clisp.org>
79196
79197         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79198         Reported by Mark D. Baushke <mdb@cvshome.org>.
79199
79200 2004-11-04  Bruno Haible  <bruno@clisp.org>
79201
79202         2004-09-11  Bruno Haible  <bruno@clisp.org>
79203                 * allocsa.valgrind: New file.
79204         2004-02-06  Bruno Haible  <bruno@clisp.org>
79205                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79206                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79207                 Reported by Christopher Seip <chris.seip@hp.com>.
79208
79209 2004-11-04  Bruno Haible  <bruno@clisp.org>
79210
79211         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79212         (Makefile.am): Distribute it.
79213
79214 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79215
79216         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79217         with errno == ERANGE if the buffer is too small.
79218         Problem reported by Mark D. Baushke.
79219
79220 2004-11-03  Albert Chin  <china@thewrittenword.com>
79221             Paul Eggert  <eggert@cs.ucla.edu>
79222
79223         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79224         equivalent, substitute $ac_type for equivalent type rather than
79225         blindly using uint32_t *always* which won't work if uint32_t is not
79226         available.  Define _UINT32_T to work around typedef of uint32_t if
79227         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79228         2.5.1.
79229
79230 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79231
79232         * m4/jm-macros.m4: Sync from coreutils.
79233         (gl_MACROS): Check for mbrlen, for pathchk.
79234         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79235
79236 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79237
79238         * lib/xreadlink.c (MAXSIZE): New macro.
79239         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79240         size does not exceed MAXSIZE.  Avoid cast.
79241         As suggested by Mark D. Baushke in
79242         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79243         if readlink fails with buffer size just under MAXSIZE, try again
79244         with MAXSIZE.
79245
79246 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79247
79248         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79249
79250 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79251         and  Paul Eggert  <eggert@cs.ucla.edu>
79252
79253         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79254         (get_date): Overparenthesize to avoid GCC warning.
79255
79256 2004-11-02  Bruno Haible  <bruno@clisp.org>
79257
79258         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79259         returns void.
79260
79261 2004-11-02  Bruno Haible  <bruno@clisp.org>
79262
79263         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79264         function returns void.
79265
79266 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79267
79268         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79269         fflush_unlocked, flockfile, funlockfile, funlockfile,
79270         fputs_unlocked, putc_unlocked.
79271
79272 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79273
79274         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79275         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79276         already declared.
79277
79278 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79279
79280         * modules/getdate (Files): Add doc/getdate.texi.
79281         (Depends-on): Add setenv, xalloc.
79282
79283 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79284
79285         * lib/getdate.y: Add support for TZ="foo" within a date string.
79286         Fix some bugs near time_t boundaries.  Reject dates with
79287         out-of-range components, e.g., "Sept 31".
79288         Include <stdlib.h>, "setenv.h", "xalloc.h".
79289         (ISDIGIT_LOCALE): Remove; unused.
79290         Note that the TZ and time functions used here are not reentrant.
79291         (mktime_ok, get_tz): New functions.
79292         (TZBUFSIZE): New constant.
79293         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79294         This requires that we sometimes generate our own TZ="XXX..." setting.
79295
79296 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79297
79298         * doc/getdate.texi: New file, from coreutils with modifications for
79299         the new TZ parsing.
79300
79301 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79302
79303         * lib/mktime.c (not_equal_tm): Remove redundant check.
79304
79305 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79306
79307         * modules/regex (lib_SOURCES): Add regex.c.
79308         Reported by James Youngman in
79309         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79310
79311 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79312
79313         * lib/getdate.y: Use Bison 1.875 features, and some minor
79314         code cleanups.  This change does not affect semantics.
79315         Don't include <stdlib.h>; no longer needed.
79316         Don't include unlocked-io.h; only the "#if TEST" code uses
79317         stdio, and performance isn't crucial there.
79318         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79319         Bison 1.875 features as described below.
79320         All uses of "PC." replaced by "pc->".
79321         (YYSTYPE): Add a forward declaration.
79322         (yylex, yyerror): Use full prototypes in forward decls.
79323         Use "%pure-parser" rather than obsolescent "%pure_parser".
79324         Use %parse-param and %lex-param instead of obsolescent
79325         YYPARSE_PARAM and YYLEX_PARAM.
79326         (meridian_table, month_and_day_table, time_units_table,
79327         relative_time_table, time_zone_table, military_table,
79328         lookup_zone, lookup_word, get_date):
79329         Use NULL instead of 0 where appropriate.
79330         (to_hour): Avoid abort (), to avoid a dependency on
79331         stdlib.h.
79332         (yyerror, yylex): Now accepts parser_control * arg.
79333         (main) [TEST]: Use '\0' rather than 0 for char.
79334
79335 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79336
79337         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79338
79339 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79340
79341         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79342         It's now the caller's responsibility to handle the case where
79343         !HAVE_GETPAGESIZE && !defined getpagesize.
79344
79345         * lib/mktime.c (leapyear): Arg is long int, not int.
79346
79347 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79348
79349         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79350
79351 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79352
79353         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79354         missing.  Problem reported by James Youngman.
79355
79356 2004-10-16  Simon Josefsson  <jas@extundo.com>
79357
79358         * gnulib-tool: Fix comments.  Fix parse problem.
79359         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79360
79361 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79362
79363         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79364         implementation of getopt_long.  Problem reported by Alexander Taler in:
79365         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79366
79367 2004-10-15  Bruno Haible  <bruno@clisp.org>
79368
79369         * gnulib-tool: Untabify. Initialize supplied_libname.
79370         (func_usage): More homogenous output.
79371         (func_modules_transitive_closure, func_modules_to_filelist,
79372         func_emit_lib_Makefile_am): New functions.
79373         (func_import): New function, extracted from big case statement. Use
79374         func_get_license, func_modules_transitive_closure,
79375         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79376         opt_lgpl. Don't use test -a, as it's not portable.
79377         (func_create_testdir): Use func_modules_transitive_closure,
79378         func_modules_to_filelist, func_emit_lib_Makefile_am.
79379
79380 2004-10-15  Bruno Haible  <bruno@clisp.org>
79381
79382         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79383
79384 2004-10-15  Bruno Haible  <bruno@clisp.org>
79385
79386         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79387         the portions belonging to each module.
79388         Suggested by Derek Robert Price <derek@ximbiot.com>.
79389
79390 2004-10-12  Simon Josefsson  <jas@extundo.com>
79391
79392         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79393         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79394         to real functions.
79395
79396 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79397
79398         * modules/vsnprintf: New file.
79399
79400 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79401
79402         * m4/vsnprintf.m4: New file.
79403
79404 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79405
79406         * lib/vsnprintf.h: New file.
79407         * lib/vsnprintf.c: New file.
79408
79409 2004-10-11  Bruno Haible  <bruno@clisp.org>
79410
79411         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79412         vsnprintf.
79413
79414 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79415
79416         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79417
79418 2004-10-07  Bruno Haible  <bruno@clisp.org>
79419
79420         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79421         fits into the provided buffer.
79422
79423 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79424
79425         * lib/diacrit.c, diacrit.h: Add GPL notice.
79426
79427         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79428         notice.
79429         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79430         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79431         This avoids a potential constant-folding bug.
79432
79433 2004-10-05  Bruno Haible  <bruno@clisp.org>
79434
79435         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79436         for the declaration of strsep.
79437
79438 2004-10-05  Bruno Haible  <bruno@clisp.org>
79439
79440         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79441
79442 2004-10-04  Simon Josefsson  <jas@extundo.com>
79443
79444         * modules/memmem: New file.
79445         * tests/test-memmem.c: New file.
79446         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79447
79448 2004-10-04  Simon Josefsson  <jas@extundo.com>
79449
79450         * m4/memmem.m4: New file.
79451
79452 2004-10-04  Simon Josefsson  <jas@extundo.com>
79453
79454         * lib/memmem.h: New file.
79455         * lib/memmem.c: New file, taken from glibc.
79456
79457 2004-10-04  Simon Josefsson  <jas@extundo.com>
79458
79459         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79460         '#ifdef USE_UNLOCKED_IO'.
79461
79462 2004-10-04  Simon Josefsson  <jas@extundo.com>
79463
79464         * config/srclist.txt: Add memmem from glibc.
79465
79466 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79467
79468         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79469
79470         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79471         modules/exclude, modules/getdate, modules/getline,
79472         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79473         modules/getusershell, modules/linebuffer, modules/md5,
79474         modules/mountlist, modules/posixtm, modules/readtokens,
79475         modules/readutmp, modules/regex, modules/sha1,
79476         modules/version-etc, modules/yesno:
79477         Remove dependency on unlocked-io.
79478
79479 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79480
79481         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79482
79483         * m4/unlocked-io.m4: Add copyright notice.
79484         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79485
79486 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79487
79488         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79489         * lib/xmalloc.c (xmemdup): Likewise.
79490         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79491         XFREE): Remove these long-obsolescent macros.
79492         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79493         * lib/xstrdup.c: Remove.
79494
79495         * lib/regex.c (re_comp): Cast gettext return value to char *,
79496         Problem reported by Martin Neitzel via Mark D. Baushke.
79497
79498 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79499
79500         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79501         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79502         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79503         regex.c, sha1.c, version-etc.c, yesno.c:
79504         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79505         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79506         the includer's responsibility.
79507
79508         Sync from coreutils.
79509
79510         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79511         points to the start of a string, as the C Standard says the
79512         resulting behavior is undefined.
79513
79514         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79515         simple -> simple_backups, numbered_existing ->
79516         numbered_existing_backups, numbered -> numbered_backups
79517         to avoid shadowing problems.  All uses changed.
79518         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79519         * lib/backupfile.c (check_extension, numbered_backup):
79520         Rename locals to avoid shadowing 'basename'.
79521         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79522         once.
79523
79524         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79525         * lib/.cvsignore: Add getopt.h.
79526
79527 2004-10-04  Bruno Haible  <bruno@clisp.org>
79528
79529         * modules/README: New file.
79530         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79531         not a module.
79532
79533 2004-10-02  Jim Meyering  <jim@meyering.net>
79534
79535         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79536
79537 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79538
79539         * modules/strsep: New file.
79540
79541 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79542
79543         * m4/strsep.m4: New file.
79544
79545 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79546
79547         * lib/strsep.h: New file.
79548         * lib/strsep.c: New file.
79549
79550 2004-10-01  Simon Josefsson  <jas@extundo.com>
79551
79552         * lib/snprintf.c (snprintf): Handle size==0.
79553
79554 2004-10-01  Simon Josefsson  <jas@extundo.com>
79555             Bruno Haible  <bruno@clisp.org>
79556
79557         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79558         (snprintf): Declare 'args'.
79559
79560 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79561
79562         * lib/snprintf.c: Remove comments as to why each header is needed.
79563
79564 2004-10-01  Bruno Haible  <bruno@clisp.org>
79565
79566         * MODULES.html.sh: Add strsep.
79567
79568 2004-09-30  Simon Josefsson  <jas@extundo.com>
79569
79570         * modules/snprintf: New file.
79571
79572 2004-09-30  Simon Josefsson  <jas@extundo.com>
79573
79574         * m4/snprintf.m4: New file.
79575
79576 2004-09-30  Simon Josefsson  <jas@extundo.com>
79577
79578         * lib/snprintf.h, lib/snprintf.c: New files.
79579
79580 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79581
79582         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79583         (hol_entry_help): Never translate an empty string.
79584         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79585         * lib/argp.h (OPTION_NO_TRANS): New option.
79586
79587 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79588
79589         * modules/argp (Maintainer): Replace Simon Josefsson
79590         by Sergey Poznyakoff.
79591
79592 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79593
79594         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79595         changes merged back into glibc.
79596
79597 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79598
79599         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79600
79601 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79602
79603         * lib/xvasprintf.c: Include xalloc.h.
79604         (xvasprintf): Use xalloc_die, not xmalloc_die.
79605
79606 2004-09-29  Bruno Haible  <bruno@clisp.org>
79607
79608         * modules/alloca-opt: New file, derived from modules/alloca.
79609         * modules/allocsa: Depend on alloca-opt instead of alloca.
79610         * modules/setenv: Likewise.
79611         * modules/vasnprintf: Likewise.
79612         * MODULES.html.sh: Add alloca-opt.
79613
79614 2004-09-28  Simon Josefsson  <jas@extundo.com>
79615
79616         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79617         LGPL, and to replace license template from GPL to LGPL.
79618
79619 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79620
79621         * modules/dummy: Change license to LGPL.
79622
79623 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79624
79625         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79626
79627 2004-09-24  Simon Josefsson  <jas@extundo.com>
79628
79629         * modules/minmax (License): Change from GPL to LGPL.
79630
79631 2004-09-23  Simon Josefsson  <jas@extundo.com>
79632
79633         * gnulib-tool (--import): Typo.
79634
79635 2004-09-23  Simon Josefsson  <jas@extundo.com>
79636
79637         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79638
79639 2004-09-22  Bruno Haible  <bruno@clisp.org>
79640
79641         * modules/*: Add 'License' field.
79642         * gnulib-tool: Accept --extract-license option.
79643         (func_get_license): New function.
79644
79645 2004-09-21  Bruno Haible  <bruno@clisp.org>
79646
79647         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79648         Reported by Simon Josefsson.
79649
79650 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79651
79652         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79653         gl_AC_TYPE_LONG_LONG.
79654
79655 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79656
79657         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79658
79659 2004-09-18  Simon Josefsson  <jas@extundo.com>
79660         and  Paul Eggert  <eggert@cs.ucla.edu>
79661
79662         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79663         calls with autoreconf.  Define GL_LIB.
79664
79665 2004-09-14  Karl Berry  <karl@gnu.org>
79666
79667         * config/srclist.txt: unsync setenv.c, sigh.
79668
79669 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79670
79671         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79672         Problem reported by Bruno Haible in:
79673         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79674
79675 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79676
79677         * config/srclist.txt: Comment out argp-pvh.c.
79678
79679 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79680
79681         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79682         in case some system header has #define'd it.  Problem reported by
79683         Soeren D. Schulze in
79684         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79685
79686 2004-09-09  Karl Berry  <karl@gnu.org>
79687
79688         * regex.[ch]: delete from the root.  These were supposed to be
79689                 synced with emacs cvs, but this has not happened for about
79690                 a year, and anyway nothing else uses emacs regex.[ch].
79691                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79692                 lib/regex[.ch] is untouched.
79693
79694 2004-09-09  Bruno Haible  <bruno@clisp.org>
79695
79696         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79697
79698 2004-09-09  Bruno Haible  <bruno@clisp.org>
79699
79700         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79701         modifications.
79702         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79703
79704 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79705
79706         * modules/xvasprintf: New file.
79707         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79708
79709 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79710
79711         * lib/xvasprintf.h: New file.
79712         * lib/xvasprintf.c: New file.
79713         * lib/xasprintf.c: New file.
79714
79715 2004-09-08  Bruno Haible  <bruno@clisp.org>
79716
79717         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79718
79719 2004-09-08  Bruno Haible  <bruno@clisp.org>
79720
79721         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79722         length is > INT_MAX.
79723         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79724         more.
79725
79726 2004-09-08  Bruno Haible  <bruno@clisp.org>
79727
79728         * lib/stdint_.h: New file, taken from GNU clisp.
79729
79730 2004-09-08  Bruno Haible  <bruno@clisp.org>
79731             Oskar Liljeblad  <oskar@osk.mine.nu>
79732
79733         * modules/stdint: New file.
79734         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79735
79736 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79737
79738         Import from coreutils.
79739         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79740         strings on unbounded length.  alloca's performance benefits aren't
79741         that important here.
79742         (V_STRDUP): Remove.
79743         (parse_with_separator): New function, with most of the internals
79744         of the old parse_user_spec.  Allow user to omit both user and group,
79745         for compatibility with FreeBSD.
79746         Clone only the user name, not the entire spec.
79747         Do not set *uid, *gid unless entirely successful.
79748         Avoid memory leak in some failing cases.
79749         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79750         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79751         (parse_user_spec): Rewrite to use parse_with_separator.
79752
79753 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79754
79755         * modules/userspec: Don't depend on alloca.
79756
79757 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79758
79759         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79760
79761 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79762
79763         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79764         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79765         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79766
79767 2004-08-16  Simon Josefsson  <jas@extundo.com>
79768
79769         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79770         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79771         Add --dry-run for --import.
79772         Let user provided command line parameters override configure.ac
79773         settings.
79774
79775 2004-08-12  Simon Josefsson  <jas@extundo.com>
79776
79777         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79778         as discussed with Paul Eggert in threads rooted at
79779         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79780         and
79781         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79782         Before, the test was empty, and relied on ELIDE_CODE in source
79783         code.)
79784         (gl_PREREQ_GETOPT): New macro.
79785         (gl_GETOPT): Use them.
79786
79787 2004-08-12  Simon Josefsson  <jas@extundo.com>
79788
79789         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79790         * lib/getopt_.h: Renamed from getopt.h.
79791
79792 2004-08-12  Simon Josefsson  <jas@extundo.com>
79793
79794         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79795         Change default library name from libfoo to libgnu.
79796         Now, if you have a configure.ac that says:
79797                 gl_SOURCE_BASE(gl)
79798                 gl_M4_BASE(gl/m4)
79799                 gl_MODULES(error getopt etcetera)
79800                 gl_INIT
79801         you can import all you need by running:
79802                 ../gnulib/gnulib-tool --import
79803
79804         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79805         (Makefile.am): Rewrite, use logic from argz.
79806         (Include): Use <getopt.h> instead of "getopt.h".
79807
79808 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79809
79810         * modules/argp (Files): Add m4/unlocked-io.m4.
79811         (Depends-on): Add extensions.
79812
79813 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79814
79815         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79816         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79817         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79818         Check for program_invocation_name, program_invocation_short_name,
79819         flockfile, funlockfile, features.h, _getopt_long_only_r.
79820
79821 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79822
79823         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79824         its complicated substitute.
79825         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79826         and program_invocation_name.
79827         (__argp_basename) [!_LIBC]: Remove; the only use was
79828         replaced by its body.
79829         (__argp_short_program_name): Change condition from
79830         !defined __argp_short_program_name to
79831         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79832         to match argp-namefrob.h.
79833         (__argp_failure): Don't assume strerror_r returns char *.
79834         * lib/argp-parse.c (N_): Define unconditionally.
79835         (argp_default_options): Fill out initializers with 0 to avoid
79836         gcc warnings.
79837
79838 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79839
79840         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79841         getopt1.c.
79842
79843 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79844
79845         Merge from coreutils.
79846
79847         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79848
79849         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79850         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79851
79852 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79853
79854         Merge from coreutils.
79855
79856         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79857         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79858         for Reliant Unix 5.43.
79859
79860         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79861         (union fooround): Use uintmax_t, not long int.
79862         The rest is a merge from libc:
79863         [defined _LIBC]: Include <shlib-compat.h>.
79864         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79865
79866         * lib/settime.c (settime): Recode to avoid warning with
79867         Sun Forte C 6U2.
79868
79869         * lib/strverscmp.c: Convert to UTF-8.
79870
79871 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79872
79873         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79874         m4/uintmax_t.m4.
79875
79876 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79877
79878         * modules/xalloc-die: New file.
79879         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79880
79881         * modules/md5 (Files): Add m4/uint32_t.m4.
79882         * modules/sha1: Renamed from modules/sha.
79883         (Files):
79884         Rename lib/sha.h to lib/sha1.h.
79885         Rename lib/sha.c to lib/sha1.c.
79886         Rename m4/sha.m4 to m4/sha1.m4.
79887         (lib_SOURCES): Likewise.
79888         (configure.ac): Rename gl_SHA to gl_SHA1.
79889         (Include): sha.h -> sha1.h.
79890
79891 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79892
79893         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79894         * m4/sha1.m4: Renamed from sha.m4.
79895         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79896
79897 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79898
79899         * lib/obstack.h (obstack_empty_p):
79900         Don't assume that chunk->contents is suitably aligned.
79901         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79902         Likewise. Problem reported by Benno in
79903         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79904
79905         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79906         readable.  This could be improved further but it'd take some work.
79907
79908 2004-08-08  Simon Josefsson  <jas@extundo.com>
79909
79910         * modules/xgethostname (Depends-on): Remove exit and error (not
79911         used).
79912
79913         * modules/getpass-gnu: Add getpass.h.
79914         (Depends-on): Add stdbool.
79915         * modules/getpass: Add getpass.h.
79916
79917 2004-08-08  Simon Josefsson  <jas@extundo.com>
79918
79919         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79920         Check getpass declaration.
79921
79922 2004-08-08  Simon Josefsson  <jas@extundo.com>
79923
79924         * lib/xgethostname.c: Don't include error.h (not used).
79925
79926         * lib/getpass.h: Add.
79927         * lib/getpass.c: Include getpass.h first.
79928
79929 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79930
79931         * lib/xalloc-die.c: New file.
79932         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79933         All uses removed.
79934         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79935         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79936         xalloc-die.c.
79937         (_, N_, xalloc_die): Move to xalloc-die.c.
79938         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79939         so that we needn't mess with xalloc_msg_memory_exhausted.
79940
79941         * lib/sha1.h: Renamed from sha.h.
79942         (SHA1_H): Renamed from _SHA_H.
79943         (sha1_ctx): Renamed from sha_ctx.
79944         (sha1_init_ctx): Renamed from sha_init_ctx.
79945         (sha1_process_block): Renamed from sha_process_block.
79946         (sha1_process_bytes): Renamed from sha_process_bytes.
79947         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79948         (sha1_read_ctx): Renamed from sha_read_ctx.
79949         (sha1_stream): Renamed from sha_stream.
79950         (sha1_buffer): Renamed from sha_buffer.
79951         * lib/sha1.c: Likewise; renamed from sha.c.
79952         Do not include <sys/types.h>.
79953         Include <stddef.h> rather than <stdlib.h>.
79954
79955 2004-08-08  Bruno Haible  <bruno@clisp.org>
79956
79957         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79958         FILESYSTEM_PREFIX_LEN.
79959         * lib/progreloc.c: Likewise.
79960         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79961
79962 2004-08-06  Simon Josefsson  <jas@extundo.com>
79963
79964         * modules/progname (Depends-on): Don't depend on stdbool.
79965
79966 2004-08-06  Simon Josefsson  <jas@extundo.com>
79967
79968         * modules/getsubopt: New file.
79969         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79970         getsubopt.
79971
79972 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79973
79974         More merge from coreutils.
79975
79976         * m4/utimens.m4, m4/utimecmp.m4: New files.
79977         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79978         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79979         prereq.m4, sha.m4: Import changes from coreutils.
79980
79981 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79982
79983         More merge from coreutils.
79984         * modules/raise, modules/readtokens0, modules/utimens:
79985         * modules/utimecmp, module/xnanosleep: New files.
79986         * modules/strftime: Add lib/strftime.h.
79987         Change include from <time.h> to "strftime.h".
79988         * modules/yesno: Add lib/yesno.h.
79989         * modules/backupfile: Remove lib/addext.c.
79990         * modules/euidaccess: Add stat-macros.h.
79991         * modules/canonicalize, modules/euidaccess,
79992         modules/filemode, modules/lchown, modules/makepath,
79993         modules/rmdir, modules/stat: Likewise.
79994
79995 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79996
79997         Merge from tar.
79998         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79999         SIZE_MAX is a valid preprocessor constant.
80000         (__argp_basename): Change from "#ifndef _LIBC"
80001         to "#ifndef __argp_short_program_name", so that
80002         we don't compile these functions for tar.
80003
80004         More merges from coreutils.
80005         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80006         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80007         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80008         * lib/addext.c: Remove; no longer needed.
80009         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80010         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80011         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80012         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80013         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80014         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80015         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80016         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80017         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80018         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80019         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80020         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80021         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80022         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80023         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80024         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80025         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80026         Import changes from coreutils.
80027
80028 2004-08-05  Simon Josefsson  <jas@extundo.com>
80029
80030         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80031
80032 2004-08-05  Simon Josefsson  <jas@extundo.com>
80033
80034         * m4/getsubopt.m4: New file.
80035
80036 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80037
80038         Merge from coreutils.
80039
80040         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80041         * m4/getcwd-path-max.m4: New files.
80042
80043         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80044         FILESYSTEM_PREFIX_LEN ->
80045         FILE_SYSTEM_PREFIX_LEN.
80046         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80047         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80048         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80049         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80050
80051         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80052         prerequisite modules now handle the DOS stuff.
80053         Don't check for unistd.h.
80054
80055 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80056
80057         Merge from coreutils.
80058
80059         * lib/.gdb-history: Remove; this doesn't belong here.
80060
80061         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80062         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80063         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80064         * lib/getcwd.c: New files.
80065
80066         * lib/dirname.h: Include <stdbool.h>.
80067         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80068         for consistency with POSIX terminology.  All uses changed.
80069         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80070         (strip_trailing_slashes): Use bool for booleans.
80071         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80072
80073         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80074         sometimes returns a positive errno value even when it succeeds.
80075         (print_errno_message) [!LIBC]: Fall back on strerror if
80076         __strerror_r fails.
80077
80078         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80079         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80080         (longest_relative_suffix): New function.
80081         (path_concat): Use it.  Assume first argument is not NULL.
80082         Port to DOS.  Omit redundant separators.
80083         Report an error instead of returning NULL.
80084         Use mempcpy instead of memcpy.
80085         (xpath_concat): Remove: not declared or used.
80086
80087         * lib/same.h: Include <stdbool.h>
80088         (same_name): Return bool, not int.
80089         * lib/same.c (same_name): Likewise.
80090         (errno): Don't declare; we assume C89 or better now.
80091
80092         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80093         if not already defined.
80094
80095         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80096         * lib/dup-safer.c (errno): Likewise.
80097
80098 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80099
80100         Merge from coreutils.
80101         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80102         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80103         * modules/path-concat: Don't depend on strdup.
80104
80105 2004-08-03  Simon Josefsson  <jas@extundo.com>
80106
80107         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80108         * lib/progname.h: Don't include stdbool.h.
80109
80110 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80111
80112         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80113         * MODULES.html.sh (func_all_modules): Remove fatal.
80114
80115 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80116
80117         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80118
80119 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80120
80121         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80122         working.
80123
80124 2004-08-02  Simon Josefsson  <jas@extundo.com>
80125
80126         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80127         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80128         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80129
80130 2004-08-01  Simon Josefsson  <jas@extundo.com>
80131
80132         * lib/xgetdomainname.c: Include stdlib.h, for free().
80133
80134 2004-07-19  Bruno Haible  <bruno@clisp.org>
80135
80136         * MODULES.html.sh (func_all_modules): Add dummy.
80137
80138 2004-07-16  Simon Josefsson  <jas@extundo.com>
80139
80140         * modules/dummy: New file.
80141
80142 2004-07-16  Simon Josefsson  <jas@extundo.com>
80143
80144         * lib/dummy.c: New file.
80145
80146 2004-07-16  Bruno Haible  <bruno@clisp.org>
80147
80148         * lib/backupfile.h: Add extern "C" for C++.
80149         * lib/closeout.h: Likewise.
80150         * lib/copy-file.h: Likewise.
80151         * lib/findprog.h: Likewise.
80152         * lib/full-write.h: Likewise.
80153         * lib/pathname.h: Likewise.
80154         * lib/progname.h: Likewise.
80155         * lib/stpcpy.h: Likewise.
80156         * lib/stpncpy.h: Likewise.
80157         * lib/strcase.h: Likewise.
80158         * lib/strstr.h: Likewise.
80159         * lib/xalloc.h: Likewise.
80160
80161         * lib/mbswidth.h: Add extern "C" for C++.
80162         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80163
80164 2004-07-13  Robert Millan  <robertmh@gnu.org>
80165
80166         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80167
80168 2004-07-09  Simon Josefsson  <jas@extundo.com>
80169
80170         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80171         failed without this.)
80172
80173 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80174
80175         * modules/chown (Files): Add lib/fchown-stub.c, since
80176         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80177
80178 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80179
80180         * lib/fchown-stub.c: New file.
80181
80182 2004-06-24  Jim Meyering  <jim@meyering.net>
80183
80184         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80185
80186 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80187
80188         * modules/argz: Omit "#include".
80189
80190         * MODULES.html.sh (func_all_modules): Add calloc, to match
80191         2004-06-01 addition of calloc module.
80192
80193 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80194
80195         * m4/argz.m4: New file, which is autoupdated from libtool.
80196
80197 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80198
80199         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80200         libtool.
80201
80202 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80203
80204         * config/srclist-update: Don't insist on "USA." before the
80205         close-comment, as libtool omits the period and puts the */ on a
80206         separate line.
80207         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80208         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80209
80210 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80211
80212         * modules/argz: New file.
80213         * MODULES.html.sh (func_all_modules): Add argz.
80214
80215 2004-06-12  Jim Meyering  <jim@meyering.net>
80216         and  Paul Eggert  <eggert@cs.ucla.edu>
80217
80218         * modules/hash (Files): Add lib/xalloc.h.
80219         * modules/pipe (Depends-on): Add wait-process.
80220         * modules/stat (Depends-on): Add xalloc.
80221         * modules/userspec (Files): Add lib/userspec.h.
80222         * modules/xstrto
80223
80224         Upgrade from gettext-0.13.
80225         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80226         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80227         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80228
80229 2004-06-10  Jim Meyering  <jim@meyering.net>
80230
80231         * lib/calloc.c: New file.
80232
80233 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80234
80235         * lib/getdate.y (yylex): Allow space between sign and number.
80236         Problem reported by Dan Jacobson.
80237
80238 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80239
80240         Merge from coreutils CVS.
80241
80242         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80243         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80244         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80245         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80246         xstrtol.m4: Fix copyright date and/or serial number.
80247
80248         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80249         See if we need an fchown replacement.
80250         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80251         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80252         and use the replacement function if we detect either defect.
80253
80254         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80255         gl_UTIMECMP.
80256
80257 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80258         and  Jim Meyering  <jim@meyering.net>
80259
80260         Merge from coreutils CVS.
80261
80262         * lib/stat-macros.h: New file, with contents from file-type.h
80263         and coreutils' system.h.
80264         * lib/file-type.c: Include "stat-macros.h".
80265         * lib/file-type.h (file_type): Move all macro definitions to new file,
80266         stat-macros.h.
80267
80268         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80269         Wrap old code with this conditional.
80270         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80271         function that does not dereference symlinks.
80272         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80273
80274         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80275         dependency problems.
80276         (xreadlink): Accept new arg SIZE, for efficiency.
80277         All decls and uses changed.
80278         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80279
80280         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80281         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80282
80283         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80284         sysexits.h.
80285
80286 2004-06-01  Jim Meyering  <jim@meyering.net>
80287
80288         * m4/calloc.m4: New file.
80289
80290 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80291
80292         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80293         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80294         Also, fix a typo in a diagnostic.
80295
80296 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80297
80298         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80299         or AC_FUNC_REALLOC.
80300
80301 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80302
80303         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80304         macros to be defined.
80305         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80306         the allocator returns NULL because the requested size is zero.
80307
80308 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80309
80310         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80311         var.  Add comment explaining why libc still defines it.  This
80312         merges the following patch from glibc:
80313         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80314
80315 2004-05-20  Andreas Schwab  <schwab@suse.de>
80316
80317         * m4/free.m4: Replace free if it not known to work, not the other
80318         way round.
80319
80320 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80321
80322         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80323         present in glibc since revision 1.1 of this file.
80324         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80325         obstack_alignment_mask, obstack_alloc, obstack_base,
80326         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80327         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80328         obstack_grow0, obstack_init, obstack_int_grow,
80329         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80330         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80331         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80332         nonexistent functions.
80333
80334 2004-05-18  Karl Berry  <karl@gnu.org>
80335
80336         * config/srclist.txt: break link for vasnprintf.c.
80337
80338 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80339
80340         Port obstack to the AS/400, where pointers are 16 bytes wide and
80341         you cannot cast an integer to a valid pointer.  This patch is
80342         currently waiting to be integrated into glibc; see
80343         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80344
80345         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80346         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80347         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80348         (struct obstack): temp member is now a union of a pointer and
80349         an integer, instead of an integer.  All integer uses changed.
80350         This does not affect the physical layout of struct obstack,
80351         except on hosts (like the AS/400) where the size or alignment of
80352         void * is greater than that of ptrdiff_t.
80353         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80354         __STDC__)]: Store temporary in pointer member of union, not
80355         integer member.
80356         * lib/obstack.c: Include <stddef.h>, for offsetof.
80357         (struct fooalign): Remove; it doesn't need a name.
80358         (union fooround): Change double to long double, and add void *.
80359         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80360         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80361         not a macro.  Hence the values are always int; so remove all
80362         casts-to-int in uses.
80363
80364 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80365
80366         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80367         we can get this patch merged into glibc.
80368
80369 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80370             Paul Eggert  <eggert@cs.ucla.edu>
80371
80372         * m4/argp: Depend on alloca.
80373
80374 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80375             Paul Eggert  <eggert@cs.ucla.edu>
80376
80377         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80378         freecoding.
80379
80380 2004-05-17  Bruno Haible  <bruno@clisp.org>
80381
80382         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80383         precision that consists of a '.' followed by an empty digit string.
80384         Patch by Tor Lillqvist <tml@iki.fi>.
80385
80386 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80387
80388         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80389         for backward compatibility with older code.  We need our own
80390         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80391         it under some other name, and our alloca.h will define it.
80392
80393 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80394             Derek Price  <derek@ximbiot.com>
80395
80396         * lib/alloca.c: Include <alloca.h>, to get our interface.
80397         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80398         include <alloca.h> first.  Use C89 prototype for alloca; this
80399         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80400         Use #elif for simplicity, since we can assume C89 now.
80401         Don't try to source the system alloca.h since it will not be found
80402         and to prevent recursively including its replacement.
80403         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80404         * lib/regex.c: Likewise.
80405
80406 2004-05-16  Derek Price  <derek@ximbiot.com>
80407             Paul Eggert  <eggert@cs.ucla.edu>
80408
80409         getline cleanup.  This changes the getndelim2 API: both order of
80410         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80411         no delimiter).
80412
80413         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80414         interface does that.
80415         (getline): Always use getdelim, so that we don't have two
80416         copies of this code.
80417         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80418         if available.
80419         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80420         (GETNDELIM2_MAXIMUM): New macro.
80421         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80422         instead of the old practice of delim2==0.  All callers changed.
80423         Return -1 on overflow, instead of returning junk.
80424         Do not set *linesize unless allocation succeeds.
80425         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80426         that we include sys/types.h.
80427         * lib/getnline.h: Likewise.
80428         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80429         (getndelim2): Reorder arguments.
80430         * lib/getnline.c (getnline, getndelim):
80431         Don't discard the NMAX argument.
80432         (getnline): Invoke getndelim, to avoid code duplication.
80433         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80434         of (size_t) -1 by callers of the getnline family.
80435
80436 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80437
80438         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80439         Check for gettimeofday.
80440         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80441         Check for settimeofday, stime.
80442
80443 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80444
80445         * lib/nanosleep.c (suspended): Change its type from int to
80446         sig_atomic_t volatile.
80447         (first_call): Make it private to rpl_nanosleep, and have it
80448         be zero initially as that's a bit faster.
80449         (my_usleep): Round up fractional times instead of truncating them,
80450         as this is the usual meaning for 'sleep'.
80451
80452         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80453         doesn't work.
80454         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80455         (ENOSYS): Define if not defined.
80456         (settime): Fall back on stime if it exists and settimeofday fails.
80457         But don't bother with fallbacks if a method fails with errno == EPERM.
80458
80459 2004-05-11  Jim Meyering  <jim@meyering.net>
80460
80461         Prior to this change, the save_cwd caller required read access to the
80462         current directory on most systems (ones with the fchdir function).
80463
80464         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80465         fails, try write-only, and finally, resort to using xgetcwd.
80466
80467 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80468
80469         * lib/obstack.c, obstack.h: Import changes from libc.
80470
80471 2004-04-28  Bruno Haible  <bruno@clisp.org>
80472
80473         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80474         also implicitly appends .exe to executables.
80475         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80476         accepts Windows pathnames.
80477         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80478         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80479         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80480         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80481         Reported by Derek Robert Price <derek@ximbiot.com>.
80482
80483 2004-04-21  Karl Berry  <karl@gnu.org>
80484
80485         * config/srclist.txt (localcharset.c): break sync.
80486
80487 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80488
80489         * m4/host-os.m4: Add a copyright notice.
80490
80491 2004-04-20  Jim Meyering  <jim@meyering.net>
80492
80493         Change UTILS_ to gl_ in AC_DEFINE'd names.
80494         Change utils_- and jm_-prefixed variables, too.
80495         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80496         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80497         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80498
80499         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80500         Don't emit trailing blanks.
80501         Also rename jm_-prefixed variables to have gl_ prefix.
80502
80503         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80504         Also rename jm_-prefixed variables to have gl_ prefix.
80505
80506         * m4/jm-macros.m4: Reflect the renamings.
80507         * m4/prereq.m4: Likewise.
80508
80509 2004-04-20  Jim Meyering  <jim@meyering.net>
80510
80511         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80512         memory.
80513
80514 2004-04-20  Jim Meyering  <jim@meyering.net>
80515             Bruno Haible  <bruno@clisp.org>
80516
80517         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80518         memory when realloc fails.
80519
80520 2004-04-19  Jim Meyering  <jim@meyering.net>
80521
80522         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80523         now that readutmp.c may call `free (0)'.
80524
80525 2004-04-19  Bruno Haible  <bruno@clisp.org>
80526
80527         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80528         * m4/inttypes_h.m4: Likewise.
80529         * m4/stdint_h.m4: Likewise.
80530         * m4/intmax_t.m4: Likewise.
80531         * m4/uintmax_t.m4: Likewise.
80532
80533 2004-04-18  Jim Meyering  <jim@meyering.net>
80534
80535         * m4/prereq.m4: Don't forbid jm_ prefix.
80536
80537         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80538         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80539         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80540         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80541         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80542         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80543         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80544         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80545         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80546         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80547         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80548         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80549         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80550         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80551         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80552         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80553         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80554         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80555         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80556
80557 2004-04-18  Jim Meyering  <jim@meyering.net>
80558
80559         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80560         failure, don't leak memory and do call END_UTMP_ENT.
80561
80562 2004-04-16  Jim Meyering  <jim@meyering.net>
80563
80564         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80565         coreutils' stat program.
80566         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80567
80568 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80569
80570         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80571         C89.
80572         (CHAR_BIT): Remove, since we assume C89.
80573         Include <stdint.h> if available, as per current Autoconf CVS advice.
80574
80575 2004-03-31  Jim Meyering  <jim@meyering.net>
80576
80577         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80578         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80579         * m4/xalloc.m4: Likewise.
80580
80581 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80582
80583         Merge from coreutils.
80584
80585         * m4/inttostr.m4: New file.
80586         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80587         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80588         Require gl_CLOCK_TIME.
80589         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80590
80591 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80592
80593         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80594         not bool, to be more consistent with Unix conventions.
80595         Suggested by Bruno Haible.
80596
80597         Merge from coreutils.
80598
80599         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80600         * lib/umaxtostr.c: New files.
80601
80602         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80603         the usual <time.h> dance.
80604         (get_date): Change signature to support fractional time stamps.
80605         All callers changed.
80606         * lib/getdate.y: Include "getdate.h" first, as we can now
80607         assume C89 and don't need to worry about 'const'.
80608         Similarly, include "unlocked-io.h" near start, not in middle.
80609         Include <limits.h>.
80610         (textint.value): Use long int rather than int.
80611         (textint.digits): Use size_t rather than int.
80612         (BILLION, LOG10_BILLION): New constants.
80613         (parser_control): New member rel_ns.  Members day_ordinal,
80614         time_zone, month, day, hour, minutes, rel_year, rel_month,
80615         rel_day, rel_hour, rel_minutes, rel_seconds
80616         are now long int, not int.  Member seconds is now struct timespec,
80617         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80618         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80619         not int.
80620         (%union.intval): Now long int, not int.
80621         New member timespec.
80622         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80623         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80624         (spec): Now is a timespec or an item list.
80625         (timespec, items): New nonterminals.
80626         (time, rel, relunit, number, get_date):
80627         Add support for fractional seconds.
80628         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80629         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80630         (to_hour): First arg is now long int, not int.
80631         (to_year): Returns long int, not int.
80632         Don't treat year -70 like 70.
80633         (tm_diff): Returns long int, not int.
80634         (lookup_word): Use bool instead of int when appropriate.
80635         (yylex): Use size_t for count, not int.
80636         Detect overflow when parsing large integer constants.
80637         Add support for fractions.
80638         (get_date): Make pointers 'const' if possible.
80639         Use more-portable code to detect integer overflow.
80640         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80641         Don't use ctime; it's not reliable if the year has >4 digits.
80642
80643         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80644         This is for compatibility with BSD.
80645
80646         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80647         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80648         From coreutils' system.h.
80649
80650         * lib/userspec.c: Don't include "posixver.h".
80651         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80652         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80653         compatible extension.  Simplify code by removing a boolean int
80654         that was always nonzero if a string was nonnull.
80655
80656 2004-03-30  Jim Meyering  <jim@meyering.net>
80657
80658         Merge from coreutils.
80659
80660         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80661         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80662         on some systems one must include <grp.h> before it.
80663         Reported by Christian Krackowizer.
80664
80665 2004-03-30  Jim Meyering  <jim@meyering.net>
80666
80667         Merge from coreutils.
80668
80669         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80670
80671         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80672         an empty input stream.
80673
80674         * lib/readtokens.c: Include <stdbool.h>.
80675         (readtoken): Use `size_t' rather than int/long.
80676         All callers adjusted.
80677         Use `bool' rather than `int' where appropriate.
80678         Use memset rather than an explicit loop.
80679         Use x2nrealloc rather than xrealloc.
80680         Allow the use of `\0' as a delimiter.
80681         (readtokens): Likewise.
80682         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80683
80684 2004-03-30  Jim Meyering  <jim@meyering.net>
80685
80686         * m4/realloc.m4: Remove file, since now it does no more than
80687         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80688         the `configure.ac' section of module/realloc.
80689         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80690
80691 2004-03-30  Bruno Haible  <bruno@clisp.org>
80692
80693         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80694         nonnull.
80695
80696 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80697
80698         Merge changes to getloadavg.c from coreutils and Emacs.
80699
80700         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80701         Define to an expression, not to the empty string.
80702         Include cloexec.h and xalloc.h.
80703         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80704         Use set_cloexec_flag rather than rolling our own.
80705         * lib/cloexec.c, lib/cloexec.h: New files.
80706
80707 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80708
80709         * m4/cloexec.m4: New file.
80710
80711 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80712
80713         * lib/getopt.h: Sync with libc CVS.
80714
80715 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80716             Bruno Haible  <bruno@clisp.org>
80717
80718         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80719         mbswidth.
80720
80721 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80722             Bruno Haible  <bruno@clisp.org>
80723
80724         * lib/mbswidth.h: Include <wchar.h> only if
80725         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80726         <wchar.h>.
80727         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80728
80729 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80730
80731         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80732         Sync with libc CVS.
80733         * lib/getopt_int.h: New file, also synced from libc.
80734
80735 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80736
80737         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80738         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80739         Bring back getopt.c, getopt.h, getopt1.c.
80740
80741 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80742
80743         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80744         All uses changed.  Check for sa_sigaction member; this fixes
80745         a bug first reported by Jason Andrade in
80746         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80747
80748 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80749
80750         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80751         '#if' expressions.  Unlike the code it replaces, it does not
80752         depend on (defined _SC_PAGESIZE).  However, it does depend on
80753         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80754         first reported by Jason Andrade in
80755         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80756
80757 2004-02-25  Simon Josefsson  <jas@extundo.com>
80758
80759         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80760
80761 2004-02-25  Simon Josefsson  <jas@extundo.com>
80762
80763         * lib/strdup.h: New file.
80764         * lib/strdup.c: Include it.
80765         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80766         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80767
80768 2004-02-23  Karl Berry  <karl@gnu.org>
80769
80770         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80771         (from fencepost.gnu.org:/gd/gnuorg).
80772
80773 2004-02-23  Karl Berry  <karl@gnu.org>
80774
80775         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80776         * config/srclist.txt: add maintain/standards documents.
80777
80778 2004-02-18  Bruno Haible  <bruno@clisp.org>
80779
80780         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80781         Reported by Derek Robert Price <derek@ximbiot.com>.
80782
80783 2004-02-16  Karl Berry  <karl@gnu.org>
80784
80785         * config/mkinstalldirs, install-sh: update from automake.
80786
80787 2004-02-06  Karl Berry  <karl@gnu.org>
80788
80789         * m4/po.m4: update from gettext 0.14.1.
80790
80791 2004-02-06  Karl Berry  <karl@gnu.org>
80792
80793         * lib/config.charset: update from gettext 0.14.1.
80794
80795 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80796
80797         Add comments and code, prompted by suggestions from Bruno Haible
80798         for sh-quote.
80799         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80800         describing the enum quoting_style values.
80801         * lib/quotearg.c (quotearg_alloc): New function.
80802         (quotearg_buffer_restyled): Treat lone { and } as special.
80803         Treat = as special.  Work around bug with older shells
80804         that "see" a '\' that is really the 2nd byte of a multibyte char.
80805         Quote empty string with shell_quoting_style.
80806
80807 2004-02-03  Bruno Haible  <bruno@clisp.org>
80808
80809         * m4/pipe.m4: New file, from GNU gettext.
80810
80811 2004-02-03  Bruno Haible  <bruno@clisp.org>
80812
80813         * lib/pipe.h: New file, from GNU gettext.
80814         * lib/pipe.c: New file, from GNU gettext.
80815
80816 2004-01-27  Bruno Haible  <bruno@clisp.org>
80817
80818         * m4/execute.m4: New file, from GNU gettext.
80819
80820 2004-01-27  Bruno Haible  <bruno@clisp.org>
80821
80822         * lib/execute.h: New file, from GNU gettext.
80823         * lib/execute.c: New file, from GNU gettext.
80824         * lib/w32spawn.h: New file, from GNU gettext.
80825
80826 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80827
80828         Merge from diffutils.
80829
80830         * lib/file-type.c (file_type): Add typed memory objects.
80831         * lib/file-type.h (S_TYPEISTMO): New macro.
80832
80833         * lib/c-stack.h (c_stack_action): Remove argv argument.
80834         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80835         (die): Don't calculate message unless segv_action returns.
80836         (get_stack_location, min_address_from_argv, max_address_from_argv,
80837         volatile stack_base, volatile_stack_size): Remove.
80838         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80839         that every segmentation violation is a stack overflow.  (Ouch!)
80840         See Debian bug 136249 (still outstanding) for more info about why
80841         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80842
80843 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80844
80845         Exit-status fix from coreutils.
80846
80847         Use exit_failure consistently in place of EXIT_FAILURE,
80848         so that program exit statuses are consistent on failure.
80849
80850         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80851         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80852         * lib/argmatch.h: Comment fix to match the above.
80853         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80854         Now a macro referring to exit_failure, instead of a separate
80855         variable.  Include "exitfail.h" to get it.
80856         * lib/xstrtol.h: Include "exitfail.h".
80857         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80858
80859         * lib/long-options.c (parse_long_options): Use prototype
80860         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80861         for clarity.
80862
80863 2004-01-21  Jim Meyering  <jim@meyering.net>
80864
80865         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80866         so as not to conflict with a different-sized __mktime_internal
80867         function in GNU libc.
80868         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80869         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80870
80871 2004-01-20  Karl Berry  <karl@gnu.org>
80872
80873         * config/config.guess: update from config.
80874
80875         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80876
80877 2004-01-20  Bruno Haible  <bruno@clisp.org>
80878
80879         Safer stack allocation.
80880         * lib/setenv.c: Include allocsa.h.
80881         (alloca): Remove fallback definition.
80882         (freea): Remove macro.
80883         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80884         instead of freea.
80885
80886 2004-01-20  Bruno Haible  <bruno@clisp.org>
80887
80888         * m4/eealloc.m4: New file, from GNU gettext.
80889
80890 2004-01-20  Bruno Haible  <bruno@clisp.org>
80891
80892         * m4/allocsa.m4: New file, from GNU gettext.
80893
80894 2004-01-20  Bruno Haible  <bruno@clisp.org>
80895
80896         * lib/xallocsa.h: New file, from GNU gettext.
80897         * lib/xallocsa.c: New file, from GNU gettext.
80898
80899 2004-01-20  Bruno Haible  <bruno@clisp.org>
80900
80901         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80902
80903 2004-01-20  Bruno Haible  <bruno@clisp.org>
80904
80905         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80906         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80907         specially.
80908
80909 2004-01-20  Bruno Haible  <bruno@clisp.org>
80910
80911         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80912         patch.
80913
80914 2004-01-20  Bruno Haible  <bruno@clisp.org>
80915
80916         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80917
80918 2004-01-20  Bruno Haible  <bruno@clisp.org>
80919
80920         * lib/eealloc.h: New file.
80921
80922 2004-01-20  Bruno Haible  <bruno@clisp.org>
80923
80924         * lib/binary-io.h: Avoid warnings on Cygwin.
80925
80926 2004-01-20  Bruno Haible  <bruno@clisp.org>
80927
80928         * lib/allocsa.h: New file, from GNU gettext.
80929         * lib/allocsa.c: New file, from GNU gettext.
80930
80931 2004-01-18  Karl Berry  <karl@gnu.org>
80932
80933         * doc/gpl.texi, doc/lgpl.texi: new files.
80934
80935 2004-01-18  Karl Berry  <karl@gnu.org>
80936
80937         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80938         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80939
80940 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80941
80942         Merge from coreutils.
80943
80944         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80945         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80946         (gl_DEFAULT_POSIX2_VERSION): Move
80947         the documentation from 'configure' into 'config.hin',
80948         so that 'configure --help' isn't burdened by it and
80949         we don't have to worry about its formatting there.
80950         Reword the documentation so that it's more succinct
80951         and can be run together into a single paragraph.
80952         * m4/same.m4 (gl_SAME): Check for pathconf.
80953
80954 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80955
80956         Merge from coreutils.
80957
80958         * lib/posixver.c: Include posixver.h.
80959
80960         * lib/same.c: Include <stdbool.h>, <limits.h>.
80961         (_POSIX_NAME_MAX): Define if not defined.
80962         (MIN): New macro.
80963         (same_name): If file names are silently truncated, report
80964         that the file names are the same if they are the same after
80965         the silent truncation.
80966
80967         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80968         conversion function.
80969         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80970         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80971         longer needed.
80972
80973 2004-01-15  Jim Meyering  <jim@meyering.net>
80974
80975         Merge from coreutils.
80976
80977         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80978         if no library is required.
80979         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80980         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80981         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80982         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80983         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80984         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80985         value, $ac_cv_search_crypt, if it's "none required".
80986         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80987         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80988         not gl_FUNC_GETLOADAVG.
80989         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80990         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80991
80992 2004-01-15  Jim Meyering  <jim@meyering.net>
80993
80994         Merge from coreutils.
80995
80996         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80997         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80998         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80999
81000         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81001         optional configure-time default.
81002
81003         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81004
81005         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81006
81007 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81008
81009         Merge from coreutils.
81010
81011         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81012         value, $ac_cv_search_nanosleep, if it's "none required".
81013
81014 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81015
81016         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81017         with like-named macro in fnmatch.c.
81018         (EXT): Use an internal constant instead.
81019
81020         Merge fnmatch patches from glibc.
81021         * lib/fnmatch.c (mbsinit): Remove define.
81022         Add libc_hidden_ver (__fnmatch, fnmatch).
81023         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81024         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81025
81026 2004-01-14  Karl Berry  <karl@gnu.org>
81027
81028         * config/install-sh: update from automake.
81029
81030 2004-01-13  Karl Berry  <karl@gnu.org>
81031
81032         * config/install-sh: update from automake.
81033
81034 2004-01-09  Karl Berry  <karl@gnu.org>
81035
81036         * config/install-sh: update from automake.
81037
81038 2004-01-05  Karl Berry  <karl@gnu.org>
81039
81040         * config/config.{sub,guess}: update from config.
81041
81042 2003-12-31  Karl Berry  <karl@gnu.org>
81043
81044         * config/depcomp: update from automake.
81045
81046 2003-12-14  Karl Berry  <karl@gnu.org>
81047
81048         * lib/config.charset: update from gettext-runtime.
81049
81050 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81051
81052         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81053         Bug reported by Alfred M. Szmidt.
81054
81055 2003-12-03  Bruno Haible  <bruno@clisp.org>
81056
81057         * m4/gettext.m4: Upgrade from gettext-0.13.
81058         * m4/po.m4: Upgrade from gettext-0.13.
81059         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81060         * m4/intmax.m4: New file, from gettext-0.13.
81061         * m4/printf-posix.m4: New file, from gettext-0.13.
81062
81063 2003-11-29  Karl Berry  <karl@gnu.org>
81064
81065         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81066
81067 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81068             Bruno Haible  <bruno@clisp.org>
81069
81070         * lib/printf-parse.h: Don't include sys/types.h.
81071         (ARG_NONE): New macro.
81072         (char_directive): Change type of *arg_index fields to size_t.
81073         * lib/printf-parse.c: Don't include sys/types.h.
81074         (SSIZE_MAX): Remove macro.
81075         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81076         Remove unnecessary overflow check.
81077         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81078         fields.
81079
81080 2003-11-25  Bruno Haible  <bruno@clisp.org>
81081
81082         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81083
81084 2003-11-25  Bruno Haible  <bruno@clisp.org>
81085
81086         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81087         gt_TYPE_SSIZE_T.
81088
81089 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81090
81091         * modules/alloca: Remove dependency on xalloc.
81092
81093 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81094
81095         * lib/alloca.c: Remove dependency on xalloc module.
81096         (xalloc_die): Remove.
81097         (memory_full) [!defined emacs]: New macro.
81098         [!defined emacs]: Don't include xalloc.h.
81099         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81100         address arithmetic overflows.  Change datatypes a bit to avoid
81101         unnecessary casts.
81102
81103 2003-11-22  Jim Meyering  <jim@meyering.net>
81104
81105         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81106         s/size/size_t/.
81107
81108 2003-11-21  Karl Berry  <karl@gnu.org>
81109
81110         * config/config.{sub,guess}: update from config.
81111
81112 2003-11-18  Karl Berry  <karl@gnu.org>
81113
81114         * config/config.{sub,guess}: update from config.
81115
81116         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81117
81118 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81119
81120         * README: Mention that S+T cannot overflow if S is the size of
81121         an existing object and T is sufficiently small.
81122
81123 2003-11-17  Jim Meyering  <jim@meyering.net>
81124
81125         On systems without utime and without a utimes function capable of
81126         dealing with a NULL struct utimbuf* argument, this utime replacement
81127         could -- in unusual circumstances -- leak a file descriptor.
81128         * lib/utime.c: Include <unistd.h> and <errno.h>.
81129         (utime_null): Be sure to close `fd' and to preserve errno.
81130         Reported by Geoff Collyer via Arnold Robbins.
81131
81132 2003-11-17  Bruno Haible  <bruno@clisp.org>
81133
81134         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81135         (Depends-on): Add xsize.
81136
81137 2003-11-17  Bruno Haible  <bruno@clisp.org>
81138
81139         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81140
81141 2003-11-17  Bruno Haible  <bruno@clisp.org>
81142
81143         * lib/vasnprintf.c (alloca): Remove fallback definition.
81144         (freea): Remove definition.
81145         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81146         Reported by Paul Eggert.
81147
81148 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81149             Bruno Haible  <bruno@clisp.org>
81150
81151         Protect against address arithmetic overflow.
81152         * lib/printf-args.h: Include stddef.h.
81153         (arguments): Change type of field 'count' to size_t.
81154         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81155         'unsigned int' where appropriate.
81156         * lib/printf-parse.h: Include sys/types.h.
81157         (char_directive): Change type of *arg_index fields to ssize_t.
81158         (char_directives): Change type of fields 'count', max_*_length to
81159         size_t.
81160         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81161         (SSIZE_MAX): Define fallback value.
81162         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81163         instead of 'int' where appropriate. Check a_allocated, d_allocated
81164         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81165         * lib/vasnprintf.c: Include xsize.h.
81166         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81167         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81168         overflow. Avoid wraparound when converting a width or precision from
81169         decimal to binary.
81170
81171 2003-11-16  Bruno Haible  <bruno@clisp.org>
81172
81173         Update from GNU gettext.
81174         * lib/printf-parse.c: Generalize to it can be compiled for wide
81175         strings.
81176         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81177         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81178         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81179         SNPRINTF): New macros.
81180         Don't include <alloca.h> if the file is used inside libintl.
81181         (local_wcslen): New function, for Solaris 2.5.1.
81182         (VASNPRINTF): Use it instead of wcslen.
81183
81184 2003-11-16  Bruno Haible  <bruno@clisp.org>
81185
81186         * lib/xsize.h (xmax): New function.
81187         (xsum, xsum3, xsum4): Declare as "pure" functions.
81188
81189 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81190
81191         * modules/xalloc (Files): Undo latest change, since xalloc.h
81192         no longer needs SIZE_MAX or PTRDIFF_MAX.
81193
81194 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81195
81196         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81197         gl_PTRDIFF_MAX.
81198
81199 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81200
81201         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81202         "return", to pacify some unknown compiler.  Problem reported
81203         by Joerg Schilling.
81204
81205 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81206
81207         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81208         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81209         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81210         heuristic is just as accurate as far as we know, and it removes a
81211         dependency on size_max.m4 and ptrdiff_max.m4.
81212
81213 2003-11-11  Bruno Haible  <bruno@clisp.org>
81214
81215         * modules/xsize (Files): Add m4/size_max.m4.
81216         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81217
81218 2003-11-11  Bruno Haible  <bruno@clisp.org>
81219
81220         * m4/size_max.m4: New file.
81221         * m4/ptrdiff_max.m4: New file.
81222         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81223         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81224         (gl_XALLOC): Invoke it.
81225
81226 2003-11-11  Bruno Haible  <bruno@clisp.org>
81227
81228         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81229         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81230         defined.
81231
81232 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81233
81234         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81235         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81236         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81237         From Bruno Haible.
81238         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81239         not (size_t) -1, since it's defined here.
81240
81241 2003-11-09  Karl Berry  <karl@gnu.org>
81242
81243         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81244
81245 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81246
81247         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81248         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81249         Reject sizes of exactly SIZE_MAX bytes.
81250         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81251         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81252
81253 2003-11-05  Bruno Haible  <bruno@clisp.org>
81254
81255         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81256         SIZE_MAX defined in <limits.h> on Solaris.
81257
81258 2003-11-04  Jim Meyering  <jim@meyering.net>
81259
81260         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81261         variable names, rather than @VAR@.
81262         * modules/poll: Likewise.
81263
81264 2003-11-04  Bruno Haible  <bruno@clisp.org>
81265
81266         * modules/xsize: New file.
81267         * modules/linebreak: Depend on xsize.
81268         * MODULES.html.sh (func_all_modules): Add xsize.
81269
81270 2003-11-04  Bruno Haible  <bruno@clisp.org>
81271
81272         * m4/xsize.m4: New file.
81273
81274 2003-11-04  Bruno Haible  <bruno@clisp.org>
81275
81276         * lib/xsize.h: New file.
81277         * lib/linebreak.c: Include xsize.h.
81278         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81279         argument for overflow.
81280         Suggested by Paul Eggert.
81281
81282 2003-11-03  Karl Berry  <karl@gnu.org>
81283
81284         * config/config.{guess,sub}: update from config.
81285
81286 2003-11-03  Jim Meyering  <jim@meyering.net>
81287
81288         * modules/userspec (lib_SOURCES): Add userspec.h.
81289         (Include): Add "userspec.h".
81290         Improve description.
81291
81292 2003-11-03  Jim Meyering  <jim@meyering.net>
81293
81294         * lib/userspec.c: Include "userspec.h".
81295         * lib/userspec.h: New file.
81296
81297 2003-11-03  Bruno Haible  <bruno@clisp.org>
81298
81299         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81300
81301 2003-11-03  Bruno Haible  <bruno@clisp.org>
81302
81303         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81304         available, to avoid (extremely rare) race condition.
81305         Suggested by Paul Eggert.
81306
81307 2003-11-02  Karl Berry  <karl@gnu.org>
81308
81309         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81310
81311 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81312
81313         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81314         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81315         (read_filesystem_list): Set and use me_type_malloced.
81316         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81317         whatever the type happens to be), for brevity and consistency.
81318         Check for size calculation overflow on Alphas running OSF/1.
81319
81320 2003-10-31  Jim Meyering  <jim@meyering.net>
81321
81322         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81323
81324         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81325
81326 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81327             Bruno Haible  <bruno@clisp.org>
81328
81329         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81330         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81331
81332 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81333
81334         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81335         netbsd*-gnu*.  Suggested by Robert Millan.
81336
81337 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81338
81339         * modules/group-member: Depend on stdbool.
81340
81341 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81342
81343         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81344
81345 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81346
81347         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81348         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81349         after the 'gnu' in these cases.  This fixes some bugs in the
81350         previous change, and is based on suggestions by Robert Millan.
81351
81352 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81353
81354         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81355         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81356         no longer needed.
81357         * lib/quotearg.c (quotearg_n_options): Use it.
81358         * lib/group-member.c: Include <stdbool.h>.
81359         (free_group_info): Arg is now const *; don't free arg.
81360         (get_group_info): Now returns bool and accepts struct group_info *,
81361         rather than returning a malloc'ed struct group_info *.
81362         All uses changed.  Check for overflow in internal size calculation.
81363
81364         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81365         rather than xmalloc/xrealloc.
81366         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81367         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81368         conformance bug: the old code used a pointer after freeing the
81369         storage that it addressed.
81370         * lib/hash.c (hash_initialize): Simplify the code by using
81371         xalloc_oversized rather than doing it by hand.
81372         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81373         the buffer preserved.  Use free and xmalloc instead.
81374         * lib/quotearg.c (quotearg_n_options): Likewise.
81375         Use a simpler test for size overflow.  Don't use xalloc_oversized
81376         because unsigned int might be wider than size_t (!); this suggests
81377         that we should switch from unsigned int to size_t for slot numbers.
81378
81379 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81380
81381         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81382         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81383         NetBSD kernels.  Requested by Richard Stallman.
81384
81385 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81386
81387         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81388         to allocate the returned structure.  Do not allocate a subarray,
81389         as x2nrealloc will do that.
81390         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81391         instead of xnrealloc.
81392         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81393
81394 2003-10-27  Bruno Haible  <bruno@clisp.org>
81395
81396         * lib/stdbool_.h: Better support for BeOS.
81397
81398 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81399
81400         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81401         now uses inline.
81402
81403 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81404
81405         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81406         callers that want to do their own size-overflow checking.  Include
81407         <stdbool.h>, since xalloc_oversized returns bool.
81408         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81409         to use xalloc_oversized.
81410
81411         Add two functions x2realloc, x2nrealloc, for programs that grow
81412         arrays dynamically by doubling their sizes.
81413         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81414         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81415         New functions.
81416
81417         Port to C99 semantics for 'inline' of external functions.
81418         Bug reported by Bruno Haible.
81419         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81420         with the old contents of xnmalloc.
81421         (xnmalloc, xmalloc): Use it.
81422         (xnrealloc_inline): New static inline function,
81423         with the old contents of xnrealloc.
81424         (xnrealloc, xrealloc): Use it.
81425
81426         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81427         that.
81428
81429 2003-10-26  Karl Berry  <karl@gnu.org>
81430
81431         * config/srclist.txt (COPYING.DOC): no longer available from
81432         /gd/gnuorg; don't know where the ultimate source is.
81433
81434 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81435
81436         Fix several address-calculation bugs in the hash modules,
81437         plus some minor code cleanup.
81438
81439         * lib/hash.h: Include <stdbool.h>, for bool.
81440         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81441         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81442         hash_get_n_entries, hash_get_max_bucket_length,
81443         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81444         hash_rehash): Use size_t rather than unsigned.
81445         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81446         hash_get_n_buckets_used, hash_get_n_entries,
81447         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81448         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81449         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81450         Likewise.
81451         (SIZE_MAX): Define if not defined.
81452         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81453         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81454         hash_print):
81455         Use const * when possible.
81456         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81457         (check_tuning): Fix bug: if tuning parameters were very close to
81458         0 or 1, rounding errors could have caused subscript violations.
81459         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81460         (hash_initialize): Add 'fail:' label
81461         to free table and return NULL, and use it to simplify code.
81462         Use calloc rather than clearing the storage ourself.
81463         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81464         buffer size calculations.
81465         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81466         Include <stddef.h>, for size_t.
81467         * lib/hash-pjw.c (hash_pjw): Likewise.
81468         Switch to method described by Bruno Haible.
81469         Include <limits.h>, for CHAR_BIT.
81470         (SIZE_BITS): New macro.
81471
81472 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81473
81474         * m4/getline.m4 (AM_FUNC_GETLINE):
81475         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81476         hosts.  Problem reported by Derek Robert Price in
81477         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81478         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81479         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81480
81481 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81482
81483         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81484         ceiling the allocation at NMAX bytes rather than silently
81485         discarding input bytes before NMAX is reached.  This makes
81486         a difference only if NMAX exceeds SIZE_MAX / 2.
81487
81488         * lib/obstack.c: Merge from glibc.
81489         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81490         Add libc_hidden_def (_obstack_newchunk).
81491         (_obstack_free) [! defined _LIBC]: Remove.
81492         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81493         a clone of the function body.
81494         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81495         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81496
81497         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81498         glibc.
81499         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81500         arg to memcpy.
81501
81502         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81503         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81504         Don't use lvalue casts, as GCC plans to remove support for them
81505         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81506         was also present in the non-GCC version, indicating that this
81507         code had always been buggy and had never been widely used.
81508         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81509         Use the fast variant of each macro, rather than copying the
81510         definiens of the fast variant; that way, we'll be more likely to
81511         catch future bugs in the fast variants.
81512
81513 2003-10-20  Bruno Haible  <bruno@clisp.org>
81514
81515         * modules/wait-process: New file.
81516         * MODULES.html.sh (func_all_modules): Add wait-process.
81517
81518 2003-10-20  Bruno Haible  <bruno@clisp.org>
81519
81520         * m4/wait-process.m4: New file.
81521
81522 2003-10-20  Bruno Haible  <bruno@clisp.org>
81523
81524         * lib/wait-process.h: New file, from GNU gettext.
81525         * lib/wait-process.c: New file, from GNU gettext.
81526
81527 2003-10-19  Jim Meyering  <jim@meyering.net>
81528
81529         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81530         HPUX 10.20.
81531
81532 2003-10-18  Karl Berry  <karl@gnu.org>
81533
81534         * config/config.guess: update from config.
81535
81536 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81537
81538         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81539         (getgroups): First arg is int, not size_t.
81540         Don't let 'free' mangle errno.
81541
81542 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81543
81544         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81545
81546 2003-10-16  Karl Berry  <karl@gnu.org>
81547
81548         * config/config.{guess,sub}: update from config.
81549
81550 2003-10-16  Jim Meyering  <jim@meyering.net>
81551
81552         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81553         memcpy.
81554
81555 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81556
81557         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81558         (SIZE_MAX): Remove.
81559         (new_exclude, add_exclude_file): Initial size no longer needs to
81560         be a power of 2.
81561         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81562         our own address arithmetic overflow checking.
81563
81564         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81565         (fnmatch): Do not alloca more than 2000 wide characters;
81566         instead, use malloc for large buffers.
81567         Check for address arithmetic overflow, and return -1
81568         with errno set to ENOMEM in that case.
81569         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81570         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81571         instead, return -1.  Check for address arithmetic overflow.
81572
81573 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81574
81575         Handle invalid suffixes and overflow independently, so that
81576         callers can treat them independently as needed.  Fix some bugs in
81577         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81578         suffix for a human-readable blocksize.  The major caller-visible
81579         change is the addition of a new
81580         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81581         that both overflow and suffix chars were found.
81582
81583         * lib/human.c (humblock): Don't check separately for invalid suffix
81584         char; that is xstrtoumax's job (now that its bug is fixed).
81585         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81586         INTMAX_MAX]: New macros.
81587         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81588         TYPE_MAXIMUM): New macros.
81589         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81590         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81591         if overflow occurs, as it's what __strtol does and it's more useful
81592         in practice.
81593         (__xstrtol): If __strtol reports some error other than ERANGE,
81594         reflect it to the caller as LONGINT_INVALID.  If it reports
81595         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81596         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81597         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81598         value.
81599         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81600         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81601         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81602         [defined UINTMAX_MAX]: New macros.
81603
81604 2003-10-14  Bruno Haible  <bruno@clisp.org>
81605
81606         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81607
81608 2003-10-14  Bruno Haible  <bruno@clisp.org>
81609
81610         * m4/sig_atomic_t: New file, from GNU gettext.
81611         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81612
81613 2003-10-14  Bruno Haible  <bruno@clisp.org>
81614
81615         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81616         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81617         Also use volatile where needed.
81618
81619 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81620
81621         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81622         Change maintainer from Bruno Haible to 'all'.
81623
81624 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81625
81626         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81627
81628 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81629
81630         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81631         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81632         and define in terms of the other primitives.
81633         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81634         (SIZE_MAX): Define if not already defined.
81635         (array_size_overflow): New function.
81636         (xalloc_die): Abort instead of exiting if 'error' returns.
81637         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81638         (xmalloc, xrealloc): Use them.
81639         (xcalloc): Check for address arithmetic overflow.
81640         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81641         a bit faster than strcpy.
81642
81643 2003-10-10  Simon Josefsson  <jas@extundo.com>
81644
81645         * modules/argp (Depends-on): Add restrict and strcase.
81646
81647 2003-10-10  Simon Josefsson  <jas@extundo.com>
81648
81649         * m4/argp.m4: Add AC_C_INLINE.
81650
81651 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81652
81653         Merge getpass from libc, plus a few fixes.
81654
81655         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81656         Include <stdbool.h>.
81657         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81658         __fsetlocking to empty.
81659         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81660         do include <bits/libc-lock.h>.
81661         Do not include <fcntl.h>; not needed.
81662         [_LIBC]: Include <wchar.h>.
81663         (NOTCANCEL_MODE): New macro.
81664         (flockfile, funlockfile) [_LIBC]: New macros.
81665         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81666         [!_LIBC]: New macros.
81667         (call_fclose): New function.
81668         (getpass): Use it.  Save tty stream separately; this simplifies the
81669         code and makes it more reliable if stdin happens to equal stdout.
81670         Invoke __fsetlocking on tty.
81671         Handle thread cancellation if needed.
81672         Namespace cleanup (use __tcgetattr, __getline).
81673         Use bool for Booleans.
81674         [USE_IN_LIBIO]: Handle wide streams.
81675         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81676         stream might go where.
81677
81678         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81679         doesn't have to include <stdio.h> before us.
81680         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81681         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81682         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81683         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81684         if not declared, so that we can use getpass.c code from libc without
81685         rewriting it.
81686         (flockfile, ftrylockfile, funlockfile): New macros.
81687
81688 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81689
81690         * modules/getpass: Depend on stdbool.
81691
81692 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81693
81694         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81695
81696 2003-10-07  Karl Berry  <karl@gnu.org>
81697
81698         * config/config.{guess,sub}: update from config.
81699
81700 2003-10-06  Jim Meyering  <jim@meyering.net>
81701             Bruno Haible  <bruno@clisp.org>
81702
81703         This lets translators provide better translations for the
81704         "Written by ..." part of --version output.
81705         * lib/version-etc.h: Include stdarg.h.
81706         (version_etc_copyright): Declare as readonly.
81707         (version_etc): Make this function variadic with a NULL-terminated list
81708         of author name strings.
81709         (version_etc_va): New declaration.
81710         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81711         (version_etc_copyright): Declare as readonly.
81712         (version_etc_va): New function. Provide a different translatable string
81713         for each possible number of authors < 10. Abbreviate when there are 10
81714         authors or more.
81715         (version_etc): Make this function variadic. Call version_etc_va.
81716         Suggestion from Gary V. Vaughan.
81717
81718         * lib/long-options.h (parse_long_options): Change prototype: the
81719         authors string is moved to the end and becomes variadic.
81720         * lib/long-options.c: Include stdarg.h.
81721         (parse_long_options): Make this function variadic, too.
81722         Call version_etc_va, not version_etc.
81723
81724 2003-10-06  Bruno Haible  <bruno@clisp.org>
81725
81726         * modules/version-etc-2: Remove file.
81727         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81728
81729 2003-10-06  Bruno Haible  <bruno@clisp.org>
81730
81731         * modules/fatal-signal: New file.
81732         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81733
81734 2003-10-06  Bruno Haible  <bruno@clisp.org>
81735
81736         * m4/fatal-signal.m4: New file.
81737         * m4/signalblocking.m4: New file, from GNU gettext.
81738
81739 2003-10-06  Bruno Haible  <bruno@clisp.org>
81740
81741         * lib/version-etc-2.h: Remove file.
81742         * lib/version-etc-2.c: Remove file.
81743
81744 2003-10-06  Bruno Haible  <bruno@clisp.org>
81745
81746         * lib/fatal-signal.h: New file, from GNU gettext.
81747         * lib/fatal-signal.c: New file, from GNU gettext.
81748
81749 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81750
81751         * README: Rework advice for preventing empty .o files.
81752         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81753         not <sys/types.h>.
81754
81755 2003-10-04  Karl Berry  <karl@gnu.org>
81756
81757         * lib/argp*: update from libc.
81758
81759 2003-10-04  Karl Berry  <karl@gnu.org>
81760
81761         * config/config.{guess,sub}: update from config.
81762
81763 2003-10-02  Bruno Haible  <bruno@clisp.org>
81764
81765         * modules/lchown (Include): Add lchown.h.
81766         * modules/time_r (Include): Use "..." syntax.
81767         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81768
81769 2003-10-01  Simon Josefsson  <jas@extundo.com>
81770
81771         * MODULES.html.sh (func_all_modules): Move gethostname from section
81772         'based on' to section 'lacking' POSIX:2001.
81773
81774 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81775
81776         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81777         to output mode on the same stream.
81778
81779 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81780
81781         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81782         Fix arg typo in previous patch.
81783
81784 2003-09-28  Jim Meyering  <jim@meyering.net>
81785
81786         * lib/error.c: Correct cpp indentation.
81787
81788 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81789
81790         * modules/free: New file.
81791
81792 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81793
81794         * m4/free.m4: New file.
81795
81796 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81797
81798         * lib/minmax.h (MIN, MAX)
81799         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81800         Omit the special code that used __typeof__, since we worry that
81801         it could be more trouble than it's worth.  See:
81802         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81803         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81804
81805         * lib/free.c: New file.
81806
81807 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81808
81809         Trivial fixes to Makefile.am parts of module listings.
81810         * modules/strstr: Append strstr.h to lib_SOURCES.
81811         * modules/strcase: Likewise, for strcase.h.
81812
81813 2003-09-27  Karl Berry  <karl@gnu.org>
81814
81815         * config/mkinstalldirs: update from automake.
81816
81817 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81818
81819         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81820         (error_tail): Do not loop, reallocating temporary buffer, since
81821         the output cannot contain more wide characters than the input
81822         contains bytes, the size must be big enough already.  This avoids
81823         one potential size overflow calculation.  Check for size overflow
81824         when calculating temporary buffer size.  Free temporary buffer
81825         when done, if it was allocated with malloc; this plugs a memory
81826         leak.  Remove casts from void * to pointers, that are no longer
81827         needed now that we're assuming C89 or better.
81828
81829         Merge error changes from glibc.
81830
81831         * lib/error.c, error.h: Update copyright notice header to match glibc.
81832         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81833         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81834         Disable cancellation while printing error.
81835         * lib/error.h: Prepend __ to parameter names.
81836
81837 2003-09-26  Jim Meyering  <jim@meyering.net>
81838
81839         * lib/error.c (error_tail): Move some declarations
81840         into inner scope where the local variables are used.
81841
81842 2003-09-26  Bruno Haible  <bruno@clisp.org>
81843
81844         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81845         stpncpy().
81846         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81847
81848 2003-09-26  Bruno Haible  <bruno@clisp.org>
81849
81850         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81851         (stpncpy): Define as alias for gnu_stpncpy.
81852         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81853
81854 2003-09-25  Simon Josefsson  <jas@extundo.com>
81855
81856         * lib/xgetdomainname.h: New file.
81857         * lib/xgetdomainname.c: New file.
81858
81859 2003-09-25  Simon Josefsson  <jas@extundo.com>
81860             Bruno Haible  <bruno@clisp.org>
81861
81862         * modules/getdomainname: New file.
81863         * modules/xgetdomainname: New file.
81864         * MODULES.html.sh (func_all_modules): Add getdomainname,
81865         xgetdomainname.
81866
81867 2003-09-25  Simon Josefsson  <jas@extundo.com>
81868             Bruno Haible  <bruno@clisp.org>
81869
81870         * m4/getdomainname.m4: New file.
81871
81872 2003-09-25  Simon Josefsson  <jas@extundo.com>
81873             Bruno Haible  <bruno@clisp.org>
81874
81875         * lib/getdomainname.h: New file.
81876         * lib/getdomainname.c: New file.
81877
81878 2003-09-25  Karl Berry  <karl@gnu.org>
81879
81880         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81881
81882 2003-09-25  Karl Berry  <karl@gnu.org>
81883
81884         * config/install-sh: update from automake.
81885
81886 2003-09-25  Bruno Haible  <bruno@clisp.org>
81887
81888         * modules/version-etc-2: New file, from modules/version-etc with
81889         modifications.
81890         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81891
81892 2003-09-25  Bruno Haible  <bruno@clisp.org>
81893
81894         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81895         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81896
81897 2003-09-24  Simon Josefsson  <jas@extundo.com>
81898
81899         * modules/xgethostname: Add xgethostname.h.
81900
81901 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81902
81903         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81904         the buffer associated with the argument.  Bug reported by
81905         Simon Josefsson.
81906
81907 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81908
81909         * README: Document assumptions that 'int' is at least 32 bits
81910         wide, that integer arithmetic is 2's complement without overflow,
81911         that there are no holes in integer values, that adding sizes of
81912         two nonoverlapping objects can't overflow, and that all-bits-zero
81913         yields scalar zero.  Fix spelling and capitalization typos.
81914
81915 2003-09-19  Karl Berry  <karl@gnu.org>
81916
81917         * lib/argp.h: update from libc.
81918
81919 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81920
81921         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81922         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81923         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81924
81925 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81926
81927         * gnulib-tool: Use "test -h", not "test -L", for portability
81928         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81929         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81930         (sed_extract_prog): Issue s commands one-by-one, rather than
81931         using \| in one s command.
81932
81933 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81934
81935         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81936         input error, instead of returning NULL the next time we are called
81937         (and therefore losing track of errno).
81938
81939 2003-09-16  Bruno Haible  <bruno@clisp.org>
81940
81941         * gnulib-tool (func_create_testdir): Warn about duplicated
81942         dependencies.
81943
81944 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81945
81946         * modules/argmatch, modules/fatal, modules/obstack,
81947         modules/xalloc, modules/xgethostname: Sort dependencies by
81948         importance, not alphabetically.
81949
81950 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81951
81952         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81953         fails, so that the caller gets the proper errno.
81954
81955         * lib/readutmp.c (read_utmp): Likewise.
81956         Check for fstat error.  Close stream and free storage
81957         when failing.
81958
81959 2003-09-14  Karl Berry  <karl@gnu.org>
81960
81961         * config/srclist.txt (strdup.c): disable for c89 changes.
81962
81963 2003-09-14  Jim Meyering  <jim@meyering.net>
81964
81965         * lib/getloadavg.c: Correct cpp indentation.
81966         * lib/strdup.c: Likewise.
81967         * lib/vasnprintf.c: Likewise.
81968
81969 2003-09-14  Bruno Haible  <bruno@clisp.org>
81970
81971         * modules/fwriteerror: New file.
81972         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81973
81974 2003-09-14  Bruno Haible  <bruno@clisp.org>
81975
81976         * lib/fwriteerror.h: New file.
81977         * lib/fwriteerror.c: New file.
81978
81979 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81980
81981         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81982         modules/xgethostname, modules/xalloc: Depend on exit.
81983
81984 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81985
81986         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81987
81988         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81989         and AC_MINIX, too, so that their extensions are available.
81990
81991         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81992         This macro has been superseded by gl_BACKUPFILE.
81993
81994         More patches to assume C89 or better.
81995
81996         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81997
81998         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81999         unconditionally.
82000         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82001         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82002         Include <string.h>, <stdlib.h> unconditionally.
82003         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82004         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82005         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82006         headers or for string.h.
82007         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82008         or strtoul.
82009
82010         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82011         headers.
82012         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82013         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82014         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82015         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82016         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82017         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82018         memcpy, memset.
82019         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82020         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82021         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82022         strtol.
82023         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82024         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82025         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82026         strtoul.
82027
82028 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82029
82030         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82031         * lib/obstack.c [!defined _LIBC]: Likewise.
82032         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82033         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82034         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82035
82036         More changes to assume C89 or better.
82037
82038         * lib/error.c (error_tail): Assume vprintf.
82039
82040         * lib/argmatch.c (getenv): Remove decl.
82041         * lib/progreloc.c (get_full_program_name): Define via prototype.
82042         * lib/setenv.c (clearenv): Likewise.
82043         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82044         needed.
82045         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82046         (malloc, memcpy): Remove decls.
82047         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82048         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82049         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82050         (memcpy): Remove macro.
82051         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82052         (__P): Remove.  All uses removed.
82053         (PTR): Remove.  All uses changed to void *.
82054         (CHAR_BIT, NULL): Remove.
82055         (spaces, zeros, memset_space, memset_zero)
82056         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82057         Remove.
82058         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82059         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82060         Define with prototype.
82061         Remove now-unnecessary prototype decl.
82062         (extra_args_spec): Assume ANSI C.  All uses changed.
82063         (extra_args_spec_iso): Remove.
82064         (my_strftime, emacs_strftimeu): Define via prototype.
82065         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82066         unconditionally.
82067         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82068         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82069         (strtoul, strtol): Remove decls.
82070         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82071         LONG_MAX): Remove.
82072         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82073         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82074         (LOCALE_PARAM_PROTO): New macro.
82075         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82076         (INTERNAL (strtol), strtol): Define with a prototype.
82077         (PARAMS): Remove.  All uses removed.
82078         * lib/tempname.c: Include <string.h> unconditionally.
82079         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82080         * lib/xgethostname.c (main): Define with a prototype.
82081         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82082         Include <stdlib.h> unconditionally.
82083         (calloc, malloc, realloc, free): Remove decls.
82084         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82085         Include <stdlib.h> unconditionally.  Sort include file names.
82086         (strtod): Remove.
82087         (xstrtod): Define with a prototype.
82088         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82089         (strtol, strtoul): Remove decls.
82090
82091 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82092
82093         More patches to assume C89 or better.
82094         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82095         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82096         string.h, memchr, STDC_HEADERS.
82097
82098 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82099
82100         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82101         Include <stdlib.h>, <string.h> unconditionally.
82102         Remove now-unnecessary cast to char *.
82103         * lib/strnlen.c: Include <string.h> unconditionally.
82104         * lib/yesno.c (yesno): Define with a prototype.
82105
82106 2003-09-11  Bruno Haible  <bruno@clisp.org>
82107
82108         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82109
82110 2003-09-10  Jim Meyering  <jim@meyering.net>
82111
82112         * lib/error.c: Correct indentation of cpp directives.
82113
82114 2003-09-10  Bruno Haible  <bruno@clisp.org>
82115
82116         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82117         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82118         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82119         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82120         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82121         <stdlib.h> and <string.h> checks.
82122         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82123         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82124
82125 2003-09-10  Bruno Haible  <bruno@clisp.org>
82126
82127         * lib/strcspn.c: Include <string.h> unconditionally.
82128         * lib/strpbrk.c: Include <string.h> unconditionally.
82129         * lib/strstr.c: Include <string.h> unconditionally.
82130         * lib/unicodeio.c: Include <string.h> unconditionally.
82131         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82132         * lib/unsetenv.c: Likewise.
82133         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82134         * lib/yesno.c: Include <stdlib.h> unconditionally.
82135         (rpmatch): Add prototype.
82136
82137 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82138
82139         More patches to assume C89 or better.
82140         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82141         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82142         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82143         or for string.h.
82144         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82145         stdlib.h.
82146         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82147         C headers.
82148         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82149         string.h.
82150         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82151         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82152         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82153         or for string.h.
82154         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82155         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82156         C headers.
82157         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82158         memcpy.
82159         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82160         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82161         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82162         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82163         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82164         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82165         string.h, free.
82166         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82167         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82168         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82169         C headers, or for string.h.
82170         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82171         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82172         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82173         headers, memory.h, stdlib.h, string.h, strings.h.
82174         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82175         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82176         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82177         strchr.
82178         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82179         headers, memory.h, string.h.
82180         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82181         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82182         free.
82183         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82184         headers.
82185         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82186         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82187         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82188         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82189         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82190
82191 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82192
82193         More K&R removal.
82194
82195         * lib/acosl.c (main): Use a prototype.
82196         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82197         tanl.c: Likewise.
82198
82199         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82200
82201         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82202         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82203         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82204         with a prototype.
82205         * lib/getopt.c (const): Remove macro.
82206         Include <string.h> unconditionally.
82207         (my_index): Remove; all uses changed to strchr.
82208         (strlen): Remove decl.
82209         (exchange): Remove forward decl; no longer needed.
82210         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82211         Define with prototype.
82212         * lib/getopt1.c (const): Remove macro.
82213         (getopt_long, getopt_long_only, main): Define with prototype.
82214
82215         * lib/getugroups.c: Include <string.h> unconditionally.
82216
82217         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82218         (getusershell, setusershell, endusershell, readname, main):
82219         Define with prototypes.
82220
82221         * lib/group-member.c: Include group-member.h first.
82222         Include <stdlib.h> unconditionally.
82223
82224         * lib/hard-locale.c: Include hard-locale.h first.
82225         Include <stdlib.h>, <string.h> unconditionally.
82226
82227         * lib/hash.c (free, malloc): Remove decls.
82228         Include <stdlib.h> unconditionally.
82229
82230         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82231         (getenv): Do not declare.
82232
82233         * lib/idcache.c: Include <string.h> unconditionally.
82234
82235         * lib/long-options.c: Include long-options.h first, to test interface.
82236         Include <stdlib.h> unconditionally.
82237
82238         * lib/makepath.c: Include makepath.h first, to test interface.
82239         Include <stdlib.h> and <string.h> unconditionally.
82240
82241         * lib/linebuffer.c: Include <stdlib.h>.
82242         (free): Remove decl.
82243
82244         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82245         stddef.h. rpl_malloc returns void *, not char *.
82246         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82247         prototype.
82248
82249         * lib/md5.h: Include <limits.h> unconditionally.
82250         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82251         (__P): Remove; all uses removed.
82252         * lib/md5.c: Include "md5.h" first.
82253         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82254         md5_buffer, md5_process_bytes, md5_process_block):
82255         Define with prototypes.
82256         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82257         * lib/sha.c: Include "sha.h" first.
82258         Include <stdlib.h>, <string.h> unconditionally.
82259
82260         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82261         * lib/memcmp.c (__ptr_t): Likewise.
82262         * lib/memrchr.c (__ptr_t): Likewise.
82263         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82264         Include <string.h> unconditionally.
82265         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82266         * lib/memchr.c: Include <stdlib.h> unconditionally.
82267         * lib/memchr.c (LONG_MAX): Remove.
82268         * lib/memrchr.c (LONG_MAX): Likewise.
82269         * lib/memchr.c (__memchr): Define via a prototype.
82270         * lib/memrchr.c (__memrchr): Likewise.
82271         * lib/memcmp.c (__P): Remove, and remove all uses.
82272         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82273         Remove forward decls; no longer needed.
82274         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82275         Use types required by C89 in prototype.
82276
82277         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82278         * lib/savedir.c: Likewise.
82279         * lib/mkdir.c (free): Remove decl.
82280         * lib/rmdir.c (rmdir): Define with a prototype.
82281         * lib/savedir.c: Include savedir.h first, to test interface.
82282
82283         * lib/mktime.c (STDC_HEADERS): Remove.
82284         Include <stdlib.h>, <string.h> unconditionally.
82285
82286         * lib/modechange.c: Include <stdlib.h> unconditionally.
82287         (malloc): Remove decl.
82288
82289         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82290         (free): Remove decl.
82291
82292         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82293         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82294         (This type really should be intptr_t, but that's a C99ism.)
82295         (_obstack_memcpy): Remove: all uses changed to memcpy.
82296         Include <string.h> unconditionally.
82297         (struct obstack): Assume __STDC__ for types of members
82298         chunkfun, freefun, extra_arg.
82299         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82300         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82301         obstack_begin, obstack_specify_allocation,
82302         obstack_specify_allocation_with_arg, obstack_chunkfun,
82303         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82304         Remove unprototyped decls and the macros that use them.
82305         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82306         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82307         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82308         (defined __STDC__ && __STDC__)]:
82309         Remove nonprototyped code.
82310         Include <stdlib.h> unconditionally.
82311         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82312         _obstack_allocated_p, _obstack_free, obstack_free,
82313         _obstack_memory_used, print_and_abort):
82314         Define using prototypes.
82315         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82316         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82317         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82318         obstack_next_free, obstack_object_size, obstack_room) [0]:
82319         Remove unused, unprototyped code.
82320
82321         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82322
82323         * lib/physmem.c (physmem_total, physmem_available, main): Define
82324         with prototypes.
82325
82326         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82327         (main): Define with a prototype.
82328
82329         * lib/posixver.c (getenv): Remove decl.
82330
82331         * lib/putenv.c (malloc): Returns void *, not char *.
82332         Include <string.h> unconditionally.
82333         (strchr, memcpy, NULL): Do not define.
82334
82335         * lib/readtokens.c: Include readtokens.h first, to test interface.
82336         Include <stdlib.h>, <string.h> unconditionally.
82337         (init_tokenbuffer): Define with a prototype.
82338
82339         * lib/regex.c (PARAMS): Remove.  All uses removed.
82340         All uses of _RE_ARGS removed, too.
82341         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82342         unconditionally.
82343         (bzero): Assume memset exists.
82344         (memcmp, memcpy, NULL): Remove.
82345         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82346         char, or assignments to local vars of type signed char.
82347         (init_syntax_once, PREFIX(extract_number_and_incr),
82348         PREFIX(print_partial_compiled_pattern),
82349         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82350         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82351         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82352         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82353         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82354         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82355         wcs_compile_range, byte_compile_range, truncate_wchar,
82356         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82357         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82358         count_mbs_length, wcs_re_match_2_internal,
82359         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82360         PREFIX(alt_match_null_string_p),
82361         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82362         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82363         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82364         now-unnecessary declaration, if any.
82365         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82366         regcomp, regexec):
82367         Remove now-unnecessary casts among pointer types.
82368         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82369
82370         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82371         (free): Remove decl.
82372
82373         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82374
82375         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82376         (free): Remove decl.
82377
82378         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82379         * lib/xgetcwd.c: Likewise.
82380
82381         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82382         (free): Remove decl.
82383
82384         * lib/strchrnul.c (strchrnul): Define with a prototype.
82385         Fix bug: c_in was not converted to char before searching.
82386
82387         The following changes are not K&R related:
82388
82389         * lib/group-member.h: Include <sys/types.h>, so that this file is
82390         self-contained.
82391         * lib/makepath.h: Likewise.
82392
82393         * lib/getusershell.c (readname, default_index, line_size, readname):
82394         Use size_t, not int, for sizes.
82395         (readname): If the size overflows, report an error instead of
82396         looping forever.
82397
82398 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82399
82400         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82401         libc.
82402
82403 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82404
82405         * README: New section: portability guidelines.
82406
82407 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82408
82409         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82410         C89 spec.
82411
82412 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82413
82414         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82415
82416 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82417
82418         Assume C89 or better; remove K&R cruft.
82419         A few of these changes were first proposed by Derek Robert Price
82420         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82421
82422         * lib/addext.c: Include <string.h> unconditionally.
82423         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82424         Don't declare getenv or malloc.
82425
82426         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82427         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82428         (NULL): Remove.
82429         (find_stack_direction, alloca): Use prototypes.
82430
82431         * lib/atexit.c (atexit): Define using a prototype.
82432
82433         * lib/basename.c, dirname.c, stripslash.c:
82434         Include <string.h> unconditionally.
82435
82436         * lib/bcopy.c: Include <stddef.h>.
82437         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82438
82439         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82440
82441         * lib/error.h (error, error_at_line, error_print_progname)
82442         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82443         * lib/error.c: Include error.h first, to check interface.
82444         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82445         (VA_START): Remove; all uses changeed to va_start.
82446         (exit, strerror): Remove decls.
82447         (error_print_progname): Prototype uncondionally.
82448         Don't include <errno.h>; no longer needed.
82449         (private_strerror): Remove.
82450         (error_tail): Always define.
82451         (error, error_at_line): Assume C89 or better; always use prototypes.
82452         * lib/fatal.c: Include "fatal.h" first, to test interface.
82453         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82454         (VA_START): Remove; all uses changed to va_start.
82455         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82456         this case.
82457         (exit): Remove decl.
82458         (fatal): Prototype unconditionally.  Assume va_start works.
82459         Abort at end, to pacify gcc.
82460
82461         * lib/euidaccess.c (main): Define with a prototype.
82462
82463         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82464
82465         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82466
82467         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82468         prototypes.
82469         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82470         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82471         (getenv): Remove decl.
82472         (fnmatch): Define using a prototype.
82473         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82474         (FCT): Define using a prototype.
82475
82476         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82477
82478         * lib/gethostname.c: Include <stddef.h>.
82479         (gethostname): Define with prototype.  Length is size_t, not int.
82480
82481 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82482
82483         Assume C89 or better; remove K&R cruft.
82484         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82485         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82486         string.h, getenv, malloc.
82487         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82488         headers.
82489         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82490         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82491         do not check for strerror.
82492         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82493         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82494         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82495         do not check for doprnt or vprintf.
82496         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82497         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82498
82499 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82500
82501         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82502         getversion.c should have been removed then, but was accidentally
82503         preserved.
82504
82505         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82506         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82507
82508 2003-09-08  Karl Berry  <karl@gnu.org>
82509
82510         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82511                 config, forget about prep.
82512
82513         * config/depcomp, missing: update from automake.
82514
82515 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82516
82517         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82518         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82519
82520 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82521
82522         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82523         copy_tm_result.  Bug reported by Simon Josefsson in
82524         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82525
82526 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82527
82528         * m4/time_r.m4: New file.
82529         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82530         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82531         is. Check for timegm declaration.
82532         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82533         Do not check for gmtime_r.
82534         Replace mktime if __mktime_internal does not exist and if mktime
82535         hasn't been replaced already.
82536
82537 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82538
82539         * lib/time_r.c, lib/time_r.h: New files.
82540
82541         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82542         __localtime_r.
82543         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82544         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82545
82546         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82547         __gmtime_r.
82548         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82549         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82550         Include <time_r.h>.
82551
82552         * lib/timegm.c: Switch to glibc implementation, with the following
82553         changes:
82554         [defined HAVE_CONFIG_H]: Include <config.h>.
82555         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82556         (__mktime_internal) [!defined _LIBC]: New decl.
82557         (__gmtime_r) [!defined _LIBC]: New macro and function.
82558         (timegm): Use a prototype, since gnulib assumes C89.
82559         Do not bother declaring tmp to be const, as it's not really usefu.
82560         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82561         (timegm): Declare only if HAVE_DECL_TIMEGM.
82562
82563 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82564
82565         * MODULES.html.sh (func_all_modules): Add time_r.
82566         * modules/time_r: New file.
82567         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82568         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82569
82570 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82571
82572         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82573         Bug reported by Lute Kamstra in
82574         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82575
82576         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82577         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82578         course with correspondingly smaller numbers for tomorrow and
82579         yesterday.  From Tadayoshi Funaba.  Originally installed into
82580         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82581         coreutils merge?).
82582
82583 2003-08-31  Simon Josefsson  <jas@extundo.com>
82584
82585         * modules/timegm: New file.
82586         * MODULES.html.sh (func_all_modules): Add timegm.
82587
82588 2003-08-31  Simon Josefsson  <jas@extundo.com>
82589
82590         * m4/timegm.m4: New file.
82591
82592 2003-08-31  Simon Josefsson  <jas@extundo.com>
82593
82594         * lib/timegm.h: New file.
82595         * lib/timegm.c: New file.  Based on
82596         wget-1.8.2/src/http.c:mktime_from_utc.
82597
82598 2003-08-31  Karl Berry  <karl@gnu.org>
82599
82600         * lib/argp.h: update from libc.
82601
82602 2003-08-28  Bruno Haible  <bruno@clisp.org>
82603
82604         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82605         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82606         followed by '#define fnmatch fnmatch_posix' gives an error.
82607
82608 2003-08-28  Bruno Haible  <bruno@clisp.org>
82609
82610         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82611         warning on QNX, which defines O_BINARY to 000000.
82612
82613 2003-08-27  Jim Meyering  <jim@meyering.net>
82614
82615         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82616         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82617         would fail after 32.  Reported by Danny Levinson.  Details here:
82618         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82619
82620 2003-08-24  Bruno Haible  <bruno@clisp.org>
82621
82622         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82623         MSVC7 <stdio.h> is included later.
82624
82625 2003-08-22  Simon Josefsson  <jas@extundo.com>
82626
82627         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82628
82629 2003-08-20  Karl Berry  <karl@gnu.org>
82630
82631         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82632
82633 2003-08-20  Bruno Haible  <bruno@clisp.org>
82634
82635         * modules/progname: New file.
82636         * MODULES.html.sh (func_all_modules): Add progname.
82637
82638 2003-08-20  Bruno Haible  <bruno@clisp.org>
82639
82640         * lib/progname.h: New file, from GNU gettext.
82641         * lib/progname.c: New file, from GNU gettext.
82642         * lib/progreloc.c: New file, from GNU gettext.
82643
82644 2003-08-19  Jim Meyering  <jim@meyering.net>
82645
82646         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82647         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82648
82649 2003-08-19  Bruno Haible  <bruno@clisp.org>
82650
82651         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82652         more.
82653
82654 2003-08-19  Bruno Haible  <bruno@clisp.org>
82655
82656         * lib/xstrdup.c: Assume <string.h> exists.
82657
82658 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82659
82660         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82661         in makefile rules.
82662
82663 2003-08-18  Jim Meyering  <jim@meyering.net>
82664
82665         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82666         * m4/lib-ld.m4: Likewise.
82667
82668 2003-08-18  Jim Meyering  <jim@meyering.net>
82669
82670         * lib/setenv.h: Indent nested cpp directive.
82671         * lib/vasnprintf.c: Remove trailing blanks.
82672
82673 2003-08-17  Simon Josefsson  <jas@extundo.com>
82674
82675         * modules/xstrndup: New file.
82676         * MODULES.html.sh (func_all_modules): Add xstrndup.
82677
82678 2003-08-17  Simon Josefsson  <jas@extundo.com>
82679
82680         * modules/argp: Fix autoconf macro name. Add more dependencies.
82681
82682 2003-08-17  Simon Josefsson  <jas@extundo.com>
82683
82684         * m4/xstrndup.m4: New file.
82685
82686 2003-08-17  Simon Josefsson  <jas@extundo.com>
82687
82688         * m4/argp.m4: New file.
82689
82690 2003-08-17  Simon Josefsson  <jas@extundo.com>
82691             Bruno Haible  <bruno@clisp.org>
82692
82693         * lib/xstrndup.h: New file.
82694         * lib/xstrndup.c: New file.
82695
82696 2003-08-17  Bruno Haible  <bruno@clisp.org>
82697
82698         * modules/strndup (Files, Include): Add lib/strndup.h.
82699
82700 2003-08-17  Bruno Haible  <bruno@clisp.org>
82701
82702         * modules/euidaccess (Files): Add lib/euidaccess.h.
82703
82704 2003-08-17  Bruno Haible  <bruno@clisp.org>
82705
82706         * lib/strndup.h: New file.
82707
82708 2003-08-17  Bruno Haible  <bruno@clisp.org>
82709
82710         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82711         like AC_GNU_SOURCE.
82712         * modules/extensions (configure.ac): Comment out the invocation of
82713         gl_USE_SYSTEM_EXTENSIONS.
82714
82715 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82716
82717         Merges from coreutils, etc.
82718         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82719         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82720         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82721         fixing a typo.
82722         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82723         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82724
82725 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82726
82727         Document merge from coreutils.
82728         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82729         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82730         * modules/utime: Add m4/utimes-null.m4.
82731
82732 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82733
82734         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82735         space, undoing this 2003-08-12 change:
82736         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82737
82738 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82739
82740         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82741         strtoul.c from libc, undoing this 2003-08-12 change:
82742         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82743
82744 2003-08-16  Jim Meyering  <jim@meyering.net>
82745
82746         Merges from coreutils.
82747         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82748         prefix.  Adjust cache variables similarly.  Create 500 rather than
82749         just 300 files, to exercise bug on Darwin6.5, too.
82750         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82751         $missing_dir.
82752         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82753         AM_SYS_POSIX_TERMIOS.
82754         Reported by mkc@mathdogs.com.
82755         Also change use of $am_cv_sys_posix_termios
82756         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82757         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82758         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82759         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82760         in /proc/mounts until it finds one with matching device number.  This
82761         is unnecessary when the FILE argument *is* a mount point.  No stat call
82762         is necessary in that case.  So, disable the statvfs-testing code on
82763         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82764         as RedHat bug# 84846.
82765         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82766         to 1MB, so as not to render systems with no stack size limit (e.g.,
82767         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82768         Include <unistd.h>.  On some systems,
82769         it is required for the definition of _SC_PAGESIZE.
82770
82771 2003-08-16  Jim Meyering  <jim@meyering.net>
82772
82773         Merge from coreutils.
82774         * lib/xstrtoimax.c: #else #if -> #elif.
82775         * lib/xstrtoumax.c: Likewise.
82776
82777 2003-08-16  Jim Meyering  <jim@meyering.net>
82778
82779         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82780         * m4/utimes.m4: Removed.
82781         * m4/utimes-null.m4: Renamed from utimes.m4.
82782
82783         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82784         to 1MB, so as not to render systems with no stack size limit (e.g.,
82785         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82786         Include <unistd.h>.  On some systems,
82787         it is required for the definition of _SC_PAGESIZE.
82788
82789 2003-08-16  Jim Meyering  <jim@meyering.net>
82790         and Paul Eggert  <eggert@cs.ucla.edu>
82791
82792         Merges from coreutils, etc.
82793
82794         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82795         using the latest version from cvs.  This avoids problems with #line
82796         directives using a vendor (Sun) compiler.
82797         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82798         Don't set GETGROUPS_LIB here; now it's
82799         done via getgroups.m4's wrapper function.
82800         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82801         rather than just in sh-util/configure.in, so that the
82802         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82803         same.
82804         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82805         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82806         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82807         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82808         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82809         Remove code that is now done by the newly-required macros.
82810         Append $(EXEEXT) to DF_PROG.
82811         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82812         Do not invoke or require the following here,
82813         since prereq.m4 or some gnulib .m4 now does this for us:
82814         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82815         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82816         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82817         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82818         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82819         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82820         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82821         AC_FUNC_OBSTACK.
82822         Do not replace the following functions, as this is now the job
82823         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82824         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82825         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82826         atexit getpass, strdup, getpagesize.
82827         Replace 'raise'.
82828         Do not check for the following functions, as this is now the job
82829         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82830         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82831         setregid.
82832         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82833         Check for sys/sysctl.h.
82834         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82835         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82836         of checking for ssize_t ourselves.
82837
82838         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82839         Require every macro that gnulib/modules/* suggests for us.
82840         (jm_PREREQ_ADDEXT): New macro.
82841         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82842         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82843
82844         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82845         (gl_PHYSMEM): Use it.
82846         Also check for `table' function.
82847         Check for new headers and functions.
82848         Add check for sys/sysmp.h.
82849         With suggestions from Kaveh Ghazi.
82850         Ignore headers that are present but cannot be compiled.  This
82851         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82852         C 5.4.
82853
82854 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82855
82856         Document merge from coreutils.
82857         * modules/userspec: Depend on posixver.
82858         * modules/strftime: Depend on tzset.
82859
82860 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82861
82862         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82863         rather than tab, after '#' in shell-script copyright notices.
82864         Suggested by Bruno Haible.
82865
82866 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82867
82868         * config/srclist-update: Use three spaces, rather than tab, after '#'
82869         in shell-script copyright notices.  Suggested by Bruno Haible.
82870         Remove unnecessary parenthesization in regular expression.
82871
82872 2003-08-15  Jim Meyering  <jim@meyering.net>
82873
82874         Merge from coreutils.
82875         * lib/xgethostname.c: Include <stdlib.h>.
82876         (xghostname): Don't exit for anything other than memory-related
82877         failure; just return NULL.
82878         * lib/userspec.c: Include "posixver.h".
82879         (parse_user_spec): Accept `.' as a separator only
82880         in pre-POSIX-200112 mode.
82881         * lib/strtoimax.c: Use #elif rather than #else #if.
82882         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82883         Remove function, now that we can rely on a working tzset function.
82884         [!_LIBC]: Ensure that the required autoconf test has been run.
82885         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82886         Use underlying_strftime for %r.
82887         * lib/sha.c: Merge in some clean-up and optimization changes from
82888         glibc.
82889         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82890         Ensure that it is a multiple of 64.
82891         Rearrange loop exit tests so as to avoid performing an
82892         additional fread after encountering an error or EOF.
82893         * lib/realloc.c: Update copyright date.
82894
82895 2003-08-15  Jim Meyering  <jim@meyering.net>
82896         and Paul Eggert  <eggert@twinsun.com>
82897
82898         Merge from coreutils.
82899         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82900         member but strut utmpx does not.  Needed for AIX 4.3.3.
82901         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82902
82903 2003-08-15  Jim Meyering  <jim@meyering.net>
82904         and Paul Eggert  <eggert@cs.ucla.edu>
82905
82906         Merges from coreutils, etc.
82907         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82908         Require gl_FUNC_TZSET_CLOBBER.
82909         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82910         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82911         members.
82912
82913 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82914
82915         Help the merge from coreutils.
82916         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82917         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82918         * m4/tzset.m4: Use it too.
82919
82920 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82921
82922         * modules/tzset: New file.
82923
82924 2003-08-14  Jim Meyering  <jim@meyering.net>
82925
82926         Merges from coreutils.
82927         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82928         variable names, rather than @FNMATCH_H@.
82929         * modules/alloca: Likewise for $(ALLOCA_H).
82930
82931         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82932         the three copies of the literal target, `fnmatch.h'.
82933         * modules/alloca (alloca.h): Likewise.
82934
82935 2003-08-14  Jim Meyering  <jim@meyering.net>
82936
82937         Merge from coreutils.
82938         * m4/tzset.m4: New file.
82939         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82940         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82941         otherwise, AIX 5.1 systems would end up using the latter.
82942         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82943         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82944         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82945         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82946
82947 2003-08-14  Jim Meyering  <jim@meyering.net>
82948
82949         Merge from coreutils.
82950         * lib/obstack.h: Whitespace changes.
82951         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82952         and xcalloc return values.
82953         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82954         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82955         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82956         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82957         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82958         error from mntctl.
82959         Use mntctl's return value to drive the entry-processing loop, since
82960         we can't rely on the value of the vmt_length member in the last
82961         entry.  On some systems doing so could result in exhausting
82962         virtual memory.  Based in part on a patch from Mike Jetzer.
82963
82964 2003-08-14  Jim Meyering  <jim@meyering.net>
82965         and Paul Eggert  <eggert@twinsun.com>
82966
82967         Merges from coreutils, plus other fixes.
82968         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82969         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82970         for credits and details.  Thanks to Kaveh Ghazi for helping
82971         to keep these files in sync.
82972         (ARRAY_SIZE): Define it.
82973         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82974         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82975         (memcasecmp): Don't assume size_t fits in unsigned int.
82976         Remove casts and duplicate code.
82977         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82978         (memcpy): Remove definition.
82979         Merge in some clean-up and optimization changes from glibc.
82980         [BLOCKSIZE]: Move definition to top of file.
82981         Ensure that it is a multiple of 64.
82982         Rearrange loop exit tests so as to avoid performing an
82983         additional fread after encountering an error or EOF.
82984         * lib/md5.h (md5_uintptr): Define.
82985         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82986         return to the initial working directory.  Preserve errno
82987         for caller.
82988         * lib/idcache.c: Include "xalloc.h".
82989         (xmalloc, xrealloc): Remove decls.
82990         (getuser): Remove casts no longer required in C89.
82991         * lib/human.c: Include stdio.h, for sprintf.
82992         * lib/group-member.c: Include "xalloc.h".
82993         (xmalloc, xrealloc): Remove decls.
82994         (get_group_info): Remove casts no longer required in C89.
82995         * lib/getusershell.c (readname): Remove casts no longer required in
82996         C89.
82997         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82998         * lib/getline.c: Whitespace fix, from coreutils.
82999
83000 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83001
83002         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83003         Check for isascii.
83004
83005         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83006         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83007         Undo previous (whitespace-only) change.
83008
83009 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83010
83011         * lib/exclude.c: Include <ctype.h>
83012         (IN_CTYPE_DOMAIN): New macro.
83013         (is_space): New fn.
83014         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83015         and empty lines.
83016
83017         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83018         Undo previous (whitespace-only) change.
83019
83020 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83021
83022         * config/srclist-update: Change update back to the old behavior,
83023         leaving whitespace alone.  Use one 'sed' command rather than a
83024         pipeline.
83025         (fixlicense): Now a variable, not a function.
83026         (remove_trailing_blanks): Remove.
83027         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83028         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83029         Undo previous (whitespace-only) change.
83030
83031 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83032
83033         Merge from coreutils.
83034         * modules/euidaccess: Add lib_SOURCES, include for new
83035         file euidaccess.h
83036
83037 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83038
83039         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83040         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83041         Normalize leading white space and remove trailing white space.
83042
83043         Merge from coreutils
83044         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83045
83046         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83047         0.12.1.  These files are now being upgraded automatically by
83048         ../config/srclist-update.
83049
83050 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83051
83052         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83053         Normalize leading white space and remove trailing white space.
83054         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83055         notice, as per ../config/srclist-update.
83056
83057         Merge from coreutils.
83058         * lib/euidaccess.h: New file.
83059         * lib/euidaccess.c: Include it.
83060         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83061         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83062         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83063
83064 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83065
83066         * config/srclist-update: Add copyright notice.
83067         (remove_id_lines, remove_trailing_blanks): New constants.
83068         (fixfile): Use them to normalize spacing a bit in copied files.
83069         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83070         Normalize leading white space and remove trailing white space.
83071
83072         * config/texinfo.tex: Sync with texinfo.
83073
83074         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83075         strtoul.c from libc, to merge coreutils whitespace changes.
83076
83077         * config/srclist.txt: Get the following m4 files from gettext:
83078         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83079         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83080         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83081         wint_t.m4.
83082
83083 2003-08-12  Karl Berry  <karl@gnu.org>
83084
83085         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83086         been made.
83087
83088 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83089
83090         * modules/gnu-source, m4/gnu-source.m4:
83091         Remove; we're assuming Autoconf 2.54 or later now.
83092         Suggested by Bruno Haible.
83093         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83094
83095 2003-08-11  Bruno Haible  <bruno@clisp.org>
83096
83097         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83098
83099 2003-08-11  Bruno Haible  <bruno@clisp.org>
83100
83101         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83102         (vasnprintf): Use it instead of wcslen.
83103
83104 2003-08-11  Bruno Haible  <bruno@clisp.org>
83105
83106         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83107         value to ensure that _Bool promotes to int. Use #define for _Bool when
83108         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83109
83110 2003-08-10  Karl Berry  <karl@gnu.org>
83111
83112         * lib/regex.h: update from libc (whitespace fix).
83113
83114 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83115
83116         Merge some files from coreutils.  These changes were
83117         originally made by Jim Meyering.
83118         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83119         many older Unixes require this.
83120         * lib/alloca.c (alloca): Remove cast to argument of free;
83121         no longer needed in C89.
83122         * lib/alloca_.h, regex.h: Fix white space to match
83123         what GNU indent does.
83124
83125 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83126
83127         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83128         apparently Emacs's Unicode mode got confused before my 2003-08-05
83129         checkin.
83130
83131 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83132
83133         * m4/extensions.m4: New file.
83134         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83135         Require gl_USE_SYSTEM_EXTENSIONS.
83136         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83137         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83138
83139 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83140
83141         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83142         * modules/extensions, modules/gnu-source: New files.
83143         * modules/timespec, modules/unlocked-io: Depend on extensions.
83144
83145 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83146
83147         * modules/restrict: New file.
83148         * MODULES.html.sh (func_all_modules): Add restrict.
83149         * modules/regex: Depend on restrict.
83150
83151 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83152
83153         * m4/restrict.m4: New file.
83154         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83155
83156 2003-08-07  Bruno Haible  <bruno@clisp.org>
83157
83158         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83159         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83160
83161 2003-08-07  Bruno Haible  <bruno@clisp.org>
83162
83163         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83164         makes the module 'getndelim2' compatible with the module 'getline'.
83165
83166 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83167
83168         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83169         byte with "\201" to avoid glitches when editing that source file
83170         with multi-gnome-terminal.
83171
83172 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83173
83174         * lib/bumpalloc.h: Remove.
83175
83176 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83177
83178         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83179         * modules/bumpalloc: Remove.
83180
83181 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83182
83183         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83184         GNU coding style.
83185
83186         Merge from coreutils.
83187         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83188         1. From glibc.
83189         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83190         from Karl Berry, implemented by Jim Meyering.
83191         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83192         from Dmitry V. Levin.
83193         Remove anachronistic cast of xrealloc.
83194         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83195         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83196         type. Otherwise, it wouldn't compile with at least /bin/cc on
83197         ymp-cray-unicos9.0.2.X.
83198         Combine two mostly-identical uses of alloca into one.
83199         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83200
83201 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83202
83203         [From Emacs.]
83204
83205         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83206         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83207         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83208         obsolete NLIST_NAME_UNION.
83209         [__GNU__]: Undef BSD and FSCALE.
83210         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83211
83212 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83213
83214         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83215         an enum type, so that it's guaranteed to promote to int.  See:
83216         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83217
83218 2003-08-03  Karl Berry  <karl@gnu.org>
83219
83220         * config/depcomp: update from automake.
83221
83222 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83223
83224         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83225         (strerror): Don't assume that a printable int fits in 14 bytes.
83226
83227 2003-07-31  Bruno Haible  <bruno@clisp.org>
83228
83229         * modules/getpass-gnu: New file.
83230         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83231
83232 2003-07-31  Bruno Haible  <bruno@clisp.org>
83233
83234         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83235
83236 2003-07-24  Karl Berry  <karl@gnu.org>
83237
83238         * config/missing: update from automake.
83239
83240 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83241             Bruno Haible  <bruno@clisp.org>
83242
83243         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83244         * lib/getline.c (getline, getdelim): Likewise.
83245         Remove _GNU_SOURCE define; now it's defined in config.h through
83246         m4/getline.m4.
83247
83248 2003-07-23  Karl Berry  <karl@gnu.org>
83249
83250         * config/config.sub: update from prep.
83251
83252 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83253
83254         * modules/xalloc (Depends-on): Add exitfail.
83255         * modules/xmemcoll: Likewise.
83256
83257 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83258
83259         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83260         over-parenthesization in macros.
83261
83262         Sync with coreutils.
83263
83264         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83265         required by C99.
83266
83267         Use `exit_failure' for xalloc and xmemcoll instead of their own
83268         private exit-failure variables.
83269         * lib/xalloc.h (xalloc_exit_failure): Remove.
83270         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83271         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83272         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83273         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83274         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83275
83276 2003-07-20  Jim Meyering  <jim@meyering.net>
83277
83278         * modules/closeout (Depends-on): Add exitfail.
83279         Suggestion from Bruno Haible.
83280
83281 2003-07-19  Karl Berry  <karl@gnu.org>
83282
83283         * config/config.sub: update from prep.
83284
83285 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83286
83287         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83288         Remove.
83289         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83290         to test that it can stand by itself.  Include "exitfail.h".
83291         Clients should set exit_failure instead.
83292         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83293
83294 2003-07-18  Bruno Haible  <bruno@clisp.org>
83295
83296         * modules/getndelim2: New file.
83297         * modules/getline: Share files with module getndelim2.
83298         * modules/getnline: Depend on getndelim2 instead of sharing files with
83299         it. Add getnline.c to lib_SOURCES.
83300         * MODULES.html.sh (func_all_modules): Add getndelim2.
83301
83302 2003-07-18  Bruno Haible  <bruno@clisp.org>
83303
83304         * m4/getndelim2.m4: New file.
83305         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83306         invoke gl_PREREQ_GETNDELIM2.
83307         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83308         gl_PREREQ_GETNDELIM2.
83309         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83310         gl_GETNDELIM2.
83311
83312 2003-07-18  Bruno Haible  <bruno@clisp.org>
83313
83314         * lib/getndelim2.h: New file.
83315         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83316         getndelim2.h.
83317         (getndelim2): Make non-static. Change return type to ssize_t.
83318         * lib/getline.h: Change argument names.
83319         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83320         * lib/getnline.c: Include getndelim2.h.
83321
83322 2003-07-18  Andreas Schwab  <schwab@suse.de>
83323
83324         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83325
83326 2003-07-17  Karl Berry  <karl@gnu.org>
83327
83328         * config/config.sub: update from prep.
83329
83330 2003-07-17  Bruno Haible  <bruno@clisp.org>
83331
83332         * modules/getnline: New file.
83333         * modules/getline: Add lib/getndelim2.c to source file list.
83334         * MODULES.html.sh (func_all_modules): Add getnline.
83335
83336 2003-07-17  Bruno Haible  <bruno@clisp.org>
83337
83338         * m4/getnline.m4: New file.
83339
83340 2003-07-17  Bruno Haible  <bruno@clisp.org>
83341
83342         * m4/Makefile.am.in: Remove file.
83343         * m4/Makefile.am: Remove file.
83344         * m4/Makefile.in: Remove file.
83345
83346 2003-07-17  Bruno Haible  <bruno@clisp.org>
83347
83348         * lib/getnline.h: New file.
83349         * lib/getnline.c: New file.
83350         * lib/getndelim2.c: New file, extracted from getline.c.
83351         (getndelim2): Renamed from getdelim2, with added nmax argument.
83352         * lib/getline.c: Include getndelim2.c.
83353         (getdelim2): Moved out to getndelim2.c.
83354         (getline, getdelim): Update.
83355
83356 2003-07-17  Bruno Haible  <bruno@clisp.org>
83357
83358         * lib/Makefile.am: Remove file.
83359         * lib/Makefile.in: Remove file.
83360
83361 2003-07-17  Bruno Haible  <bruno@clisp.org>
83362
83363         * configure.in: Remove file.
83364         * Makefile.in: Remove file.
83365
83366 2003-07-17  Bruno Haible  <bruno@clisp.org>
83367
83368         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83369
83370 2003-07-16  Karl Berry  <karl@gnu.org>
83371
83372         * config/srclist-update: was running fixlicense twice, which caused
83373                 texinfo.tex to be nullified for some reason.  Simplify,
83374                 $gplsrc is no longer needed as far as I can see?
83375
83376 2003-07-16  Jim Meyering  <jim@meyering.net>
83377
83378         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83379
83380 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83381
83382         * config/srclist.txt: Get the following files from gettext-runtime/intl
83383         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83384         ref-del.sin.  From Bruno Haible.
83385         * config/srclist-update (fixfile): Change grep pattern again, since the
83386         previous fix didn't work (there was another trailing $).  Use
83387         '[$]' to escape the $s.
83388
83389 2003-07-15  Karl Berry  <karl@gnu.org>
83390
83391         * lib/vasnprintf.c: update from gettext.
83392
83393 2003-07-15  Karl Berry  <karl@gnu.org>
83394
83395         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83396         gets expanded when surrounded by '$'.
83397
83398 2003-07-15  Jim Meyering  <jim@meyering.net>
83399
83400         * modules/save-cwd: Don't depend on error.  From Derek Price.
83401
83402 2003-07-15  Jim Meyering  <jim@meyering.net>
83403
83404         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83405
83406 2003-07-14  Simon Josefsson  <jas@extundo.com>
83407
83408         * modules/mempcpy: New file.
83409         * MODULES.html.sh (func_all_modules): Add mempcpy.
83410
83411 2003-07-14  Simon Josefsson  <jas@extundo.com>
83412
83413         * m4/mempcpy.m4: New file.
83414
83415 2003-07-14  Simon Josefsson  <jas@extundo.com>
83416
83417         * lib/mempcpy.h: New file.
83418         * lib/mempcpy.c: New file.
83419
83420 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83421
83422         * modules/getdate, modules/posixtm: Depend on mktime.
83423
83424 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83425
83426         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83427         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83428         unicodeio.c, unicodeio.h, unlocked-io.h:
83429         Switch from LGPL to GPL.
83430
83431 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83432
83433         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83434         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83435         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83436         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83437         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83438         updated automatically by ../config/srclist-update.  This changes
83439         their license from LPGL to GPL.
83440
83441 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83442
83443         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83444         assumed to refer to the root of the most recent stable gettext version.
83445         * config/srclistvars.sh: Add defaults for eggert.
83446         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83447         Match "This program" as well as "The program".  This is needed
83448         for gettext.
83449
83450 2003-07-14  Jim Meyering  <jim@meyering.net>
83451
83452         Don't emit diagnostics.  Let callers do that.
83453         * lib/save-cwd.c: Don't include "error.h".
83454         (save_cwd): Don't call error.  Ensure that errno is valid
83455         when returning nonzero.
83456
83457         * lib/save-cwd.h (restore_cwd): Update prototype.
83458         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83459         Simplify.  Don't call error upon failure.  Let callers do that.
83460         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83461         when auditing is enabled.  But don't bother updating the #if.
83462
83463 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83464
83465         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83466         it breaks C++ compilation.
83467         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83468
83469 2003-07-10  Simon Josefsson  <jas@extundo.com>
83470
83471         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83472
83473 2003-07-10  Jim Meyering  <jim@meyering.net>
83474
83475         * m4/clock_time.m4: Remove trailing blank.
83476         * m4/intmax_t.m4: Likewise.
83477
83478 2003-07-10  Jim Meyering  <jim@meyering.net>
83479
83480         * lib/vasnprintf.c: Remove trailing blanks.
83481         Make cpp indentation consistent.
83482
83483 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83484
83485         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83486         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83487         Switch from LGPL to GPL.
83488
83489 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83490
83491         * config/srclist.txt: Sort sublists.  Add
83492         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83493         that differ from gnulib for one reason or another; we'd like this list
83494         to be smaller but for now let's document what we have.
83495
83496 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83497
83498         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83499         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83500         and sweeter "eval x=$x".
83501         * config/srclist.txt: Get lib/argp* from glibc.
83502
83503 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83504
83505         * lib/mktime.c: Fix some boundary cases and remove need for floating
83506         point.
83507
83508         Issue a compile-time diagnostic if time_t is floating point, or if
83509         two's complement arithmetic is not in effect, or if arithmetic
83510         right shift does not propagate the sign.  These assumptions were
83511         all in the original code but they weren't checked.
83512
83513         (TIME_T_MIDPOINT, verify): New macros.
83514         (__isleap): Remove; it has integer overflow problems.
83515         (leapyear): New function, without those problems.
83516         (ydhms_tm_diff): Remove; splitting into two parts.
83517         (ydhms_diff): New function, containing the arithmetic part of
83518         the old ydhms_tm_diff function.  Issue a compile-time
83519         diagnostic if we are not using C99 integer division.
83520         Avoid casts when possible.
83521         (guess_time_tm): New function, containing the checking part of
83522         the old ydhms_tm_diff function.  Return the new value, rather than
83523         the difference between it and the old.  Accept a new argument T
83524         so that *T specifies the old value.  Check for overflow in the result.
83525
83526         (__mktime_internal): Use a time_t offset, not a long int offset.
83527         This undoes the 2003-06-04 change, which is no longer needed now
83528         that we have better overflow checking.
83529         (localtime_offset): Likewise.
83530
83531         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83532         and long are 64-bit but int is only 32-bit.
83533         (ydhms_diff): Use long int to store year1 and yday1.
83534         Issue a compile-time diagnostic if long int is not wide enough.
83535
83536         (__mktime_internal): Use long int to store adjusted year and yday.
83537         Use plain C rather than preprocessor commands, if that doesn't
83538         affect efficiency.
83539         Check for overflow (and try to repair) after each probe
83540         rather than checking only at the very end.  This avoids some bugs
83541         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83542         does not equal GMT offset at maximum time).
83543         Use integer to check for overflow rather than floating point; this
83544         is more portable to non-IEEE hosts, and is a tad faster.
83545         When we detect that we are oscillating between two values,
83546         don't check whether tm_isdst has the requested value, since
83547         we already know the answer.  When tm_isdst has the wrong value,
83548         use a different heuristic to find the right one, based on the
83549         extreme values actually observed in practice in tz2003a,
83550         rather than the (overly optimistic) "previous 3 calendar quarters".
83551
83552         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83553         "T const" to accommodate glibc style.
83554         (check_result): Use less-confusing report format.  "long" -> "long int.
83555         (main): Likewise.
83556         Don't loop if the iteration overflows time_t.
83557         Allow a negative step in the iteration.
83558
83559 2003-07-06  Karl Berry  <karl@gnu.org>
83560
83561         * config/depcomp: update from automake.
83562         * config/config.sub: update from prep.
83563
83564 2003-07-03  Karl Berry  <karl@gnu.org>
83565
83566         * config/config.guess: update from prep.
83567
83568 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83569
83570         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83571         xreadlink.c now includes it unconditionally.
83572
83573 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83574
83575         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83576         having it depend on HAVE_SYS_TYPES_H.
83577
83578 2003-07-01  Bruno Haible  <bruno@clisp.org>
83579
83580         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83581         <sys/types.h> should be sufficient.
83582         Reported by Paul Eggert.
83583
83584 2003-06-26  Karl Berry  <karl@gnu.org>
83585
83586         * config/depcomp: update from automake.
83587
83588 2003-06-26  Bruno Haible  <bruno@clisp.org>
83589
83590         * modules/human: Depend on module stdbool.
83591
83592 2003-06-25  Bruno Haible  <bruno@clisp.org>
83593
83594         * modules/readlink: New file.
83595         * modules/xreadlink: Depend on it.
83596         * MODULES.html.sh (func_all_modules): Add readlink.
83597
83598 2003-06-25  Bruno Haible  <bruno@clisp.org>
83599
83600         * m4/readlink.m4: New file.
83601
83602 2003-06-25  Bruno Haible  <bruno@clisp.org>
83603
83604         * lib/readlink.c: New file.
83605
83606 2003-06-22  Karl Berry  <karl@gnu.org>
83607
83608         * config/srclist.txt: update mkinstalldirs from automake.
83609         * config/mkinstalldirs: update.
83610
83611 2003-06-22  Bruno Haible  <bruno@clisp.org>
83612
83613         Portability to mingw32.
83614         * m4/ssize_t.m4: New file, from GNU gettext.
83615         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83616         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83617
83618 2003-06-22  Bruno Haible  <bruno@clisp.org>
83619
83620         * modules/safe-read: Add m4/ssize_t.m4.
83621         * modules/xreadlink: Add m4/ssize_t.m4.
83622
83623 2003-06-20  Bruno Haible  <bruno@clisp.org>
83624
83625         Assume C89, so PARAMS isn't needed.
83626         * lib/unicodeio.h (PARAMS): Remove.
83627         * lib/unicodeio.c: Don't use PARAMS.
83628
83629 2003-06-18  Karl Berry  <karl@gnu.org>
83630
83631         * config/config.{guess,sub}: update from prep.
83632
83633 2003-06-18  Jim Meyering  <jim@meyering.net>
83634
83635         Merge changes from coreutils.
83636         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83637         Remove explicit declarations of xmalloc and realloc.
83638         Include xalloc.h.
83639         (read_utmp): Remove anachronistic cast of xmalloc.
83640
83641 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83642
83643         Assume C89, so PARAMS isn't needed.
83644         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83645         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83646         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83647         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83648         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83649         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83650         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83651         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83652         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83653         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83654         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83655         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83656         no longer needed. Anyway, config.h should always be included before any
83657         other file.
83658
83659 2003-06-11  Simon Josefsson  <jas@extundo.com>
83660
83661         * modules/sysexits: New file.
83662         * MODULES.html.sh (func_all_modules): Add sysexits.
83663
83664 2003-06-11  Simon Josefsson  <jas@extundo.com>
83665
83666         * lib/sysexit_.h: New file.
83667
83668 2003-06-11  Derek Price  <derek@ximbiot.com>
83669
83670         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83671         necessary.
83672
83673 2003-06-11  Bruno Haible  <bruno@clisp.org>
83674
83675         * m4/sysexits.m4: New file.
83676
83677 2003-06-10  Simon Josefsson  <jas@extundo.com>
83678
83679         * lib/argp.h: New file, from glibc.
83680         * lib/argp-ba.c: New file, from glibc.
83681         * lib/argp-eexst.c: New file, from glibc.
83682         * lib/argp-fmtstream.c: New file, from glibc.
83683         * lib/argp-fmtstream.h: New file, from glibc.
83684         * lib/argp-fs-xinl.c: New file, from glibc.
83685         * lib/argp-help.c: New file, from glibc.
83686         * lib/argp-namefrob.h: New file, from glibc.
83687         * lib/argp-parse.c: New file, from glibc.
83688         * lib/argp-pv.c: New file, from glibc.
83689         * lib/argp-pvh.c: New file, from glibc.
83690         * lib/argp-xinl.c: New file, from glibc.
83691
83692 2003-06-10  Simon Josefsson  <jas@extundo.com>
83693
83694         * modules/strchrnul: New file.
83695
83696 2003-06-10  Simon Josefsson  <jas@extundo.com>
83697
83698         * modules/argp: New file.
83699
83700 2003-06-10  Simon Josefsson  <jas@extundo.com>
83701
83702         * m4/strchrnul.m4: New file.
83703
83704 2003-06-10  Simon Josefsson  <jas@extundo.com>
83705
83706         * lib/strchrnul.h: New file.
83707         * lib/strchrnul.c: New file.
83708
83709 2003-06-10  Bruno Haible  <bruno@clisp.org>
83710
83711         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83712
83713 2003-06-07  Karl Berry  <karl@gnu.org>
83714
83715         * config/config.{guess,sub}: update from prep.
83716
83717 2003-06-07  Jim Meyering  <jim@meyering.net>
83718
83719         * modules/strtod: Use $(...) notation, not @...@ for
83720         AC_REPLACE'd variables.
83721         * modules/localcharset: Likewise.
83722
83723 2003-06-07  Jim Meyering  <jim@meyering.net>
83724
83725         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83726         in place of my name in the copyright comment.
83727         Remove definition and uses of __P.
83728
83729         From coreutils.
83730         * lib/stat.c: Don't declare xmalloc explicitly.
83731         Instead, include "xalloc.h".
83732         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83733         xrealloc, and xcalloc return values.
83734         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83735         Improve comment.
83736         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83737
83738 2003-06-07  Bruno Haible  <bruno@clisp.org>
83739
83740         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83741         avoid AC_CONFIG_LINKS.
83742         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83743         fnmatch.h, to avoid AC_CONFIG_LINKS.
83744         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83745
83746 2003-06-07  Bruno Haible  <bruno@clisp.org>
83747
83748         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83749         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83750         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83751         directory.
83752         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83753         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83754         directory.
83755
83756 2003-06-06  Jim Meyering  <jim@meyering.net>
83757
83758         Merge from coreutils.
83759         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83760         Consolidate declarations and initializations of *_base* locals.
83761
83762         Merge from coreutils.
83763         This avoids a core dump on systems without GNU putenv,
83764         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83765         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83766         (unsetenv): New static function, from GNU libc.
83767         (rpl_putenv): Use it.
83768
83769         * lib/modechange.c: Remove trailing blanks.
83770
83771         Merge from coreutils.
83772         * lib/fsusage.c: Remove declaration of statfs.
83773         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83774
83775         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83776
83777 2003-06-06  Jim Meyering  <jim@meyering.net>
83778
83779         * lib/stdbool_.h: Renamed from stdbool.h.in.
83780
83781 2003-06-06  Jim Meyering  <jim@meyering.net>
83782             Bruno Haible  <bruno@clisp.org>
83783
83784         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83785         Adjust Makefile.am snippet not to redirect directly to target.
83786         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83787
83788 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83789
83790         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83791         mismatch, look in future quarters as well as past.  This fixes a
83792         bug when processing fall-backwards gaps immediately after a long
83793         period of daylight-saving time.
83794
83795         * lib/mktime.c: Assume freestanding C89 or better.
83796         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83797         (__P): Remove; not used.
83798         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83799         (mktime, not_equal_tm, print_tm, check_result,
83800         main): Use prototypes.  Use const * where appropriate.
83801         (main): Fix typo in testing code that uncovered by above changes.
83802         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83803
83804 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83805
83806         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83807         locale.h, localeconv.  This merges changes from coreutils.
83808
83809         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83810         It can be removed after the next Autoconf is released.
83811         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83812         needed.
83813
83814 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83815
83816         * lib/mktime.c: Fix Debian bug 177940
83817         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83818         (localtime_offset): Now long int, not time_t, because we want it
83819         to be guaranteed to be signed.  All uses changed.
83820         (__mktime_internal): If overflow would occur when adding offset,
83821         don't add it.
83822
83823         Merge 'human' changes from coreutils.  Rewrite to support
83824         locale-specific notations like thousands separators.
83825         * lib/human.c: Simplify authorship notice.
83826         Include human.h immediately after config.h.
83827         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83828         <limits.h>: Do not include, since human.h does.
83829         (SIZE_MAX, UINTMAX_MAX): New macros.
83830         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83831         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83832         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83833         (power_letter): Renamed from suffixes.
83834         (generate_suffix_backwards): Remove.
83835         (adjust_value): Now takes int style (because of human.h changes)
83836         and long double value (for greater precision on some platforms).
83837         (group_number): New function.
83838         (human_readable): Use it.  Use integer options, not enum.
83839         Put the options before the sizes in the arg list.
83840         Support all the new options.
83841         The old human_readable function has been removed;
83842         use inttostr.h instead.
83843         (human_readable, default_block_size, humblock):
83844         Use uintmax_t, not int, for block sizes.
83845         (human_readable_inexact, block_size_types): Remove.
83846         (block_size_opts): New constant.
83847         (human_options): Renamed from human_block_size, with new signature
83848         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83849         * lib/human.h: Add copyright and authorship notice.
83850         Include <limits.h> and <stdbool.h> unconditionally.
83851         (PARAMS): Remove.  All uses removed.
83852         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83853         (enum human_inexact_style): Remove tag; now a nameless enum.
83854         (human_floor, human_ceiling, human_round_to_even): Now have
83855         values 2, 0, 1 rather than -1, 1, 0.
83856         (human_group_digits, human_suppress_point_zero, human_autoscale,
83857         human_base_1024, human_SI, human_B): New constants.
83858         (human_readable_inexact, human_block_size): Remove.
83859         (human_readable): Size args are now uintmax_t, not int.
83860         (human_options): New decl.
83861
83862         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83863         unnecessary now that we assume C89 or better.  This change
83864         imported from coreutils.
83865
83866         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83867         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83868         in the 2003-05-30 sync from glibc.
83869
83870         .h files should stand alone, but we shouldn't include <sys/types.h>
83871         if we can get away with just <stddef.h>.
83872
83873         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83874         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83875         rather than <sys/types.h>, as we merely need size_t.
83876         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83877         to get size_t.
83878         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83879         Include <stdio.h>, to get FILE.
83880         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83881         memcasecmp.h has included <stddef.h> and all we need is size_t.
83882         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83883         our interface, instead of including <sys/types.h>
83884
83885 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83886
83887         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83888         now, as glibc mktime is buggy on non-glibc systems.
83889
83890 2003-06-03  Karl Berry  <karl@gnu.org>
83891
83892         * config/config.sub: update from prep.
83893
83894 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83895
83896         [from coreutils]
83897         Fix some minor time-related bugs with POSIX time arguments.
83898         Some valid time stamps were being rejected (notably -1, and
83899         time stamps before 1900 on 64-bit hosts).  And some invalid
83900         time stamps were being accepted, e.g. September 31.
83901
83902         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83903         that we can return (time_t) -1 successfully.
83904         * lib/posixtm.c: Likewise.
83905         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83906         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83907         (t): Remove static var.
83908         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83909         of static var.  All uses changed.
83910         (year): Do not reject years before 1900; they can occur with
83911         64-bit time_t.
83912         (posix_time_parse): Do not check for out-of-range components;
83913         that is now the caller's responsibility, since our checks were
83914         only approximations.
83915         (posixtime): Use mktime to check for out-of-range components,
83916         since it knows them exactly.
83917         If mktime returns (time_t) -1, check whether an error actually occurred
83918         by invoking localtime on -1.
83919         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83920         posixtime failures better.
83921         Improve the test data (in comments only).
83922
83923 2003-06-02  Karl Berry  <karl@gnu.org>
83924
83925         * config/mkinstalldirs (version): new variable.
83926         (--version): new option.
83927         (usage): improve message.
83928
83929 2003-05-30  Karl Berry  <karl@gnu.org>
83930
83931         * lib/mktime.c: update from libc.
83932
83933 2003-05-30  Bruno Haible  <bruno@clisp.org>
83934
83935         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83936         * config/config.rpath: Upgrade to gettext-0.12.1.
83937
83938 2003-05-30  Bruno Haible  <bruno@clisp.org>
83939
83940         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83941         * m4/nls.m4: New file, from gettext-0.12.1.
83942         * m4/po.m4: New file, from gettext-0.12.1.
83943         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83944
83945 2003-05-30  Bruno Haible  <bruno@clisp.org>
83946
83947         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83948         * lib/localcharset.h: Likewise.
83949         * lib/localcharset.c: Likewise.
83950
83951 2003-05-29  Karl Berry  <karl@gnu.org>
83952
83953         * config/config.rpath: update from gettext.
83954
83955 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83956
83957         Assume the headers required for C89 freestanding compilers.
83958         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83959         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83960         * m4/human.m4 (gl_HUMAN): Likewise.
83961         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83962         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83963         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83964         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83965         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83966         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83967
83968 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83969
83970         Assume the headers required for C89 freestanding compilers.
83971         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83972         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83973         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83974         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83975         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83976         define, since <limits.h> is guaranteed to do that.
83977         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83978         * lib/exclude.c: Include <stdbool.h> unconditionally.
83979         * lib/tempname.c: Include <stddef.h> unconditionally.
83980         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83981         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83982         <stddef.h> does that.
83983         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83984         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83985         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83986         needed.
83987         * lib/xstrtol.c: Likewise.
83988         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83989         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83990
83991         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83992         warnings on some platforms.
83993
83994         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83995         arbitrarily.
83996
83997 2003-05-26  Jim Meyering  <jim@meyering.net>
83998
83999         Merge in a change from coreutils:
84000         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84001         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84002         that condition, rather than `-1' which is slightly misleading.
84003         Change the name of the cache variable to have the gl_ prefix.
84004         Prompted by a patch from Richard Dawe for DJGPP.
84005
84006 2003-05-24  Karl Berry  <karl@gnu.org>
84007
84008         * config/config.guess: update from prep.
84009
84010 2003-05-22  Karl Berry  <karl@gnu.org>
84011
84012         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84013
84014 2003-05-20  Karl Berry  <karl@gnu.org>
84015
84016         * config/config.guess: update from prep.
84017
84018 2003-05-18  Karl Berry  <karl@gnu.org>
84019
84020         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84021         might actually be set by the user.
84022
84023         * config/depcomp, install-sh, mdate-sh: update from automake.
84024
84025 2003-05-17  Bruno Haible  <bruno@clisp.org>
84026
84027         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84028         invalid expansion for AC_EGREP_CPP.
84029         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84030         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84031         Suggested by Akim Demaille <akim@epita.fr> in
84032         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84033
84034 2003-05-12  Jim Meyering  <jim@meyering.net>
84035
84036         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84037         the space-padded-by-default conversion specifiers, %e, %k, %l.
84038
84039 2003-05-12  Bruno Haible  <bruno@clisp.org>
84040
84041         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84042         the string is longer than 4 KB.
84043
84044 2003-05-11  Karl Berry  <karl@gnu.org>
84045
84046         * config/config.{guess,sub}: update from prep.
84047
84048 2003-05-09  Bruno Haible  <bruno@clisp.org>
84049
84050         * modules/error: Add m4/strerror_r.m4 to file list.
84051
84052 2003-05-03  Bruno Haible  <bruno@clisp.org>
84053
84054         Upgrade to Unicode-4.0.
84055         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84056         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84057         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84058         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84059         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84060         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84061         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84062         Change width of U+E0100..U+E01EF from 1 to 0.
84063
84064 2003-04-25  Jim Meyering  <jim@meyering.net>
84065
84066         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84067         of type size_t, not int.
84068
84069 2003-04-25  Bruno Haible  <bruno@clisp.org>
84070
84071         * lib/copy-file.c: Include <stddef.h>, for size_t.
84072
84073 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84074
84075         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84076         code which expansion is under static control.  Patch imported from
84077         Akim Demaille's patch to Bison; see
84078         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84079
84080 2003-04-14  Bruno Haible  <bruno@clisp.org>
84081
84082         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84083
84084 2003-04-11  Jim Meyering  <jim@meyering.net>
84085
84086         Merge changes from Coreutils.
84087
84088         2003-03-22  Jim Meyering  <jim@meyering.net>
84089
84090         * lib/strftime.c (widen): Cast alloca return value to proper type.
84091
84092         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84093
84094         From GNU libc.
84095         * lib/strftime.c (my_strftime): Handle very large width
84096         specifications for numeric values correctly.  Improve checks for
84097         overflow.
84098
84099         2003-01-19  Jim Meyering  <jim@meyering.net>
84100
84101         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84102         definitions.
84103         (nl_get_alt_digit) [! defined my_strftime]: Define.
84104         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84105         _nl_get_alt_digit and _nl_get_walt_digit.
84106
84107         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84108         libc. These changes have no effect outside of _LIBC.
84109
84110 2003-04-10  Bruno Haible  <bruno@clisp.org>
84111
84112         * modules/findprog: New file.
84113         * MODULES.html.sh (func_all_modules): Add it.
84114
84115 2003-04-10  Bruno Haible  <bruno@clisp.org>
84116
84117         * m4/findprog.m4: New file.
84118         * m4/eaccess.m4: New file.
84119
84120 2003-04-10  Bruno Haible  <bruno@clisp.org>
84121
84122         * lib/findprog.h: New file, from GNU gettext.
84123         * lib/findprog.c: New file, from GNU gettext.
84124
84125 2003-04-05  Jim Meyering  <jim@meyering.net>
84126
84127         Merge changes from Coreutils.
84128
84129         * lib/exclude.h (PARAMS): Remove definition and uses.
84130         * lib/exclude.c: Remove uses of `PARAMS'.
84131
84132         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84133         Add test-cases for DOS filenames. Declare program_name.
84134         (main): Set up program_name.  Patch by Rich Dawe.
84135
84136         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84137         error from mntctl.
84138         Use mntctl's return value to drive the entry-processing loop, since
84139         we can't rely on the value of the vmt_length member in the last
84140         entry.  On some systems doing so could result in exhausting
84141         virtual memory.  Based in part on a patch from Mike Jetzer.
84142
84143 2003-04-04  Bruno Haible  <bruno@clisp.org>
84144
84145         * modules/linebreak: New file.
84146         * MODULES.html.sh (func_all_modules): Add it.
84147
84148 2003-04-04  Bruno Haible  <bruno@clisp.org>
84149
84150         * m4/linebreak.m4: New file.
84151
84152 2003-04-04  Bruno Haible  <bruno@clisp.org>
84153
84154         * lib/linebreak.h: New file, from GNU gettext.
84155         * lib/linebreak.c: New file, from GNU gettext with slight
84156         modifications.
84157         * lib/lbrkprop.h: New file, from GNU gettext.
84158
84159 2003-04-03  Bruno Haible  <bruno@clisp.org>
84160
84161         * modules/utf8-ucs4: New file.
84162         * modules/utf16-ucs4: New file.
84163         * modules/ucs4-utf8: New file.
84164         * modules/ucs4-utf16: New file.
84165         * MODULES.html.sh (func_all_modules): Add them.
84166
84167 2003-04-03  Bruno Haible  <bruno@clisp.org>
84168
84169         * m4/utf-ucs4.m4: New file.
84170         * m4/ucs4-utf.m4: New file.
84171
84172 2003-04-03  Bruno Haible  <bruno@clisp.org>
84173
84174         * lib/utf8-ucs4.h: New file, from GNU gettext.
84175         * lib/utf16-ucs4.h: New file, from GNU gettext.
84176         * lib/ucs4-utf8.h: New file, from GNU gettext.
84177         * lib/ucs4-utf16.h: New file, from GNU gettext.
84178
84179 2003-04-02  Bruno Haible  <bruno@clisp.org>
84180
84181         * modules/binary-io: New file.
84182         * MODULES.html.sh (func_all_modules): Add it.
84183
84184 2003-04-02  Bruno Haible  <bruno@clisp.org>
84185
84186         * lib/binary-io.h: New file, from GNU gettext.
84187
84188 2003-04-01  Bruno Haible  <bruno@clisp.org>
84189
84190         * modules/pathname: New file.
84191         * MODULES.html.sh (func_all_modules): Add it.
84192
84193 2003-04-01  Bruno Haible  <bruno@clisp.org>
84194
84195         * lib/pathname.h: New file, from GNU gettext.
84196         * lib/concatpath.c: New file, from GNU gettext.
84197
84198 2003-03-30  Bruno Haible  <bruno@clisp.org>
84199
84200         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84201
84202 2003-03-30  Bruno Haible  <bruno@clisp.org>
84203
84204         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84205         function chown() doesn't exist.
84206
84207 2003-03-28  Bruno Haible  <bruno@clisp.org>
84208
84209         * modules/copy-file: New file.
84210         * MODULES.html.sh (func_all_modules): Add it.
84211
84212 2003-03-28  Bruno Haible  <bruno@clisp.org>
84213
84214         * m4/copy-file.m4: New file.
84215
84216 2003-03-28  Bruno Haible  <bruno@clisp.org>
84217
84218         * lib/copy-file.h: New file, from GNU gettext.
84219         * lib/copy-file.c: New file, from GNU gettext.
84220
84221 2003-03-18  Jim Meyering  <jim@meyering.net>
84222
84223         * lib/quote.c (quote_n): Fix typo in comment.
84224
84225 2003-03-18  Bruno Haible  <bruno@clisp.org>
84226
84227         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84228         checking.
84229         * m4/onceonly_2_57.m4: Likewise.
84230
84231 2003-03-17  Bruno Haible  <bruno@clisp.org>
84232
84233         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84234         (m4_quote): Remove macro.
84235         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84236
84237 2003-03-14  Jim Meyering  <jim@meyering.net>
84238
84239         Merge changes from Coreutils.
84240         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84241         to be const, in order to avoid warnings.
84242         (obstack_room): Likewise.
84243         (obstack_empty_p): Likewise.
84244
84245 2003-03-14  Bruno Haible  <bruno@clisp.org>
84246
84247         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84248         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84249
84250 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84251
84252         Merge changes from Bison.
84253         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84254         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84255         when compiling Bison 1.875's `bitset bset = obstack_alloc
84256         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84257         * lib/hash.c: Include <stdbool.h> unconditionally.
84258
84259 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84260
84261         * m4/onceonly.m4 (m4_quote): New macro.
84262         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84263         Quote AC_FOREACH variable-expansions properly.
84264
84265 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84266
84267         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84268
84269 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84270
84271         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84272         Reported by Bruce Becker; see:
84273         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84274
84275 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84276             Bruno Haible  <bruno@clisp.org>
84277
84278         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84279         Reported by John Hughes, see
84280         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84281
84282 2003-02-20  Bruno Haible  <bruno@clisp.org>
84283
84284         * MODULES.html.sh (func_all_modules): Add poll.
84285
84286 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84287
84288         * modules/poll: New file.
84289
84290 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84291
84292         * lib/poll_.h: New file.
84293         * lib/poll.c: New file.
84294
84295 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84296
84297         * m4/poll.m4: New file.
84298
84299 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84300
84301         * modules/mathl: New file.
84302
84303 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84304
84305         * lib/mathl.h: New file.
84306         * lib/acosl.c: New file.
84307         * lib/asinl.c: New file.
84308         * lib/atanl.c: New file.
84309         * lib/ceill.c: New file.
84310         * lib/cosl.c: New file.
84311         * lib/expl.c: New file.
84312         * lib/floorl.c: New file.
84313         * lib/frexpl.c: New file.
84314         * lib/ldexpl.c: New file.
84315         * lib/logl.c: New file.
84316         * lib/sincosl.c: New file.
84317         * lib/sinl.c: New file.
84318         * lib/sqrtl.c: New file.
84319         * lib/tanl.c: New file.
84320         * lib/trigl.c: New file.
84321         * lib/trigl.h: New file.
84322
84323 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84324
84325         * m4/mathl.m4: New file.
84326
84327 2003-02-18  Bruno Haible  <bruno@clisp.org>
84328
84329         * MODULES.html.sh (func_all_modules): Add mathl.
84330
84331 2003-02-17  Bruno Haible  <bruno@clisp.org>
84332
84333         * modules/mkdtemp: New module.
84334         * MODULES.html.sh (func_all_modules): Add it.
84335
84336 2003-02-17  Bruno Haible  <bruno@clisp.org>
84337
84338         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84339
84340 2003-02-17  Bruno Haible  <bruno@clisp.org>
84341
84342         * lib/mkdtemp.h: New file, from GNU gettext.
84343         * lib/mkdtemp.c: New file, from GNU gettext.
84344
84345 2003-02-02  Jim Meyering  <jim@meyering.net>
84346
84347         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84348         e.g. glibc-2.2.93.
84349
84350 2003-01-31  Bruno Haible  <bruno@clisp.org>
84351
84352         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84353         'rpl_rename'.
84354         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84355         'rpl_strnlen'.
84356         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84357         'rpl_strtod'.
84358         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84359         'rpl_utime'.
84360
84361 2003-01-31  Bruno Haible  <bruno@clisp.org>
84362
84363         * lib/rename.c: #undef rename before defining rpl_rename.
84364         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84365
84366 2003-01-30  Bruno Haible  <bruno@clisp.org>
84367
84368         * modules/vasnprintf, modules/vasprintf: New modules.
84369         * MODULES.html.sh (func_all_modules): Add them.
84370
84371 2003-01-30  Bruno Haible  <bruno@clisp.org>
84372
84373         * m4/signed.m4: New file, from GNU gettext.
84374         * m4/longdouble.m4: New file, from GNU gettext.
84375         * m4/wchar_t.m4: New file, from GNU gettext.
84376         * m4/wint_t.m4: New file, from GNU gettext.
84377         * m4/vasnprintf.m4: New file.
84378         * m4/vasprintf.m4: New file.
84379
84380 2003-01-30  Bruno Haible  <bruno@clisp.org>
84381
84382         * lib/printf-args.h: New file, from GNU gettext.
84383         * lib/printf-args.c: New file, from GNU gettext.
84384         * lib/printf-parse.h: New file, from GNU gettext.
84385         * lib/printf-parse.c: New file, from GNU gettext.
84386         * lib/vasnprintf.h: New file, from GNU gettext.
84387         * lib/vasnprintf.c: New file, from GNU gettext.
84388         * lib/asnprintf.c: New file, from GNU gettext.
84389         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84390         * lib/vasprintf.c: New file, from GNU gettext.
84391         * lib/asprintf.c: New file, from GNU gettext.
84392
84393 2003-01-29  Bruno Haible  <bruno@clisp.org>
84394
84395         * modules/stpncpy: New module.
84396         * MODULES.html.sh (func_all_modules): Add it.
84397
84398 2003-01-29  Bruno Haible  <bruno@clisp.org>
84399
84400         * m4/stpncpy.m4: New file.
84401
84402 2003-01-29  Bruno Haible  <bruno@clisp.org>
84403
84404         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84405         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84406
84407 2003-01-28  Bruno Haible  <bruno@clisp.org>
84408
84409         * modules/c-ctype: New module.
84410         * MODULES.html.sh (func_all_modules): Add it.
84411
84412 2003-01-28  Bruno Haible  <bruno@clisp.org>
84413
84414         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84415         Paul Eggert.
84416         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84417         Paul Eggert.
84418
84419 2003-01-27  Bruno Haible  <bruno@clisp.org>
84420
84421         * modules/xsetenv: New module.
84422         * MODULES.html.sh (func_all_modules): Add it.
84423
84424 2003-01-27  Bruno Haible  <bruno@clisp.org>
84425
84426         * lib/xsetenv.h: New file, from GNU gettext.
84427         * lib/xsetenv.c: New file, from GNU gettext.
84428
84429 2003-01-23  Jim Meyering  <jim@meyering.net>
84430
84431         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84432         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84433
84434 2003-01-23  Bruno Haible  <bruno@clisp.org>
84435
84436         * modules/minmax: New module.
84437         * MODULES.html.sh (func_all_modules): Add it.
84438
84439 2003-01-23  Bruno Haible  <bruno@clisp.org>
84440
84441         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84442         Eggert.
84443
84444 2003-01-22  Bruno Haible  <bruno@clisp.org>
84445
84446         * modules/exit: New module.
84447         * MODULES.html.sh (func_all_modules): Add it.
84448
84449 2003-01-22  Bruno Haible  <bruno@clisp.org>
84450
84451         * lib/exit.h: New file, from GNU gettext.
84452
84453 2003-01-19  Bruno Haible  <bruno@clisp.org>
84454
84455         * gnulib-tool: Recognize option --extract-maintainer.
84456         (func_get_maintainer): New function.
84457         * modules/*: Add Maintainer entry.
84458
84459 2003-01-16  Jim Meyering  <jim@meyering.net>
84460
84461         * m4/regex.m4: The `regex' struct is both input and output.
84462         Initialize it before each use.  Patch by Tim Waugh.
84463
84464 2003-01-16  Bruno Haible  <bruno@clisp.org>
84465
84466         * MODULES.html.sh: Add a table of contents. Add the module name as
84467         leftmost column. Add hyperlinks.
84468
84469 2003-01-15  Bruno Haible  <bruno@clisp.org>
84470
84471         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84472
84473 2003-01-15  Bruno Haible  <bruno@clisp.org>
84474
84475         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84476         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84477         suffix.
84478
84479 2003-01-15  Bruno Haible  <bruno@clisp.org>
84480
84481         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84482
84483 2003-01-15  Bruno Haible  <bruno@clisp.org>
84484
84485         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84486         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84487
84488 2003-01-14  Jim Meyering  <jim@meyering.net>
84489
84490         * lib/same.c (same_name): Tweak a comment.
84491
84492 2003-01-14  Bruno Haible  <bruno@clisp.org>
84493
84494         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84495         when a string comparison is sufficient.
84496
84497 2003-01-14  Bruno Haible  <bruno@clisp.org>
84498
84499         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84500         'unsigned int'.
84501
84502 2003-01-14  Bruno Haible  <bruno@clisp.org>
84503
84504         * lib/hash-pjw.c: Add comment about low quality of this function.
84505
84506 2003-01-13  Bruno Haible  <bruno@clisp.org>
84507
84508         * modules/stpcpy: Distribute lib/stpcpy.h.
84509         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84510
84511 2003-01-13  Bruno Haible  <bruno@clisp.org>
84512
84513         * modules/*: Add a description.
84514         * modules/strpbrk: Fix Makefile.am snippet.
84515         * modules/strtoimax: Fix dependencies.
84516         * modules/strtoumax: Likewise.
84517
84518 2003-01-13  Bruno Haible  <bruno@clisp.org>
84519
84520         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84521         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84522         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84523
84524 2003-01-13  Bruno Haible  <bruno@clisp.org>
84525
84526         * gnulib-tool (func_create_testdir): Store config/* files in the main
84527         directory.
84528         * config.rpath: Move to ...
84529         * config/config.rpath: ... here.
84530         * modules/gettext: Contains config/config.rpath, not config.rpath.
84531         * modules/iconv: Likewise.
84532
84533 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84534
84535         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84536         to avoid collisions with libcurses and libreadline.
84537
84538         * m4/getstr.m4: Remove.
84539         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84540
84541 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84542
84543         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84544         to avoid collisions with libcurses and libreadline.
84545
84546         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84547         * lib/getstr.h, getstr.c: Remove.
84548         * lib/getline.c: Include "getline.h", to check interface.
84549         Move body of old getstr.c here: this defines MIN_CHUNK and
84550         declares getdelim2, which is renamed from getstr.
84551         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84552
84553         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84554         All uses changed.
84555         * lib/linebuffer.h: Likewise.
84556         (readline): Remove backward-compatibility macro.
84557
84558 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84559
84560         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84561         to avoid collisions with libcurses and libreadline.
84562         * getstr: Remove.
84563         * MODULES.html.sh: Remove getstr.
84564         * modules/getline: Depend on unlocked-io, not getstr.
84565
84566 2003-01-12  Jim Meyering  <jim@meyering.net>
84567
84568         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84569
84570 2003-01-10  Bruno Haible  <bruno@clisp.org>
84571
84572         * modules/alloca: Change Makefile.am requirements. Simplify Include
84573         requirements. Add lib/alloca_.h to file list.
84574
84575 2003-01-10  Bruno Haible  <bruno@clisp.org>
84576
84577         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84578
84579 2003-01-10  Bruno Haible  <bruno@clisp.org>
84580
84581         * lib/alloca_.h: New file.
84582         * lib/getdate.y: Unconditionally include alloca.h.
84583         * lib/makepath.c: Likewise.
84584         * lib/setenv.c: Likewise.
84585         * lib/userspec.c: Likewise.
84586
84587 2003-01-09  Karl Berry  <karl@gnu.org>
84588
84589         * MODULES.html.sh: include `dirname $0` in PATH, to find
84590         gnulib-tool.
84591
84592 2003-01-09  Bruno Haible  <bruno@clisp.org>
84593
84594         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84595         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84596
84597 2003-01-09  Bruno Haible  <bruno@clisp.org>
84598
84599         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84600
84601 2003-01-09  Bruno Haible  <bruno@clisp.org>
84602
84603         * lib/stdbool.h.in: New file.
84604
84605 2003-01-09  Bruno Haible  <bruno@clisp.org>
84606
84607         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84608         * MODULES.html.sh: Likewise.
84609
84610 2003-01-08  Jim Meyering  <jim@meyering.net>
84611
84612         * lib/full-write.c: Undefine and define-away `const' after inclusion
84613         of errno.h, not before.  Suggestion from Bruno Haible.
84614
84615 2003-01-08  Bruno Haible  <bruno@clisp.org>
84616
84617         * modules/full-read: Depend on full-write.
84618
84619 2003-01-08  Bruno Haible  <bruno@clisp.org>
84620
84621         * lib/safe-read.c: Include specification header first, to ensure its
84622         selfcontainedness.
84623         * lib/full-write.c: Likewise.
84624
84625 2003-01-07  Jim Meyering  <jim@meyering.net>
84626
84627         * lib/full-write.c: Rework so that it may serve to define full_read,
84628         too.
84629         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84630
84631 2003-01-07  Bruno Haible  <bruno@clisp.org>
84632
84633         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84634         <inttypes.h>.
84635         * lib/xstrtol.h: Likewise.
84636         * lib/xstrtoimax.c: Likewise.
84637         * lib/xstrtoumax.c: Likewise.
84638         * lib/human.h: Likewise.
84639
84640         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84641         on systems that have <inttypes.h> but not <stdint.h>.
84642
84643 2003-01-07  Bruno Haible  <bruno@clisp.org>
84644
84645         * MODULES.html.sh: Add copyright notice.
84646         (missed_files): Omit CVS directory entries.
84647         (func_module): Make it work with sed-3.02.
84648         * MODULES.txt: Remove file.
84649
84650 2003-01-06  Jim Meyering  <jim@meyering.net>
84651
84652         * lib/version-etc.c: Update year in translatable copyright string.
84653
84654 2003-01-03  Karl Berry  <karl@gnu.org>
84655
84656         * config/config.{guess,sub}: update from prep.
84657
84658 2003-01-02  Karl Berry  <karl@gnu.org>
84659
84660         * doc/COPYING.DOC: belatedly updated to 1.2.
84661
84662 2003-01-01  Karl Berry  <karl@gnu.org>
84663
84664         * gnulib-tool (func_verify_module): report module name $module in
84665         error message, not $1.
84666         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84667         be created, only if it doesn't exist.
84668         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84669
84670 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84671
84672         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84673
84674 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84675
84676         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84677         memcmp if strcoll doesn't work.
84678
84679 2002-12-31  Bruno Haible  <bruno@clisp.org>
84680
84681         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84682         nonempty.
84683
84684 2002-12-31  Bruno Haible  <bruno@clisp.org>
84685
84686         * lib/memcoll.c (STRCOLL): New macro.
84687         (memcoll): Use it.
84688
84689 2002-12-31  Bruno Haible  <bruno@clisp.org>
84690
84691         * lib/localcharset.h: New file.
84692         * lib/localcharset.c: Include it.
84693         * lib/unicodeio.c: Likewise.
84694
84695 2002-12-31  Bruno Haible  <bruno@clisp.org>
84696
84697         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84698         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84699
84700 2002-12-31  Bruno Haible  <bruno@clisp.org>
84701
84702         * lib/getline.h: Include <stddef.h>, for size_t.
84703
84704         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84705         * lib/unicodeio.c: Don't include <stddef.h>.
84706
84707 2002-12-31  Bruno Haible  <bruno@clisp.org>
84708
84709         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84710         HAVE_TM_ZONE.
84711
84712 2002-12-24  Karl Berry  <karl@gnu.org>
84713
84714         * config/config.guess: update from prep.
84715
84716 2002-12-24  Bruno Haible  <bruno@clisp.org>
84717
84718         General infrasructure.
84719         * m4/README: Rewritten.
84720         * m4/onceonly.m4: New file.
84721         * m4/onceonly_2_57.m4: New file.
84722
84723         Module atexit.
84724         * m4/atexit.m4: New file.
84725
84726         Module strtod.
84727         * m4/strtod.m4: New file.
84728
84729         Module strtol.
84730         * m4/strtol.m4: New file.
84731
84732         Module strtoul.
84733         * m4/strtoul.m4: New file.
84734
84735         Module memchr.
84736         * m4/memchr.m4: New file.
84737
84738         Module memcmp.
84739         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84740         (jm_FUNC_MEMCMP): Invoke it.
84741
84742         Module memcpy.
84743         * m4/memcpy.m4: New file.
84744
84745         Module memmove.
84746         * m4/memmove.m4: New file.
84747
84748         Module memset.
84749         * m4/memset.m4: New file.
84750
84751         Module strcspn.
84752         * m4/strcspn.m4: New file.
84753
84754         Module strpbrk.
84755         * m4/strpbrk.m4: New file.
84756
84757         Module strstr.
84758         * m4/strstr.m4: New file.
84759
84760         Module strerror.
84761         * m4/strerror.m4: New file.
84762
84763         Module mktime.
84764         * m4/mktime.m4: Renamed from jm-mktime.m4.
84765         (gl_PREREQ_MKTIME): New macro.
84766         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84767
84768         Module malloc.
84769         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84770         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84771         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84772
84773         Module realloc.
84774         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84775         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84776         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84777
84778         Module strftime.
84779         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84780         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84781         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84782         gl_TM_GMTOFF.
84783         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84784
84785         Module xalloc.
84786         * m4/xalloc.m4: New file.
84787
84788         Module alloca.
84789         * m4/alloca.m4: New file.
84790
84791         Module putenv.
84792         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84793         (jm_FUNC_PUTENV): Invoke it.
84794
84795         Module setenv.
84796         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84797         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84798         when invoked twice.
84799         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84800         gt_FUNC_SETENV.
84801
84802         Module memrchr.
84803         * m4/memrchr.m4: New file.
84804
84805         Module stpcpy.
84806         * m4/stpcpy.m4: New file.
84807
84808         Module strcase.
84809         * m4/strcase.m4: New file.
84810
84811         Module strdup.
84812         * m4/strdup.m4: New file.
84813
84814         Module strnlen.
84815         * m4/strnlen.m4: New file.
84816
84817         Module strndup.
84818         * m4/strndup.m4: New file.
84819
84820         Module xstrtod.
84821         * m4/xstrtod.m4: New file.
84822
84823         Module xstrtol.
84824         * m4/xstrtol.m4: New file.
84825
84826         Module getdate.
84827         * m4/getdate.m4: New file.
84828
84829         Module unlocked-io.
84830         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84831         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84832         * m4/jm-glibc-io.m4n: Remove file.
84833
84834         Module long-options.
84835         * m4/long-options.m4: New file.
84836
84837         Module md5.
84838         * m4/md5.m4: New file.
84839
84840         Module sha.
84841         * m4/sha.m4: New file.
84842
84843         Module getstr.
84844         * m4/getstr.m4: New file.
84845
84846         Module getline.
84847         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84848         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84849         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84850         simply getline. Infoke gl_PREREQ_GETLINE.
84851
84852         Module obstack.
84853         * m4/obstack.m4: New file.
84854
84855         Module hash.
84856         * m4/hash.m4: New file.
84857
84858         Module readtokens.
84859         * m4/readtokens.m4: New file.
84860
84861         Module strverscmp.
84862         * m4/strverscmp.m4: New file.
84863
84864         Module stdbool.
84865         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84866         OSF/1.
84867
84868         Module strtoll.
84869         * m4/strtoll.m4: New file.
84870
84871         Module strtoull.
84872         * m4/strtoull.m4: New file.
84873
84874         Module strtoimax.
84875         * m4/strtoimax.m4: New file.
84876
84877         Module strtoumax.
84878         * m4/strtoumax.m4: New file.
84879
84880         Module xstrtoimax.
84881         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84882         jm_AC_PREREQ_XSTRTOIMAX.
84883         Moved the strtol prerequisites to strtol.m4.
84884         Moved the strtoll prerequisites to strtoll.m4.
84885         Moved the strtoimax prerequisites to strtoimax.m4.
84886
84887         Module xstrtoumax.
84888         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84889         jm_AC_PREREQ_XSTRTOUMAX.
84890         Moved the strtoul prerequisites to strtoul.m4.
84891         Moved the strtoull prerequisites to strtoull.m4.
84892         Moved the strtoumax prerequisites to strtoumax.m4.
84893
84894         Module chown.
84895         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84896         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84897
84898         Module dup2.
84899         * m4/dup2.m4: New file.
84900
84901         Module ftruncate.
84902         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84903         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84904
84905         Module getgroups.
84906         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84907         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84908
84909         Module gettimeofday.
84910         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84911         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84912         gl_PREREQ_GETTIMEOFDAY.
84913
84914         Module mkdir.
84915         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84916         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84917
84918         Module mkstemp.
84919         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84920         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84921         jm_AC_TYPE_UINTMAX_T.
84922         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84923
84924         Module stat.
84925         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84926         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84927
84928         Module lstat.
84929         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84930         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84931
84932         Module timespec.
84933         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84934         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84935         * m4/st_mtim.m4: Indentation.
84936
84937         Module nanosleep.
84938         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84939         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84940         gl_PREREQ_NANOSLEEP.
84941
84942         Module regex.
84943         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84944         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84945         (gl_REGEX): New macro.
84946
84947         Module rename.
84948         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84949         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84950
84951         Module rmdir.
84952         * m4/rmdir.m4: New file.
84953
84954         Module utime.
84955         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84956         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84957         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84958
84959         Module dirname.
84960         * m4/dirname.m4: New file.
84961
84962         Module getopt.
84963         * m4/getopt.m4: New file.
84964
84965         Module unistd-safer.
84966         * m4/unistd-safer.m4: New file.
84967
84968         Module fnmatch.
84969         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84970         declaration.
84971         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84972         (gl_FUNC_FNMATCH_POSIX): New macro.
84973         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84974         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84975         simply fnmatch.
84976
84977         Module exclude.
84978         * m4/exclude.m4: New file.
84979
84980         Module human.
84981         * m4/human.m4: New file.
84982
84983         Module acl.
84984         * m4/acl.m4: Nop.
84985
84986         Module backupfile.
84987         * m4/backupfile.m4: New file.
84988         * m4/d-ino.m4: Indentation.
84989
84990         Module fsusage.
84991         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84992         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84993         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84994
84995         Module dirfd.
84996         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84997         requirements.
84998
84999         Module euidaccess.
85000         * m4/euidaccess.m4: New file.
85001
85002         Module file-type.
85003         * m4/file-type.m4: New file.
85004
85005         Module fileblocks.
85006         * m4/fileblocks.m4: New file.
85007
85008         Module filemode.
85009         * m4/filemode.m4: New file.
85010
85011         Module isdir.
85012         * m4/isdir.m4: New file.
85013
85014         Module lchown.
85015         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85016         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85017
85018         Module makepath.
85019         * m4/makepath.m4: New file.
85020
85021         Module modechange.
85022         * m4/modechange.m4: New file.
85023
85024         Module mountlist.
85025         * m4/mountlist.m4: New file.
85026         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85027         Indentation.
85028
85029         Module path-concat.
85030         * m4/path-concat.m4: New file.
85031
85032         Module pathmax.
85033         * m4/pathmax.m4: New file.
85034
85035         Module same.
85036         * m4/same.m4: New file.
85037
85038         Module save-cwd.
85039         * m4/save-cwd.m4: New file.
85040
85041         Module savedir.
85042         * m4/savedir.m4: New file.
85043
85044         Module xgetcwd.
85045         * m4/xgetcwd.m4: New file.
85046         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85047
85048         Module xreadlink.
85049         * m4/xreadlink.m4: New file.
85050
85051         Module safe-read.
85052         * m4/safe-read.m4: New file.
85053
85054         Module safe-write.
85055         * m4/safe-write.m4: New file.
85056
85057         Module closeout.
85058         * m4/closeout.m4: New file.
85059
85060         Module stdio-safer.
85061         * m4/stdio-safer.m4: New file.
85062
85063         Module getpass.
85064         * m4/getpass.m4: New file.
85065
85066         Module getugroups.
85067         * m4/getugroups.m4: New file.
85068
85069         Module group-member.
85070         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85071         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85072
85073         Module idcache.
85074         * m4/idcache.m4: New file.
85075
85076         Module userspec.
85077         * m4/userspec.m4: New file.
85078
85079         Module gettime.
85080         * m4/clock_time.m4: New file.
85081         * m4/gettime.m4: New file.
85082
85083         Module settime.
85084         * m4/settime.m4: New file.
85085
85086         Module posixtm.
85087         * m4/posixtm.m4: New file.
85088
85089         Module gethostname.
85090         * m4/gethostname.m4: New file.
85091
85092         Module canon-host.
85093         * m4/canon-host.m4: New file.
85094
85095         Module gettext.
85096         * m4/codeset.m4: New file, from gettext-0.11.5.
85097         * m4/gettext.m4: New file, from gettext-0.11.5.
85098         * m4/glibc21.m4: New file, from gettext-0.11.5.
85099         * m4/iconv.m4: New file, from gettext-0.11.5.
85100         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85101         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85102         * m4/inttypes.m4: New file, from gettext-0.11.5.
85103         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85104         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85105         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85106         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85107         * m4/lib-link.m4: New file, from gettext-0.11.5.
85108         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85109         * m4/progtest.m4: New file, from gettext-0.11.5.
85110         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85111         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85112         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85113
85114         Module localcharset.
85115         * m4/localcharset.m4: New file.
85116
85117         Module hard-locale.
85118         * m4/hard-locale.m4: New file.
85119
85120         Module mbswidth.
85121         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85122         onceonly macros.
85123         * m4/mbrtowc.m4: Add comment.
85124
85125         Module memcasecmp.
85126         * m4/memcasecmp.m4: New file.
85127
85128         Module memcoll.
85129         * m4/memcoll.m4: New file.
85130
85131         Module unicodeio.
85132         * m4/unicodeio.m4: New file.
85133
85134         Module rpmatch.
85135         * m4/rpmatch.m4: New file.
85136
85137         Module yesno.
85138         * m4/yesno.m4: New file.
85139
85140         Module exitfail.
85141         * m4/exitfail.m4: New file.
85142
85143         Module c-stack.
85144         * m4/c-stack.m4 (gl_C_STACK): New macro.
85145         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85146
85147         Module error.
85148         * m4/error.m4 (gl_ERROR): New macro.
85149         (jm_PREREQ_ERROR): Use onceonly macros.
85150
85151         Module fatal.
85152         * m4/fatal.m4: New file.
85153
85154         Module getloadavg.
85155         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85156         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85157
85158         Module getpagesize.
85159         * m4/getpagesize.m4: New file.
85160
85161         Module getusershell.
85162         * m4/getusershell.m4: New file.
85163
85164         Module physmem.
85165         * m4/physmem.m4: New file.
85166
85167         Module posixver.
85168         * m4/posixver.m4: New file.
85169
85170         Module quotearg.
85171         * m4/quotearg.m4: New file.
85172
85173         Module quote.
85174         * m4/quote.m4: New file.
85175
85176         Module readutmp.
85177         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85178
85179         Module sig2str.
85180         * m4/sig2str.m4: New file.
85181
85182         Other.
85183         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85184         ulonglong.m4.
85185         * m4/intmax_t.m4: New file.
85186         * m4/d-type.m4: Indentation.
85187         * m4/jm-macros.m4: Update.
85188         * m4/prereq.m4 (jm_PREREQ): Update.
85189         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85190         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85191         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85192         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85193         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85194         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85195         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85196         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85197         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85198         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85199         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85200         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85201         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85202         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85203         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85204         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85205         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85206         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85207         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85208
85209 2002-12-24  Bruno Haible  <bruno@clisp.org>
85210
85211         * MODULES.txt: Update according to m4/ changes.
85212
85213         Module gettext.
85214         * config.rpath: New file, from gettext-0.11.5.
85215
85216         * modules/*: New module descriptions.
85217         * gnulib-tool: New file.
85218         * MODULES.html.sh: New file.
85219
85220 2002-12-21  Karl Berry  <karl@gnu.org>
85221
85222         * doc/fdl.texi: update to version 1.2.
85223
85224 2002-12-19  Karl Berry  <karl@gnu.org>
85225
85226         * config/config.guess: update from prep.
85227
85228 2002-12-18  Bruno Haible  <bruno@clisp.org>
85229
85230         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85231         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85232
85233 2002-12-17  Bruno Haible  <bruno@clisp.org>
85234
85235         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85236         stdlib.h, string.h.
85237
85238 2002-12-17  Bruno Haible  <bruno@clisp.org>
85239
85240         * lib/canon-host.c (strdup): Remove unused declaration.
85241
85242         * lib/fsusage.c: Include full_read.h.
85243         (get_fs_usage): Use full_read instead of safe_read.
85244
85245         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85246
85247 2002-12-12  Karl Berry  <karl@gnu.org>
85248
85249         * config/config.guess: update from prep.
85250
85251 2002-12-11  Bruno Haible  <bruno@clisp.org>
85252
85253         * m4/setenv.m4: New file, from gettext-0.11.5.
85254
85255 2002-12-11  Bruno Haible  <bruno@clisp.org>
85256
85257         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85258         not unsetenv().
85259         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85260         modifications:
85261
85262         2002-12-11  Bruno Haible  <bruno@clisp.org>
85263
85264                 * setenv.c (alloca): Fall back to malloc.
85265                 (freea): New macro.
85266                 (setenv): Use freea() to free memory allocated with alloca().
85267
85268         2002-11-13  Bruno Haible  <bruno@clisp.org>
85269
85270                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85271                 function declarations.
85272                 * unsetenv.c (unsetenv): Likewise.
85273
85274         2002-03-04  Bruno Haible  <bruno@clisp.org>
85275
85276                 Portability to AIX 4.3.3.
85277                 * unsetenv.c: New file, extracted from setenv.c.
85278                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85279
85280         2001-12-20  Bruno Haible  <bruno@clisp.org>
85281
85282                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85283                 use malloc instead. For SunOS 4.
85284
85285         2001-12-11  Bruno Haible  <bruno@clisp.org>
85286
85287                 * setenv.c: Declare alloca.
85288                 (compar_fn_t): New typedef.
85289                 (KNOWN_VALUE, STORE_VALUE): Use it.
85290
85291         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85292         setenv.h.
85293
85294 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85295
85296         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85297         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85298         Choose values that are less likely to collide with system fnmatch
85299         options.
85300         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85301         defined (e.g., a pure POSIX system).
85302         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85303         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85304
85305 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85306
85307         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85308         a pain in practice to deal with generated m4 files.  This change
85309         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85310
85311         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85312         and jm-glibc-io.m4, as they are no longer a special case.
85313         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85314         kludge and the auto-generation stuff.  Check only whether the
85315         functions are declared, not whether they exist, since older hosts
85316         that don't declare the functions can't use the optimization anyway.
85317
85318 2002-12-06  Jim Meyering  <jim@meyering.net>
85319
85320         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85321
85322         Merge in changes from libc's misc/error.c, in preparation
85323         for the merge of gnulib's changes back into libc.
85324
85325         * lib/error.c (_): Define only if not already defined.
85326         Move definition to follow all #include directives.
85327         Include unlocked-io.h only if !_LIBC.
85328         [_LIBC]: Include <libio/libioP.h>.
85329         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85330         (fflush): Tweak definition to use INTUSE.
85331         (putc): Define.
85332
85333 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85334
85335         * lib/alloca.c [defined emacs]: Include "lisp.h".
85336         (xalloc_die) [defined emacs]: New macro.
85337         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85338         [! defined emacs]: Include <xalloc.h>.
85339         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85340         (pointer): Typedef to POINTER_TYPE *.
85341         (malloc): Remove decl; we now always use xmalloc.
85342         (alloca): Use old-style definition, since Emacs needs this.
85343         Check for arithmetic overflow when computing combined size.
85344
85345 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85346
85347         Do not generate unlocked-io.h automatically, since it's easier to
85348         maintain it by hand.
85349
85350         * lib/unlocked-io.h: New file, from GNU diffutils,
85351         but with proper copyright notice and attribution.
85352         * lib/gen-uio: Remove.
85353         * lib/Makefile.am: Add copyright notice.
85354         (libfetish_a_SOURCES): Add unlocked-io.h.
85355         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85356         (DISTCLEANFILES, io_functions): Remove macros.
85357         (EXTRA_DIST): Remove gen_uio.
85358         (unlocked-io.h): Remove rule.
85359
85360 2002-12-04  Jim Meyering  <jim@meyering.net>
85361
85362         Reflect the fact that stat.c and lstat.c are no longer generated.
85363         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85364         (DISTCLEANFILES): Likewise.
85365         (EXTRA_DIST): Likewise.
85366         (all_local): Don't depend on stat.c or lstat.c.
85367         (stat.c, lstat.c): Remove rules.
85368         (EXTRA_DIST): Remove xstat.in.
85369
85370         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85371         * lib/stat.c: New file.  Contents mostly from xstat.in.
85372         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85373         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85374
85375         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85376         too.
85377         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85378
85379 2002-12-03  Jim Meyering  <jim@meyering.net>
85380
85381         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85382         but not semantics, to minimize the differences between these two files.
85383         (safe_read): Change comment to mention SAFE_READ_ERROR.
85384
85385         * lib/safe-read.c (IS_EINTR): Define.
85386         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85387
85388 2002-12-02  Jim Meyering  <jim@meyering.net>
85389
85390         * lib/safe-read.c (EINTR): Define.
85391         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85392         (INT_MAX): Provide fallback.
85393         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85394
85395         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85396
85397 2002-12-02  Bruno Haible  <bruno@clisp.org>
85398
85399         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85400         Define, taken from safe-read.c.
85401         (INT_MAX): Provide fallback.
85402         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85403         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85404
85405         * lib/safe-read.c (EINTR): Remove definition.
85406         (safe_read): Don't use EINTR if it is absent.
85407
85408 2002-12-01  Jim Meyering  <jim@meyering.net>
85409
85410         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85411         zero.
85412         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85413
85414 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85415
85416         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85417         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85418         with `if (! (value < limit)) abort ();', for readability.
85419
85420 2002-11-26  Karl Berry  <karl@gnu.org>
85421
85422         * lib/strdup.c: copy from libc again, with jim's ok.
85423         * lib/.cppi-disable: re-add strdup.c
85424
85425 2002-11-25  Karl Berry  <karl@gnu.org>
85426
85427         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85428         instead of "strtol.c".
85429
85430 2002-11-25  Karl Berry  <karl@gnu.org>
85431
85432         * config/install-sh: update from automake for variable quoting, $0 in
85433         error msgs, etc.
85434
85435         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85436         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85437         entry.
85438
85439 2002-11-25  Jim Meyering  <jim@meyering.net>
85440
85441         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85442
85443 2002-11-24  Karl Berry  <karl@gnu.org>
85444
85445         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85446         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85447
85448 2002-11-24  Jim Meyering  <jim@meyering.net>
85449
85450         Update from coreutils:
85451
85452         * lib/mktime.c: Merge in changes from libc.
85453
85454         Avoid a link-time failure on some Linux systems.
85455         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85456         (otherwise).
85457         (__mon_yday): Declare with the STATIC attribute.
85458         (__mktime_internal): Likewise.
85459         Based on a report from Greg Schafer.
85460
85461 2002-11-23  Jim Meyering  <jim@meyering.net>
85462
85463         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85464         Use `unsigned', not `int', as type of index.
85465
85466         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85467
85468         * lib/fsusage.c: Remove unneeded parentheses around operands of
85469         `defined'.
85470
85471 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85472
85473         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85474         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85475         so that we can be included first.
85476         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85477         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85478         No need to include stddef.h or sys/types.h any more.
85479         Surround local include files with "", not "<>".
85480         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85481         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85482         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85483         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85484         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85485         (ISPRINT): Remove; no longer needed now that we assume C89.
85486
85487         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85488         Preserve errno.
85489
85490         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85491         quotearg_char): Use SIZE_MAX rather than
85492         (size_t) -1 when we are talking about "infinity".
85493
85494         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85495
85496 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85497
85498         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85499         hint that one should use `if (! x) abort ();' rather than `assert
85500         (x);', and anyway it's one less thing to worry about configuring.
85501         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85502         hash_rehash, hash_insert): Use abort rather than assert.
85503
85504 2002-11-22  Bruno Haible  <bruno@clisp.org>
85505
85506         * lib/safe-read.h: Assume C89. Add comments.
85507         (safe_read): Change return type to size_t.
85508         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85509         byte counts > SSIZE_MAX correctly.
85510         * lib/safe-write.h: New file.
85511         * lib/safe-write.c: New file.
85512         * lib/full-read.h: New file.
85513         * lib/full-read.c: New file.
85514         * lib/full-write.h: Assume C89. Add comments.
85515         * lib/full-write.c: Include safe-write.h.
85516         (full_write): Rewritten to use safe_write.
85517         Suggested by Jim Meyering and Paul Eggert.
85518
85519 2002-11-21  Jim Meyering  <jim@meyering.net>
85520
85521         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85522
85523         Merge in changes from the coreutils.
85524
85525         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85526         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85527         <stdint.h>.
85528         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85529         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85530         int.  Work more efficiently if X is the same width as uintmax_t.
85531         Do not compare X to -1, to avoid bogus compiler warning.
85532         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85533         Don't assume that f_frsize and f_bsize are the same type.
85534
85535         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85536         warning on FreeBSD.
85537
85538         * lib/makepath.c (make_path): Restore umask *before* creating the final
85539         component.
85540         (make_path): Minor reformatting.
85541
85542         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85543         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85544         HAVE_MALLOC/HAVE_REALLOC.
85545
85546         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85547         dummy ones.  At least on GNU/Linux systems, `auto' means something
85548         else.
85549         From Michael Stone.
85550
85551 2002-11-21  Bruno Haible  <bruno@clisp.org>
85552
85553         Remove case insensitive option matching.
85554         * lib/argmatch.h (argcasematch): Remove declaration.
85555         (ARGCASEMATCH): Remove macro.
85556         (__xargmatch_internal): Remove case_sensitive argument.
85557         (XARGMATCH): Update.
85558         (XARGCASEMATCH): Remove macro.
85559         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85560         case_sensitive argument.
85561         (argcasematch): Remove function.
85562         (__xargmatch_internal): Remove case_sensitive argument.
85563         (main): Use XARGMATCH instead of XARGCASEMATCH.
85564
85565         * lib/xmalloc.c: Change compile-time error message. Add comment about
85566         required autoconf version.
85567
85568 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85569
85570         Merge argmatch cleanups from Bison.  Assume C89.
85571
85572         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85573         Include stdlib.h, for EXIT_FAILURE.
85574         Always include <string.h>, since we assume C89.
85575         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85576         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85577         Include <stddef.h> instead, since it's all we need for size_t.
85578         (PARAMS): Remove.  All uses removed.
85579         (ARRAY_CARDINALITY): Do not bother to #undef.
85580         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85581         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85582         Remove unnecessary parentheses.
85583         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85584         Insert necessary parentheses.
85585         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85586         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85587
85588 2002-11-19  Bruno Haible  <bruno@clisp.org>
85589
85590         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85591         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85592
85593         * lib/mbswidth.h (PARAMS): Remove macro.
85594         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85595         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85596
85597         * lib/gcd.h (PARAMS): Remove macro.
85598         (gcd): Use ANSI C function declarations.
85599         * lib/gcd.c (gcd): Likewise.
85600
85601 2002-11-15  Bruno Haible  <bruno@clisp.org>
85602
85603         * lib/strcspn.c: Include <stddef.h>.
85604         (strcspn): Use ANSI C function declaration. Change return type to
85605         size_t. Use NULL.
85606         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85607         (strpbrk): Use NULL.
85608         * lib/strpbrk.h (PARAMS): Remove macro.
85609         (strpbrk): Use ANSI C function declaration.
85610         * lib/strstr.c: Don't include <sys/types.h>.
85611         * lib/strstr.h (PARAMS): Remove macro.
85612         (strstr): Use ANSI C function declarations.
85613
85614 2002-11-14  Karl Berry  <karl@gnu.org>
85615
85616         * config/mkinstalldirs: `do' on separate line, instead of
85617         `for var; do'.
85618
85619 2002-11-06  Bruno Haible  <bruno@clisp.org>
85620
85621         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85622         * lib/gcd.c (gcd): Likewise.
85623
85624 2002-11-05  Bruno Haible  <bruno@clisp.org>
85625
85626         * lib/gcd.h: New file, from gettext-0.11.5.
85627         * lib/gcd.c: New file, from gettext-0.11.5.
85628
85629 2002-11-05  Bruno Haible  <bruno@clisp.org>
85630
85631         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85632         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85633         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85634         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85635
85636         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85637         <libintl.h>.
85638         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85639         <libintl.h>.
85640
85641         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85642         * lib/human.c: Include gettext.h instead of <libintl.h>.
85643         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85644         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85645         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85646         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85647         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85648         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85649         (textdomain): Remove definition.
85650         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85651
85652         * lib/long-options.c: Remove include of <libintl.h> and definition of
85653         _.
85654         * lib/same.c: Remove include of <libintl.h> and definition of _.
85655
85656 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85657
85658         * lib/config.charset: A few additions for Solaris.
85659
85660 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85661
85662         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85663         * lib/localcharset.c (locale_charset): Declare as extern "C".
85664
85665 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85666
85667         * lib/config.charset: msdos in uk_UA uses CP1125.
85668
85669 2002-11-04  Bruno Haible  <bruno@clisp.org>
85670
85671         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85672         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85673         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85674         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85675         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85676
85677 2002-11-04  Bruno Haible  <bruno@clisp.org>
85678
85679         * lib/localcharset.c (locale_charset): Don't return an empty string.
85680
85681 2002-11-04  Bruno Haible  <bruno@clisp.org>
85682
85683         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85684         aliases.
85685
85686 2002-11-04  Bruno Haible  <bruno@clisp.org>
85687
85688         * lib/config.charset: Update for newest glibc. Add canonical names
85689         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85690
85691 2002-11-04  Bruno Haible  <bruno@clisp.org>
85692
85693         * lib/config.charset: Add support for NetBSD.
85694
85695 2002-11-04  Bruno Haible  <bruno@clisp.org>
85696
85697         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85698
85699 2002-11-01  Bruno Haible  <bruno@clisp.org>
85700
85701         * configure.in: Add AC_CONFIG_AUX_DIR call.
85702         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85703         test/Makefile.
85704         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85705
85706 2002-09-28  Karl Berry  <karl@gnu.org>
85707
85708         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85709         installed automake until the next release, since changes have been
85710         made.
85711
85712 2002-09-25  Karl Berry  <karl@gnu.org>
85713
85714         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85715         * lib/getopt*: copy from libc/posix.
85716         * lib/gettext.h: copy from gettext.
85717         * lib/.cppi-disable: add strdup.c, gettext.h.
85718
85719 2002-09-25  Karl Berry  <karl@gnu.org>
85720
85721         * config/srclist.txt: enable gettext.h check.
85722         * config/config.{guess,sub}: update from prep.
85723         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85724                 from automake 1.6.3.
85725         See srclist*.
85726
85727 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85728
85729         * regex.c (PATFETCH): Remove the translating fetch.
85730         (PATFETCH_RAW): Rename to PATFETCH.
85731         (set_image_of_range): New fun.
85732         (SET_RANGE_TABLE_WORK_AREA): Use it.
85733         (regex_compile): Don't translate the pattern chars so eagerly.
85734         Only do it when inserting an `exactn' bytecode or when handling
85735         a char-range.
85736         (mutually_exclusive_p): Avoid empty statement.
85737
85738 2002-07-06  Jim Meyering  <meyering@lucent.com>
85739
85740         * m4/README: Don't mention Makefile.am.in.
85741         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85742
85743 2002-07-01  Jim Meyering  <meyering@lucent.com>
85744
85745         * lib/c-stack.c: Include sys/time.h.
85746         From Volker Borchert.
85747
85748 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85749
85750         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85751
85752 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85753
85754         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85755         New macro.  Use it uniformly instead of
85756         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85757         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85758         reported by Vin Shelton.
85759
85760 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85761
85762         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85763         Do not assume SA_SIGINFO behavior.
85764         Bug reported by Jim Meyering on NetBSD 1.5.2.
85765
85766 2002-06-22  Jim Meyering  <meyering@lucent.com>
85767
85768         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85769         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85770
85771         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85772         now that configure.ac uses AC_GNU_SOURCE.
85773         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85774         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85775
85776         Update to latest tools.  Suggestions from Paul Eggert.
85777         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85778         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85779         * m4/fnmatch.m4: Likewise.
85780         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85781         to AC_HEADER_STDBOOL
85782
85783 2002-06-22  Jim Meyering  <meyering@lucent.com>
85784
85785         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85786         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85787
85788 2002-06-22  Jim Meyering  <meyering@lucent.com>
85789
85790         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85791
85792         * lib/exitfail.c, exitfail.h: Likewise.
85793         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85794
85795         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85796         of fnmatch.h.
85797         (EXTRA_DIST): Add fnmatch_loop.c.
85798         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85799
85800         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85801         * lib/fnmatch.c: Update from diffutils-2.8.2.
85802         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85803         * lib/fnmatch.h: Remove file.
85804
85805 2002-06-21  Jim Meyering  <meyering@lucent.com>
85806
85807         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85808         * m4/mbrtowc.m4: Likewise.
85809
85810         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85811         * m4/mbswidth.m4: Reflect name change:
85812         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85813         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85814
85815         * m4/lib-link.m4: Update from gettext-0.11.2.
85816         * m4/gettext.m4: Likewise.
85817
85818         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85819         From Alfred M. Szmidt.
85820
85821 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85822
85823         * lib/file-type.h: Report an error if neither S_ISREG nor
85824         S_IFREG is defined, instead of using a test specific to glibc
85825         2.2.  This should be safe, since POSIX requires S_ISREG and
85826         Unix Version 7 had S_IFREG.  We don't need to check for
85827         <sys/types.h> since we don't use any symbols that it defines.
85828
85829 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85830
85831         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85832         $@-t, so that each temporary file name is unique and valid in the first
85833         8 characters, for operation under DOS.
85834
85835 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85836
85837         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85838
85839 2002-06-15  Jim Meyering  <meyering@lucent.com>
85840
85841         Work even with DJGPP 2.03, which lacks support for symlinks.
85842         From Richard Dawe.
85843         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85844         is defined.
85845         * lib/lchown.c (S_ISLNK): Likewise.
85846
85847 2002-06-15  Jim Meyering  <meyering@lucent.com>
85848
85849         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85850         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85851         have been included before this file.
85852
85853 2002-06-14  Jim Meyering  <meyering@lucent.com>
85854
85855         * lib/file-type.h: Use the version from diffutils-2.8.2.
85856         * lib/file-type.c: Likewise.
85857
85858 2002-06-07  Jim Meyering  <meyering@lucent.com>
85859
85860         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85861         They're needed at least for NetBSD 1.5.2.
85862         ($statxfs_includes): Include those same headers.
85863         ($statxfs_includes): Include sys/vfs.h if available.
85864         ($statxfs_includes): Likewise for sys/statvfs.h.
85865         Check for the following members in both structs statfs and statvfs:
85866         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85867
85868 2002-06-01  Jim Meyering  <meyering@lucent.com>
85869
85870         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85871         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85872
85873 2002-05-28  Jim Meyering  <meyering@lucent.com>
85874
85875         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85876         Reported by Volker Borchert.
85877
85878 2002-05-27  Jim Meyering  <meyering@lucent.com>
85879
85880         Fix a problem seen only on nonconforming systems whereby ls.c's
85881         use of localtime, and then of gettimeofday would cause trouble:
85882         the localtime call used to initialize rpl_gettimeofday's save
85883         mechanism would clobber ls's current local time information so
85884         that in any long listing the first file would always be listed
85885         with date 1970-01-01.  Analysis by Volker Borchert.
85886
85887         * lib/gettimeofday.c (localtime): Undefine.
85888         (rpl_localtime): New function.
85889
85890 2002-05-27  Jim Meyering  <meyering@lucent.com>
85891
85892         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85893         localtime.
85894
85895         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85896         use the replacement function; it wouldn't resolve at link time.
85897         Reported by Volker Borchert.
85898
85899 2002-05-22  Jim Meyering  <meyering@lucent.com>
85900
85901         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85902         file-type.h.
85903         * lib/file-type.h: New file.
85904         * lib/file-type.c (file_type): New file/function.  Extracted from
85905         diffutils.
85906
85907 2002-04-30  Jim Meyering  <meyering@lucent.com>
85908
85909         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85910
85911 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85912
85913         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85914
85915 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85916
85917         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85918         Do not check for alloca.h (no longer used) or stdbool.h (was never
85919         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85920
85921 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85922
85923         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85924
85925 2002-04-29  Jim Meyering  <meyering@lucent.com>
85926
85927         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85928         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85929         Use AC_FUNC_STRNLEN here instead.
85930
85931         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85932         With autoconf-2.53a, it's part of AC_PROG_CC.
85933
85934 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85935
85936         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85937         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85938
85939 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85940
85941         * lib/sig2str.h, lib/sig2str.c: New files.
85942         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85943
85944 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85945
85946         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85947         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85948         of 127, since 64 is the largest conceivable number for ancient
85949         nonstandard hosts.
85950         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85951
85952 2002-04-28  Jim Meyering  <meyering@lucent.com>
85953
85954         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85955
85956 2002-04-24  Jim Meyering  <meyering@lucent.com>
85957
85958         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85959         (jm_PREREQ): Use it.
85960
85961         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85962         mach/mach.h fcntl.h.
85963         Check for this function: setlocale.
85964
85965 2002-04-24  Jim Meyering  <meyering@lucent.com>
85966
85967         * lib/gettext.h: New file, from Gettext.
85968         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85969         (libfetish_a_SOURCES): Add gettext.h.
85970
85971 2002-04-16  Jim Meyering  <meyering@lucent.com>
85972
85973         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85974         ut_pid, ut_id, ut_exit.
85975
85976 2002-04-16  Jim Meyering  <meyering@lucent.com>
85977
85978         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85979         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85980         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85981
85982 2002-04-12  Jim Meyering  <meyering@lucent.com>
85983
85984         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85985         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85986         existence of the getmntinfo function.  Needed for Darwin 5.3.
85987
85988         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85989         This is necessary at least on Darwin 5.3.
85990
85991         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85992         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85993         strnlen.o in the library, and that makes some versions of ranlib
85994         object.
85995
85996 2002-04-12  Jim Meyering  <meyering@lucent.com>
85997
85998         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85999
86000 2002-04-09  Jim Meyering  <meyering@lucent.com>
86001
86002         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86003         to be more precise.  Rather than saying we're checking whether the
86004         function `works', say what we're testing.
86005         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86006         Reported by Bruno Haible.
86007
86008 2002-03-10  Jim Meyering  <meyering@lucent.com>
86009
86010         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86011         Suggestion from Santiago Vila.
86012
86013 2002-03-08  Jim Meyering  <meyering@lucent.com>
86014
86015         * lib/rename.c: Mention that this wrapper is needed also on
86016         mips-dec-ultrix4.4 systems.
86017
86018 2002-03-02  Jim Meyering  <meyering@lucent.com>
86019
86020         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86021         not HAVE_CLOCK_SETTIME.
86022
86023 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86024
86025         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86026         Check for clock_settime.
86027
86028 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86029
86030         * lib/nanosleep.h: Rename to....
86031         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86032
86033         * lib/gettime.c: New file.
86034         * lib/settime.c: New file.
86035         * lib/stime.c: Remove.
86036
86037         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86038         timespec.h.  Remove nanosleep.h.
86039
86040 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86041
86042         * m4/acl.m4: New file.
86043         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86044         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86045
86046 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86047
86048         * lib/acl.c, lib/acl.h: New files.
86049         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86050
86051 2002-02-24  Jim Meyering  <meyering@lucent.com>
86052
86053         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86054         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86055         cause trouble.  Reported by Nelson Beebe.
86056
86057 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86058
86059         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86060         compilers that don't know that xalloc_die never returns.
86061
86062 2002-02-20  Jim Meyering  <meyering@lucent.com>
86063
86064         * lib/getdate.c: Regenerate using bison-1.33.
86065
86066 2002-02-17  Jim Meyering  <meyering@lucent.com>
86067
86068         * config/config.guess (main): Don't use `head -1'; it's no longer
86069         portable. Use `sed 1q' instead.
86070
86071 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86072
86073         * m4/codeset.m4: Upgrade to gettext-0.11.
86074         * m4/gettext.m4: Upgrade to gettext-0.11.
86075         * m4/glibc21.m4: Upgrade to gettext-0.11.
86076         * m4/iconv.m4: Upgrade to gettext-0.11.
86077         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86078         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86079         * m4/lib-ld.m4: New file, from gettext-0.11.
86080         * m4/lib-link.m4: New file, from gettext-0.11.
86081         * m4/lib-prefix.m4: New file, from gettext-0.11.
86082         * m4/progtest.m4: Upgrade to gettext-0.11.
86083
86084 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86085
86086         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86087         (jm_PREREQ): Use it.
86088
86089 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86090
86091         * lib/posixver.c, lib/posixver.h: New files.
86092         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86093
86094 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86095             Bruno Haible  <bruno@clisp.org>
86096
86097         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86098         (fwrite_success_callback): New declaration.
86099         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86100         print_unicode_char. Call failure callback instead of error.
86101         (fwrite_success_callback): New function.
86102         (exit_failure_callback): New function.
86103         (fallback_failure_callback): New function.
86104         (print_unicode_char): Call unicode_to_mb.
86105
86106 2002-01-26  Jim Meyering  <meyering@lucent.com>
86107
86108         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86109         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86110
86111 2002-01-26  Jim Meyering  <meyering@lucent.com>
86112
86113         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86114
86115 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86116
86117         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86118
86119 2002-01-22  Jim Meyering  <meyering@lucent.com>
86120
86121         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86122         Otherwise, some versions of automake would omit the rule that makes
86123         Makefile from Makefile.in.
86124
86125 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86126
86127         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86128         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86129         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86130         (memcoll): Set errno to zero if there is no error.
86131
86132         * lib/quotearg.c (quotearg_buffer_restyled):
86133         Fix bug with quoting buffers containing NUL when backslashing escapes.
86134         This bug was exposed by the other changes in this patch.
86135         (quotearg_n_options): New arg ARGSIZE.
86136         All callers changed.
86137         (quoting_options_from_style): New function.
86138         (quotearg_n_style): Use it.
86139         (quotearg_n_style_mem): New function.
86140
86141         * lib/quotearg.h (quotearg_n_style_mem): New function.
86142
86143 2002-01-19  Jim Meyering  <meyering@lucent.com>
86144
86145         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86146         Remove useless quotes: DF_PROG="df".
86147         * m4/strnlen.m4: New file.
86148
86149 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86150
86151         * lib/backupfile.c (ISDIGIT): Comment fix.
86152         * lib/getdate.y (ISDIGIT): Likewise.
86153         * lib/posixtm.c (ISDIGIT, year): Likewise.
86154         * lib/strverscmp.c (ISDIGIT): Likewise.
86155         * lib/userspec.c (ISDIGIT): Likewise.
86156
86157 2002-01-16  Jim Meyering  <meyering@lucent.com>
86158
86159         * lib/getdate.y: Add three semicolons, each just before a closing
86160         brace. Bison (as of version 1.31) no longer papers over that mistake.
86161
86162 2002-01-05  Jim Meyering  <meyering@lucent.com>
86163
86164         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86165
86166 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86167
86168         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86169         not silently exit merely because the output buffer happens to
86170         have nothing pending.
86171
86172 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86173
86174         See the big note in ../ChangeLog.
86175         * lib/human.c (suffixes): Prefer K to k for 1024.
86176         (generate_suffix_backwards): New function.
86177         (human_readable_inexact): Use it.
86178         * lib/xstrtol.c (__xstrtol): If there is no number but there
86179         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86180         Accept 'K' as well as 'k'.
86181
86182 2001-12-15  Jim Meyering  <meyering@lucent.com>
86183
86184         * lib/regex.h (__restrict_arr): Update from libc.
86185
86186         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86187         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86188         (STREQ): Define.
86189
86190 2001-12-14  Jim Meyering  <meyering@lucent.com>
86191
86192         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86193         Suggestion from Bruno Haible.
86194
86195 2001-12-10  Jim Meyering  <meyering@lucent.com>
86196
86197         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86198         xrealloc, Instead, include "xalloc.h".
86199         (initbuffer): Don't cast xmalloc return value to char*.
86200         (readline): Reword comment.
86201         Don't cast xrealloc return value to char*
86202         Return NULL, not 0.
86203
86204 2001-12-09  Jim Meyering  <meyering@lucent.com>
86205
86206         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86207         about `signed and unsigned type in conditional expression'.
86208         * lib/posixtm.c (posix_time_parse): Likewise.
86209
86210         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86211
86212         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86213         to avoid a pedantic warning.
86214
86215         * lib/getstr.c: Don't include assert.h.
86216         (getstr): Remove warning-evoking assertions.
86217         Return -1 if offset parameter is out of bounds.
86218         Change the type of a local from int to size_t.
86219
86220         * lib/strftime.c (my_strftime_localtime_r): Include this function
86221         definition in the `#if ! HAVE_TM_GMTOFF' block.
86222
86223         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86224         Include xalloc.h instead.
86225
86226 2001-12-02  Jim Meyering  <meyering@lucent.com>
86227
86228         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86229         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86230         included.
86231
86232         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86233         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86234
86235 2001-11-30  Akim Demaille  <akim@epita.fr>
86236
86237         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86238         before being defined.
86239
86240 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86241
86242         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86243         First arg is int, not unsigned.
86244         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86245         (SIZE_MAX, UINT_MAX): New macros.
86246         (quotearg_n_options): Abort if N is negative.
86247         Avoid overflow check on hosts where size_t is 64 bits and int
86248         is 32 bits, as overflow is impossible there.
86249         Fix off-by-one typo that caused unnecessary reallocation.
86250
86251 2001-11-27  Jim Meyering  <meyering@lucent.com>
86252
86253         * lib/tempname.c: Merge with version from libc.
86254         * lib/regex.c: Likewise.
86255
86256         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86257         systems for which STDC_HEADERS is 0, it was not included, resulting in
86258         a warning about an integer-to-pointer conversion problem with getenv.
86259         Reported by Volker Borchert.
86260
86261 2001-11-26  Jim Meyering  <meyering@lucent.com>
86262
86263         * lib/gtod.h: Remove file.
86264         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86265         * lib/gettimeofday.c: Don't include gtod.h.
86266         (GTOD_init): Remove function.
86267         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86268         Suggestion from Volker Borchert.
86269
86270 2001-11-23  Jim Meyering  <meyering@lucent.com>
86271
86272         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86273         it.
86274         * lib/hash.c (struct hash_table): Define it here instead.
86275
86276 2001-11-22  Jim Meyering  <meyering@lucent.com>
86277
86278         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86279
86280 2001-11-20  Jim Meyering  <meyering@lucent.com>
86281
86282         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86283         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86284
86285 2001-11-19  Jim Meyering  <meyering@lucent.com>
86286
86287         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86288         directory.  Use "conftestXXXXXX" as the template.
86289         Suggestion from Paul Eggert.
86290
86291         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86292         immediately, so the test doesn't mistakenly hit the max-open-files
86293         limit.
86294
86295 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86296
86297         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86298         (TEMPORARIES): New macro.
86299         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86300         removes an artificial limitation (e.g. HP-UX 10.20, where
86301         TMP_MAX is 17576).
86302
86303 2001-11-18  Jim Meyering  <meyering@lucent.com>
86304
86305         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86306
86307 2001-11-18  Jim Meyering  <meyering@lucent.com>
86308
86309         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86310         on SunOS 4.
86311
86312         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86313         files will be created before anything else.
86314
86315 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86316
86317         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86318         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86319
86320 2001-11-17  Jim Meyering  <meyering@lucent.com>
86321
86322         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86323         Prompted by a report from Bob Proulx.
86324
86325         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86326         Instead, require UTILS_FUNC_MKSTEMP.
86327
86328 2001-11-17  Jim Meyering  <meyering@lucent.com>
86329
86330         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86331         Now, that's done as part of AC_FUNC_STRTOD.
86332
86333 2001-11-17  Jim Meyering  <meyering@lucent.com>
86334
86335         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86336         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86337         rather than group writable.  Patch by Juan F. Codagnone.
86338
86339         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86340         xrealloc, Instead, include "xalloc.h".
86341
86342         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86343         Remove explicit declarations of xmalloc, xrealloc,
86344         and xstrdup.  Instead, include "xalloc.h".
86345
86346         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86347         unlocked-io.h.
86348         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86349         Likewise.
86350         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86351
86352         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86353         Reported by Padraig Brady.
86354
86355         * lib/mkstemp.c: #undef mkstemp.
86356         Include config.h.
86357         (rpl_mkstemp): Rename from mkstemp.
86358         Protoize.
86359
86360 2001-11-16  Jim Meyering  <meyering@lucent.com>
86361
86362         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86363         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86364         determine the amount of total physical memory, use pstat_getstatic.
86365         HPUX-11 doesn't define _SC_PHYS_PAGES.
86366         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86367         If sysconf couldn't be used to determine the amount of available
86368         physical memory, use both pstat_getstatic and pstat_getdynamic.
86369         Based on a patch from Bob Proulx.
86370
86371 2001-11-10  Jim Meyering  <meyering@lucent.com>
86372
86373         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86374         (jm_PREREQ): Use it.
86375
86376 2001-11-09  Jim Meyering  <meyering@lucent.com>
86377
86378         * m4/jm-macros.m4: Require autoconf-2.52f.
86379         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86380         Use these AC_-prefixed names, not the AM_-prefixed ones.
86381
86382         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86383
86384 2001-11-05  Jim Meyering  <meyering@lucent.com>
86385
86386         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86387
86388 2001-11-04  Jim Meyering  <meyering@lucent.com>
86389
86390         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86391         $DEFS.
86392
86393 2001-11-03  Jim Meyering  <meyering@lucent.com>
86394
86395         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86396         of AC_DEFUN.
86397
86398         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86399         know the name of the variable in the macro definition.
86400
86401 2001-11-03  Jim Meyering  <meyering@lucent.com>
86402
86403         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86404         in argmatch_to_argument call.
86405
86406         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86407         argument.
86408
86409         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86410         e.g., a fault due to an attempt to free a NULL pointer.
86411
86412 2001-11-01  Jim Meyering  <meyering@lucent.com>
86413
86414         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86415         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86416
86417 2001-11-01  Jim Meyering  <meyering@lucent.com>
86418
86419         * lib/dirfd.c, lib/dirfd.h: New files.
86420         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86421
86422         * lib/hash.c (hash_print) [TESTING]: Clean up.
86423
86424 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86425
86426         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86427         to avoid a warning if -Wall.
86428
86429 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86430
86431         * README: New file
86432         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86433         (per RMS's instructions, this is now the canonical source)
86434         * lgpl/, gpl/: New directories.
86435
86436 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86437
86438         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86439
86440 2001-10-21  Jim Meyering  <meyering@lucent.com>
86441
86442         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86443         this code would end up calling gettext even in packages built
86444         with --disable-nls.
86445         * lib/getopt.c (_): Likewise.
86446         * lib/regex.c (_): Likewise.
86447
86448 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86449
86450         * m4/error.m4 (jm_PREREQ_ERROR):
86451         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86452         AC_FUNC_STRERROR_R does that.
86453         Check for strerror declaration.
86454
86455         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86456         are supposed to have them these days.
86457         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86458         Merge changes from latest Autoconf CVS.
86459         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86460         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86461         POSIX decided to standardize on the int flavor of strerror_r.
86462
86463 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86464
86465         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86466         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86467         Use strerror_r that is only a macro, even if it is not a function.
86468         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86469         (private_strerror): Use prototypes, not old-style function definition.
86470         (print_errno_message): New function.
86471         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86472         char*-flavored one.
86473         (error_tail, error, error_at_line): Use it.
86474
86475 2001-10-11  Jim Meyering  <meyering@lucent.com>
86476
86477         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86478         and quote_n (1, ... to avoid clobbering a buffer.
86479
86480 2001-10-05  Jim Meyering  <meyering@lucent.com>
86481
86482         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86483         hash-pjw.h.
86484         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86485         * lib/hash-pjw.h: New file.
86486
86487 2001-09-30  Jim Meyering  <meyering@lucent.com>
86488
86489         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86490         `struct fsstat' has the `f_fstypename' member.
86491         Use that to define FS_TYPE, which is now used to make
86492         the getfsstat link test tighter.
86493
86494 2001-09-30  Jim Meyering  <meyering@lucent.com>
86495
86496         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86497         Include <sys/ucred.h>, for Apple Darwin.
86498         Include sys/mount.h and sys/fs_types.h only if available.
86499         (FS_TYPE): Define.
86500         (read_filesystem_list): Use FS_TYPE.
86501
86502 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86503
86504         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86505         a boolean context.
86506
86507 2001-09-29  Jim Meyering  <meyering@lucent.com>
86508
86509         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86510         [one-argument getmntent function]): Include stdio.h before mntent.h.
86511         SunOS 4.1.x needs it for the declaration of `FILE'.
86512         Patch by Volker Borchert.
86513
86514         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86515         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86516         sys/fs_types.h, and make the link-test for getfsstat guard #include
86517         directives with appropriate #if HAVE_*_H tests so that we can
86518         detect getfsstat on Apple Darwin1.3.7 systems.
86519         Reported by Nelson Beebe.
86520         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86521
86522 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86523
86524         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86525         #defines strtoimax.  Also treat the other strto* functions
86526         like strtoimax.
86527
86528         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86529         Check for strtoul and strtoumax,
86530         as those declarations are made even in the signed case.
86531         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86532         Likewise, for strtol and strtoimax.
86533
86534 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86535
86536         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86537         #defines strtoimax.  Also treat the other strto* functions
86538         like strtoimax.
86539
86540         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86541         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86542         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86543
86544 2001-09-26  Jim Meyering  <meyering@lucent.com>
86545
86546         Most macros in unlocked-io.h had the wrong number of arguments.
86547         * lib/gen-uio: New script.
86548         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86549         * lib/unlocked-io.hin: Remove file.
86550         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86551         rather than trying to embed it here.
86552         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86553         Reported by Padraig Brady.
86554
86555 2001-09-25  Volker Borchert  <bt@teknon.de>
86556
86557         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86558         `result'.
86559
86560 2001-09-24  Jim Meyering  <meyering@lucent.com>
86561
86562         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86563
86564 2001-09-23  Jim Meyering  <meyering@lucent.com>
86565
86566         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86567         instead of the mere test for existence of mntent.h.  The latter
86568         would get a false-positive on AIX 3.4 systems.
86569         In the outer getmntent if-block, don't die if neither of the getmntent
86570         tests succeeds.  Instead, just fall through and continue with the
86571         remaining tests.
86572
86573 2001-09-23  Jim Meyering  <meyering@lucent.com>
86574
86575         * lib/mountlist.c: Remove useless parentheses in #if directives.
86576         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86577         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86578
86579 2001-09-22  Jim Meyering  <meyering@lucent.com>
86580
86581         * m4/gettext.m4: New file.  From gettext.
86582         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86583         * m4/progtest.m4: Likewise
86584         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86585         * m4/glibc21.m4: Likewise.
86586
86587         * m4/libintl.m4: Remove.  No longer used.
86588
86589 2001-09-22  Jim Meyering  <meyering@lucent.com>
86590
86591         * lib/localcharset.c: Update from latest gettext.
86592         * lib/config.charset: Likewise.
86593
86594 2001-09-20  Jim Meyering  <meyering@lucent.com>
86595
86596         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86597         strtoimax.
86598         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86599         strtoumax.
86600
86601 2001-09-20  Jim Meyering  <meyering@lucent.com>
86602
86603         * lib/xstrtol.c (strtoimax): Guard declaration with
86604         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86605         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86606         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86607         (strtoumax): Likewise, for completeness (it wasn't necessary).
86608
86609 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86610
86611         * lib/strtoimax.c (HAVE_LONG_LONG):
86612         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86613         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86614         to work around bug in IBM C compiler.
86615
86616 2001-09-17  Jim Meyering  <meyering@lucent.com>
86617
86618         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86619         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86620         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86621         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86622         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86623         whenever the right hand side need not be expanded by the shell.
86624
86625 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86626
86627         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86628         library.  It's not correct, as some older glibcs are buggy.
86629         fnmatch wasn't fixed until glibc 2.2.
86630
86631         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86632         special shell magic here.
86633
86634 2001-09-16  Jim Meyering  <meyering@lucent.com>
86635
86636         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86637         * m4/jm-macros.m4: Require it.
86638
86639 2001-09-16  Jim Meyering  <meyering@lucent.com>
86640
86641         * lib/mkdir.c: New file.
86642
86643 2001-09-15  Jim Meyering  <meyering@lucent.com>
86644
86645         * m4/jm-macros.m4: Check for help2man.
86646
86647 2001-09-11  Jim Meyering  <meyering@lucent.com>
86648
86649         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86650         The body, by Paul Eggert, was moved here from configure.in.
86651         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86652
86653 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86654
86655         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86656         (jm_PREREQ): Use it.
86657
86658 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86659
86660         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86661         Use ssize_t, not int, to store result of readlink.
86662         Check for ssize_t overflow as well as size_t overflow,
86663         as POSIX says the result of readlink is implementation-defined
86664         when ssize_t overflows.
86665         Remove unnecessary cast to char*.
86666         Use free+malloc instead of realloc, as the storage doesn't need
86667         to be preserved and it's clearer and can be more efficient that way.
86668         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86669         * lib/xreadlink.h (xreadlink): Update prototype.
86670
86671 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86672
86673         * lib/xgetcwd.c: Revert some of the previous change; intead,
86674         fix the HAVE_GETCWD_NULL code to behave more like the
86675         !HAVE_GETCWD_NULL code used to.
86676
86677         Include "xalloc.h".
86678         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86679         invoke xalloc_die.
86680
86681 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86682
86683         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86684         sys/param.h, as pathmax.h includes them.
86685
86686 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86687
86688         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86689         (jm_PREREQ_XGETCWD): New macro.
86690
86691         * m4/getcwd.m4: New file.
86692
86693 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86694
86695         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86696         like the HAVE_GETCWD_NULL code.
86697         Include pathmax.h if not HAVE_GETCWD.
86698         Do not include xalloc.h.
86699         (INITIAL_BUFFER_SIZE): New symbol.
86700         Do not use xmalloc / xrealloc, since the caller is responsible for
86701         handling errors.  Preserve errno around `free' during failure.
86702         Do not overrun buffer when using getwd.
86703
86704 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86705
86706         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86707         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86708         getcwd (NULL, 0).
86709
86710 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86711
86712         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86713         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86714         spotted by Jim Meyering.
86715
86716 2001-09-03  Jim Meyering  <meyering@lucent.com>
86717
86718         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86719         failure.
86720
86721 2001-09-02  Jim Meyering  <meyering@lucent.com>
86722
86723         * lib/error.c: Update from GNU libc.
86724
86725 2001-09-01  Jim Meyering  <meyering@lucent.com>
86726
86727         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86728         Used by df.
86729
86730 2001-09-01  Jim Meyering  <meyering@lucent.com>
86731
86732         * lib/xreadlink.c: New file.
86733         * lib/xreadlink.h: New file.
86734         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86735         xreadlink.h.
86736
86737         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86738         doesn't conflict with sparc Solaris 7's definition in
86739         /usr/include/sys/int_types.h.
86740
86741         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86742         files.
86743         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86744         and strncasecmp as r-values.  Unixware didn't have declarations.
86745
86746 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86747
86748         * lib/xstrtol.h: Add copyright notice.
86749         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86750         LONGINT_INVALID_SUFFIX_CHAR.
86751
86752 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86753
86754         * lib/xstrtol.c (strtoimax): New decl.
86755
86756 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86757
86758         * lib/xgetcwd.c: Don't include pathmax.h.
86759         Include stdlib.h and unistd.h if available.
86760         Include xalloc.h.
86761         (xmalloc, xstrdup, free): Remove decls.
86762         (xgetcwd): Don't assume sizes fit in unsigned.
86763         Check for overflow when computing sizes.
86764         Simplify reallocation code.
86765
86766 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86767
86768         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86769         a directory's st_size can have an arbitrary value, so the old
86770         usage could waste an arbitrary amount of memory.  All uses
86771         changed.
86772         * lib/savedir.h: Update prototype.
86773
86774 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86775
86776         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86777
86778         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86779         old strtoimax.c.
86780
86781         Also, make the following further changes to make this file's
86782         configuration more similar to that of strtol.c:
86783         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86784         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86785         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86786         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86787         changed to signed values.
86788
86789         And make the following changes as well:
86790         Fix copyright notice, as 1999 was missing.
86791         (verify): New macro.
86792         (strtoimax): Check sizes at compile-time, not run-time.
86793         Prefer strtol to strtoll if both work.
86794         (main): Remove; it was not that useful and was a pain to maintain.
86795
86796         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86797
86798 2001-08-31  Jim Meyering  <meyering@lucent.com>
86799
86800         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86801         Use an initial, malloc'd, buffer of length 128 rather than
86802         a statically allocated one of length 1024.
86803
86804 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86805
86806         Simplify code, partly by assuming autoconf 2.52 semantics.
86807
86808         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86809
86810         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86811         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86812         All uses removed.
86813         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86814         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86815         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86816         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86817         jm_AC_HEADER_INTTYPES_H.
86818         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86819
86820         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86821
86822         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86823         Quote first arg of AC_DEFUN.
86824         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86825         since they are needed to parse the include file even if we need
86826         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86827         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86828         but with opposite signedness.
86829
86830 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86831
86832         Merge 'exclude' changes from tar 1.13.22.
86833         This fixes one or two unlikely storage allocation overflow bugs,
86834         but doesn't change user-visible behavior otherwise.
86835
86836 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86837
86838         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86839         (jm_PREREQ_EXCLUDE): New macro.
86840
86841 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86842
86843         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86844         tm to be declared.
86845
86846 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86847
86848         * lib/hash.c: Remove '2001' from copyright notice.
86849
86850 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86851
86852         * lib/full-write.h: New file.
86853         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86854         * lib/full-write.c: Correct credits, as cccp.c no longer
86855         exists and anyway it was so heavily changed from the old cccp
86856         code as to be unrecognizable.  Include full-write.h.
86857         (full_write): Return size_t, with short writes meaning failure.
86858         All callers changed.  This fixes a bug with large buffers
86859         on 64-bit hosts.
86860         * lib/utime.c: Include full-write.h.
86861
86862 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86863
86864         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86865         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86866         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86867         Include if available.
86868         (<xalloc.h>): Include
86869         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86870         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86871         collide with FNM macros.
86872         (struct patopts): New struct.
86873         (struct exclude): Use it, as exclude patterns now come with options.
86874         (new_exclude): Support above changes.
86875         (new_exclude, add_exclude_file):
86876         Initial size must now be a power of two to simplify overflow checking.
86877         (free_exclude, fnmatch_no_wildcards): New function.
86878         (excluded_filename): No longer requires options arg, as the options
86879         are determined by add_exclude.  Now returns bool, not int.
86880         (excluded_filename, add_exclude):
86881         Add support for the fancy new exclusion options.
86882         (add_exclude, add_exclude_file): Now takes int options arg.
86883         Check for arithmetic overflow when computing sizes.
86884         (add_exclude_file): xrealloc might modify errno, so don't
86885         realloc until after errno might be used.
86886
86887         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86888         New macros.
86889         (free_exclude): New decl.
86890         (add_exclude, add_exclude_file): Now takes int options arg.
86891         (excluded_filename): No longer requires options arg, as the options
86892         are determined by add_exclude.  Now returns bool, not int.
86893
86894 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86895
86896         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86897
86898 2001-08-27  Jim Meyering  <meyering@lucent.com>
86899
86900         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86901
86902         * lib/version-etc.c (N_): Remove definition.
86903         Revert most of last change.
86904         Instead, simply don't mark the `Copyright...' string for translation.
86905         Based on advice from Paul Eggert.
86906
86907         * lib/strtoxmax.c: Tweak comment.
86908
86909 2001-08-26  Jim Meyering  <meyering@lucent.com>
86910
86911         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86912
86913         * m4/xstrtoimax.m4: New file.
86914         * m4/xstrtoumax.m4: Add comments explaining why we
86915         AC_REPLACE_FUNCS(strtol).
86916
86917 2001-08-26  Jim Meyering  <meyering@lucent.com>
86918
86919         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86920         of copyright with `%s' so translators don't get an untranslated
86921         message in 2002.
86922         (COPYRIGHT_YEAR): Define.
86923         (version_etc): Use fprintf rather than fputs.
86924         Suggestion from Ulrich Drepper.
86925
86926         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86927
86928         * lib/strtoll.c: New file, from GNU libc.
86929         * lib/xstrtoimax.c: New file.
86930
86931         * lib/xstrtol.h: Add xstrtoimax.
86932         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86933         * lib/strtoimax.c: New file.  Likewise, but first define
86934         STRTOUXMAX_SIGNED.
86935
86936         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86937         ...
86938         * lib/strtoxmax.c: ... then renamed to this.
86939
86940 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86941
86942         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86943         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86944         (jm_AC_TYPE_INTMAX_T): New macro.
86945         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86946
86947         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86948
86949         * m4/longlong.m4: Renamed from ulonglong.m4.
86950         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86951         * m4/uintmax_t.m4: Removed.
86952
86953 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86954
86955         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86956         Port to Solaris 8, where 'sed' requires a space after the 'r'
86957         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86958         Redirect output to $tmp just once.
86959
86960 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86961
86962         * lib/addext.c (<errno.h>): Include.
86963         (errno): Declare if not defined.
86964         (addext): Work correctly when pathconf returns -1 and leaves
86965         errno alone because there is no limit.  Also, work even if
86966         pathconf returns a value greater than SIZE_MAX.
86967
86968 2001-08-12  Jim Meyering  <meyering@lucent.com>
86969
86970         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86971         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86972         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86973         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86974         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86975         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86976         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86977         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86978         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86979         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86980         utime.m4, utimes.m4, xstrtoumax.m4:
86981         Quote the first argument in each use of AC_DEFUN.
86982
86983 2001-08-12  Jim Meyering  <meyering@lucent.com>
86984
86985         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86986         Simply `return getcwd (NULL, 0);'.
86987         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86988         Use 1300 as initial value for length, not PATH_MAX.
86989
86990         * lib/pathmax.h: Clean up cpp syntax.
86991
86992 2001-08-12  Jim Meyering  <meyering@lucent.com>
86993
86994         * lib/gettimeofday.c: New file.
86995         * lib/gtod.h: New file.
86996         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86997
86998 2001-08-05  Jim Meyering  <meyering@lucent.com>
86999
87000         * m4/jm-macros.m4: Require autoconf-2.52.
87001
87002 2001-08-04  Jim Meyering  <meyering@lucent.com>
87003
87004         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87005         stmt, to get in sync with glibc.
87006
87007 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87008
87009         The following changes are from gettext 0.10.39 as maintained by
87010         Bruno Haible.
87011
87012         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87013         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87014         with inverted sense.  All uses changed.
87015
87016         * lib/mbswidth.c: Don't include <limits.h>.
87017         Include <stdlib.h> and <string.h> unconditionally.
87018         (iswcntrl, mbsinit, ISCNTRL): New macros.
87019         (mbsnwidth): Use K&R style function declarations.
87020         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87021         can optimize it when MB_CUR_MAX == 1.
87022         The width of control characters is zero, not 1.
87023
87024 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87025
87026         The following changes are from gettext 0.10.39 as maintained by
87027         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87028
87029         * m4/codeset.m4: Upgrade to serial AM1.
87030         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87031         all uses changed.  Quote first arg of AC_DEFUN.
87032         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87033
87034         * m4/iconv.m4: Upgrade to serial AM2.
87035         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87036         Add --with-libconv-prefix.
87037         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87038         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87039         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87040         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87041         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87042
87043         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87044         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87045         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87046         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87047         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87048         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87049         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87050         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87051         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87052
87053         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87054         string.h any more.
87055
87056         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87057         not the default value.
87058
87059         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87060         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87061         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87062         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87063         Also check for iswcntrl, used for wcwidth fallback.
87064         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87065         to Autoconf 2.13.
87066
87067 2001-08-03  Jim Meyering  <meyering@lucent.com>
87068
87069         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87070         as it was in the original.  Reported by Paul Eggert.
87071
87072 2001-07-16  Jim Meyering  <meyering@lucent.com>
87073
87074         * m4/gettimeofday.m4: New file.
87075         Prompted by a report from Bernhard Baehr.
87076
87077 2001-07-15  Jim Meyering  <meyering@lucent.com>
87078
87079         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87080         stuff. Now it's in ../Makefile.cfg.
87081
87082 2001-07-15  Jim Meyering  <meyering@lucent.com>
87083
87084         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87085         (BUILT_SOURCES): Add unlocked-io.h.
87086         (io_functions): Define.
87087         (unlocked-io.h): New rule.
87088         (DISTCLEANFILES): Add unlocked-io.h.
87089         (all-local): Depend on unlocked-io.h, to ensure it is created.
87090
87091         * lib/unlocked-io.hin: New file
87092
87093         * lib/regex.c: Update from glibc.
87094
87095 2001-07-05  Jim Meyering  <meyering@lucent.com>
87096
87097         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87098         recommendation.
87099         (libfetish_a_SOURCES): Put all .h files here instead.
87100         Remove a thus-exposed (better checks in automake) duplicate and
87101         two unnecessary .h files.
87102
87103 2001-07-04  Jim Meyering  <meyering@lucent.com>
87104
87105         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87106         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87107         distcheck failure.
87108
87109 2001-07-02  Jim Meyering  <meyering@lucent.com>
87110
87111         The following changes were prompted by suggestions from Bruno Haible.
87112
87113         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87114         is now generated.
87115         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87116         definition of EXTRA_DIST.
87117         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87118         ensure that the generated file is created/updated whenever the list
87119         of $(unlocked_functions) is changed.
87120         (jm-glibc-io.m4): New rule.
87121         (unlocked-io.h): New rule -- currently unused.
87122
87123 2001-06-24  Jim Meyering  <meyering@lucent.com>
87124
87125         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87126         unmatched right bracket, rather than kludging it with an extra,
87127         falsely-matching quote in a comment.  Patch by Akim Demaille.
87128
87129 2001-06-11  Jim Meyering  <meyering@lucent.com>
87130
87131         * lib/regex.c: Update from GNU libc.
87132
87133 2001-05-27  Jim Meyering  <meyering@lucent.com>
87134
87135         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87136         Check for ut_type in struct utmp.
87137
87138 2001-05-27  Jim Meyering  <meyering@lucent.com>
87139
87140         * lib/readutmp.h (UT_TYPE): Define.
87141
87142 2001-05-24  Jim Meyering  <meyering@lucent.com>
87143
87144         * lib/argmatch.c: Include "quote.h".
87145         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87146         quote function.  Reported by Göran Uddeborg.
87147
87148 2001-05-22  Jim Meyering  <meyering@lucent.com>
87149
87150         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87151         now that we use the package-supplied version unconditionally.
87152         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87153
87154 2001-05-21  Jim Meyering  <meyering@lucent.com>
87155
87156         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87157         shell syntax errors.
87158
87159 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87160
87161         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87162
87163 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87164
87165         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87166         Don't bother to check library strftime, since
87167         we'll be using our own my_strftime function anyway.
87168         Define my_strftime instead of strftime.
87169
87170 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87171
87172         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87173         which is not yet declared.
87174
87175 2001-05-15  Jim Meyering  <meyering@lucent.com>
87176
87177         * m4/regex.m4: Use proper quoting so brackets appear in the test
87178         program.
87179         Reported by, and with help from, Bruno Haible.
87180
87181 2001-05-13  Jim Meyering  <meyering@lucent.com>
87182
87183         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87184         undefined.
87185
87186 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87187
87188         dirname code cleanup.  base_name now behaves more compatibly
87189         with POSIX basename when given file names that have trailing
87190         slashes, and similarly for dir_name.  Add new primitives
87191         base_len and dir_len.  Put the directory-name-related decls
87192         into dirname.h.
87193
87194         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87195         * lib/backupfile.c (base_name): Likewise.
87196         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87197         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87198         * lib/makepath.c (strip_trailing_slashes): Likewise.
87199         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87200         ISSLASH): Likewise.
87201         * lib/rename.c (strip_trailing_slashes): Likewise.
87202         * lib/same.c (base_name): Likewise.
87203         * lib/stripslash.c (ISSLASH): Likewise.
87204
87205         * lib/addext.c: Include <dirname.h> after size_t is defined.
87206         * lib/backupfile.c: Likewise.
87207
87208         * lib/addext.c (addext): Use base_len to trim redundant
87209         trailing slashes instead of doing it ourselves.
87210         But do not trim the last slash if it is not redundant.
87211
87212         * lib/backupfile.c (find_backup_file_name,
87213         max_backup_version): Use base_len instead of rolling it ourselves.
87214         Handle the case of "" and (on DOS) "C:" correctly.
87215
87216         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87217         needed. Include <string.h>, <dirname.h>.
87218         (base_name): Allow file names ending in slashes, other than names
87219         that are all slashes.  In this case, return the basename followed
87220         by the slashes.  This is more general, and can be used in places
87221         where the original base_name purposely had an assertion failure.
87222         (base_len): New function.
87223
87224         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87225         Do not include <assert.h>; no longer needed.
87226         Include xalloc.h.
87227         (memrchr): Remove decl.
87228         (dir_name_r): Remove.
87229         (dir_len): Renamed from dirlen.  All callers changed.
87230         Rewrite in terms of base_name, for simplicity and consistency.
87231         (dir_name): Never return NULL.  All callers changed.
87232         Do not include <stdlib.h> in test program; no longer needed.
87233         return 0; is fine for test program.
87234
87235         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87236         New macros.
87237         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87238
87239         * lib/path-concat.c (path_concat): Use base_len to compute
87240         base length, not strlen; this means we cannot rely on memcpy
87241         to null-terminate.
87242
87243         * lib/same.c (STREQ): Remove.
87244         (same_name): Handle the case where the basename ends in trailing '/'.
87245
87246         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87247         a slash was stripped.  Do not strip the last slash after a
87248         file system prefix.
87249
87250 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87251
87252         * lib/Makefile.am (libfetish_a_SOURCES):
87253         Add strftime.c, since we now compile it on all hosts.
87254
87255         * lib/strftime.c (my_strftime):
87256         Define to nstrftime if emacs, but only if my_strftime is not defined.
87257         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87258         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87259         Add one more extra argument: a nanoseconds value.
87260         All uses changed.
87261         (ns): New macro.
87262         (my_strftime function): Add %N format.
87263         (emacs_strftimeu): Renamed from emacs_strftime,
87264         with extra ut argument.
87265
87266 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87267
87268         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87269
87270 2001-04-21  Jim Meyering  <meyering@lucent.com>
87271
87272         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87273         doesn't interfere.
87274
87275 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87276
87277         * m4/ftruncate.m4: Check for chsize.
87278         Link with ftruncate.o unconditionally if ftruncate is missing.
87279         This was required when cross-compiling to i586-mingw32msvc.
87280
87281 2001-04-08  Jim Meyering  <meyering@lucent.com>
87282
87283         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87284         recomputed; that's necessary when the offset spans a DST transition.
87285         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87286
87287 2001-04-02  Jim Meyering  <meyering@lucent.com>
87288
87289         * lib/regex.h, regex.c: Update from GNU libc.
87290
87291 2001-03-24  Jim Meyering  <meyering@lucent.com>
87292
87293         * m4/jm-macros.m4: Require autoconf-2.49d.
87294
87295 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87296
87297         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87298
87299 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87300
87301         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87302
87303 2001-03-17  Jim Meyering  <meyering@lucent.com>
87304
87305         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87306         now that the version in autoconf is equivalent.
87307         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87308
87309         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87310         Suggestion from Akim Demaille.
87311
87312         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87313         (jm_PREREQ_TEMPNAME): New function.
87314
87315 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87316
87317         * lib/tempname.c (uint64_t): Define to uintmax_t if
87318         not defined, and if UINT64_MAX is not defined.
87319         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87320         Reported by John David Anglin.
87321
87322 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87323
87324         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87325         resolve alias if codeset is empty.
87326         * lib/config.charset (BeOS): Use wildcard syntax.
87327
87328 2001-03-13  Jim Meyering  <meyering@lucent.com>
87329
87330         * lib/path-concat.c (path_concat)
87331         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87332         concatenating e.g., `C:' and `foo'.
87333         From Bruno Haible.
87334
87335 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87336
87337         * lib/localcharset.c (locale_charset): Don't use
87338         setlocale(LC_CTYPE,NULL). Don't return NULL.
87339         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87340
87341 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87342
87343         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87344         support for DOS/DJGPP.
87345
87346 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87347
87348         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87349         lacks mkstemp.  Compile our own tempname.c if we compile our own
87350         mkstemp.c, as mkstemp relies on tempname.
87351
87352 2001-03-01  Jim Meyering  <meyering@lucent.com>
87353
87354         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87355         AH_VERBATIM really does output its argument verbatim.
87356
87357 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87358
87359         * lib/Makefile.am (libfetish_a_SOURCES):
87360         Add dup-safer.c, fopen-safer.c.
87361         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87362
87363         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87364         * lib/unistd-safer.h: New files.
87365
87366 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87367
87368         The mkstemp replacement is taken from glibc 2.2.2, with some
87369         portability fixes for use outside glibc, as follows:
87370
87371         * lib/tempname.c (struct_stat64): New macro.
87372         (direxists, __gen_tempname): Use it.
87373         This avoids a portability problem with Solaris 8.
87374
87375         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87376         (<stddef.h>, <stdint.h>, <string.h>):
87377         Include only if STDC_HEADERS || _LIBC.
87378         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87379         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87380         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87381         (__set_errno): Define this macro if <errno.h> doesn't.
87382         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87383         Define these macros if <stdio.h> doesn't.
87384         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87385         Define these macros if <sys/stat.h>
87386         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87387         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87388         __xstat64): Define if not _LIBC.
87389         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87390         (__gen_tempname): Invoke gettimeofday only if
87391         HAVE_GETTIMEOFDAY || _LIBC;
87392         otherwise, fall back on plain "time".
87393         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87394
87395         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87396
87397         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87398
87399 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87400
87401         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87402
87403 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87404
87405         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87406         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87407         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87408         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87409
87410 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87411
87412         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87413         Remove workaround macros for hosts that have mbrtowc but not
87414         mbstate_t, as we now insist on proper declarations for both
87415         before using mbrtowc.
87416
87417 2001-02-17  Jim Meyering  <meyering@lucent.com>
87418
87419         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87420         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87421         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87422         UnixWare 7.1.1.
87423
87424         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87425         rather than AC_CACHE_VAL.
87426
87427 2001-02-17  Jim Meyering  <meyering@lucent.com>
87428
87429         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87430         around included file name.
87431
87432         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87433
87434         * lib/strftime.c: Update from GNU libc (the only changes were to
87435         comments).
87436
87437 2001-02-17  Jim Meyering  <meyering@lucent.com>
87438
87439         * lib/regex.c: Update from libc.
87440
87441 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87442
87443         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87444         clash.
87445
87446 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87447
87448         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87449         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87450         Reported by Mark Hounschell via Paul Eggert.
87451
87452 2001-02-07  Jim Meyering  <meyering@lucent.com>
87453
87454         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87455
87456 2001-02-05  Jim Meyering  <meyering@lucent.com>
87457
87458         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87459         it includes the patch required for `large file' support with at least
87460         HP-UX's 10.20 /bin/cc.
87461
87462 2001-02-03  Jim Meyering  <meyering@lucent.com>
87463
87464         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87465         AS_IF, now that it works once again (mysteriously).
87466         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87467
87468 2001-01-30  Jim Meyering  <meyering@lucent.com>
87469
87470         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87471         * m4/chown.m4: Rename conftestchown to conftest.chown.
87472         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87473         s/conftestdir2/conftest.d2/.
87474         * m4/utimes.m4: s/conftestdata/conftest.data/
87475         Inspired by Pavel Roskin's change in autoconf.
87476
87477 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87478
87479         * lib/config.charset: Update for FreeBSD 4.2.
87480
87481 2001-01-27  Jim Meyering  <meyering@lucent.com>
87482
87483         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87484         a use of AS_IF.
87485         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87486
87487 2001-01-26  Jim Meyering  <meyering@lucent.com>
87488
87489         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87490         quotearg.c includes it.
87491
87492 2001-01-26  Jim Meyering  <meyering@lucent.com>
87493
87494         * lib/quotearg.c: Include stddef.h.
87495         * lib/quote.c: Include stddef.h.
87496         Reported by Axel Kittenberger.
87497
87498         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87499         line in double quotes so that it evokes a better diagnostic.
87500         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87501         Reported by Axel Kittenberger.
87502
87503 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87504
87505         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87506         as if it was a `charset'.
87507
87508 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87509
87510         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87511         has const.
87512
87513 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87514
87515         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87516         to avoid a warning.  Add back 'const' to inptr.
87517
87518 2001-01-20  Jim Meyering  <meyering@lucent.com>
87519
87520         Be sure that headers are checked before used in code compiled
87521         for the type checks.
87522         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87523         In place of that, invoke jm_CHECK_ALL_TYPES.
87524         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87525         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87526         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87527         The check for ssize_t was mistakenly run before the test for unistd.h.
87528
87529         The configure-time check for stdbool.h was missing.
87530         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87531         (jm_PREREQ_HASH): New function.
87532
87533 2001-01-17  Jim Meyering  <meyering@lucent.com>
87534
87535         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87536         for autoconf-2.49c.
87537         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87538
87539 2001-01-16  Jim Meyering  <meyering@lucent.com>
87540
87541         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87542         From Bruno Haible.
87543
87544 2001-01-14  Jim Meyering  <meyering@lucent.com>
87545
87546         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87547         foo and bar.  Create conftestdir/ in the script, not in the C code.
87548         Remove directories in the script, not in the C code.
87549         Remove conftestdir{,2} before trying to create the directory.
87550         Make the entire configure script fail if the mkdir fails.
87551
87552 2001-01-14  Jim Meyering  <meyering@lucent.com>
87553
87554         * lib/rename.c: New file.  From Volker Borchert.
87555         Include stdlib.h, string.h or strings.h, and xalloc.h.
87556         Use strip_trailing_slashes rather than open-coding it.
87557
87558 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87559
87560         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87561
87562 2001-01-03  Jim Meyering  <meyering@lucent.com>
87563
87564         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87565         of local `inptr' to avoid warning with some system declarations of
87566         iconv.
87567
87568 2001-01-02  Volker Borchert  <bt@teknon.de>
87569
87570         * m4/rename.m4: New file.
87571         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87572
87573 2001-01-01  Jim Meyering  <meyering@lucent.com>
87574
87575         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87576         even on systems with utmpx.h.  It's necessary for the declaration of
87577         utmp's ut_user member.  Reported by Andreas Jaeger.
87578
87579         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87580         available. They are required for the declarations of getgrgid and
87581         getpwuid resp.
87582         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87583         Reported by Andreas Jaeger.
87584
87585 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87586
87587         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87588         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87589         so `make install' also works in VPATH builds.
87590
87591 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87592
87593         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87594         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87595         can be used in subdirectories.
87596
87597 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87598
87599         * lib/modechange.c: Do not assume that mode_t uses the
87600         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87601         the other-execute bit of FOO even if S_IXOTH != 1.
87602
87603         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87604         WOTH, XOTH, ALLM): New macros.
87605         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87606          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87607         Use them.
87608         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87609         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87610         (mode_compile):
87611         No need to use uintmax_t; unsigned long is long enough.
87612         Don't bother to get suffix since we don't use it.
87613
87614 2000-12-26  Jim Meyering  <meyering@lucent.com>
87615
87616         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87617         better with autoheader.
87618
87619 2000-12-24  Jim Meyering  <meyering@lucent.com>
87620
87621         * lib/hash.c (is_prime): Return explicit boolean values.
87622         (hash_get_first): Return NULL to appease Irix5.6's 89.
87623         Reported by Nelson Beebe.
87624
87625 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87626
87627         * lib/localcharset.c (locale_charset): Add support for Win32.
87628
87629 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87630
87631         * lib/physmem.h, lib/physmem.c: New files.
87632
87633         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87634         (noinst_HEADERS): Add physmem.h.
87635
87636         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87637         't' for compatibility with Solaris 8 sort.
87638
87639 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87640
87641         * lib/config.charset: Add support for BeOS.
87642
87643 2000-12-17  Jim Meyering  <meyering@lucent.com>
87644
87645         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87646         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87647
87648 2000-12-16  Jim Meyering  <meyering@lucent.com>
87649
87650         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87651         N and M) would have treated it like `chown N:N FILE'.
87652
87653         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87654
87655 2000-12-16  Jim Meyering  <meyering@lucent.com>
87656
87657         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87658         SHELLS_FILE to a file name that's useful on djgpp systems.
87659         Include stdlib.h.
87660         (ADDITIONAL_DEFAULT_SHELLS): Define.
87661         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87662         Based mostly on a patch from Prashant TR.
87663
87664 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87665
87666         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87667         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87668         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87669
87670 2000-12-08  Andreas Schwab  <schwab@suse.de>
87671
87672         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87673         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87674
87675 2000-12-07  Jim Meyering  <meyering@lucent.com>
87676
87677         * lib/stripslash.c (ISSLASH): Define.
87678         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87679         `/'.
87680         From Prashant TR.
87681
87682         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87683         (dir_name_r): Declare this function as static.
87684         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87685         manifest itself on a name containing a mix of slashes and
87686         backslashes.
87687         Make this function work with names starting with a DOS-style
87688         drive letter and colon prefix.
87689         (dir_name): Append `.' if necessary.
87690         Based mostly on patches from Prashant TR and Eli Zaretskii.
87691
87692         * lib/dirname.h (dir_name_r): Remove prototype.
87693
87694 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87695
87696         * m4/off_t-format.m4: Remove this file.
87697         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87698
87699 2000-12-06  Jim Meyering  <meyering@lucent.com>
87700
87701         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87702         replacement strtoull, we may well need the replacement strtoul, too.
87703         Check for declarations of strtoul and strtoull.
87704         Check for strtol.  Mainly as a cue to cause automake to include
87705         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87706         Check for limits.h -- strtol.c needs it.
87707
87708 2000-12-05  Jim Meyering  <meyering@lucent.com>
87709
87710         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87711
87712 2000-12-04  Jim Meyering  <meyering@lucent.com>
87713
87714         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87715         Also include memory.h, stdlib.h, unistd.h if appropriate.
87716         Reported by Andreas Jaeger (conflicting declaration of malloc).
87717
87718 2000-12-02  Jim Meyering  <meyering@lucent.com>
87719
87720         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87721         * m4/jm-macros.m4 (jm_MACROS): require it.
87722
87723 2000-12-02  Jim Meyering  <meyering@lucent.com>
87724
87725         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87726
87727 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87728
87729         * lib/memrchr.c: Include <config.h> before any system include file.
87730
87731 2000-11-30  Jim Meyering  <meyering@lucent.com>
87732
87733         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87734
87735 2000-11-30  Jim Meyering  <meyering@lucent.com>
87736
87737         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87738
87739 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87740
87741         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87742
87743 2000-11-26  Jim Meyering  <meyering@lucent.com>
87744
87745         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87746
87747 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87748
87749         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87750         size of (size_t) -1; it's not portable.
87751
87752 2000-11-17  Jim Meyering  <meyering@lucent.com>
87753
87754         * lib/strstr.c: Update from GNU libc.
87755
87756 2000-11-17  Akim Demaille  <akim@epita.fr>
87757
87758         * lib/obstack.h: Formatting changes.
87759         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87760         prevent type checking.
87761         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87762         cast the value to (void *): assigning a `foo *' to a `void *'
87763         variable is valid.
87764         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87765
87766 2000-11-16  Jim Meyering  <meyering@lucent.com>
87767
87768         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87769
87770 2000-11-11  Jim Meyering  <meyering@lucent.com>
87771
87772         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87773
87774 2000-11-10  Jim Meyering  <meyering@lucent.com>
87775
87776         * lib/obstack.h: Update from GNU libc.
87777         * lib/obstack.c: Likewise.
87778
87779 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87780
87781         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87782
87783 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87784
87785         * lib/getusershell.c (setusershell): Use rewind rather than
87786         fseek/fseeko, to avoid configuration hassles with fseeko.
87787         Don't bother opening SHELLS_FILE if shellstream is NULL;
87788         it's not necessary.
87789
87790 2000-11-05  Jim Meyering  <meyering@lucent.com>
87791
87792         * lib/makepath.h (make_dir): Declare.
87793         * lib/makepath.c (make_dir): Remove `static' attribute.
87794         Tweak a comment.
87795
87796 2000-11-04  Jim Meyering  <meyering@lucent.com>
87797
87798         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87799
87800 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87801
87802         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87803         last one in a bucket, advance to the next bucket.
87804
87805 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87806
87807         * lib/fnmatch.c: Do not comment out all the code if we are using
87808         the GNU C library, because in some cases we are replacing buggy
87809         code in the GNU C library itself.
87810
87811 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87812
87813         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87814         (regex_compile): Catch bogus \(\1\).
87815
87816 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87817
87818         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87819         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87820         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87821
87822 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87823
87824         * lib/error.h, getline.h, modechange.h:
87825         Remove "2000" from Copyright line, as the file hasn't been
87826         changed this year other than in the copyright notice.
87827
87828         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87829         was changed this year.
87830
87831 2000-10-29  Jim Meyering  <meyering@lucent.com>
87832
87833         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87834         renaming.
87835         * m4/ls-mntd-fs.m4: Likewise
87836
87837 2000-10-29  Jim Meyering  <meyering@lucent.com>
87838
87839         * lib/xstat.in: Fix grammar in comment.
87840
87841 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87842
87843         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87844         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87845         doesn't define __restrict_arr.
87846
87847 2000-10-28  Jim Meyering  <meyering@lucent.com>
87848
87849         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87850         (jm_PREREQ_MEMCHR): New function.
87851
87852 2000-10-28  Jim Meyering  <meyering@lucent.com>
87853
87854         * lib/memchr.c: Update from libc.
87855         Adjust for portability:
87856         [HAVE_STDLIB_H]: Include stdlib.h.
87857         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87858         Undef __memchr, too.
87859         [!weak_alias]: Define __memchr to memchr.
87860
87861         * lib/regex.c: Update from libc.
87862         * lib/regex.h: Likewise.
87863         * lib/getopt1.c: Likewise.
87864         * lib/memcmp.c: Likewise.
87865
87866         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87867         Avoid using fseek, when possible -- it's broken by design.
87868         Patch by Ulrich Drepper.
87869
87870 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87871
87872         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87873         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87874         Giving in to popular pressure to shut up the compiler with casts.
87875
87876 2000-10-26  Jim Meyering  <meyering@lucent.com>
87877
87878         * lib/strftime.c: Update from libc.
87879
87880 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87881
87882         * regex.c: More `unsigned char' -> `re_char' changes.
87883         Also change several `int' into `re_wchar_t'.
87884         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87885         (PUSH_FAILURE_POINTER): Don't cast any more.
87886         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87887         We want GCC to complain, since this piece of code makes
87888         re_match non-reentrant, which *should* be fixed.
87889         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87890         (EXTEND_BUFFER): Use RETALLOC.
87891         (SET_LIST_BIT): Don't cast.
87892         (re_wchar_t): New type.
87893         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87894         that those two functions will always properly return.
87895         (IMMEDIATE_QUIT_CHECK): Cast to void.
87896         (analyse_first): Use recursion rather than an explicit stack.
87897         (re_compile_fastmap): Can't fail anymore.
87898         (re_search_2): Don't check re_compile_fastmap for failure.
87899         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87900         Now also sets the new value (passed in a new argument).
87901         (re_match_2_internal): Use it.
87902         Also, use a new var `reg' of type size_t when looping through regs
87903         rather than reuse the inappropriate `mcnt'.
87904
87905 2000-10-25  Jim Meyering  <meyering@lucent.com>
87906
87907         * lib/obstack.c: Update from libc.
87908
87909 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87910
87911         * regex.c (regex_compile): Change the way of handling a range from
87912         a char less than 256 to a char not less than 256.
87913
87914 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87915
87916         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87917         NT-Emacs only.
87918         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87919         so that re_search functions only quit when callers expect them to.
87920
87921 2000-10-23  Jim Meyering  <meyering@lucent.com>
87922
87923         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87924         wrong.  That set_locale call must not have any side effects.
87925         From Paul Eggert.
87926
87927 2000-10-22  Jim Meyering  <meyering@lucent.com>
87928
87929         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87930         [CYCLIC]: Remove now-unused definition.
87931
87932         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87933         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87934         Suggestion from Ulrich Drepper.
87935
87936 2000-10-21  Jim Meyering  <meyering@lucent.com>
87937
87938         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87939         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87940         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87941
87942 2000-10-21  Jim Meyering  <meyering@lucent.com>
87943
87944         * lib/dirname.c (memrchr): Declare if necessary.
87945         (dir_name): Remove the restriction that there be no
87946         trailing slashes.  Now, this code skips past them, effectively
87947         ignoring them.
87948         [TEST_DIRNAME] (main): New unit tests.
87949
87950         * lib/memrchr.c: New file from GNU libc.
87951         Undef __memrchr, too.
87952         [!weak_alias]: Define __memrchr to memrchr.
87953         Guard weak_alias use with `#ifdef weak_alias'.
87954
87955 2000-10-21  Jim Meyering  <meyering@lucent.com>
87956
87957         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87958         (dir_name): Use dir_name_r.
87959         * lib/dirname.h (dir_name_r): Declare it.
87960
87961 2000-10-17  Jim Meyering  <meyering@lucent.com>
87962
87963         * lib/quote.h (PARAMS): Define and use.
87964         Reported by Akim Demaille.
87965
87966         * lib/getopt.c: Update from libc.
87967
87968 2000-10-16  Jim Meyering  <meyering@lucent.com>
87969
87970         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87971         setlocale.
87972         From Jan Fedak.
87973
87974 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87975
87976         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87977
87978 2000-09-25  Jim Meyering  <meyering@lucent.com>
87979
87980         * lib/md5.h (rol): Define (from GnuPG).
87981
87982         * lib/sha.c: Give credit (GnuPG) where due.
87983         (M): Use rol rather than open-coding it.
87984         Add a FIXME comment.
87985
87986 2000-09-21  Jim Meyering  <meyering@lucent.com>
87987
87988         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87989         Reported by Michael Stone.
87990
87991 2000-09-20  Jim Meyering  <meyering@lucent.com>
87992
87993         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87994         (noinst_HEADERS): Add sha.h.
87995         Based on code from Scott G. Miller and from GnuPG.
87996
87997 2000-09-18  Jim Meyering  <meyering@lucent.com>
87998
87999         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88000         LIBS. Otherwise, everyone ends up linking with -lelf for some
88001         configurations.
88002         Reported by Mike Stone.
88003
88004 2000-09-15  Jim Meyering  <meyering@lucent.com>
88005
88006         * lib/regex.c: Update from libc.
88007
88008 2000-09-10  Jim Meyering  <meyering@lucent.com>
88009
88010         * lib/getopt.c (_getopt_internal): Update from glibc.
88011
88012 2000-09-09  Jim Meyering  <meyering@lucent.com>
88013
88014         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88015         think it should be used as a general replacement for isascii.
88016         * lib/fnmatch.c: Likewise.
88017         * lib/mbswidth.c: Likewise
88018         * lib/regex.c: Likewise.
88019
88020         Don't use atoi.
88021         * lib/userspec.c: Include sys/param.h and limits.h.
88022         Include xstrtol.h.
88023         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88024         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88025         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88026         UID, GID.  Check range.
88027
88028 2000-09-06  Jim Meyering  <meyering@lucent.com>
88029
88030         * lib/getopt.c (_getopt_internal): Update from glibc.
88031
88032 2000-08-30  Jim Meyering  <meyering@lucent.com>
88033
88034         * lib/strftime.c: Merge in changes from GNU libc.
88035
88036 2000-08-26  Jim Meyering  <meyering@lucent.com>
88037
88038         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88039         * m4/fpending.m4: New file.
88040
88041 2000-08-26  Jim Meyering  <meyering@lucent.com>
88042
88043         * lib/closeout.c: Include "__fpending.h".
88044         (close_stdout_status): Return right away if there's nothing to flush.
88045
88046         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88047         * lib/__fpending.c: New file.
88048         * lib/__fpending.h: New file.
88049
88050 2000-08-20  Jim Meyering  <meyering@lucent.com>
88051
88052         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88053         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88054         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88055
88056 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88057
88058         Improve fileutils installation on systems where running
88059         programs (like install) can't be unlinked.
88060         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88061         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88062
88063 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88064
88065         Standardize on "memory exhausted" instead of "Memory exhausted"
88066         or "virtual memory exhausted".
88067         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88068         "virtual memory exhausted".
88069         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88070         our own message.
88071         * lib/userspec.c (parse_user_spec): Likewise.
88072         * lib/bumpalloc.h: comment fix
88073         * lib/same.c, userspec.c: Include xalloc.h.
88074
88075         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88076         not char *const and pointing to a constant array.
88077         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88078         (xrealloc): Comment fix.
88079
88080         * lib/userspec.c (parse_user_spec):
88081         Don't translate a message until just before returning,
88082         to avoid unnecessary translation.
88083
88084 2000-08-07  Jim Meyering  <meyering@lucent.com>
88085
88086         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88087         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88088         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88089         getgroups.c, gethostname.c, getopt.h, group-member.c,
88090         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88091         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88092         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88093         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88094         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88095         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88096         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88097         yesno.c: Back out Copyright date changes for each file with no change
88098         this year.  This eases coordination with other programs using the same
88099         source code modules.  From Paul Eggert.
88100
88101 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88102
88103         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88104         not char, for compatibility with glibc 2.1.3 strftime.c.
88105
88106 2000-08-03  Greg McGary  <greg@mcgary.org>
88107
88108         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88109         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88110         (EXTEND_BUFFER): Use them.
88111
88112 2000-08-01  Jim Meyering  <meyering@lucent.com>
88113
88114         * lib/dirname.c (ISSLASH): Define.
88115         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88116         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88117         both `\' and `/' may be use as path separators.
88118         Based on a patch from Prashant TR.
88119
88120 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88121
88122         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88123         slot vector a constant, since it might get modified.
88124
88125 2000-07-31  Jim Meyering  <meyering@lucent.com>
88126
88127         * lib/xmalloc.c: Use `virtual memory exhausted', not
88128         `Memory exhausted'.
88129         * lib/obstack.c (print_and_abort): Likewise.
88130
88131 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88132
88133         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88134         buffer, so that the caller can always quote one small
88135         component of a "memory exhausted" message in slot 0.
88136         From a suggestion by Jim Meyering.
88137
88138 2000-07-30  Jim Meyering  <meyering@lucent.com>
88139
88140         * lib/makepath.c (make_path): Quote the other instance, too.
88141
88142         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88143         (STATIC_BUF_SIZE): Define.
88144         (quotearg_n_options): Use only statically allocated storage when
88145         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88146         than STATIC_BUF_SIZE.
88147
88148 2000-07-29  Jim Meyering  <meyering@lucent.com>
88149
88150         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88151         * lib/dirname.c (dir_name): Likewise.
88152
88153         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88154         `/'.
88155
88156         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88157         (dir_name): Assert that there are no trailing slashes.
88158
88159 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88160
88161         * lib/mbswidth.h (mbswidth): Add a flags argument.
88162         (mbswidth): New declaration.
88163         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88164         * lib/mbswidth.c (mbswidth): Add a flags argument.
88165         (mbsnwidth): New function.
88166
88167 2000-07-24  Jim Meyering  <meyering@lucent.com>
88168
88169         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88170
88171 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88172
88173         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88174
88175 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88176
88177         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88178         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88179         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88180         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88181         invoke multibyte primitives.
88182
88183 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88184
88185         * lib/quotearg.c:
88186         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88187         so that mbstate_t is always defined.
88188
88189         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88190         be 1 in at least one GCC installation, and this configuration
88191         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88192         performance on hosts that have mbrtowc but have only unibyte
88193         locales, but I assume these hosts are rare.
88194
88195 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88196
88197         * lib/mbswidth.c (_XOPEN_SOURCE):
88198         Don't define; this causes problems on Solaris 7.
88199         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88200
88201 2000-07-23  Jim Meyering  <meyering@lucent.com>
88202
88203         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88204         too: getgrgid, getpwuid, getuid.
88205
88206 2000-07-23  Jim Meyering  <meyering@lucent.com>
88207
88208         * lib/basename.c (base_name): Add an assertion.
88209
88210 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88211
88212         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88213         shadow its mbsinit function.
88214
88215 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88216
88217         * lib/mbswidth.h: New file.
88218         * lib/mbswidth.c: New file.
88219         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88220         (noinst_HEADERS): Add mbswidth.h.
88221
88222 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88223
88224         * lib/config.charset: Add support for FreeBSD. Improve support for
88225         HP-UX and IRIX 6.
88226
88227 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88228
88229         * m4/mbswidth.m4: New file.
88230         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88231
88232 2000-07-15  Jim Meyering  <meyering@lucent.com>
88233
88234         * lib/makepath.c: Include quote.h.
88235         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88236         corresponding argument in a `quote (...)' call.
88237         Give better diagnostics.
88238
88239         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88240         (noinst_HEADERS): Add quote.h.
88241
88242         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88243         from tar's src/misc.c.
88244         * lib/quote.h: New file.  Prototypes for same.
88245
88246 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88247
88248         From a suggestion by Bruno Haible.
88249         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88250         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88251         to decide whether to define the BeOS workaround macro;
88252         this adjusts to the change to AC_MBSTATE_T.
88253
88254 2000-07-14  Jim Meyering  <meyering@lucent.com>
88255
88256         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88257         jm_AC_TYPE_UINTMAX_T.
88258
88259 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88260
88261         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88262
88263         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88264         quotearg_buffer_restyled): Add support for
88265         clocale_quoting_style.  Undo previous change to
88266         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88267         and "{RIGHT QUOTATION MARK}" msgids.
88268
88269 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88270
88271         From a suggestion by Bruno Haible.
88272         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88273         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88274         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88275         and mbstate_t, to a single-part test that simply defines mbstate_t.
88276         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88277         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88278
88279 2000-07-10  Jim Meyering  <meyering@lucent.com>
88280
88281         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88282
88283         * m4/gnu-source.m4: Output to confdefs.h directly.
88284         Suggestion from Akim Demaille.
88285
88286 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88287
88288         The old behavior of quoting `like this' doesn't look good with
88289         newer, ISO-style fonts.  See:
88290         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88291
88292         Instead, quote "like this" by default.  Let the translator
88293         tailor the locale-specific quoting behavior by providing
88294         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88295
88296         * lib/quotearg.c (N_): New macro.
88297         (gettext_default): New function.
88298         (quotearg_buffer_restyled): Use
88299         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88300         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88301
88302 2000-07-09  Jim Meyering  <meyering@lucent.com>
88303
88304         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88305         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88306
88307         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88308         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88309
88310 2000-07-09  Jim Meyering  <meyering@lucent.com>
88311
88312         * lib/Most files: Update copyright dates to include 2000.
88313
88314 2000-07-08  Jim Meyering  <meyering@lucent.com>
88315
88316         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88317         if not defined.
88318         (xgethostname): Remove now-unnecessary #ifdef.
88319         Move declaration of `err' into loop where it's used.
88320
88321 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88322         and Bruno Haible  <haible@clisp.cons.org>
88323
88324         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88325         only if the test for an object-type mbstate_t fails.  This
88326         prevents us from mistakenly reporting that mbstate_t is a
88327         system object type after we "#define mbstate_t int" to work
88328         around its lack.
88329
88330 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88331         and Bruno Haible  <haible@clisp.cons.org>
88332
88333         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88334
88335 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88336
88337         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88338         to strerror_r.
88339         Include <ctype.h> for use of isalpha.
88340
88341 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88342
88343         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88344         by allocating a larger buffer. Test the gethostname return value for
88345         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88346         returns an error and ENAMETOOLONG isn't defined.
88347
88348 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88349
88350         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88351         dimension.
88352
88353 2000-07-04  Jim Meyering  <meyering@lucent.com>
88354
88355         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88356         of the deprecated AC_CHECKING.
88357
88358 2000-07-04  Jim Meyering  <meyering@lucent.com>
88359
88360         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88361         Reported by Bruno Haible.
88362
88363 2000-07-04  Jim Meyering  <meyering@lucent.com>
88364
88365         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88366         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88367         lacks mbrtowc.
88368
88369 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88370
88371         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88372         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88373
88374 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88375         and Bruno Haible  <haible@clisp.cons.org>
88376
88377         * lib/quotearg.c (mbrtowc):
88378         Assign to *pwc, and return 1 only if result is nonzero.
88379         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88380
88381 2000-07-03  Jim Meyering  <meyering@lucent.com>
88382
88383         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88384
88385 2000-07-03  Jim Meyering  <meyering@lucent.com>
88386
88387         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88388         This is necessary to get a definition of e.g., UTMP_FILE on
88389         HP-UX 10.20.
88390         From Bob Proulx.
88391
88392 2000-07-02  Jim Meyering  <meyering@lucent.com>
88393
88394         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88395
88396         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88397         AC_LIBOBJ(function_name).
88398         * m4/chown.m4: Likewise.
88399         * m4/fnmatch.m4: Likewise.
88400         * m4/ftruncate.m4: Likewise.
88401         * m4/getgroups.m4: Likewise.
88402         * m4/getline.m4: Likewise.
88403         * m4/group-member.m4: Likewise.
88404         * m4/jm-macros.m4: Likewise.
88405         * m4/lstat.m4: Likewise.
88406         * m4/malloc.m4: Likewise.
88407         * m4/memcmp.m4: Likewise.
88408         * m4/nanosleep.m4: Likewise.
88409         * m4/putenv.m4: Likewise.
88410         * m4/realloc.m4: Likewise.
88411         * m4/regex.m4: Likewise.
88412         * m4/stat.m4: Likewise.
88413         * m4/strftime.m4: Likewise.
88414
88415 2000-07-02  Jim Meyering  <meyering@lucent.com>
88416
88417         * lib/quotearg.c (mbstate_t): Don't define here.
88418
88419 2000-07-02  Jim Meyering  <meyering@lucent.com>
88420
88421         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88422
88423 2000-07-01  Jim Meyering  <meyering@lucent.com>
88424
88425         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88426
88427 2000-07-01  Jim Meyering  <meyering@lucent.com>
88428
88429         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88430         problem.
88431
88432 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88433
88434         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88435         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88436
88437 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88438
88439         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88440         per change in ../m4/ls-mntd-fs.m4.
88441         (read_filesystem_list): Ignore symbolic links.
88442
88443 2000-06-29  Jim Meyering  <meyering@lucent.com>
88444
88445         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88446         for declaration of strcmp.
88447
88448         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88449
88450         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88451         Avoid warning by casting result to `char *' to remove `const'.
88452
88453 2000-06-28  Jim Meyering  <meyering@lucent.com>
88454
88455         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88456         included by quotearg.c, for which we perform this test.  From
88457         Bruno Haible.
88458
88459 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88460
88461         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88462         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88463         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88464
88465 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88466
88467         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88468
88469 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88470
88471         savedir now sets errno on failure and invokes xmalloc to get memory.
88472         Fix a couple of other minor bugs while we're at it.
88473
88474         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88475         (NAMLEN): Remove macro.
88476         (malloc, realloc): Remove decls.
88477         (stpcpy): Likewise.
88478         ("xalloc.h"): Include.
88479         (NAME_SIZE_DEFAULT): New macro.
88480         (savedir): Use xmalloc / xrealloc to allocate memory.
88481         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88482         Skip "" directory entries.
88483         Use strlen to calculate directory entry length, since the old method
88484         is rarely used these days and isn't worth supporting.
88485         Don't use a pointer after freeing it.
88486         Check for integer overflow when calculating allocation size.
88487         Use memcpy to copy entries, instead of stpcpy.
88488         Set errno properly when returning NULL.
88489         Check for readdir error.
88490
88491 2000-06-26  Jim Meyering  <meyering@lucent.com>
88492
88493         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88494
88495 2000-06-25  Jim Meyering  <meyering@lucent.com>
88496
88497         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88498         Linux header bug when _XOPEN_SOURCE is defined to 500.
88499
88500 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88501
88502         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88503         deficiency.
88504
88505 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88506
88507         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88508         Include xalloc.h.
88509         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88510
88511 2000-06-24  Jim Meyering  <meyering@lucent.com>
88512
88513         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88514         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88515         for which strerror does return char*, but which lacks a conveniently
88516         accessible declaration of the function.  If the compile-test says
88517         strerror_r doesn't work, then resort to a `run'-test that works on
88518         BeOS and segfaults on DEC Unix.
88519
88520 2000-06-24  Jim Meyering  <meyering@lucent.com>
88521
88522         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88523
88524 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88525
88526         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88527         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88528
88529 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88530
88531         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88532         (mbrtowc, mbstate_t): Define substitutes if
88533         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88534         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88535         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88536
88537 2000-06-23  Jim Meyering  <meyering@lucent.com>
88538
88539         * m4/afs.m4: Add missing AC_MSG_RESULT.
88540         Reported by Bruno Haible.
88541
88542         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88543         Suggestion from Bruno Haible.
88544
88545 2000-06-23  Jim Meyering  <meyering@lucent.com>
88546
88547         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88548
88549 2000-06-21  Jim Meyering  <meyering@lucent.com>
88550
88551         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88552
88553 2000-06-21  Jim Meyering  <meyering@lucent.com>
88554
88555         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88556         (noinst_HEADERS): Add getstr.h.
88557
88558         * lib/getline.c (getstr): Move into a separate file.
88559         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88560         the following changes: new parameter, delim2; both delim[12]
88561         parameters have type `int', not `char'.  The latter would lose
88562         with 8-bit delimiters.
88563         * lib/getstr.h: New file.
88564
88565 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88566
88567         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88568         than 1024, return a memory chunk of least possible size, instead
88569         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88570         Use free/xmalloc instead of xrealloc to avoid copying for very long
88571         paths.
88572
88573 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88574
88575         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88576         the empty string.
88577
88578 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88579
88580         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88581         address, not strdup.  Include <stdlib.h> and don't declare free().
88582
88583 2000-06-19  Jim Meyering  <meyering@lucent.com>
88584
88585         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88586
88587 2000-06-18  Jim Meyering  <meyering@lucent.com>
88588
88589         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88590
88591         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88592         `checking whether...' message to be consistent with that of the
88593         lstat test.
88594
88595 2000-06-18  Jim Meyering  <meyering@lucent.com>
88596
88597         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88598         Besides, these days every porting target provides a mkdir function.
88599
88600         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88601         needed. (this snippet comes from src/system.h).
88602
88603 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88604
88605         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88606
88607 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88608
88609         * lib/human.c (adjust_value): New function.
88610         (human_readable_inexact): Apply rounding style even when
88611         printing approximate values.
88612
88613 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88614
88615         * lib/human.c (human_readable_inexact): Allow an input block
88616         size that is not a multiple of the output block size, and vice versa.
88617         Reported by Piergiorgio Sartor.
88618
88619 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88620
88621         * lib/getdate.y (get_date): Apply relative times after time
88622         zone indicator, not before.  Reported by Todd A. Jacobs.
88623
88624 2000-06-13  Jim Meyering  <meyering@lucent.com>
88625
88626         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88627
88628         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88629
88630 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88631
88632         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88633
88634 2000-06-12  Jim Meyering  <meyering@lucent.com>
88635
88636         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88637         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88638         optional argument.
88639         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88640         the optional argument, `lib'.
88641
88642 2000-06-08  Jim Meyering  <meyering@lucent.com>
88643
88644         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88645
88646 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88647
88648         Rewrite largefile configuration so that we don't need to run
88649         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88650         AC_CANONICAL_HOST in configure.in -- jmm]
88651
88652         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88653         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88654         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88655         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88656         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88657         All uses changed.
88658         Instead of inspecting the output of getconf, try to compile the
88659         test program without and with the macro definition.
88660         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88661         for getconf.  Instead, check for the needed flags by compiling
88662         test programs.
88663
88664 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88665
88666         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88667
88668 2000-06-04  Jim Meyering  <meyering@lucent.com>
88669
88670         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88671         SunOS 4.1.4 for which gid_t is an unsigned type.
88672
88673 2000-06-03  Jim Meyering  <meyering@lucent.com>
88674
88675         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88676         now that autoconf requires that.
88677
88678         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88679         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88680         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88681
88682 2000-06-03  Jim Meyering  <meyering@lucent.com>
88683
88684         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88685
88686 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88687
88688         * m4/glibc21.m4: New file.
88689         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88690
88691 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88692
88693         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88694         newer, don't install charset.alias.
88695         * lib/config.charset: Change the Linux/glibc rules so they become empty
88696         on glibc-2.1 or newer.
88697
88698 2000-06-02  Jim Meyering  <meyering@lucent.com>
88699
88700         * lib/mountlist.c: Back out last change.  Instead, do this...
88701         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88702         me_dummy member using the same `ignore'-testing code.
88703         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88704         fs_type strings.
88705         From Mark D. Roth.
88706
88707 2000-05-29  Jim Meyering  <meyering@lucent.com>
88708
88709         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88710         mounts with the `ignore' attribute.  Based on a patch from
88711         Mark D. Roth.
88712
88713 2000-05-28  Jim Meyering  <meyering@lucent.com>
88714
88715         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88716         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88717         * m4/stat.m4: Likewise.
88718         * m4/lstat.m4: Likewise.
88719         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88720
88721         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88722         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88723
88724 2000-05-26  Jim Meyering  <meyering@lucent.com>
88725
88726         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88727
88728 2000-05-24  Jim Meyering  <meyering@lucent.com>
88729
88730         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88731         autoconf requires that.
88732         * m4/lib-check.m4: Likewise.
88733         * m4/jm-macros.m4: Likewise.
88734         * m4/strftime.m4: Likewise.
88735
88736         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88737         AC_CHECK_DECLS, now that autoconf requires that.
88738
88739 2000-05-22  Jim Meyering  <meyering@lucent.com>
88740
88741         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88742         * m4/lstat.m4: Likewise.
88743
88744 2000-05-22  Jim Meyering  <meyering@lucent.com>
88745
88746         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88747
88748 2000-05-20  Jim Meyering  <meyering@lucent.com>
88749
88750         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88751         (jm_PREREQ): Use it.
88752
88753 2000-05-18  Jim Meyering  <meyering@lucent.com>
88754
88755         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88756         back, too, since it may have been modified by allocate_entry.
88757         (hash_delete): Rewrite to use neither the assignment operator
88758         nor the comma operator in an if-expression.
88759
88760 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88761
88762         * lib/closeout.c:
88763         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88764         Remove; no longer needed.
88765         "quotearg.h": Add include.
88766         (file_name): Do not bother to explicitly initialize to NULL; it's less
88767         efficient on some hosts.
88768         (close_stdout_status): Remove test as to whether stdout was already
88769         closed; it breaks for the case "echo x | sort >&-".
88770         Quote file name colons.
88771         Do not assume that _("write error") lacks format strings.
88772
88773 2000-05-15  Jim Meyering  <meyering@lucent.com>
88774
88775         * lib/version-etc.c (version_etc_copyright): Update the copyright
88776         string used in all --version output.
88777
88778 2000-05-14  Jim Meyering  <meyering@lucent.com>
88779
88780         * lib/closeout.c (close_stdout_set_file_name): New function.
88781         (close_stdout_status): Use new file-scoped global.
88782         Return right away if fstat says the stdout file descriptor is invalid.
88783         * lib/closeout.h (close_stdout_set_file_name): Declare.
88784
88785 2000-05-10  Jim Meyering  <meyering@lucent.com>
88786
88787         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88788         (close_stdout_set_status): New function.
88789         * lib/closeout.h (close_stdout_set_status): Declare.
88790
88791 2000-05-09  Jim Meyering  <meyering@lucent.com>
88792
88793         * m4/gettext.m4: Rename this...
88794         * m4/libintl.m4: ...to this.
88795
88796 2000-05-08  Jim Meyering  <meyering@lucent.com>
88797
88798         * lib/long-options.c: Don't include closeout.h.
88799         (parse_long_options): Don't call close_stdout for --version.
88800
88801 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88802
88803         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88804         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88805         2.1.3 bug.  This avoids a clash when files like regex.c define
88806         _GNU_SOURCE.
88807
88808 2000-05-06  Jim Meyering  <meyering@lucent.com>
88809
88810         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88811         (AC_REPLACE_FUNCS): Add strnlen.
88812
88813         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88814         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88815
88816         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88817         AC_SEARCH_LIBS call for nanosleep.
88818         (LIB_NANOSLEEP): Set and AC_SUBST.
88819
88820 2000-05-06  Jim Meyering  <meyering@lucent.com>
88821
88822         * lib/strnlen.c: Undefine __strnlen and strnlen.
88823         [!weak_alias]: Define __strnlen to strnlen.
88824
88825         * lib/atexit.c: New file, from libiberty.
88826
88827 2000-05-06  Jim Meyering  <meyering@lucent.com>
88828
88829         * lib/closeout.c (close_stdout_status): Also check for errors on the
88830         stderr stream.
88831
88832 2000-05-05  Jim Meyering  <meyering@lucent.com>
88833
88834         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88835         AC_SEARCH_LIBS call for clock_gettime.
88836         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88837
88838         * m4/search-libs.m4: Update from autoconf.
88839
88840         su doesn't work on Solaris 2.6.
88841         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88842         <shadow.h>.  Reported by Dragos Harabor.
88843
88844 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88845
88846         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88847         memcpy instead of xmalloc, xrealloc, path_concat.
88848         (locale_charset): Treat empty environment variables as absent.
88849         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88850
88851 2000-05-04  Jim Meyering  <meyering@lucent.com>
88852
88853         * lib/getopt.c: Update from glibc.
88854         * lib/obstack.c: Likewise.
88855         * lib/obstack.h: Likewise.
88856         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88857         file
88858
88859         * lib/regex.h: Likewise.
88860         * lib/strndup.c: Likewise.
88861         * lib/strnlen.c: New file, from glibc.
88862
88863 2000-05-03  Jim Meyering  <meyering@lucent.com>
88864
88865         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88866
88867 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88868
88869         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88870         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88871         compile-time test, rather than inspecting host and OS, to
88872         decide whether to define _LARGEFILE_SOURCE.
88873
88874 2000-05-01  Jim Meyering  <meyering@lucent.com>
88875
88876         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88877
88878         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88879         Based on a patch from Bruno Haible.
88880
88881 2000-05-01  Jim Meyering  <meyering@lucent.com>
88882
88883         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88884
88885 2000-04-29  Jim Meyering  <meyering@lucent.com>
88886
88887         * lib/path-concat.c: Declare strdup only if it's not defined.
88888         * lib/canon-host.c: Likewise.
88889
88890 2000-04-28  Jim Meyering  <meyering@lucent.com>
88891
88892         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88893         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88894         is included first, then limits.h is included by locale.h by libintl.h.
88895         From John David Anglin.
88896
88897 2000-04-25  Jim Meyering  <meyering@lucent.com>
88898
88899         * lib/makepath.c (S_IRWXUGO): Define.
88900         (make_path): Always perform explicit chmod if MODE specifies any
88901         of the `special' permission bits.  Prompted by a bug report against
88902         install from Mate Wierdl and Joost van Baal.
88903
88904 2000-04-18  Jim Meyering  <meyering@lucent.com>
88905
88906         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88907         (jm_PREREQ): Use it.
88908
88909 2000-04-18  Jim Meyering  <meyering@lucent.com>
88910
88911         * lib/README: New file.
88912
88913         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88914         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88915
88916 2000-04-17  Jim Meyering  <meyering@lucent.com>
88917
88918         Get it right :-)
88919         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88920         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88921         Suggestion from Akim Demaille.
88922
88923 2000-04-17  Jim Meyering  <meyering@lucent.com>
88924
88925         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88926         the definition of it to rpl_strftime also defined-away the system's
88927         declaration.
88928
88929 2000-04-15  Jim Meyering  <meyering@lucent.com>
88930
88931         Use `C' to denote so-called `contiguous' files, the same way
88932         that tar does.
88933         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88934         (ftypelet): Use S_ISCTG.
88935         From Michael Deutschmann.
88936
88937 2000-04-14  Jim Meyering  <meyering@lucent.com>
88938
88939         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88940         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88941         clobbered.
88942
88943 2000-04-14  Jim Meyering  <meyering@lucent.com>
88944
88945         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88946
88947 2000-04-13  Jim Meyering  <meyering@lucent.com>
88948
88949         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88950         AH_VERBATIM to insert required #ifndef into config.h.in.
88951         Suggestion from Akim Demaille.
88952
88953 2000-04-12  Jim Meyering  <meyering@lucent.com>
88954
88955         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88956         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88957         Christian Krackowizer.
88958
88959         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88960         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88961         (AC_SYS_LARGEFILE): Require.
88962         (AM_C_PROTOTYPES): Require.
88963
88964 2000-04-08  Jim Meyering  <meyering@lucent.com>
88965
88966         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88967         names don't conflict.  Reported by Eli Zaretskii.
88968
88969 2000-04-07  Jim Meyering  <meyering@lucent.com>
88970
88971         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88972         sys/types.h, to work around system header problems on AIX 3.2.5.
88973         From Bruno Haible.
88974
88975 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88976
88977         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88978         bug.  Deal with the different error behavior of Irix iconv.
88979
88980 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88981
88982         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88983         IRIX if the installer said otherwise.
88984
88985 2000-04-05  Jim Meyering  <meyering@lucent.com>
88986
88987         Portability tweaks required for ultrix4.3.
88988         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88989         (jm_CHECK_DECLS): Add getutent to the list of functions.
88990         (_jm_DECL_HEADERS): Add utmpx.h.
88991         From John David Anglin.
88992
88993         * m4/strftime.m4: Back out the 2000-04-02 change.
88994         Instead of that change, simply undefine putenv in the test program.
88995
88996 2000-04-05  Jim Meyering  <meyering@lucent.com>
88997
88998         Portability tweaks required for ultrix4.3.
88999         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89000         getutent.
89001         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89002         * lib/canon-host.c: Declare strdup.
89003         * lib/path-concat.c: Likewise.
89004         From John David Anglin.
89005
89006 2000-04-04  Jim Meyering  <meyering@lucent.com>
89007
89008         Be more DOS 8.3-friendly.
89009         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89010         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89011         * lib/Makefile.am: Reflect renaming.
89012         Reported by Eli Zaretskii.
89013
89014         Use a temporary file name that won't clash with `charset.alias'
89015         in the DOS 8.3 name space.
89016         * lib/Makefile.am (charset_tmp): Define.
89017         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89018         (uninstall-local): Likewise.
89019         Reported by Eli Zaretskii.
89020
89021 2000-04-03  Jim Meyering  <meyering@lucent.com>
89022
89023         * m4/gettext.m4: Fix typo in comment.
89024
89025         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89026         textutils/configure.in).  Suggestion from Paul Eggert.
89027         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89028
89029 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89030
89031         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89032         variable in the shell rather than using putenv, which isn't
89033         portable.  This avoids the configure-time inter-test dependency
89034         on the potentially-renamed putenv function.
89035
89036 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89037
89038         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89039         before checking struct stat.st_blksize, so that
89040         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89041
89042 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89043
89044         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89045         since strftime.c uses HAVE_STRFTIME to decide whether to use
89046         the underlying strftime.
89047
89048 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89049
89050         * lib/time/strftime.c (my_strftime): Make sure we call the system
89051         strftime, not ourselves, when invoking the underlying strftime.
89052
89053 2000-03-24  Jim Meyering  <meyering@lucent.com>
89054
89055         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89056         (charset_alias): Define.
89057         (install-exec-local): Factor out common code.
89058         (uninstall-local): Split lines longer than 80.
89059         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89060         (SUFFIXES): Define.
89061         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89062         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89063
89064 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89065
89066         * lib/config.charset: Output a line containing "Packages using this
89067         file".
89068         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89069         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89070         ref-del.sed): New rules.
89071
89072 2000-03-17  Jim Meyering  <meyering@lucent.com>
89073
89074         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89075         Otherwise, include <strings.h>
89076
89077 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89078
89079         * lib/unicodeio.c (utf8_wctomb): New function.
89080         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89081         format instead of in UCS-4 with platform dependent endianness.
89082
89083 2000-03-10  Jim Meyering  <meyering@lucent.com>
89084
89085         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89086         From Marco Franzen.
89087
89088 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89089
89090         * lib/savedir.c (savedir): Work even if directory size is
89091         negative; this can happen with some screwy NFS configurations.
89092
89093 2000-03-06  Jim Meyering  <meyering@lucent.com>
89094
89095         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89096         if it's NULL (because we ran out of memory).  From Bruno Haible.
89097
89098 2000-03-05  Jim Meyering  <meyering@lucent.com>
89099
89100         * lib/localcharset.c ("path-concat.h"): Include.
89101         (get_charset_aliases): Use path_concat instead of ANSI string
89102         concatenation.
89103
89104         * lib/unicodeio.h (PARAMS): Define.
89105         Use it to guard prototype.
89106
89107 2000-03-04  Jim Meyering  <meyering@lucent.com>
89108
89109         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89110         for lib/localcharset.c.
89111
89112 2000-03-04  Jim Meyering  <meyering@lucent.com>
89113
89114         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89115         installing into it.
89116         (uninstall-local): Uncomment this rule so `make distcheck' works
89117         once again.
89118
89119         * lib/unicodeio.c (<errno.h>): Include it.
89120         (errno): Declare if not defined.
89121
89122         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89123
89124         * lib/config.charset: New version, incorporating remarks from a linux
89125         i18n mailing list.  From Bruno Haible.
89126
89127 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89128
89129         * m4/codeset.m4: New file.
89130         * m4/iconv.m4: New file.
89131         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89132
89133 2000-03-03  Jim Meyering  <meyering@lucent.com>
89134
89135         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89136
89137 2000-03-02  Jim Meyering  <meyering@lucent.com>
89138
89139         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89140         the messages come out on separate lines.
89141
89142         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89143         rather than jm_CHECK_DECLARATIONS.
89144         * m4/decl.m4: Remove now-unused file.
89145
89146         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89147         geteuid.
89148
89149 2000-03-02  Jim Meyering  <meyering@lucent.com>
89150
89151         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89152
89153 2000-03-01  Jim Meyering  <meyering@lucent.com>
89154
89155         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89156         * lib/unicodeio.c: Likewise.
89157
89158 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89159
89160         * lib/config.charset: New file.
89161         * lib/localcharset.c: New file.
89162         * lib/unicodeio.h, lib/unicodeio.c: New files.
89163         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89164         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89165         (noinst_HEADERS): Add unicodeio.h.
89166         (all-local, install-exec-local, charset.alias): New targets.
89167
89168 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89169
89170         * lib/quotearg.c (ALERT_CHAR): New macro.
89171         (quotearg_buffer_restyled): Use it.
89172
89173 2000-02-27  Jim Meyering  <meyering@lucent.com>
89174
89175         * m4/check-decl.m4: Add getenv to the list.
89176
89177 2000-02-27  Jim Meyering  <meyering@lucent.com>
89178
89179         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89180         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89181
89182         * lib/backupfile.c: Guard inclusion of stdlib.h with
89183         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89184         Declare malloc if needed.
89185
89186         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89187         `#ifndef HAVE_DECL..'
89188         now that autoconf always defines the HAVE_DECL_ symbols.
89189         * lib/human.c: Likewise.
89190         * lib/same.c: Likewise.
89191         * lib/strtoumax.c: Likewise.
89192
89193         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89194         declaration check was not run.
89195         * lib/hash.c: Likewise.
89196         * lib/human.c: Likewise.
89197         * lib/same.c: Likewise.
89198         * lib/strtoumax.c: Likewise.
89199
89200         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89201         `.', then first look up the entire `.'-containing string as a login
89202         name.
89203
89204 2000-02-23  Jim Meyering  <meyering@lucent.com>
89205
89206         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89207         in place of my hack.
89208
89209 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89210
89211         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89212         (textint): New typedef.
89213         (parser_control): Member year changed from int to textint.
89214         All uses changed.
89215         (YYSTYPE): Removed; replaced by %union with int and textint members.
89216         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89217         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89218         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89219         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89220         (date, number, to_year): Use width of number in digits, not its value,
89221         to determine whether it's a 2-digit year, or a 2-digit time.
89222         (yylex): Store number of digits of numeric tokens.
89223         Reported by John Kendall.
89224
89225         (parser_control): Changed from struct parser_control to typedef (for
89226         consistency).  All uses changed.
89227
89228         (tID): Removed; not used.
89229         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89230
89231 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89232
89233         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89234         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89235
89236 2000-02-12  Jim Meyering  <meyering@lucent.com>
89237
89238         * lib/userspec.c (ISDIGIT): Define it.
89239         (isdigit): Remove definition.
89240         (is_number): Use ISDIGIT, not isdigit.
89241         <libintl.h>: Include.
89242         (_ and N_): Define.
89243         (parse_user_spec): Mark translatable strings.
89244
89245 2000-02-10  Jim Meyering  <meyering@lucent.com>
89246
89247         With these changes, nanosleep.[ch] are finally enough like the other
89248         lib/* replacement files to compile on a few more losing systems.
89249
89250         * lib/nanosleep.h: Don't include config.h.
89251         Remove prototype from declaration of nanosleep.
89252         (PARAMS): Remove now-unneeded definition.
89253         * lib/nanosleep.c: #undef nanosleep.
89254         (rpl_nanosleep): Rename from nanosleep.
89255
89256 2000-02-10  Jim Meyering  <meyering@lucent.com>
89257
89258         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89259         gnu_nanosleep to rpl_nanosleep.
89260
89261 2000-02-09  Jim Meyering  <meyering@lucent.com>
89262
89263         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89264         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89265
89266 2000-02-08  Akim Demaille  <akim@epita.fr>
89267
89268         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89269         `[' and `]' and remove uses of `changequote'.
89270         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89271         (AC_SYS_LARGEFILE): Likewise.
89272         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89273         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89274         of changequote.
89275         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89276         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89277         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89278         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89279
89280 2000-02-05  Jim Meyering  <meyering@lucent.com>
89281
89282         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89283         Remove explicit use of AC_HEADER_TIME.  It is required by
89284         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89285         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89286         in autoconf whereby the expansion of the latter ended up preceding
89287         the expansion of its prerequisite, AC_HEADER_TIME.
89288         Reported by Volker Borchert.
89289
89290 2000-02-03  Jim Meyering  <meyering@lucent.com>
89291
89292         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89293
89294 2000-02-03  Jim Meyering  <meyering@lucent.com>
89295
89296         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89297         rather than with `#if HAVE_UTMPNAME'.
89298
89299 2000-02-02  Jim Meyering  <meyering@lucent.com>
89300
89301         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89302         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89303         Reported by Eli Zaretskii.
89304
89305 2000-02-01  Jim Meyering  <meyering@lucent.com>
89306
89307         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89308
89309 2000-01-31  Jim Meyering  <meyering@lucent.com>
89310
89311         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89312         functions.  Add the time.h and sys/time.h headers along with the
89313         AC_REQUIRE'ment of AC_HEADER_TIME.
89314
89315 2000-01-31  Jim Meyering  <meyering@lucent.com>
89316
89317         * lib/nanosleep.h (nanosleep): Guard declaration with
89318         `#if ! HAVE_DECL_NANOSLEEP'.
89319         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89320         the declaration in that vendor's sys/timers.h.
89321         Reported by Christian Krackowizer.
89322
89323         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89324         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89325         (ISPRINT): Likewise.
89326         Reported by Tom Tromey.
89327
89328 2000-01-30  Jim Meyering  <meyering@lucent.com>
89329
89330         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89331
89332         * m4/prereq.m4 (utmp_includes): Define.
89333         Check for ut_user and ut_name members in both struct utmpx
89334         and struct utmp.
89335
89336 2000-01-30  Jim Meyering  <meyering@lucent.com>
89337
89338         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89339         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89340         header files where only utmpx.ut_user is declared.
89341
89342         * lib/readutmp.h (UT_USER): Define.
89343
89344 2000-01-29  Jim Meyering  <meyering@lucent.com>
89345
89346         * m4/lib-check.m4: New file containing library-related checks from
89347         fileutils and sh-utils (textutils had none).
89348
89349 2000-01-28  Jim Meyering  <meyering@lucent.com>
89350
89351         * m4/perl.m4: Change format of warning message to look more like that
89352         from the missing script.  Suggestion from François Pinard.
89353
89354 2000-01-25  Jim Meyering  <meyering@lucent.com>
89355
89356         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89357         well as time.h in the compile check.
89358         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89359         Fix typo in cross-compiling case: s/yes/no/.
89360
89361 2000-01-23  Jim Meyering  <meyering@lucent.com>
89362
89363         * m4/jm-macros.m4: Move df-related tests here from
89364         fileutils/configure.in
89365
89366         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89367         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89368
89369         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89370         s/space/ac_fsusage_space/.
89371         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89372
89373         * m4/ftruncate.m4: New file (derived from part of
89374         fileutils/configure.in).
89375         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89376         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89377
89378         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89379         AC_SUBST these here, rather than just in sh-util/configure.in, so
89380         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89381         all the same.
89382         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89383         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89384         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89385         (AC_SUBST(POW_LIBM)): Likewise.
89386         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89387
89388 2000-01-23  Jim Meyering  <meyering@lucent.com>
89389
89390         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89391         obstack.c.
89392
89393 2000-01-22  Jim Meyering  <meyering@lucent.com>
89394
89395         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89396
89397         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89398
89399         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89400         configure.in
89401         (AC_CHECK_HEADERS): Likewise for sh-utils.
89402         (AC_CHECK_HEADERS): Likewise for textutils.
89403         Merge the three lists of headers.
89404
89405         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89406         from fileutils' configure.in.
89407
89408         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89409         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89410         check-decl.m4.
89411
89412         * m4/check-decl.m4: Use #if rather than #ifdef.
89413         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89414         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89415         (_jm_DECL_HEADERS): Define new function.
89416         (jm_CHECK_DECLARATIONS): Require it.
89417
89418 2000-01-22  Jim Meyering  <meyering@lucent.com>
89419
89420         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89421         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89422         Required for some AIX systems.  Reported by Christian Krackowizer.
89423         [TESTING] (main): New function.
89424
89425         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89426         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89427         letters.
89428
89429         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89430         iswprint.
89431
89432         * lib/strverscmp.c (ISDIGIT): Define.
89433         (strverscmp): Use ISDIGIT, not isdigit.
89434
89435 2000-01-19  Jim Meyering  <meyering@lucent.com>
89436
89437         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89438         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89439         defines `struct timespec' in <sys/time.h>
89440
89441         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89442         Thanks to Akim for explaining.
89443
89444 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89445
89446         * lib/nanosleep.c (nanosleep):
89447         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89448         POSIX.1 doesn't require SA_INTERRUPT and some systems
89449         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89450         it's been part of POSIX.1 since day 1 (in 1988).
89451
89452 2000-01-17  Jim Meyering  <meyering@lucent.com>
89453
89454         * lib/interlock: Remove unused file.  Reported by François Pinard.
89455
89456 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89457
89458         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89459         alert, backslash, formfeed, and vertical tab unnecessarily in
89460         shell quoting style.
89461
89462 2000-01-16  Jim Meyering  <meyering@lucent.com>
89463
89464         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89465         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89466         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89467         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89468
89469 2000-01-16  Jim Meyering  <meyering@lucent.com>
89470
89471         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89472         because the latter didn't work.
89473
89474 2000-01-15  Jim Meyering  <meyering@lucent.com>
89475
89476         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89477         (AC_REPLACE_FUNCS): Add memcpy and memset.
89478         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89479         Add strpbrk.
89480         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89481
89482 2000-01-12  Jim Meyering  <meyering@lucent.com>
89483
89484         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89485         (jm_PREREQ): Use it.
89486         (jm_PREREQ_READUTMP): New macro.
89487         (jm_PREREQ): Use it.
89488
89489 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89490
89491         Quote multibyte characters correctly.
89492         * m4/c-bs-a.m4: New file.
89493         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89494         (jm_PREREQ): Use it.
89495
89496 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89497
89498         * m4/uintmax_t.m4: Port to autoconf 2.13.
89499
89500 2000-01-08  Jim Meyering  <meyering@ascend.com>
89501
89502         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89503         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89504
89505 2000-01-04  Jim Meyering  <meyering@ascend.com>
89506
89507         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89508         jm_STRUCT_DIRENT_D_TYPE.
89509         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89510         jm_STRUCT_DIRENT_D_INO.
89511         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89512         jm_STRUCT_UTIMBUF.
89513         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89514         renamings.
89515         * m4/utime.m4: Likewise.
89516
89517         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89518         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89519
89520 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89521
89522         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89523         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89524
89525 2000-01-02  Jim Meyering  <meyering@ascend.com>
89526
89527         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89528         remember if this is necessary.
89529
89530 1999-12-26  Jim Meyering  <meyering@ascend.com>
89531
89532         * m4/jm-macros.m4: Use it here.
89533         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89534
89535 1999-12-23  Jim Meyering  <meyering@ascend.com>
89536
89537         * m4/jm-macros.m4: Check for clock_gettime (moved from
89538         fileutils/configure.in)
89539         Check for gettimeofday.
89540
89541 1999-12-20  Jim Meyering  <meyering@ascend.com>
89542
89543         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89544         autoconf-2.14a-1999-12-20.
89545
89546 1999-12-19  Jim Meyering  <meyering@ascend.com>
89547
89548         * m4/lstat-slash.m4: New file.
89549         * m4/jm-macros.m4: Use the new macro:
89550         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89551
89552 1999-12-07  Jim Meyering  <meyering@ascend.com>
89553
89554         * m4/perl.m4: Require that File::Compare be available, too.
89555         Too many systems seem to lack it.
89556
89557         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89558         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89559
89560 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89561
89562         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89563         problem with the QNX 4.25 shell, which doesn't propagate exit
89564         status of failed commands inside shell assignments.
89565
89566 1999-11-17  Jim Meyering  <meyering@ascend.com>
89567
89568         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89569
89570 1999-11-07  Jim Meyering  <meyering@ascend.com>
89571
89572         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89573
89574 1999-11-06  Jim Meyering  <meyering@ascend.com>
89575
89576         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89577         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89578
89579 1999-11-05  Jim Meyering  <meyering@ascend.com>
89580
89581         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89582         configure.in of textutils, fileutils, and sh-utils into this one
89583         (shared between those packages) file.
89584         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89585         AC_STRUCT_ST_BLKSIZE.
89586
89587 1999-11-03  Jim Meyering  <meyering@ascend.com>
89588
89589         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89590         of AC_CHECK_TYPE checks includes unistd.h.
89591         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89592         Suggestion from Akim Demaille.
89593
89594 1999-10-30  Jim Meyering  <meyering@ascend.com>
89595
89596         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89597         m4-quoted string.
89598         * m4/ls-mntd-fs.m4: Likewise.
89599         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89600         * m4/jm-winsz1.m4: Likewise.
89601
89602         * m4/const.m4: Remove file, since the fix made it into the experimental
89603         version of autoconf.
89604         * m4/mktime.m4: Likewise.
89605
89606         * m4/check-type.m4: Remove file, now that the latest version of
89607         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89608
89609         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89610         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89611         AC_CHECK_TYPE.
89612
89613 1999-10-04  Jim Meyering  <meyering@ascend.com>
89614
89615         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89616
89617 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89618
89619         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89620         2.95.1 bug with HP-UX 10.20.
89621
89622 1999-09-17  Jim Meyering  <meyering@ascend.com>
89623
89624         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89625         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89626         due to missing strdup (against sh-utils-2.0).
89627
89628 1999-08-29  Jim Meyering  <meyering@ascend.com>
89629
89630         * m4/jm-macros.m4: Require jm_BISON.
89631         * m4/bison.m4: New file.
89632
89633 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89634
89635         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89636         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89637
89638 1999-08-05  Jim Meyering  <meyering@ascend.com>
89639
89640         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89641         to avoid conflicts with `conftest' on 8+3 filesystems.
89642         Suggestion from Eli Zaretskii.
89643
89644 1999-08-04  Jim Meyering  <meyering@ascend.com>
89645
89646         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89647         fileutils and sh-utils (textutils's getline test was inadequate).
89648         (AM_FUNC_GETLINE): Run this test.
89649         (AC_CHECK_FUNCS): Check for getdelim.
89650         Reported by Bob Proulx.
89651
89652 1999-08-02  Jim Meyering  <meyering@ascend.com>
89653
89654         * m4/jm-macros.m4: Add a comment.
89655
89656 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89657
89658         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89659         <inttypes.h> defines strtoumax as a macro (and not as a
89660         function).
89661
89662 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89663
89664         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89665         that we can shift, multiply and divide unsigned long long
89666         values; Ultrix cc can't do it.
89667
89668 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89669
89670         * m4/mktime.m4: New file, which is a preview of what should appear
89671         in the next public autoconf release.
89672
89673 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89674
89675         * m4/lfs.m4: Remove this file.
89676         * m4/largefile.m4: New file.  It contains the old contents of
89677         lfs.m4, except that all names with prefix AC_LFS have been
89678         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89679         compatible with future autoconf versions.  Also, some minor m4
89680         quoting problems have been fixed.
89681
89682 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89683
89684         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89685         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89686         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89687         and simplify the shell code.
89688
89689 1999-08-01  Jim Meyering  <meyering@ascend.com>
89690
89691         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89692         m4.
89693
89694 1999-07-20  Jim Meyering  <meyering@ascend.com>
89695
89696         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89697
89698 1999-07-15  Jim Meyering  <meyering@ascend.com>
89699
89700         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89701
89702 1999-05-22  Jim Meyering  <meyering@ascend.com>
89703
89704         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89705
89706 1999-05-20  Jim Meyering  <meyering@ascend.com>
89707
89708         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89709         Add a colon after each `then' in case $4 is empty.
89710
89711 1999-05-16  Jim Meyering  <meyering@ascend.com>
89712
89713         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89714
89715 1999-05-10  Jim Meyering  <meyering@ascend.com>
89716
89717         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89718
89719         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89720         AC_FUNC_MKTIME.
89721
89722 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89723
89724         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89725
89726 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89727
89728         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89729         not CPPFLAGS, so that linking works correctly in IRIX.
89730
89731 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89732
89733         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89734
89735 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89736
89737         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89738         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89739         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89740         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89741         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89742
89743         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89744
89745 1999-04-20  Jim Meyering  <meyering@ascend.com>
89746
89747         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89748         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89749         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89750
89751 1999-04-18  Jim Meyering  <meyering@ascend.com>
89752
89753         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89754         * m4/jm-macros.m4: Use it.
89755
89756 1999-04-06  Jim Meyering  <meyering@ascend.com>
89757
89758         * m4/strftime.m4: Remove test for %f.
89759
89760 1999-03-29  Jim Meyering  <meyering@ascend.com>
89761
89762         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89763         superset of the AC_TYPE_* checks in the textutils, fileutils,
89764         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89765         AC_TYPE_PID_T.
89766
89767 1999-03-28  Jim Meyering  <meyering@ascend.com>
89768
89769         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89770         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89771         replaced e.g., in the *.sh files of the sh-utils.
89772
89773 1999-03-20  Jim Meyering  <meyering@ascend.com>
89774
89775         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89776         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89777         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89778
89779 1999-03-19  Jim Meyering  <meyering@ascend.com>
89780
89781         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89782
89783 1999-03-12  Jim Meyering  <meyering@ascend.com>
89784
89785         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89786
89787 1999-03-07  Jim Meyering  <meyering@ascend.com>
89788
89789         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89790         declared.
89791
89792 1999-02-17  Jim Meyering  <meyering@ascend.com>
89793
89794         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89795         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89796
89797 1999-02-07  Jim Meyering  <meyering@ascend.com>
89798
89799         * m4/group-member.m4: New file -- extracted from sh-utils'
89800         configure.in.
89801
89802         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89803         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89804
89805 1999-02-06  Jim Meyering  <meyering@ascend.com>
89806
89807         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89808         * m4/fnmatch.m4: Likewise.
89809         * m4/getgroups.m4: Likewise.
89810         * m4/lstat.m4: Likewise.
89811         * m4/malloc.m4: Likewise.
89812         * m4/putenv.m4: Likewise.
89813         * m4/realloc.m4: Likewise.
89814         * m4/regex.m4: Likewise.
89815         * m4/stat.m4: Likewise.
89816         * m4/strftime.m4: Likewise.
89817         Suggestion from Alain Magloire.
89818
89819         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89820         * m4/fnmatch.m4: Likewise.
89821         * m4/getgroups.m4: Likewise.
89822         * m4/getline.m4: Likewise.
89823         * m4/lstat.m4: Likewise.
89824         * m4/malloc.m4: Likewise.
89825         * m4/memcmp.m4: Likewise.
89826         * m4/putenv.m4: Likewise.
89827         * m4/realloc.m4: Likewise.
89828         * m4/regex.m4: Likewise.
89829         * m4/stat.m4: Likewise.
89830         * m4/strftime.m4: Likewise.
89831         Suggestion from Alain Magloire.
89832
89833         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89834         an argument.
89835
89836         * m4/regex.m4: Add a run-time Test for proper operation of
89837         re_compile_pattern.
89838
89839 1999-01-31  Jim Meyering  <meyering@ascend.com>
89840
89841         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89842
89843 1999-01-30  Jim Meyering  <meyering@ascend.com>
89844
89845         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89846
89847         * m4/jm-mktime.m4: Make this a wrapper around the official
89848         AM_FUNC_MKTIME rather than my private copy, now that the official one
89849         is up to date.
89850         * m4/mktime.m4: Remove file.
89851
89852         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89853         * m4/uptime.m4: Likewise.
89854         * m4/uintmax_t.m4: Likewise.
89855
89856 1999-01-28  Jim Meyering  <meyering@ascend.com>
89857
89858         * m4/jm-macros.m4: Use jm_AFS.
89859         * m4/afs.m4: New file (from fileutils' configure.in).
89860
89861         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89862         * m4/chown.m4: Likewise.
89863         * m4/d-ino.m4: Likewise.
89864         * m4/d-type.m4: Likewise.
89865         * m4/fnmatch.m4: Likewise.
89866         * m4/getgroups.m4: Likewise.
89867         * m4/gettext.m4: Likewise.
89868         * m4/jm-mktime.m4: Likewise.
89869         * m4/jm-winsz2.m4: Likewise.
89870         * m4/lcmessage.m4: Likewise.
89871         * m4/ls-mntd-fs.m4: Likewise.
89872         * m4/malloc.m4: Likewise.
89873         * m4/memcmp.m4: Likewise.
89874         * m4/putenv.m4: Likewise.
89875         * m4/realloc.m4: Likewise.
89876         * m4/st_mtim.m4: Likewise.
89877         * m4/strftime.m4: Likewise.
89878
89879 1999-01-16  Jim Meyering  <meyering@ascend.com>
89880
89881         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89882         (ARGMATCH_DIE_DECL): Define.
89883
89884 1999-01-12  Jim Meyering  <meyering@ascend.com>
89885
89886         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89887         Reported by Lars Hecking.
89888
89889 1999-01-10  Jim Meyering  <meyering@ascend.com>
89890
89891         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89892         gross kludge.
89893         * m4/inttypes_h.m4: Likewise.
89894         * m4/lstat.m4: Likewise.
89895         * m4/malloc.m4: Likewise.
89896         * m4/readdir.m4: Likewise.
89897         * m4/realloc.m4: Likewise.
89898         * m4/st_dm_mode.m4: Likewise.
89899         * m4/stat.m4: Likewise.
89900         * m4/utimbuf.m4: Likewise.
89901         * m4/utimes.m4: Likewise.
89902
89903         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89904         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89905         comments in config.h.in are meaningful.
89906
89907         * m4/jm-macros.m4: Require autoconf-2.13 here.
89908
89909         * m4/regex.m4: By default, don't use the included regex.c on systems
89910         with glibc 2.  Suggestion from Uli Drepper.
89911
89912 1999-01-02  Jim Meyering  <meyering@ascend.com>
89913
89914         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89915
89916 1998-12-18  Jim Meyering  <meyering@ascend.com>
89917
89918         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89919         Based on a suggestion from Lars Hecking.
89920
89921 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89922
89923         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89924
89925 1998-11-16  Jim Meyering  <meyering@ascend.com>
89926
89927         * m4/lfs.m4: Double-quote the `uname...` expression.
89928
89929 1998-11-14  Jim Meyering  <meyering@ascend.com>
89930
89931         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89932         * m4/stat.m4: Likewise.
89933
89934 1998-11-03  Jim Meyering  <meyering@ascend.com>
89935
89936         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89937         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89938
89939 1998-10-18  Jim Meyering  <meyering@ascend.com>
89940
89941         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89942
89943 1998-10-17  Jim Meyering  <meyering@ascend.com>
89944
89945         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89946         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89947         calls for those previously hard-coded headers.  Instead, take a new
89948         parameter.
89949         (jm_CHECK_DECLARATIONS): Reflect interface change.
89950         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89951         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89952
89953         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89954
89955 1998-10-14  Jim Meyering  <meyering@ascend.com>
89956
89957         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89958         instead of "TZ=America/Vancouver".  From Paul Eggert.
89959
89960 1998-10-11  Jim Meyering  <meyering@ascend.com>
89961
89962         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89963         This adds a test for a recently added compatibility fix for mktime.c.
89964         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89965
89966 1998-09-27  Jim Meyering  <meyering@ascend.com>
89967
89968         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89969
89970         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89971         ../configure.in, including a change from Gordon Matzigkeit to allow
89972         cross-compiling for the Hurd.
89973
89974         * m4/glibc.m4: New file/macro to test for the GNU C Library
89975         versions 1 and 2.  From Gordon Matzigkeit.
89976         Indent.
89977
89978 1998-09-21  Jim Meyering  <meyering@ascend.com>
89979
89980         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89981
89982 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89983
89984         Port nanosecond-resolution times to UnixWare 2.1.2 and
89985         pedantic Solaris 2.6.
89986
89987         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89988         AC_STRUCT_ST_MTIM.
89989         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89990         Generate name of ns member, instead of just 1 or undef.
89991         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89992
89993 1998-08-15  Jim Meyering  <meyering@ascend.com>
89994
89995         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89996         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89997         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89998         instead of jm_TYPE_SSIZE_T.
89999
90000 1998-08-12  Jim Meyering  <meyering@ascend.com>
90001
90002         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90003
90004 1998-08-02  Jim Meyering  <meyering@ascend.com>
90005
90006         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90007         in acconfig.h manually.
90008
90009 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90010
90011         * m4/st_mtim.m4: New file.
90012
90013 1998-07-28  Jim Meyering  <meyering@ascend.com>
90014
90015         * m4/utimes.m4: Undef stat.
90016
90017 1998-07-25  Jim Meyering  <meyering@ascend.com>
90018
90019         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90020         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90021
90022 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90023
90024         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90025         uid and gid actually remain unchanged.
90026
90027 1998-07-07  Jim Meyering  <meyering@ascend.com>
90028
90029         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90030
90031 1998-07-04  Jim Meyering  <meyering@ascend.com>
90032
90033         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90034         to prove that this macro can be used in packages without regex.c.
90035
90036 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90037
90038         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90039         is to be used.
90040
90041 1998-07-03  Jim Meyering  <meyering@ascend.com>
90042
90043         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90044
90045         * m4/gettext.m4: New file -- from gettext-0.10.35.
90046         * m4/lcmessage.m4: Likewise.
90047         * m4/progtest.m4: Likewise.
90048
90049         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90050         * m4/jm-macros.m4: Require the new macro.
90051
90052 1998-06-29  Jim Meyering  <meyering@ascend.com>
90053
90054         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90055         for the definition of NGROUPS (used in a system header included
90056         by sys/mount.h).
90057
90058 1998-06-28  Jim Meyering  <meyering@ascend.com>
90059
90060         * m4/ls-mntd-fs.m4: New file.
90061         * m4/fstypename.m4: New file.
90062
90063         * m4/jm-macros.m4: Require the new macro.
90064         * m4/jm-glibc-io.m4: New file.
90065
90066 1998-05-19  Jim Meyering  <meyering@ascend.com>
90067
90068         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90069         * m4/lchown.m4: New file.
90070
90071         * m4/Makefile.am.in: New file.
90072         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90073
90074 1998-05-14  Jim Meyering  <meyering@ascend.com>
90075
90076         * m4/Makefile.am (EXTRA_DIST): Add them.
90077         * m4/jm-macros.m4: New file.
90078         * m4/utimbuf.m4: New file.
90079
90080 1998-05-12  Jim Meyering  <meyering@ascend.com>
90081
90082         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90083
90084 1998-05-11  Jim Meyering  <meyering@ascend.com>
90085
90086         * m4/isc-posix.m4: New file.
90087
90088 1998-05-10  Jim Meyering  <meyering@ascend.com>
90089
90090         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90091
90092 1998-05-09  Jim Meyering  <meyering@ascend.com>
90093
90094         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90095         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90096         with automake.
90097
90098         * m4/ssize_t.m4: New file.
90099         * m4/mktime.m4: Remove file -- the new automake has this now.
90100
90101 1998-04-26  Jim Meyering  <meyering@ascend.com>
90102
90103         * m4/assert.m4: New file.
90104         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90105
90106 1998-04-05  Jim Meyering  <meyering@ascend.com>
90107
90108         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90109         (jm_PREREQ): Use it here.
90110
90111 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90112
90113         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90114         in acconfig.h.
90115
90116 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90117
90118         * m4/prereq.m4: New file.
90119         * m4/error.m4: New file.
90120         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90121
90122 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90123
90124         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90125         cache-check for the same variable -- that defeated the purpose of
90126         the test; the test program was never run.  This was a problem only
90127         on systems with losing getline functions -- HP-UX 10.20 is one.
90128         Reported by Bjorn Helgaas.
90129
90130 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90131
90132         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90133
90134 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90135
90136         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90137
90138         * m4/const.m4: New file.  Use an initializer in this declaration
90139         typedef int charset[2]; const charset x;
90140         Reported by Bob Glickstein.
90141
90142 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90143
90144         * m4/chown.m4: Fix reversed types on -1 args to chown.
90145         From Kaveh Ghazi.
90146
90147 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90148
90149         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90150         Add lseek and memchr.
90151
90152         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90153         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90154         have a 20-character limit on names.
90155
90156 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90157
90158         * m4/inttypes_h.m4: New file.
90159         * m4/uintmax_t.m4: New file.
90160         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90161
90162
90163         -----
90164
90165         Local Variables:
90166         coding: utf-8
90167         End:
90168
90169         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90170
90171         Copying and distribution of this file, with or without
90172         modification, are permitted provided the copyright notice
90173         and this notice are preserved.